/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #0a0f1d;
    --bg-card: rgba(22, 28, 45, 0.65);
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Neon gradients & colors */
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --grad-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    --grad-neon: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--grad-neon);
    z-index: 1002;
    transition: width 0.05s ease-out;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ==========================================================================
   BACKGROUND GLOW BLOBS
   ========================================================================== */
.glow-bg {
    position: fixed;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.glow-1 {
    top: -100px;
    left: -200px;
    background: var(--accent-purple);
    animation: float-glow 20s infinite alternate;
}

.glow-2 {
    top: 50%;
    right: -200px;
    background: var(--accent-cyan);
    animation: float-glow 25s infinite alternate-reverse;
}

.glow-3 {
    bottom: -100px;
    left: 20%;
    background: var(--accent-blue);
    animation: float-glow 30s infinite alternate;
}

@keyframes float-glow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.2); }
}

/* ==========================================================================
   LAYOUT CONTAINERS & TYPOGRAPHY
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--grad-neon);
    margin: 16px auto 0;
    border-radius: 2px;
}

.gradient-text {
    background: var(--grad-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-normal);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 8px 25px -5px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -5px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 29, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-normal);
}

.nav-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.logo-dot {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-neon);
    transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-cv:hover {
    background: var(--grad-primary);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -4px rgba(139, 92, 246, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.subtitle-container {
    height: 40px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    font-weight: 600;
    border-right: 2px solid var(--accent-cyan);
    white-space: nowrap;
    display: inline-block;
    padding-right: 6px;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-cyan); }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-icon-link svg {
    width: 20px;
    height: 20px;
}

.social-icon-link:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.1);
}

.linkedin-link:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 5px 15px -3px rgba(0, 119, 181, 0.4);
}

.instagram-link:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    border-color: transparent;
    box-shadow: 0 5px 15px -3px rgba(214, 36, 159, 0.4);
}

.whatsapp-link:hover {
    background: #25d366;
    border-color: #25d366;
    box-shadow: 0 5px 15px -3px rgba(37, 211, 102, 0.4);
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper-outer {
    position: relative;
    width: 100%;
    max-width: 380px;
    animation: float-image 6s ease-in-out infinite;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    border: none;
    background: transparent;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.hero-image-glow {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: var(--grad-primary);
    z-index: -1;
    border-radius: 36px;
    filter: blur(24px);
    opacity: 0.35;
}

@keyframes float-image {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
}

.about-info h3, .about-experience h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.quick-details {
    margin-top: 32px;
    display: grid;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

.detail-item {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    width: 100px;
    color: var(--accent-cyan);
}

.detail-val {
    color: var(--text-primary);
}

.detail-val a:hover {
    color: var(--accent-purple);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 6px;
    height: calc(100% - 20px);
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 8px var(--accent-purple);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.timeline-org {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 32px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.3);
}

.skill-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 24px;
}

.skill-card-icon svg {
    color: #fff;
    width: 24px;
    height: 24px;
}

.lang-icon { background: rgba(139, 92, 246, 0.15); }
.lang-icon svg { color: var(--accent-purple); }

.web-icon { background: rgba(6, 182, 212, 0.15); }
.web-icon svg { color: var(--accent-cyan); }

.db-icon { background: rgba(59, 130, 246, 0.15); }
.db-icon svg { color: var(--accent-blue); }

.web3-icon { background: rgba(139, 92, 246, 0.15); }
.web3-icon svg { color: var(--accent-purple); }

.qa-icon { background: rgba(6, 182, 212, 0.15); }
.qa-icon svg { color: var(--accent-cyan); }

.tools-icon { background: rgba(59, 130, 246, 0.15); }
.tools-icon svg { color: var(--accent-blue); }

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   PORTFOLIO SLIDESHOW SECTION
   ========================================================================== */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 720px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 20px 40px -10px rgba(139, 92, 246, 0.2);
    border: 1px solid var(--border-glass);
    background: #000;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #040814;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* Blurred background for premium aspect-ratio fitting */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.4);
    transform: scale(1.1);
    z-index: 1;
}

/* We set the background-image dynamic loading in JavaScript, 
   but for now we use img tag inside slide to render it. */
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    position: relative;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 30px;
    background: linear-gradient(transparent, rgba(6, 10, 22, 0.95));
    z-index: 10;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.slide.active .slide-caption {
    transform: translateY(0);
}

.slide-caption h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-caption p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(22, 28, 45, 0.5);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.slide-nav:hover {
    background: var(--grad-primary);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.slide-nav.prev { left: 20px; }
.slide-nav.next { right: 20px; }

.slideshow-dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active {
    background: var(--accent-cyan);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* ==========================================================================
   ACADEMIC PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.project-header {
    margin-bottom: 18px;
}

.project-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 18px;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.contact-text-para {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-cards {
    display: grid;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition-normal);
}

.contact-card:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
}

.contact-card-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-card-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.whatsapp-card:hover .contact-card-icon {
    background: rgba(37, 211, 102, 0.15);
}
.whatsapp-card:hover .contact-card-icon svg {
    color: #25d366;
}

.email-card:hover .contact-card-icon {
    background: rgba(6, 182, 212, 0.15);
}
.email-card:hover .contact-card-icon svg {
    color: var(--accent-cyan);
}

.linkedin-card:hover .contact-card-icon {
    background: rgba(59, 130, 246, 0.15);
}
.linkedin-card:hover .contact-card-icon svg {
    color: var(--accent-blue);
}

/* Glassmorphic Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, .form-group textarea {
    background: rgba(10, 15, 29, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.form-submit {
    width: 100%;
    margin-top: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 30px 0;
    background: rgba(6, 10, 22, 0.9);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 40px;
    margin-top: 40px;
}

.certificate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, box-shadow;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.certificate-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.15), 0 0 25px -5px rgba(139, 92, 246, 0.1);
}

.certificate-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #000;
}

.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.certificate-card:hover .certificate-img {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 29, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.zoom-icon {
    color: #fff;
    width: 48px;
    height: 48px;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.certificate-card:hover .zoom-icon {
    transform: scale(1);
}

.certificate-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(22, 28, 45, 0.4);
    flex-grow: 1;
}

.cert-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.certificate-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

.certificate-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--text-secondary);
    font-size: 40px;
    font-weight: 300;
    transition: var(--transition-fast);
    z-index: 2100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

.lightbox-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 85%;
    gap: 16px;
    position: relative;
}

.lightbox-content {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(6, 182, 212, 0.15);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-caption {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}

/* Universal 3D Tilt Card Base */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (3D Roll-Forward)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: perspective(1200px) rotateX(12deg) translateY(45px) scale(0.96);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.scroll-reveal.active {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
}

/* ==========================================================================
   SOFT SKILLS & 3D CSS SHAPES
   ========================================================================== */
.soft-skills-section {
    padding-top: 50px;
    padding-bottom: 80px;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.soft-skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, box-shadow;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.soft-skill-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.15), 0 0 25px -5px rgba(6, 182, 212, 0.1);
}

.shape-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    perspective: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape {
    position: relative;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
}

/* 3D Wireframe Shapes for Technical Skills remain defined below */

@keyframes spin-shape-cyl {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ==========================================================================
   FLOATING BACKGROUND PARTICLES
   ========================================================================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.04);
    animation: float-particle var(--p-speed) infinite ease-in-out;
}

.p1  { width: 80px;  height: 80px;  top: 15%; left: 10%;  --p-speed: 25s; animation-delay: 0s; }
.p2  { width: 120px; height: 120px; top: 40%; left: 80%;  --p-speed: 35s; animation-delay: -5s; }
.p3  { width: 60px;  height: 60px;  top: 75%; left: 25%;  --p-speed: 20s; animation-delay: -2s; }
.p4  { width: 100px; height: 100px; top: 60%; left: 55%;  --p-speed: 30s; animation-delay: -12s; }
.p5  { width: 90px;  height: 90px;  top: 25%; left: 60%;  --p-speed: 28s; animation-delay: -8s; }
.p6  { width: 110px; height: 110px; top: 85%; left: 75%;  --p-speed: 32s; animation-delay: -15s; }
.p7  { width: 70px;  height: 70px;  top: 5%;  left: 45%;  --p-speed: 22s; animation-delay: -6s; }
.p8  { width: 80px;  height: 80px;  top: 50%; left: 15%;  --p-speed: 26s; animation-delay: -18s; }
.p9  { width: 130px; height: 130px; top: 90%; left: 40%;  --p-speed: 40s; animation-delay: -4s; }
.p10 { width: 50px;  height: 50px;  top: 30%; left: 90%;  --p-speed: 18s; animation-delay: -10s; }

@keyframes float-particle {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.15;
    }
    33% {
        transform: translate(30px, -50px) scale(1.1) rotate(120deg);
        opacity: 0.45;
    }
    66% {
        transform: translate(-20px, -100px) scale(0.9) rotate(240deg);
        opacity: 0.3;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
        opacity: 0.15;
    }
}

/* ==========================================================================
   TECHNICAL SKILLS 3D CSS SHAPES
   ========================================================================== */
.tech-diamond {
    animation: spin-shape 7s infinite linear;
}
.td-face {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(139, 92, 246, 0.12);
    border-bottom-color: var(--accent-purple);
    transform-origin: 20px 0;
}
.td-top { transform: rotateX(35deg) translateZ(10px); }
.td-bottom { transform: rotateX(-145deg) translateZ(10px) translateY(-35px); border-bottom-color: var(--accent-cyan); }
.td-left { transform: rotateY(90deg) rotateX(35deg) translateZ(10px); }
.td-right { transform: rotateY(-90deg) rotateX(35deg) translateZ(10px); border-bottom-color: var(--accent-cyan); }

.tech-browser {
    animation: spin-shape-cyl 8s infinite linear;
}
.tb-face {
    position: absolute;
    width: 48px;
    height: 32px;
    border-radius: 6px;
    border: 1.5px solid var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    transform-style: preserve-3d;
}
.tb-front { transform: translateZ(6px); }
.tb-back { transform: rotateY(180deg) translateZ(6px); border-color: var(--accent-purple); background: rgba(139, 92, 246, 0.1); }
.tb-screen {
    position: absolute;
    width: 38px;
    height: 22px;
    border: 1px solid var(--accent-purple);
    transform: translateZ(8px);
    background: rgba(139, 92, 246, 0.08);
}

.tech-db {
    animation: spin-shape-cyl 8s infinite linear;
}
.db-disc {
    position: absolute;
    width: 40px;
    height: 12px;
    transform-style: preserve-3d;
}
.db-disc-1 { transform: translateY(-16px); }
.db-disc-2 { transform: translateY(0px); }
.db-disc-3 { transform: translateY(16px); }
.db-disc-face {
    position: absolute;
}
.db-top {
    width: 40px;
    height: 15px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-cyan);
    background: rgba(6, 182, 212, 0.12);
    transform: rotateX(90deg) translateZ(6px);
}
.db-side {
    width: 40px;
    height: 12px;
    border-left: 1.5px solid var(--accent-cyan);
    border-right: 1.5px solid var(--accent-cyan);
    border-radius: 50%;
}

.tech-eth {
    animation: spin-shape 9s infinite linear;
}
.eth-face {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid rgba(139, 92, 246, 0.12);
    border-bottom-color: var(--accent-purple);
    transform-origin: 15px 0;
}
.eth-top-front { transform: rotateY(0deg) translateZ(8.6px) rotateX(30deg); }
.eth-top-back  { transform: rotateY(180deg) translateZ(8.6px) rotateX(30deg); }
.eth-top-left  { transform: rotateY(90deg) translateZ(8.6px) rotateX(30deg); border-bottom-color: var(--accent-cyan); }
.eth-top-right { transform: rotateY(-90deg) translateZ(8.6px) rotateX(30deg); border-bottom-color: var(--accent-cyan); }
.eth-bottom-front { transform: rotateY(0deg) translateZ(8.6px) rotateX(150deg) translateY(-30px); }
.eth-bottom-back  { transform: rotateY(180deg) translateZ(8.6px) rotateX(150deg) translateY(-30px); }
.eth-bottom-left  { transform: rotateY(90deg) translateZ(8.6px) rotateX(150deg) translateY(-30px); border-bottom-color: var(--accent-cyan); }
.eth-bottom-right { transform: rotateY(-90deg) translateZ(8.6px) rotateX(150deg) translateY(-30px); border-bottom-color: var(--accent-cyan); }

.tech-radar {
    animation: spin-shape-cyl 8s infinite linear;
}
.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
    transform: rotateX(75deg);
}
.r-outer { width: 50px; height: 50px; }
.r-inner { width: 30px; height: 30px; border-color: var(--accent-purple); }
.radar-line {
    position: absolute;
    width: 25px;
    height: 1.5px;
    background: var(--accent-cyan);
    transform-origin: left center;
    transform: rotateX(75deg) rotateY(0deg);
    animation: radar-sweep 2s infinite linear;
}
@keyframes radar-sweep {
    0% { transform: rotateX(75deg) rotate(0deg); }
    100% { transform: rotateX(75deg) rotate(360deg); }
}

.tech-cog {
    animation: spin-shape-cyl 10s infinite linear;
}
.cog-bar {
    position: absolute;
    width: 48px;
    height: 12px;
    border: 1.5px solid var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
}
.cb-1 { transform: rotate(0deg); }
.cb-2 { transform: rotate(60deg); }
.cb-3 { transform: rotate(120deg); }
.cog-center {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-cyan);
    background: var(--bg-dark);
    z-index: 5;
}

/* ==========================================================================
   RESTRUCTURED CONTACT CARDS GRID
   ========================================================================== */
.contact-wrapper {
    max-width: 1100px;
    margin: 40px auto 0;
    text-align: center;
}

.contact-intro-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

.contact-wrapper .contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.contact-wrapper .contact-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 15px 30px -10px rgba(6, 182, 212, 0.15);
}

.contact-wrapper .contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    transition: transform var(--transition-normal), background var(--transition-normal), color var(--transition-normal);
}

.contact-wrapper .contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

.contact-wrapper .contact-card-info {
    text-align: left;
}

.contact-wrapper .contact-card-info h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-wrapper .contact-card-info p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Custom card accents */
.contact-wrapper .phone-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
}
.contact-wrapper .whatsapp-card:hover {
    border-color: rgba(34, 197, 94, 0.35);
}
.contact-wrapper .whatsapp-card .contact-card-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}
.contact-wrapper .whatsapp-card:hover .contact-card-icon {
    background: #22c55e;
    color: #fff;
}

.contact-wrapper .email-card:hover {
    border-color: rgba(239, 68, 68, 0.35);
}
.contact-wrapper .email-card .contact-card-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
.contact-wrapper .email-card:hover .contact-card-icon {
    background: #ef4444;
    color: #fff;
}

.contact-wrapper .linkedin-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
}
.contact-wrapper .linkedin-card .contact-card-icon {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.08);
}
.contact-wrapper .linkedin-card:hover .contact-card-icon {
    background: var(--accent-purple);
    color: #fff;
}

.contact-wrapper .instagram-card:hover {
    border-color: rgba(236, 72, 153, 0.35);
}
.contact-wrapper .instagram-card .contact-card-icon {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.08);
}
.contact-wrapper .instagram-card:hover .contact-card-icon {
    background: #ec4899;
    color: #fff;
}

/* ==========================================================================
   PAGE BACKGROUND & FANTASY PARTICLES (Sumeru Dendro Leaves & Sparkles)
   ========================================================================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    animation: float-particle var(--p-speed) infinite ease-in-out;
    will-change: transform, opacity;
}

/* Dendro Leaf Sparks - Emerald green rotating diamond leaves */
.particle.leaf {
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50% 0 50% 0;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    transform: rotate(45deg);
}

/* HoYoverse Magic Sparkles - Glowing soft yellow circles */
.particle.sparkle {
    background: radial-gradient(circle, rgba(253, 224, 71, 0.8) 0%, rgba(253, 224, 71, 0) 70%);
    box-shadow: 0 0 15px rgba(253, 224, 71, 0.5);
    border-radius: 50%;
}

.p1  { width: 14px;  height: 22px;  top: 15%; left: 10%;  --p-speed: 25s; animation-delay: 0s; }
.p2  { width: 8px;   height: 8px;   top: 40%; left: 80%;  --p-speed: 35s; animation-delay: -5s; }
.p3  { width: 12px;  height: 18px;  top: 75%; left: 25%;  --p-speed: 20s; animation-delay: -2s; }
.p4  { width: 6px;   height: 6px;   top: 60%; left: 55%;  --p-speed: 30s; animation-delay: -12s; }
.p5  { width: 15px;  height: 24px;  top: 25%; left: 60%;  --p-speed: 28s; animation-delay: -8s; }
.p6  { width: 10px;  height: 10px;  top: 85%; left: 75%;  --p-speed: 32s; animation-delay: -15s; }
.p7  { width: 13px;  height: 20px;  top: 5%;  left: 45%;  --p-speed: 22s; animation-delay: -6s; }
.p8  { width: 8px;   height: 8px;   top: 50%; left: 15%;  --p-speed: 26s; animation-delay: -18s; }
.p9  { width: 16px;  height: 26px;  top: 90%; left: 40%;  --p-speed: 40s; animation-delay: -4s; }
.p10 { width: 7px;   height: 7px;   top: 30%; left: 90%;  --p-speed: 18s; animation-delay: -10s; }

@keyframes float-particle {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.15;
    }
    33% {
        transform: translate(40px, -60px) scale(1.15) rotate(120deg);
        opacity: 0.6;
    }
    66% {
        transform: translate(-30px, -120px) scale(0.85) rotate(240deg);
        opacity: 0.35;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
        opacity: 0.15;
    }
}

/* ==========================================================================
   STATIC GLOWING SOFT SKILLS ICONS
   ========================================================================== */
.soft-skill-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: transform var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.soft-skill-card:hover .soft-skill-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
}

.soft-skill-icon svg.cyan-glow {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.45));
}

.soft-skill-icon svg.purple-glow {
    color: var(--accent-purple);
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.45));
}

/* ==========================================================================
   TECHNICAL SKILL TAG ICONS & BULLETS
   ========================================================================== */
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.skill-tag i {
    font-size: 1.05rem;
    color: var(--text-primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-tag:hover i {
    transform: scale(1.2);
    color: var(--accent-cyan);
}

.tag-bullet {
    color: var(--accent-cyan);
    font-weight: 800;
    font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .about-grid, .contact-wrapper {
        gap: 40px;
    }
    .slideshow-wrapper {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-section {
        padding-top: 96px; /* Optimized top padding for compact mobile view */
        padding-bottom: 40px;
        min-height: auto;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image-container {
        order: 1;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .subtitle-container {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-info {
        order: 2;
    }
    
    .about-experience {
        order: 1;
    }
    
    .slideshow-wrapper {
        height: 520px;
        width: 100%;
        max-width: 390px;
    }
    
    .slideshow-dots {
        bottom: 100px;
    }
    
    /* Responsive Navigation Menu */
    .nav-container {
        height: 64px;
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: rgba(10, 15, 29, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s ease-in-out;
        border-top: 1px solid var(--border-glass);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
        width: 20px;
        height: 14px;
    }
    
    .hamburger .bar {
        height: 2px;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .btn-cv {
        padding: 6px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .btn-cv svg {
        width: 14px;
        height: 14px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        padding-right: 4px;
    }
    .subtitle-container {
        height: 32px;
        justify-content: center;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    .slideshow-wrapper {
        height: 440px;
        border-radius: 20px;
        max-width: 320px;
    }
    .slideshow-dots {
        bottom: 100px;
    }
    .slide-caption {
        padding: 20px 15px;
    }
    .slide-caption h3 {
        font-size: 1.15rem;
    }
    .slide-caption p {
        font-size: 0.85rem;
    }
    .slide-nav {
        width: 38px;
        height: 38px;
    }
    .contact-form-wrapper {
        padding: 24px;
        border-radius: 20px;
    }
}

/* ==========================================================================
   MOBILE OVERFLOW FIX — prevents any element from causing horizontal scroll
   ========================================================================== */

/* Nuclear overflow fix — nothing escapes the viewport */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Ensure all sections and containers never exceed viewport */
.section,
.container,
.hero-section,
.hero-container,
.about-section,
.about-grid,
.skills-section,
.skills-grid,
.projects-grid,
.contact-wrapper,
.contact-cards-grid,
.contact-section,
.certificates-grid,
.footer-container {
    max-width: 100%;
}

@media (max-width: 768px) {
    /* Fix hero image floating animation pushing content right */
    .hero-image-wrapper-outer {
        animation: none;
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
    }

    /* Fix hero image glow extending beyond bounds */
    .hero-image-glow {
        display: none;
    }

    /* Fix hero title overflow on very small screens */
    .hero-title {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Remove translateX hover on contact cards (causes horizontal overflow) */
    .contact-card:hover {
        transform: none;
    }

    /* Fix scroll-reveal 3D perspective from causing horizontal scroll */
    .scroll-reveal {
        transform: translateY(30px);
        perspective: none;
    }

    .scroll-reveal.active {
        transform: translateY(0);
    }

    /* Ensure nav menu doesn't cause layout shift */
    .nav-links {
        max-width: 100vw;
    }

    /* Fix skills grid on mobile */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Fix certificates grid on mobile */
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    /* Fix projects grid on mobile */
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Tighter container padding on smallest screens */
    .container {
        padding: 0 16px;
    }

    /* Prevent hero subtitle overflow */
    .hero-subtitle {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}