/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-image {
    width: 100%;
    max-height: fit-content;
    object-fit: fill;
    border-radius: 16px 16px 16px 16px;
    box-shadow: 0 4px 18px rgba(44,62,80,0.11);
    margin-bottom: -2.5rem;
    display: block;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #c0392b;
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    display: block;
    margin: 0.7rem auto 0 auto;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #3498db 60%, #e74c3c 100%);
    box-shadow: 0 2px 8px rgba(52,152,219,0.15);
}


/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

#extra-info {
    margin-top: 2rem;
    background: #f8f9fa;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.03);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.extra-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.extra-info-grid h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .extra-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


.profile-info h4 {
    margin-top: 2rem;
}

.profile-image img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
    justify-items: center;
    align-items: start;
    margin: 0 auto;
    width: 100%;
}

.project-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 2rem 1.5rem;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 1rem;
}

.project-links {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

/* Contact Section */
.contact-flex {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-content {
   flex: 1 1;
}

.contact-info {
    flex: 1 1;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    margin-top: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.03);
    align-items: center;
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #2c3e50;
    letter-spacing: 1px;
}

.contact-info p {
    margin: 0.7rem 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #217dbb;
}

.contact-info i {
    color: #3498db;
    font-size: 1.1rem;
    margin-right: 0.3rem;
}


#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contactForm input,
#contactForm textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contactForm textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #2980b9;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem;
    text-align: center;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-flex {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-content, .contact-info {
        max-width: 100%;
    }
    .contact-content {
        width: 100%;
        max-width: none;
    }

    .hero-image {
        display: none !important;
    }
}
