/* ============================================
   MINIMALIST PORTFOLIO - CLEAN & SIMPLE
   Clean, Content-Focused Design
   ============================================ */

/* Reset and Base Styles */
:root {
    /* Day Mode (Premium Light) */
    --bg-main: #ffffff;
    --bg-alt: #fafafa;
    --bg-card: #ffffff;
    --text-main: #18181b;
    --text-muted: #52525b;
    --text-light: #71717a;
    --border: #e4e4e7;
    --accent: #27272a;

    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 40px -5px rgba(0, 0, 0, 0.06);

    /* Golden Ratio Scale (Φ = 1.618) - Kept for SPACING only */
    --phi: 1.618rem;

    /* Spacing based on Φ (Kept as is for good composition) */
    --space-xs: calc(var(--phi) * 0.382);
    /* ~10px */
    --space-sm: calc(var(--phi) * 0.618);
    /* ~16px */
    --space-base: 1.618rem;
    /* ~26px */
    --space-md: calc(var(--phi) * 1.618);
    /* ~42px */
    --space-lg: calc(var(--phi) * 2.618);
    /* ~68px */
    --space-xl: calc(var(--phi) * 4.236);
    /* ~110px */

    /* Typography Scale (Refined - Major Third 1.25) */
    /* This creates a more "normal" but still structured hierarchy */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.25rem;
    --text-lg: 1.563rem;
    /* 1.25^2 */
    --text-xl: 1.953rem;
    /* 1.25^3 */
    --text-2xl: 3.052rem;
    /* 1.25^5 - Hero Size */
    --text-hero: 4rem;
}

/* "GenZ" Premium Feel Elements */
::selection {
    background: var(--text-main);
    color: var(--bg-main);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.75;
    /* Increased airy line-height */
    color: var(--text-muted);
    background: var(--bg-main);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    /* Crisper text */
    position: relative;
}

/* Subtle Mesh Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    transform: scale(1.5);
    animation: floatBlob 20s infinite alternate ease-in-out;
}

@keyframes floatBlob {
    0% {
        transform: scale(1.5) translate(0, 0);
    }

    100% {
        transform: scale(1.6) translate(-5%, 5%);
    }
}

/* Shree Text */
.shree-text {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-light);
    padding: 0.5rem 0 0;
    font-family: "Sanskrit Text", "Devanagari Sangam MN", sans-serif;
    opacity: 0.7;
    user-select: none;
}

/* Container */
/* Container */
.container {
    max-width: 1000px;
    /* Wider canvas for composition */
    margin: 0 auto;
    padding: 0 var(--space-base);
}

/* Header */
header {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    /* Smaller, more sophisticated */
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

.header-nav a:hover {
    color: var(--text-main);
    transform: translateY(-1px);
}

.header-nav i {
    font-size: 1.25rem;
}

/* Hero Section */
.hero {
    padding: var(--space-xl) 0 var(--space-lg);
}

.hero-profile {
    text-align: center;
    margin-bottom: var(--space-md);
}

.profile-picture {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-picture:hover {
    transform: scale(1.05) rotate(2deg);
    /* Playful interaction */
    box-shadow: var(--shadow-float);
}

.hero-name {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
    text-shadow: none;
    position: relative;
    padding-bottom: var(--space-xs);
}

.name-pronunciation-container {
    text-align: center;
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    background: transparent;
    /* Removed Pill */
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    transform: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    border-bottom: 1px solid transparent;
    /* Prepare for hover underline */
}

.name-pronunciation-container:hover {
    color: var(--text-main);
    transform: translateY(-2px);
    border-bottom-color: var(--text-main);
    /* Minimal underline */
}

/* Sound visualization effect */
.name-pronunciation-container i {
    font-size: 1rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.name-pronunciation-container:hover i {
    animation: pulseAudio 1s infinite;
}

@keyframes pulseAudio {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.name-pronunciation-container span {
    font-style: italic;
    background: #f5f5f5;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.95rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero-content {
    margin-bottom: 2rem;
}

.hero-content p {
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
    font-family: var(--font-body);
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid #000;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
}

.btn-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-highlight {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn-highlight:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}




/* Skills Marquee */
.skills-marquee {
    padding: var(--space-md) 0;
    overflow: hidden;
    background: var(--bg-main);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: var(--space-lg);
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.skills-marquee::before,
.skills-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.skills-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}

.skills-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}

.marquee-content {
    display: inline-flex;
    /* gap removed to ensure continuous loop math */
    animation: scroll 30s linear infinite;
    /* padding-left removed for instant start */
}

.marquee-content:hover {
    animation-play-state: paused;
}

.skill-item {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-right: 4rem;
    /* Use margin instead of gap for seamless loop */
}

.skill-item i,
.skill-item .skill-icon-img {
    font-size: 1.5rem;
    width: 1.5rem;
    /* Ensure image matches font size */
    height: 1.5rem;
    transition: all 0.3s ease;
    filter: none !important;
    /* Force Full Color */
    opacity: 1 !important;
    /* Force Full Visibility */
}

.skill-item:hover {
    color: var(--text-main);
    background: var(--bg-alt);
}

.skill-item:hover i,
.skill-item:hover .skill-icon-img {
    /* filter: grayscale(0%); */
    /* opacity: 1; */
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* Projects Section */
.projects {
    padding: var(--space-xl) 0;
    background: var(--bg-alt);
    color: var(--text-main);
}

/* Heading Fixed */
.projects .section-title {
    color: var(--text-main);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-main);
    text-align: center;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 800;
    /* Extra thick */
}

/* Projects Grid - Golden Ratio 2-Column */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    /* Smooth corners */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.project-image {
    width: 100%;
    height: 260px;
    /* Golden Ratio Approximation */
    object-fit: contain;
    /* Shows full diagram/robot */
    background: #f8f8f8;
    /* Soft backing for transparent pngs */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 2rem;
    /* More negative space */
}

.project-card:hover .project-image {
    transform: scale(1.05);
    /* Gentle zoom */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    /* Diffused float */
    border-color: rgba(0, 0, 0, 0.03);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.project-card:hover .project-image {
    opacity: 1;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 1.5rem 1.5rem 0.5rem;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 1.5rem 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.view-all-link {
    text-align: center;
    margin-top: 2rem;
}

.view-all-link .btn-link {
    background: #fff;
    color: #000;
}

.view-all-link .btn-link:hover {
    background: #e0e0e0;
}

/* Hidden projects - for expandable functionality */
.hidden-project {
    display: none;
}

.projects-expanded .hidden-project {
    display: block;
}

/* Awards & Certificates Section - Showcase Style */
.awards {
    padding: var(--space-xl) 0;
    background: var(--bg-main);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Subtle background accent for awards */
.awards::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: var(--space-md);
    position: relative;
    z-index: 1;
}

.certificate-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align for showcase feel */
    text-align: center;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Special Glow for SPOT Award */
.box-glow-gold {
    border-color: rgba(212, 175, 55, 0.3);
    background: linear-gradient(145deg, #fff, #fffbf0);
}

.box-glow-gold:hover {
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.6);
}

.cert-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.certificate-card:hover .cert-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.cert-brand-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.trophy-anim {
    font-size: 3rem;
    background: linear-gradient(45deg, #FFD700, #FDB931);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(218, 165, 32, 0.3));
}

.industry-anim {
    font-size: 3rem;
    background: linear-gradient(45deg, #607d8b, #b0bec5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cert-content {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.cert-org {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    opacity: 0.8;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 2px 8px;
    border-radius: 4px;
}

.cert-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    margin-top: auto;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-link:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.box-glow-gold .cert-link:hover {
    background: linear-gradient(45deg, #FFD700, #FDB931);
    border-color: transparent;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Awards Responsive */
@media (max-width: 900px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}


/* Experience Section */
.experience {
    padding: var(--space-xl) 0;
    background: var(--bg-alt);
    margin-top: 0;
    /* removed separate spacing if needed */
}

/* Minimalist Journey Flow - The Timeline */
.journey-flow {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-base) 0;
    position: relative;
    border-left: 2px solid rgba(0, 0, 0, 0.05);
    /* Thicker, softer spine */
    margin-left: var(--space-base);
}

.journey-card {
    background: #fff;
    border-radius: 12px;
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: var(--space-md);
    /* Space from spine */
    position: relative;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.journey-card:hover {
    transform: translateY(-4px) translateX(4px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

/* Timeline Dot */
.journey-card::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-md) - 7px);
    /* Perfectly centered on 2px spine */
    top: calc(var(--space-md) + 4px);
    /* Aligns with Title baseline */
    width: 12px;
    height: 12px;
    background: var(--bg-alt);
    /* Hollow effect */
    border: 2px solid var(--text-light);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px var(--bg-alt);
    /* White halo to separate from line */
}

.journey-card:hover::before {
    background: var(--text-main);
    border-color: var(--text-main);
    transform: scale(1.2);
    box-shadow: 0 0 0 6px var(--bg-main);
}

/* Typography Overrides for Timeline */
.journey-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 10px;
    border-radius: 4px;
}

.journey-role {
    font-size: 1.4rem;
    font-weight: 700;
    /* Matched to Import (Quicksand max 700) */
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading) !important;
    /* Force override */
    letter-spacing: -0.01em;
    /* Less aggressive tracking for rounded font */
    line-height: 1.25;
}

.journey-org {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Remove Old Styles */
.journey-flow::before {
    display: none;
}

.card-icon {
    display: none;
}

.education-card {
    border-left: none;
    background: transparent;
}

.education-card::before {
    border-color: var(--text-light);
}


/* SCROLL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.journey-role {
    font-size: 1.3rem;
    font-weight: 800;
    /* Thicker */
    color: #000;
    margin: 0 0 0.25rem 0;
    font-family: 'Nunito', sans-serif;
}

.journey-org {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.journey-desc {
    display: none;
    /* Hide brief desc if details are present to avoid duplication */
}

.journey-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.journey-details li {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.project-report-link {
    display: inline-flex;
    align-items: center;
    margin: 0 1.5rem 1.75rem;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    /* Subtle underline */
}

.project-report-link:hover {
    color: #000;
    border-bottom-color: #000;
    background: transparent;
    transform: translateX(4px);
    /* Slide right */
}

.project-report-link i {
    margin-right: 0.4rem;
    font-size: 0.85rem;
}

.journey-details li::before {
    content: '•';
    /* Custom bullet */
    position: absolute;
    left: 0;
    color: #aaa;
    font-size: 1.2rem;
    line-height: 1rem;
    top: 2px;
}

.journey-details strong {
    color: #000;
    font-weight: 600;
}

/* Certificate Link Styling */
.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.certificate-link:hover {
    background: rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--text-main);
    transform: translateX(2px);
}

.certificate-link i {
    font-size: 0.85rem;
    color: #d4af37;
    /* Gold color for award icon */
}


/* Mobile Responsive */
@media (max-width: 600px) {
    .journey-flow::before {
        left: 15px;
    }

    .journey-card {
        margin-left: 40px;
        padding: 1.5rem;
    }

    .journey-card::before {
        left: -33px;
    }

    .card-icon {
        display: none;
    }
}

/* Contact Highlight */
.email-highlight {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    margin-top: 1rem;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 2px solid #ccc;
    transition: all 0.3s ease;
}

.email-highlight:hover {
    border-color: #000;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    border-bottom-color: transparent;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-title {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.experience-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.experience-company {
    font-size: 1rem;
    color: #444;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.experience-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact-content {
    margin-top: 2rem;
}

.contact-content p {
    margin-bottom: 1.5rem;
    color: #444;
    line-height: 1.8;
}

.contact-content a {
    color: #000;
    text-decoration: none;
    border-bottom: 2px solid #000;
}

.contact-content a:hover {
    color: #666;
    border-bottom-color: #666;
}

/* Footer */
footer {
    padding: 3rem 0 2rem;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #000;
}

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #000;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #000;
}

.footer-contact p {
    color: #666;
    font-size: 0.9rem;
}

.footer-contact a {
    color: #000;
    text-decoration: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-nav {
        gap: 1rem;
    }

    .hero-subtitle {
        text-align: left;
    }

    .hero-links {
        flex-direction: column;
    }

    .btn-link {
        text-align: center;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-date {
        margin-top: 0.25rem;
    }

    /* Skills Marquee Mobile Optimization */
    .skills-marquee::before,
    .skills-marquee::after {
        width: 80px;
        /* Reduced fade gradient for smaller screens */
    }

    .skill-item {
        font-size: 0.95rem;
        /* Smaller text on mobile */
        margin-right: 2.5rem;
        /* Reduced spacing between items */
        padding: 0.4rem 0.8rem;
        gap: 0.5rem;
    }

    .skill-item i,
    .skill-icon-img {
        font-size: 1.25rem;
        /* Smaller icons */
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Extra small screens - further optimization */
@media (max-width: 480px) {

    .skills-marquee::before,
    .skills-marquee::after {
        width: 50px;
        /* Even smaller fade on very small screens */
    }

    .skill-item {
        font-size: 0.85rem;
        margin-right: 2rem;
        padding: 0.35rem 0.7rem;
        gap: 0.4rem;
    }

    .skill-item i,
    .skill-icon-img {
        font-size: 1.1rem;
        width: 1.1rem;
        height: 1.1rem;
    }
}

/* Project Modal */
/* Project Modal - Premium Glass */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    /* Higher than header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    /* Light overlay */
    backdrop-filter: blur(8px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fff;
    margin: 4% auto;
    padding: 0;
    max-width: 900px;
    /* Wider for better reading */
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    /* Soft deep shadow */
    position: relative;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-image {
    width: 100%;
    height: auto;
    /* Allow natural height */
    max-height: 70vh;
    /* Cap height to prevent screen overflow */
    object-fit: contain;
    /* Ensure full image visible */
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    display: none;
}

.modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-gallery img:hover {
    transform: scale(1.02);
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.modal-section-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: 100%;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-image {
        height: 200px;
    }

    .modal-close {
        right: 1rem;
        top: 1rem;
    }
}