/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-hover: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-border-hover: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-shadow-hover: 0 12px 48px 0 rgba(31, 38, 135, 0.25);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.2);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
    --backdrop-blur: blur(24px) saturate(180%);
    --backdrop-blur-strong: blur(32px) saturate(200%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, #e8f0f8 0%, #f0e8f8 25%, #f8f0f0 50%, #f8f8f0 75%, #e8f0f8 100%);
    background-size: 400% 400%;
    animation: bodyGradientShift 15s ease infinite;
}

@keyframes bodyGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(240, 147, 251, 0.08) 100%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(102, 126, 234, 0.03) 2px, rgba(102, 126, 234, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(240, 147, 251, 0.03) 2px, rgba(240, 147, 251, 0.03) 4px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.18);
    border-color: var(--glass-border-hover);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

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

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: #667eea;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Hamburger toggle button */
.nav-toggle {
    display: none;
}

.nav-toggle-btn {
    display: none;
    width: 36px;
    height: 28px;
    position: relative;
    cursor: pointer;
}

.nav-toggle-btn span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a1a1a;
    border-radius: 1px;
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-btn span:nth-child(1) {
    top: 4px;
}

.nav-toggle-btn span:nth-child(2) {
    top: 13px;
}

.nav-toggle-btn span:nth-child(3) {
    top: 22px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 100px 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-photo {
    display: block;
}

.profile-photo {
    width: 220px;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.profile-photo::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-photo:hover::after {
    opacity: 1;
}

.profile-photo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.35),
        inset 0 0 0 4px rgba(255, 255, 255, 0.3),
        inset 0 0 80px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}


.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-location {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-location span {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-location span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.hero-location span:hover::before {
    left: 100%;
}

.hero-location span:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-location a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-location a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.whatsapp-link {
    display: inline-block;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Sections */
.section {
    padding: 80px 2rem;
    position: relative;
    background: linear-gradient(135deg, #eef5f8 0%, #f0e8f8 33%, #f8eef0 66%, #f8f8ee 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.section.alt-section {
    background: linear-gradient(135deg, #f0eef8 0%, #f8eef0 33%, #f8f0ee 66%, #f0f8ee 100%);
    background-size: 400% 400%;
    animation: gradientShiftAlt 18s ease infinite;
}

@keyframes gradientShiftAlt {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-content > p:first-of-type {
    margin-bottom: 1.5rem;
}

.key-highlights {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-left: 4px solid #667eea;
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.key-highlights h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.key-highlights ul {
    list-style: none;
    padding-left: 0;
}

.key-highlights ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.key-highlights ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.key-highlights ul li strong {
    color: var(--text-dark);
}

/* Featured Media */
.media-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.media-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-radius: 20px;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        var(--glass-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: rgba(102, 126, 234, 0.35);
    background: var(--glass-bg-hover);
}


.media-card img {
    width: 100%;
    height: auto;
    min-height: 320px;
    max-height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    display: block;
}

/* Experience Section */
.experience-timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.experience-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--backdrop-blur-strong);
    -webkit-backdrop-filter: var(--backdrop-blur-strong);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.experience-item:hover::before {
    transform: scaleX(1);
}

.experience-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 
        var(--glass-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    background: var(--glass-bg-hover);
}

.experience-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(240, 147, 251, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.experience-item:hover::after {
    opacity: 1;
}

.experience-content {
    position: relative;
    z-index: 1;
}

.experience-item:nth-child(1) { animation-delay: 0.1s; }
.experience-item:nth-child(2) { animation-delay: 0.2s; }
.experience-item:nth-child(3) { animation-delay: 0.3s; }
.experience-item:nth-child(4) { animation-delay: 0.4s; }
.experience-item:nth-child(5) { animation-delay: 0.5s; }

.experience-period {
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.experience-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.experience-content h4 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.location {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.experience-content ul {
    list-style: none;
    padding-left: 0;
}

.experience-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.experience-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
}

.experience-skills {
    margin-top: 1rem;
}

.skill-tag {
    display: inline-block;
    background: var(--bg-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.2rem;
    color: #667eea;
}

.note {
    font-style: italic;
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.note a {
    color: #667eea;
    text-decoration: none;
}

.note a:hover {
    text-decoration: underline;
}

/* Education Section */
.education-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--backdrop-blur-strong);
    -webkit-backdrop-filter: var(--backdrop-blur-strong);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2qv, 1);
    position: relative;
    overflow: hidden;
}

.education-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 
        var(--glass-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    background: var(--glass-bg-hover);
}

.education-period {
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.education-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.education-content h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.education-detail {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 1.2rem;
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    min-width: 0;
    position: relative;
}
.skill-category:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 12px 48px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.5);
}

.skill-category h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem; /* smaller heading for compact cards */
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    hyphens: auto;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.skill-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem; /* slightly smaller badges */
    font-weight: 500;
    transition: transform 0.3s ease;
}

.skill-badge:hover {
    transform: scale(1.05);
}

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

.project-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 
        var(--glass-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    background: var(--glass-bg-hover);
}

.project-item:hover::before {
    left: 100%;
}

.project-header,
.project-company,
.project-item p {
    position: relative;
    z-index: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.project-date {
    font-size: 0.85rem;
    color: #667eea;
    white-space: nowrap;
}

.project-company {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-item p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

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

.cert-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--backdrop-blur-strong);
    -webkit-backdrop-filter: var(--backdrop-blur-strong);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cert-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 
        var(--glass-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    background: var(--glass-bg-hover);
}

.cert-item h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cert-org {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cert-date {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-id {
    color: var(--text-light);
    font-size: 0.85rem;
}

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

.award-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--backdrop-blur-strong);
    -webkit-backdrop-filter: var(--backdrop-blur-strong);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.award-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 
        var(--glass-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    background: var(--glass-bg-hover);
}

.award-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.award-item h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.award-org {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.award-date {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.award-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: var(--backdrop-blur-strong);
    -webkit-backdrop-filter: var(--backdrop-blur-strong);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 
        var(--glass-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    background: var(--glass-bg-hover);
}

.contact-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    display: block;
    margin-top: 0.5rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-stats {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.languages {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-visible {
    opacity: 1 !important;
    animation: fadeInUp 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle-btn {
        display: inline-block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 56px;
        right: 12px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 12px;
        padding: 0.75rem 1rem;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        min-width: 160px;
        font-size: 0.9rem;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu li a {
        display: block;
        padding: 0.35rem 0;
    }
    
    /* Menu open state */
    .nav-toggle:checked ~ .nav-menu {
        display: flex;
    }
    
    /* Animate hamburger to X */
    .nav-toggle:checked + .nav-toggle-btn span:nth-child(1) {
        top: 13px;
        transform: rotate(45deg);
    }
    
    .nav-toggle:checked + .nav-toggle-btn span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle:checked + .nav-toggle-btn span:nth-child(3) {
        top: 13px;
        transform: rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-location {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .project-header {
        flex-direction: column;
    }

    .experience-item,
    .education-item,
    .project-item,
    .cert-item,
    .award-item,
    .contact-item {
        padding: 1.5rem;
    }
}

/* Ultra-compact navbar on small phones */
@media (max-width: 640px) {
    .navbar {
        background: rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .nav-container {
        padding: 0.5rem 1rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    .nav-logo {
        font-size: 1.1rem;
    }
    /* Hide the full menu to avoid a tall bar; content stays accessible via page sections */
    .nav-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: row;
        gap: 0.5rem;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 60px 1rem;
    }
}

/* Print Styles */
@media print {
    /* Hide Navigation & Interactive Elements */
    .navbar,
    .nav-container,
    .nav-menu,
    .hero::before,
    .hero::after {
        display: none !important;
    }

    /* Optimize Backgrounds & Colors */
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    body::before {
        display: none !important;
    }

    /* Convert glassmorphism to solid backgrounds */
    .section,
    .experience-item,
    .education-item,
    .skill-category,
    .project-item,
    .cert-item,
    .award-item,
    .contact-item,
    .key-highlights {
        background: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #e5e7eb !important;
        page-break-inside: avoid !important;
    }

    /* Remove decorative backgrounds */
    .section.alt-section {
        background: #fff !important;
    }

    /* Keep Hero Section Colorful - Full Page */
    /* 
     * Paper Size Compatibility:
     * - Hero height optimized at 262mm (10.31in) works perfectly for both sizes:
     *   • A4 (297mm = 11.69in): 262mm hero leaves 35mm buffer - prevents overflow
     *   • US Letter (279mm = 11in): 262mm hero leaves 17mm buffer - prevents overflow
     * 
     * Note: CSS cannot detect user's paper size selection in print dialog.
     * We default to A4 in @page rules, but hero height works for both sizes.
     * Users can change paper size in browser print dialog and hero will fit correctly.
     */
    @page {
        size: A4;
        margin: 0.5in;
    }

    @page :first {
        margin: 0;
        size: A4;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        height: 100% !important;
    }

    .hero {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        /* Hero height: 262mm is the PERFECT height for print
         * - A4 (297mm): Leaves 35mm buffer - prevents overflow and blank page
         * - US Letter (279mm): Leaves 17mm buffer - works perfectly
         * This height allows natural page break without forcing an empty page
         */
        height: 262mm !important;
        max-height: 262mm !important;
        min-height: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        page-break-after: auto !important; /* NO forced break - let content flow naturally */
        break-after: auto !important; /* Modern CSS - no forced break */
        page-break-inside: avoid !important;
        page-break-before: avoid !important;
        orphans: 0 !important;
        widows: 0 !important;
        overflow: hidden !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .hero::before,
    .hero::after {
        display: none !important;
    }

    /* Page Break Control */
    .section {
        page-break-inside: auto; /* ALLOW sections to span multiple pages */
        page-break-after: auto;
        page-break-before: auto; /* Allow sections to flow naturally after hero */
    }
    
    /* About section starts on page 2 naturally after hero fills page 1 */
    #about {
        page-break-before: auto !important; /* Let browser decide based on space */
        break-before: auto !important;
        page-break-after: auto !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Experience section - ensure it's visible and can start on new page */
    #experience {
        page-break-before: auto !important;
        page-break-inside: auto !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Experience timeline container */
    .experience-timeline {
        page-break-inside: auto !important;
        display: block !important;
    }
    
    /* Remove top padding/margin from first section after hero to prevent empty page */
    .section:not(.hero):first-of-type {
        margin-top: 0 !important;
        padding-top: 0 !important;
        page-break-before: auto !important;
        break-before: auto !important;
    }
    
    /* Critical: Ensure no spacing or content between hero and next section */
    .hero ~ section:first-of-type {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    h2.section-title {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    .experience-item {
        page-break-inside: auto; /* Allow experience items to break if too long */
        page-break-after: auto;
        margin-bottom: 1rem !important;
    }
    
    .education-item,
    .project-item,
    .cert-item,
    .award-item {
        page-break-inside: avoid;
        page-break-after: auto;
        margin-bottom: 1rem !important;
    }

    /* Prevent orphaned headings */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    /* Layout & Spacing Adjustments */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero .container {
        padding: 0 !important;
        height: 100% !important;
        width: 100% !important;
    }

    /* Ensure subsequent sections respect page margins - removed padding that could cause empty page */
    .section:not(.hero) {
        padding: 0 !important; /* Removed vertical padding to prevent empty page */
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .section:not(.hero) .container {
        padding: 0.5in 0.5in !important; /* Top, right, bottom, left margins */
        margin: 0 auto !important;
    }
    
    /* Container padding for About section */
    #about .container {
        padding: 0.5in !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Font & Text Readability */
    body {
        font-size: 11pt !important;
        line-height: 1.4 !important;
    }

    h1, h2, h3, h4, h5, h6, p, li, span, a {
        color: #000 !important;
    }

    .hero-title {
        font-size: 20pt !important;
        margin-bottom: 0.5rem !important;
        color: #fff !important;
    }

    .hero-subtitle {
        font-size: 13pt !important;
        color: #fff !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-description {
        font-size: 11pt !important;
        color: #fff !important;
        margin-bottom: 1rem !important;
    }

    h2.section-title {
        font-size: 16pt !important;
        color: #000 !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: #000 !important;
        background-clip: unset !important;
        margin-bottom: 1rem !important;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 0.5rem !important;
    }

    h3 {
        font-size: 13pt !important;
        color: #000 !important;
    }

    p, li {
        font-size: 10pt !important;
        line-height: 1.5 !important;
    }

    /* Hero Section Optimization */
    .hero-content {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important; /* NO padding to prevent overflow */
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    /* Add minimal spacing only to child elements inside hero-content */
    .hero-content > * {
        margin: 0.25rem 0.5rem !important;
    }

    .hero-location {
        display: block !important;
        gap: 0.5rem !important;
    }

    .hero-location span {
        display: inline-block !important;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 0.4rem 0.8rem !important;
        margin: 0.2rem !important;
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        border-radius: 50px !important;
    }

    .hero-location a {
        color: #fff !important;
    }

    /* Profile Photo - Keep visible with border on gradient */
    .profile-photo {
        width: 150px !important;
        height: 150px !important;
        border-radius: 20px !important;
        border: 4px solid rgba(255, 255, 255, 0.6) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        margin: 0 auto 1.5rem !important;
        display: block !important;
    }

    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        box-shadow: none !important;
    }

    /* Skills Grid Optimization - 2 columns for better print layout */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .skill-category {
        padding: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .skill-category h3 {
        font-size: 10pt !important; /* smaller heading in print */
        margin-bottom: 0.25rem !important; /* tighter heading for print to avoid large gaps */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.3 !important;
        hyphens: auto !important;
    }

    /* Ensure list of skills has no default top/bottom margins in print */
    .skills-list {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        gap: 0.35rem !important;
        list-style: none !important;
    }

    .skill-badge {
        padding: 0.25rem 0.5rem !important;
        font-size: 8.5pt !important; /* smaller badge text in print */
        background: #f3f4f6 !important;
        color: #000 !important;
        border: 1px solid #d1d5db !important;
        border-radius: 12px !important;
    }

    /* Key Highlights */
    .key-highlights {
        border-left: 3px solid #000 !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
        background: #f9fafb !important;
    }

    .key-highlights h3 {
        font-size: 12pt !important;
        margin-bottom: 0.5rem !important;
    }

    .key-highlights ul li {
        font-size: 10pt !important;
        margin-bottom: 0.5rem !important;
    }

    /* Experience & Education Items */
    .experience-item,
    .education-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .experience-period,
    .education-period {
        font-weight: 600 !important;
        color: #000 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Links - URLs removed for cleaner print appearance */
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    /* Hero links - white text on gradient background, no underline */
    .hero-location a {
        color: #fff !important;
        text-decoration: none !important;
    }


    /* Remove hover effects */
    *:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }

    /* Footer */
    .footer {
        background: #fff !important;
        color: #000 !important;
        border-top: 1px solid #e5e7eb !important;
        padding: 1rem !important;
        page-break-inside: avoid;
    }

    /* Animations */
    * {
        animation: none !important;
        transition: none !important;
    }

    /* Remove note references that might be web-specific */
    .note {
        font-size: 9pt !important;
        color: #666 !important;
        font-style: italic !important;
    }
}

