/* 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;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.hero-section {
    text-align: center;
    padding: 60px 40px 40px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    color: white;
    margin: 0 auto;
    max-width: 1200px;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.025em;
}

nav {
    background: #ffffff;
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.nav-menu a:hover, 
.nav-menu a.active {
    background: #f1f5f9;
    color: #1e40af;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 32px;
    position: relative;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 24px;
    background: #475569;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content Styles */
main {
    background: white;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: #f8f9fa;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 20px auto;
    border-radius: 2px;
}

.lead {
    font-size: 1.3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
}

/* Timeline Styles */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.timeline-item {
    margin: 40px 0;
    position: relative;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 45%;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) {
    margin-left: 55%;
}

.timeline-item:nth-child(even) {
    margin-right: 55%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.timeline-item:nth-child(odd)::before {
    left: -45px;
}

.timeline-item:nth-child(even)::before {
    right: -45px;
}

.timeline-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.skill-category {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-category h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skill-category ul {
    list-style: none;
    margin-top: 20px;
}

.skill-category li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.skill-category li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8rem;
}

/* Portfolio Links */
.portfolio-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.portfolio-link:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.portfolio-link.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.portfolio-link span:first-child {
    font-size: 2rem;
    margin-right: 20px;
}

.portfolio-link h4 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.portfolio-link p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Contact Links */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: white;
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #333;
    font-weight: 600;
}

.contact-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px);
}

.contact-link span:first-child {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 24px 30px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }

    .hamburger {
        display: none; /* Hide hamburger completely */
    }

    .nav-wrapper {
        padding: 8px 0; /* Smaller padding */
    }

    .logo a {
        font-size: 1.2rem; /* Smaller logo */
    }

    .nav-menu {
        display: flex; /* Keep as horizontal menu */
        gap: 12px; /* Much smaller gaps */
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-menu li {
        margin: 0;
        border: none;
    }

    .nav-menu a {
        padding: 4px 8px; /* Much smaller padding */
        font-size: 0.8rem; /* Smaller text */
        border-radius: 4px;
        color: #475569;
        background: none;
        transition: all 0.2s ease;
    }

    .nav-menu a:hover {
        background: #f1f5f9;
        color: #1e40af;
    }

    /* Remove all mobile menu specific styles */
    nav {
        position: static;
    }

    body.menu-open {
        overflow: auto;
    }
    
    .nav-overlay {
        display: none;
    }

    /* Timeline mobile adjustments */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .timeline-item::before {
        left: -45px !important;
        right: auto !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .hero-section {
        padding: 32px 20px 24px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .nav-wrapper {
        padding: 6px 0;
        flex-direction: column; /* Stack logo and menu vertically on very small screens */
        gap: 8px;
    }

    .logo a {
        font-size: 1.1rem;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-menu a {
        padding: 3px 6px;
        font-size: 0.75rem;
    }

    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 20px;
    }
}

/* Desktop - make more compact */
@media (min-width: 769px) {
    .nav-wrapper {
        padding: 12px 0;
    }
    
    .nav-menu {
        gap: 24px;
    }
    
    .nav-menu a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Profile Picture Styles */
.profile-pic {
    width: 300px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin: 32px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    border: 2px solid #e2e8f0;
}

.profile-pic:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .profile-pic {
        width: 250px;
        margin: 24px 0;
    }
}

@media (max-width: 480px) {
    .profile-pic {
        width: 200px;
        margin: 20px 0;
    }
}