
/* =====================================================================
   STYLE.CSS — Md Nurul Alam Niloy | Portfolio
   Fully optimized for mobile performance, responsiveness & speed.
   NO design/color changes — only performance & structure improvements.
   ===================================================================== */

/* =====================================================================
   SECTION: CSS CUSTOM PROPERTIES (VARIABLES)
   ===================================================================== */
:root {
    --bg-color:   #050505;
    --card-bg:    rgba(255, 255, 255, 0.03);
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --accent:     #00ff88;
    --nav-bg:     rgba(10, 10, 10, 0.6);
    --border:     rgba(255, 255, 255, 0.08);
    --btn-text:   #000000;
    --radius-lg:  20px;
    --radius-md:  12px;
    --radius-sm:  8px;
    --transition: 0.3s ease;
}

[data-theme="light"] {
    --bg-color:   #f2f2f5;
    --card-bg:    rgba(255, 255, 255, 0.6);
    --text-color: #1d1d1f;
    --text-muted: #6e6e73;
    --accent:     #2970ff;
    --nav-bg:     rgba(255, 255, 255, 0.7);
    --border:     rgba(0, 0, 0, 0.05);
    --btn-text:   #ffffff;
}

/* =====================================================================
   SECTION: RESET & BASE STYLES
   ===================================================================== */
*,
*::before,
*::after {
    margin:     0;
    padding:    0;
    box-sizing: border-box;
}

html {
    scroll-behavior:    smooth;
    scroll-padding-top: 100px;
    /* Prevent horizontal scroll globally */
    overflow-x: hidden;
}

body {
    background:   var(--bg-color);
    color:        var(--text-color);
    font-family:  'Outfit', sans-serif;
    overflow-x:   hidden;
    /* Let browser handle cursor on all devices by default */
    cursor:       auto;
    transition:   background 0.4s ease, color 0.4s ease;
    /* Smooth font rendering */
    -webkit-font-smoothing:  antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width:   100%;
    height:      auto;
    display:     block;
    /* Prevent layout shift */
    object-fit:  cover;
}

a {
    text-decoration: none;
    color:           inherit;
}

ul, ol {
    list-style: none;
}

button {
    cursor:      pointer;
    font-family: inherit;
}

/* Utility */
.text-center { text-align: center; }

/* Screen reader only — used for accessibility */
.sr-only {
    position:   absolute;
    width:      1px;
    height:     1px;
    padding:    0;
    margin:     -1px;
    overflow:   hidden;
    clip:       rect(0, 0, 0, 0);
    white-space: nowrap;
    border:     0;
}

/* =====================================================================
   SECTION: LAYOUT CONTAINERS
   ===================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 5%;
}

/* =====================================================================
   SECTION: PRELOADER
   ===================================================================== */
.preloader {
    position:        fixed;
    inset:           0;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    background:      var(--bg-color);
    z-index:         99999;
    transition:      opacity 0.6s ease, visibility 0.6s ease;
}

.loader-logo {
    display:         flex;
    align-items:     center;
    justify-content: center;
    margin-bottom:   14px;
}

.preloader-img {
    width:   120px;
    height:  auto;
    display: block;
}

[data-theme="dark"] .preloader-img {
    filter: invert(1) brightness(2);
}

.loader-bar {
    width:         220px;
    height:        6px;
    background:    rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow:      hidden;
}

.loader-progress {
    height:        100%;
    width:         0%;
    background:    var(--accent);
    border-radius: 999px;
    transition:    width 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.preloader.loaded {
    opacity:        0;
    visibility:     hidden;
    pointer-events: none;
}

/* =====================================================================
   SECTION: BACKGROUND BLOBS
   Removed on mobile to prevent GPU overdraw
   ===================================================================== */
.background-blobs {
    position:       fixed;
    top:            0;
    left:           0;
    width:          100%;
    height:         100%;
    z-index:        -1;
    pointer-events: none;
}

.blob {
    position:      absolute;
    border-radius: 50%;
    filter:        blur(80px);
    opacity:       0.2;
    /* GPU acceleration */
    will-change:   transform;
    transform:     translate3d(0, 0, 0);
}

.blob-1 {
    width:      400px;
    height:     400px;
    background: var(--accent);
    top:        -100px;
    left:       -100px;
}

.blob-2 {
    width:      300px;
    height:     300px;
    background: var(--accent);
    bottom:     -50px;
    right:      -50px;
}

/* PERF: Hide blobs on mobile — fixed + blur on mobile GPU = scroll lag */
@media (max-width: 768px) {
    .background-blobs { display: none; }
}

/* =====================================================================
   SECTION: CUSTOM CURSOR
   Hidden on touch/mobile devices
   ===================================================================== */
.cursor {
    width:        40px;
    height:       40px;
    border:       1px solid var(--text-color);
    border-radius:50%;
    position:     fixed;
    pointer-events: none;
    z-index:      9999;
    transform:    translate(-50%, -50%);
    transition:   transform 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    width:         6px;
    height:        6px;
    background:    var(--accent);
    border-radius: 50%;
    position:      fixed;
    z-index:       9999;
    transform:     translate(-50%, -50%);
    pointer-events:none;
}

.cursor.active {
    transform:    translate(-50%, -50%) scale(2.5);
    background:   rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* PERF: Hide cursor on touch devices */
@media (hover: none), (max-width: 768px) {
    .cursor,
    .cursor-dot { display: none; }
}

/* =====================================================================
   SECTION: NAVIGATION
   ===================================================================== */
.glass-nav-top {
    position:   fixed;
    top:        25px;
    left:       50%;
    transform:  translateX(-50%) translate3d(0, 0, 0);
    width:      90%;
    max-width:  950px;
    z-index:    1000;
    background: var(--nav-bg);
    backdrop-filter:         blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border:        1px solid var(--border);
    border-radius: 100px;
    padding:       12px 30px;
    /* Perf: isolate this layer */
    will-change: transform;
}

.nav-content {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    position:        relative;
}

/* Logo */
.logo {
    display:     flex;
    align-items: center;
    gap:         10px;
}

.logo-img {
    height:     35px;
    width:      auto;
    transition: filter var(--transition);
}

[data-theme="dark"] .logo-img {
    filter: invert(1) brightness(100%);
}

.logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    color:       var(--accent);
    font-size:   1.1rem;
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    gap:     30px;
}

.nav-links a {
    color:          var(--text-color);
    font-size:      0.85rem;
    text-transform: uppercase;
    font-weight:    600;
    opacity:        0.7;
    transition:     opacity var(--transition), color var(--transition);
}

.nav-links a:hover {
    opacity: 1;
    color:   var(--accent);
}

/* Hamburger */
.menu-toggle {
    display:          none;
    font-size:        1.2rem;
    cursor:           pointer;
    color:            var(--text-color);
    background:       none;
    border:           none;
    padding:          5px;
    line-height:      1;
}

/* Theme Toggle Button */
.theme-switch {
    width:           40px;
    height:          40px;
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      rgba(255, 255, 255, 0.05);
    border:          1px solid var(--border);
    color:           var(--text-color);
    transition:      background var(--transition), color var(--transition);
}

.theme-switch:hover {
    background: var(--accent);
    color:      #000;
}

/* ── Mobile Nav ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Lighter blur on mobile nav for perf */
    .glass-nav-top {
        backdrop-filter:         blur(6px);
        -webkit-backdrop-filter: blur(6px);
        background:              var(--bg-color);
        top:                     15px;
        padding:                 10px 20px;
    }

    .menu-toggle { display: block; }

    /* Nav links hidden by default, shown when .active toggled by JS */
    .nav-links {
        display:       none;
        position:      absolute;
        top:           calc(100% + 15px);
        left:          0;
        width:         100%;
        background:    var(--nav-bg);
        backdrop-filter:         blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding:        25px 30px;
        gap:            20px;
        border-radius:  20px;
        border:         1px solid var(--border);
        text-align:     center;
        box-shadow:     0 15px 30px rgba(0, 0, 0, 0.4);
        z-index:        999;
    }

    .nav-links.active { display: flex; }

    /* Remove list-style for mobile menu */
    .nav-links li { list-style: none; }
}

/* =====================================================================
   SECTION: HERO
   ===================================================================== */
header {
    min-height: 100vh;
    min-height: 100svh; /* Handles mobile address bar height */
    display:    flex;
    align-items:    center;
    justify-content:center;
    padding:    120px 10% 60px;
    position:   relative;
    z-index:    1;
}

.hero-container {
    width:     100%;
    max-width: 1100px;
    text-align:left;
    transform: translateZ(0); /* Prevent flicker during GSAP animation */
}

.code-greeting {
    font-family:   'Space Grotesk', monospace;
    color:         var(--accent);
    font-size:     1.2rem;
    margin-bottom: 10px;
    font-weight:   600;
}

.hero-title {
    font-family:   'Space Grotesk', sans-serif;
    font-size:     clamp(2.5rem, 7vw, 6rem);
    line-height:   1.1;
    font-weight:   800;
    margin-bottom: 15px;
}

.text-gradient {
    background:             linear-gradient(90deg, var(--accent), var(--text-color));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:        text;
    display:                inline-block;
}

.hero-subheadline {
    font-family:   'Space Grotesk', sans-serif;
    font-size:     clamp(1.5rem, 4vw, 3.5rem);
    font-weight:   700;
    margin-bottom: 25px;
}

.hero-bio {
    color:         var(--text-muted);
    font-size:     clamp(0.9rem, 2vw, 1rem);
    max-width:     600px;
    line-height:   1.7;
    margin-bottom: 40px;
}

/* CTA Group: button + socials */
.cta-group {
    display:     flex;
    align-items: center;
    gap:         20px;
    flex-wrap:   wrap;
}

/* Primary Button */
.btn-solid {
    display:         inline-flex;
    align-items:     center;
    padding:         16px 45px;
    background:      linear-gradient(90deg, var(--accent), #00cc6a);
    color:           #000;
    border-radius:   50px;
    font-weight:     700;
    font-size:       1rem;
    white-space:     nowrap;
    box-shadow:      0 10px 25px rgba(0, 255, 136, 0.2);
    transition:      transform var(--transition), box-shadow var(--transition);
}

.btn-solid:hover {
    transform:  translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.4);
}

/* Outline Button */
.btn-outline {
    display:      inline-flex;
    align-items:  center;
    gap:          10px;
    padding:      12px 35px;
    border:       1px solid var(--accent);
    color:        var(--accent);
    border-radius:50px;
    font-weight:  600;
    transition:   background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-outline:hover {
    background: var(--accent);
    color:      #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Social Icon Buttons */
.hero-socials {
    display:     flex;
    gap:         12px;
    align-items: center;
    flex-wrap:   wrap;
}

.social-btn {
    width:           42px;
    height:          42px;
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    border:          1px solid var(--border);
    background:      rgba(255, 255, 255, 0.05);
    color:           var(--text-color);
    font-size:       1rem;
    transition:      transform var(--transition), background var(--transition),
                     border-color var(--transition), color var(--transition),
                     box-shadow var(--transition);
}

.social-btn:hover {
    border-color: var(--accent);
    color:        #000;
    background:   var(--accent);
    transform:    translateY(-3px);
    box-shadow:   0 0 20px rgba(0, 255, 136, 0.4);
}

/* ── Hero Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    header {
        padding:         100px 5% 60px;
        justify-content: flex-start;
    }

    .hero-container { text-align: center; }

    .hero-bio {
        margin: 0 auto 35px;
        text-align: center;
    }

    .cta-group {
        flex-direction:  column;
        align-items:     center;
        gap:             25px;
    }

    .hero-socials {
        justify-content: center;
    }
}

/* ── Hero Responsive on Very Small Screens ───────────────────── */
@media (max-width: 380px) {
    .hero-title     { font-size: 2rem; }
    .hero-subheadline{ font-size: 1.3rem; }
    .btn-solid      { padding: 14px 30px; font-size: 0.9rem; }
}

/* =====================================================================
   SECTION: ABOUT
   ===================================================================== */
.about-section {
    position: relative;
    padding:  120px 5%;
    overflow: hidden;
}

/* Watermark background text */
.watermark-text {
    position:      absolute;
    top:           50%;
    left:          0;
    transform:     translateY(-50%) translateZ(0);
    font-size:     clamp(5rem, 15vw, 15rem);
    font-family:   'Space Grotesk', sans-serif;
    font-weight:   800;
    color:         var(--text-color);
    opacity:       0.03;
    z-index:       0;
    pointer-events:none;
    white-space:   nowrap;
    user-select:   none;
    will-change:   transform;
}

/* Two-column grid */
.about-grid {
    display:             grid;
    grid-template-columns: 1fr 1fr;
    gap:                 80px;
    align-items:         center;
    position:            relative;
    z-index:             2;
}

/* Image Column */
.about-img-wrapper { position: relative; }

.img-frame {
    border-radius: var(--radius-lg);
    overflow:      hidden;
    border:        1px solid var(--border);
    transform:     translateZ(0);
}

.about-img {
    width:      100%;
    height:     auto;
    transition: transform 0.5s ease;
    display:    block;
}

.img-frame:hover .about-img { transform: scale(1.05); }

/* Experience Badge */
.experience-badge {
    position:     absolute;
    bottom:       30px;
    right:        -20px;
    background:   rgba(10, 10, 10, 0.85);
    border:       1px solid var(--accent);
    padding:      20px;
    border-radius:var(--radius-md);
    display:      flex;
    align-items:  center;
    gap:          15px;
    z-index:      3;
}

/* Drop blur on mobile for perf */
@media (min-width: 769px) {
    .experience-badge {
        backdrop-filter:         blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

.exp-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size:   2.5rem;
    font-weight: 800;
    color:       var(--accent);
}

.exp-text {
    font-size:      0.75rem;
    color:          #fff;
    text-transform: uppercase;
    font-weight:    700;
    line-height:    1.2;
}

/* Content Column */
.about-content {
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;
    text-align:     left;
    justify-content:center;
    width:          100%;
}

/* Section Tag / Label */
.section-tag {
    display:        block;
    color:          var(--accent);
    font-family:    'Space Grotesk', sans-serif;
    font-weight:    600;
    font-size:      0.85rem;
    margin-bottom:  10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Titles */
.section-title {
    font-family:   'Space Grotesk', sans-serif;
    font-size:     clamp(2rem, 4vw, 3rem);
    font-weight:   800;
    color:         var(--text-color);
    margin-bottom: 20px;
    line-height:   1.2;
    text-align:     center;
}

.section-title span  { color: var(--accent); }
.section-title .highlight { color: var(--accent); }

.section-subtitle {
    color:         var(--text-muted);
    font-size:     clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 30px;
    line-height:   1.6;
    max-width:     700px;
    margin-left:   auto;
    margin-right:  auto;
}

.about-bio {
    color:       var(--text-muted);
    font-size:   1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Stats Row */
.stats-row {
    display:       flex;
    gap:           40px;
    margin:        40px 0;
    border-top:    1px solid var(--border);
    padding-top:   30px;
    width:         100%;
    flex-wrap:     wrap;
}

.stat-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size:   2.5rem;
    font-weight: 800;
}

.stat-item h3::after {
    content:       '+';
    color:         var(--accent);
    font-size:     1.2rem;
    vertical-align:top;
}

.stat-item p {
    font-size:      0.8rem;
    color:          var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About CTA wrapper */
.btn-wrapper { margin-top: 10px; }

/* ── About Mobile ────────────────────────────────────────────── */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap:                   50px;
    }

    .about-content {
        align-items: center;
        text-align:  center;
    }

    #about .section-tag,
    #about .section-title,
    #about .about-bio {
        text-align: center !important;
    }

    .stats-row {
        justify-content: center;
        gap:             20px;
    }

    .watermark-text {
        font-size: clamp(4rem, 20vw, 8rem);
        top:       15%;
    }

    .experience-badge {
        position: relative;
        right:    auto;
        bottom:   auto;
        margin:   -20px auto 0;
        width:    fit-content;
    }
}

@media (max-width: 480px) {
    .about-section { padding: 80px 5%; }
    .stats-row      { gap: 15px; }
    .stat-item h3   { font-size: 2rem; }
    .experience-badge { padding: 15px; }
}

/* =====================================================================
   SECTION: SERVICES (Carousel)
   ===================================================================== */
.service-section { padding: 100px 5%; }

.carousel-container {
    width:        100%;
    overflow:     hidden;
    padding:      40px 0;
    /* Fade edges */
    mask-image:         linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    /* Perf: own compositing layer */
    will-change:        transform;
}

.carousel-track {
    display: flex;
    gap:     25px;
    width:   max-content;
    /* GPU: prevents blurry text during animation */
    transform: translateZ(0);
}

.service-card {
    width:         280px;
    background:    var(--card-bg);
    padding:       45px 25px;
    border-radius: var(--radius-lg);
    border:        1px solid var(--border);
    text-decoration:none;
    text-align:    center;
    flex-shrink:   0;
    color:         var(--text-color);
    transition:    transform 0.4s ease, border-color 0.4s ease;
}

.service-card h3 {
    font-family:   'Space Grotesk', sans-serif;
    margin-top:    15px;
    font-size:     1.1rem;
}

.icon-box {
    width:           70px;
    height:          70px;
    background:      rgba(255, 255, 255, 0.05);
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    margin:          0 auto;
    color:           var(--accent);
    font-size:       1.8rem;
    transition:      background 0.4s ease, color 0.4s ease;
}

/* Desktop-only: hover effects + backdrop-filter */
@media (hover: hover) {
    .service-card {
        backdrop-filter:         blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .service-card:hover {
        border-color: var(--accent);
        transform:    translateY(-10px);
    }

    .service-card:hover .icon-box {
        background: var(--accent);
        color:      #000;
    }
}

/* Touch: simple tap feedback */
@media (hover: none) {
    .service-card:active {
        border-color: var(--accent);
        transform:    scale(0.97);
    }
}

/* ── Services Mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .carousel-container {
        /* Slightly tighter mask on mobile */
        mask-image:         linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }

    .service-card {
        width:   220px;
        padding: 30px 20px;
    }
}

/* =====================================================================
   SECTION: PORTFOLIO
   ===================================================================== */
.portfolio-section {
    padding:    80px 0;
    background: transparent;
}

.portfolio-section .container {
    width:     90%;
    max-width: 1200px;
    margin:    0 auto;
}

/* Filter Buttons */
.portfolio-filters {
    display:         flex;
    justify-content: center;
    gap:             10px;
    margin-bottom:   50px;
    flex-wrap:       wrap;
    padding:         0 5%;
}

.filter-btn {
    padding:       10px 22px;
    background:    var(--card-bg);
    border:        1px solid var(--border);
    border-radius: 50px;
    color:         var(--text-muted);
    font-size:     0.85rem;
    font-family:   'Outfit', sans-serif;
    cursor:        pointer;
    transition:    background var(--transition), color var(--transition),
                   border-color var(--transition), font-weight var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background:  var(--accent);
    color:       #000;
    border-color:var(--accent);
    font-weight: 700;
}

/* Portfolio Grid */
.portfolio-grid {
    display:             grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                 25px;
    align-items:         start;
    padding:             0 5%;
}

@media (max-width: 991px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .portfolio-grid      { grid-template-columns: 1fr; gap: 20px; }
    .portfolio-filters   { gap: 8px; }
    .filter-btn          { padding: 8px 16px; font-size: 0.8rem; }
}

/* Hidden items (filtered out) */
.portfolio-item { transition: opacity 0.4s ease; }
.portfolio-item.hidden { display: none !important; }
/* NOTE: content-visibility/contain-intrinsic-size was tried here but removed —
   card heights vary too much between image cards and mixed-layout web cards,
   so a single guessed placeholder size broke the grid alignment and caused
   reflow jank instead of preventing it. */

/* ── Portfolio Card Base ─────────────────────────────────────── */
.portfolio-card {
    position:      relative;
    display:       block;
    background:    var(--card-bg);
    border:        1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow:      hidden;
    transition:    transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    line-height:   0; /* Removes gap under images */
    isolation:     isolate;
    /* PERF: removed blanket `will-change: transform` here — it was
       force-creating a GPU layer for every single card on page load
       (30+ layers), which is heavy on mobile GPU/memory for no benefit
       since the transform only happens on hover anyway. */
}

.portfolio-card img {
    width:      100%;
    height:     auto;
    display:    block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* PERF: only apply lift/shadow/zoom on devices with real hover (mouse).
   On touch, hover can "stick" after a tap and cause jank — this avoids that. */
@media (hover: hover) {
    .portfolio-card:hover {
        transform:  translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    .portfolio-card:hover img { transform: scale(1.08); }
}

/* ── Mixed Layout (Web Project Cards) ───────────────────────── */
.portfolio-card.mixed-layout {
    display:     flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Epic Content Area */
.portfolio-content.epic-style {
    padding:        15px 18px;
    background:     var(--bg-color);
    border-top:     1px solid var(--border);
    display:        flex;
    flex-direction: column;
    gap:            6px;
    transition:     background 0.3s ease;
}

/* Tech Stack Badges */
.tech-stack {
    display:  flex;
    gap:      6px;
    flex-wrap:wrap;
    margin-bottom: 4px;
}

.tech-badge {
    font-size:    0.6rem;
    background:   rgba(255, 255, 255, 0.05);
    color:        var(--accent);
    padding:      3px 8px;
    border-radius:4px;
    border:       1px solid var(--border);
    font-weight:  600;
    white-space:  nowrap;
}

/* Project Title */
.epic-style h3 {
    font-size:   1.1rem;
    color:       var(--text-color);
    font-weight: 700;
    display:     flex;
    align-items: center;
    gap:         8px;
    line-height: 1.3;
    margin:      0;
}

.epic-style h3 .version {
    font-size:    0.6rem;
    background:   var(--accent);
    color:        #000;
    padding:      1px 5px;
    border-radius:3px;
    font-weight:  bold;
    white-space:  nowrap;
}

[data-theme="light"] .epic-style h3 .version { color: #fff; }

.epic-style p {
    color:         var(--text-muted);
    font-size:     0.82rem;
    line-height:   1.4;
    margin-bottom: 8px;
}

.epic-style p .highlight {
    color:       var(--text-color);
    font-weight: 600;
    border-bottom: 1px dashed var(--accent);
}

/* Epic Button */
.epic-btn {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             8px;
    padding:         8px 14px;
    border-radius:   var(--radius-sm);
    font-weight:     600;
    font-size:       0.82rem;
    background:      var(--accent);
    border:          1px solid var(--accent);
    color:           #000;
    transition:      all 0.3s ease;
}

@media (hover: hover) {
    .epic-btn:hover {
        background:  rgba(255, 255, 255, 0.08);
        box-shadow:  0 0 20px var(--accent);
        transform:   translateY(-2px);
        color:       #fff !important;
        border-color:#fff;
    }
}

[data-theme="light"] .epic-btn            { color: #fff !important; }
[data-theme="light"] .epic-btn:hover      { background: rgba(0,0,0,0.05); border-color: #000; color: #000 !important; }

/* ── Portfolio Overlay (Image Cards) ────────────────────────── */
.portfolio-overlay {
    position:       absolute;
    inset:          0;
    background:     linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.15));
    display:        flex;
    flex-direction: column;
    justify-content:flex-end;
    padding:        25px;
    transition:     transform 0.4s ease;
    transform:      translateY(100%);
    z-index:        2;
    line-height:    1.5;
}

.portfolio-info h3 {
    font-size:  1.3rem;
    margin-bottom: 4px;
    color:      #fff;
    transform:  translateY(20px);
    opacity:    0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-info span {
    color:          var(--accent);
    font-size:      0.85rem;
    font-weight:    600;
    text-transform: uppercase;
    transform:      translateY(20px);
    opacity:        0;
    transition:     transform 0.4s 0.1s ease, opacity 0.4s 0.1s ease;
    display:        block;
}

.portfolio-link {
    position:        absolute;
    top:             18px;
    right:           18px;
    width:           42px;
    height:          42px;
    background:      var(--accent);
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           #000;
    font-size:       1.1rem;
    text-decoration: none;
    transform:       scale(0) rotate(-45deg);
    transition:      transform 0.4s 0.2s ease;
}

/* Hover triggers overlay reveal (desktop only — see hover:hover block above
   for the card lift; this stays plain since it's the primary way touch users
   see the info too via `:active`/tap-and-hold in some browsers) */
.portfolio-card:hover .portfolio-overlay          { transform: translateY(0); }
.portfolio-card:hover .portfolio-info h3,
.portfolio-card:hover .portfolio-info span        { transform: translateY(0); opacity: 1; }
.portfolio-card:hover .portfolio-link             { transform: scale(1) rotate(0); }

/* Load More Button */
.load-more-container {
    margin-top:      50px;
    display:         flex;
    justify-content: center;
    padding:         0 5%;
}

#loadMoreBtn {
    background:  var(--accent);
    color:       #000;
    border-color:var(--accent);
    font-weight: 700;
    font-size:   0.95rem;
    padding:     12px 35px;
}

#loadMoreBtn:hover {
    background:  transparent;
    color:       var(--accent);
    border-color:var(--accent);
}

[data-theme="light"] #loadMoreBtn       { background: #2970ff; color: #fff; border-color: #2970ff; }
[data-theme="light"] #loadMoreBtn:hover { background: transparent; color: #2970ff; border-color: #2970ff; }

/* =====================================================================
   SECTION: PORTFOLIO CARD ANIMATIONS (Desktop Mockups)
   ===================================================================== */

/* ── Desktop Monitor Mockup ──────────────────────────────────── */
.desktop-wrapper {
    width:            100%;
    height:           250px;
    flex-shrink:      0;
    background:       linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display:          flex;
    justify-content:  center;
    align-items:      center;
    position:         relative;
    overflow:         hidden;
}

.desktop-wrapper::before {
    content:   '';
    position:  absolute;
    width:     300px;
    height:    300px;
    background:radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
    top:       -50px;
    right:     -50px;
    z-index:   0;
    pointer-events: none;
}

.monitor-stack {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    transition:     transform 0.3s ease;
    z-index:        1;
    transform:      scale(0.9);
}

.portfolio-card:hover .monitor-stack {
    transform: scale(0.9) translateY(-10px);
}

.monitor-bezel {
    width:      280px;
    height:     170px;
    background: linear-gradient(to bottom, #222, #000);
    border-radius: 8px;
    border:     2px solid #333;
    padding:    6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    position:   relative;
}

.monitor-neck  { width: 40px;  height: 20px; background: #222; margin-top: -2px; z-index: -1; }
.monitor-base  { width: 100px; height: 8px;  background: #333; border-radius: 4px; box-shadow: 0 5px 10px rgba(0,0,0,0.3); }

.desktop-screen {
    width:        100%;
    height:       100%;
    background:   #f1f5f9;
    border-radius:4px;
    overflow:     hidden;
    display:      flex;
    position:     relative;
}

.ds-sidebar {
    width:          40px;
    height:         100%;
    background:     #1e293b;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    padding-top:    15px;
    gap:            10px;
}

.ds-sidebar-icon {
    width:           20px;
    height:          20px;
    border-radius:   4px;
    background:      rgba(255,255,255,0.1);
    display:         flex;
    justify-content: center;
    align-items:     center;
    color:           rgba(255,255,255,0.5);
    font-size:       0.5rem;
}

.ds-sidebar-icon.active { background: #3b82f6; color: white; }

.ds-main {
    flex:           1;
    padding:        10px;
    position:       relative;
    display:        flex;
    flex-direction: column;
}

.ds-header {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    margin-bottom:   8px;
    border-bottom:   1px solid #e2e8f0;
    padding-bottom:  5px;
}

.ds-title { width: 50px; height: 6px; background: #94a3b8; border-radius: 3px; }

.ds-btn {
    padding:     3px 8px;
    background:  #cbd5e1;
    border-radius:3px;
    color:       white;
    font-size:   0.5rem;
    font-weight: bold;
    animation:   clickDesktopBtn 6s infinite;
}

.ds-table        { display: flex; flex-direction: column; gap: 5px; }

.ds-row {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    background:      white;
    padding:         4px 6px;
    border-radius:   3px;
    border:          1px solid #e2e8f0;
    transition:      background 0.3s ease, border-color 0.3s ease;
}

.ds-row-info  { display: flex; gap: 6px; align-items: center; }
.ds-icon      { width: 14px; height: 14px; background: #e2e8f0; border-radius: 3px; }
.ds-text      { width: 50px; height: 4px; background: #cbd5e1; border-radius: 2px; }

.ds-row.target { animation: selectDesktopRow 6s infinite; }

@keyframes selectDesktopRow {
    0%, 10%    { background: white;   border-color: #e2e8f0; }
    15%, 35%   { background: #eff6ff; border-color: #3b82f6; }
    40%, 100%  { background: white;   border-color: #e2e8f0; }
}

@keyframes clickDesktopBtn {
    0%, 20%  { background: #cbd5e1; transform: scale(1); }
    25%      { background: #2563eb; transform: scale(0.9); }
    30%      { background: #2563eb; transform: scale(1); }
    35%, 100%{ background: #cbd5e1; }
}

.ds-invoice {
    position:      absolute;
    bottom:        0;
    right:         15px;
    width:         120px;
    height:        90px;
    background:    white;
    border-radius: 5px 5px 0 0;
    box-shadow:    0 -5px 15px rgba(0,0,0,0.1);
    border:        1px solid #e2e8f0;
    transform:     translateY(110%);
    padding:       8px;
    display:       flex;
    flex-direction:column;
    gap:           4px;
    animation:     slideUpInvoice 6s infinite;
    z-index:       10;
}

@keyframes slideUpInvoice {
    0%, 35%   { transform: translateY(110%); }
    40%, 75%  { transform: translateY(0); }
    80%, 100% { transform: translateY(110%); }
}

.inv-header { width: 40%; height: 4px; background: #64748b; margin-bottom: 4px; }
.inv-row    { width: 100%; height: 3px; background: #e2e8f0; }
.inv-total  { width: 50%; height: 5px; background: #22c55e; margin-top: auto; border-radius: 2px; }

.ds-success {
    position:      absolute;
    top:           50%;
    left:          55%;
    transform:     translate(-50%,-50%) scale(0);
    background:    #10b981;
    color:         white;
    padding:       5px 10px;
    border-radius: 15px;
    font-size:     0.6rem;
    font-weight:   bold;
    z-index:       20;
    animation:     popSuccessDesktop 6s infinite;
}

@keyframes popSuccessDesktop {
    0%, 65%   { transform: translate(-50%,-50%) scale(0); opacity: 0; }
    70%, 80%  { transform: translate(-50%,-50%) scale(1); opacity: 1; }
    85%, 100% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
}

.ds-cursor {
    position:       absolute;
    top:            0;
    left:           0;
    font-size:      0.9rem;
    color:          rgba(0,0,0,0.8);
    text-shadow:    0 0 2px white;
    z-index:        50;
    pointer-events: none;
    animation:      moveMouseDesktop 6s infinite;
}

@keyframes moveMouseDesktop {
    0%   { top: 150px; left: 250px; opacity: 0; }
    5%   { opacity: 1; }
    15%  { top: 70px; left: 120px; transform: scale(1); }
    20%  { transform: scale(0.8); }
    25%  { transform: scale(1); }
    30%  { top: 25px; left: 215px; }
    35%  { transform: scale(0.8); }
    40%  { transform: scale(1); opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 0; }
}

/* ── Tablet / Scanner Mockup ─────────────────────────────────── */
.tablet-bezel {
    width:           260px;
    height:          170px;
    background:      #1d1d1f;
    border-radius:   12px;
    border:          1px solid rgba(255,255,255,0.1);
    padding:         8px;
    box-shadow:      0 10px 30px rgba(0,0,0,0.3);
    position:        relative;
    display:         flex;
    justify-content: center;
    align-items:     center;
}

.tablet-screen {
    width:          100%;
    height:         100%;
    background:     #0f172a;
    border-radius:  6px;
    overflow:       hidden;
    position:       relative;
    display:        flex;
    flex-direction: column;
}

.tablet-cam {
    position:      absolute;
    left:          -12px;
    top:           50%;
    transform:     translateY(-50%);
    width:         4px;
    height:        4px;
    background:    #333;
    border-radius: 50%;
}

.db-grid {
    padding:             15px;
    display:             grid;
    grid-template-columns:repeat(4, 1fr);
    gap:                 8px;
}

.db-item {
    height:        25px;
    background:    rgba(255,255,255,0.05);
    border-radius: 4px;
}

.scan-line {
    position:   absolute;
    top:        0;
    left:       0;
    width:      100%;
    height:     2px;
    background: #eab308;
    box-shadow: 0 0 15px #eab308;
    animation:  scanMove 2.5s infinite linear;
    z-index:    10;
}

.scan-overlay {
    position:   absolute;
    inset:      0;
    background: linear-gradient(to bottom, rgba(234,179,8,0) 0%, rgba(234,179,8,0.08) 50%, rgba(234,179,8,0) 100%);
    animation:  scanMove 2.5s infinite linear;
    transform:  translateY(-100%);
}

@keyframes scanMove {
    0%   { top: -10%; }
    100% { top: 110%; }
}

.scan-badge {
    position:        absolute;
    bottom:          12px;
    left:            50%;
    transform:       translateX(-50%);
    background:      rgba(234,179,8,0.1);
    border:          1px solid rgba(234,179,8,0.3);
    color:           #eab308;
    padding:         4px 10px;
    border-radius:   20px;
    font-size:       0.65rem;
    font-weight:     bold;
    display:         flex;
    align-items:     center;
    gap:             5px;
    white-space:     nowrap;
}

/* ── Admit Card Portal ───────────────────────────────────────── */
.card-portal {
    height:          100%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    perspective:     900px;
}

.admit-card {
    width:       150px;
    height:      100px;
    background:  linear-gradient(145deg, #241b3a, #14101f);
    border:      1px solid rgba(139,92,246,0.3);
    border-radius:10px;
    box-shadow:  0 15px 35px rgba(0,0,0,0.5);
    padding:     12px;
    display:     grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows:    auto auto;
    gap:         6px 10px;
    position:    relative;
    transition:  transform 0.5s ease;
}

.portfolio-card:hover .admit-card {
    transform: rotateY(-8deg) rotateX(4deg) translateY(-6px);
}

.card-photo    { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 6px; background: #3a2d5c; border: 1px solid #8b5cf6; }
.card-text     { height: 6px; border-radius: 3px; align-self: center; }
.card-barcode  {
    grid-column: 2;
    height:      10px;
    background:  repeating-linear-gradient(90deg, #fff 0px, #fff 2px, transparent 2px, transparent 4px);
    opacity:     0.7;
    border-radius: 2px;
}

.card-seal {
    position:  absolute;
    top:       -10px;
    right:     -10px;
    width:     24px;
    height:    24px;
    border-radius: 50%;
    background:    #8b5cf6;
    box-shadow:    0 0 15px rgba(139,92,246,0.6);
    animation:     sealPulse 2s ease-in-out infinite;
}

@keyframes sealPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.15); opacity: 0.8; }
}

/* ── ID Card (Teacher Portal) ────────────────────────────────── */
.id-wrapper {
    height:      100%;
    display:     flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.id-card {
    width:          140px;
    height:         200px;
    background:     linear-gradient(145deg, #1e293b, #0f172a);
    border-radius:  12px;
    border:         1px solid rgba(168,85,247,0.3);
    box-shadow:     0 15px 35px rgba(0,0,0,0.5);
    display:        flex;
    flex-direction: column;
    align-items:    center;
    padding:        20px 15px;
    transition:     transform 0.5s ease, box-shadow 0.5s ease;
}

.portfolio-card:hover .id-card {
    transform:  rotateY(10deg) rotateX(5deg) translateY(-10px);
    box-shadow: -10px 20px 40px rgba(0,0,0,0.6);
}

.id-hole   { width: 30px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; margin-bottom: 15px; }
.id-photo  {
    width: 50px; height: 50px; border-radius: 50%;
    background: #334155; border: 2px solid #a855f7; margin-bottom: 15px;
    position: relative; overflow: hidden;
}
.id-photo::after {
    content: ''; position: absolute; bottom: -5px; left: 50%;
    transform: translateX(-50%); width: 30px; height: 30px;
    background: rgba(168,85,247,0.5); border-radius: 50%;
}

.id-lines  { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.id-line   { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.id-line.short { width: 60%; }
.id-line.long  { width: 90%; }

.id-badge {
    margin-top:    auto;
    background:    rgba(168,85,247,0.2);
    color:         #a855f7;
    font-size:     0.6rem;
    padding:       4px 12px;
    border-radius: 20px;
    border:        1px solid rgba(168,85,247,0.4);
    display:       flex;
    align-items:   center;
    gap:           5px;
    animation:     pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 rgba(168,85,247,0); }
    50%      { box-shadow: 0 0 10px rgba(168,85,247,0.3); }
}

.id-bg-circle {
    position:      absolute;
    width:         180px;
    height:        180px;
    border:        1px dashed rgba(168,85,247,0.1);
    border-radius: 50%;
    z-index:       -1;
    animation:     spinSlow 10s infinite linear;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Data Entry Cyber Card ───────────────────────────────────── */
.cyber-cover {
    height:          300px;
    width:           100%;
    position:        relative;
    display:         flex;
    justify-content: center;
    align-items:     center;
    overflow:        hidden;
    background:      linear-gradient(-45deg, #3a1c71, #d76d77, #ffaf7b);
    background-size: 400% 400%;
    animation:       gradientBG 15s ease infinite;
}

.cyber-content {
    z-index:         2;
    text-align:      center;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             20px;
}

.cyber-icon {
    font-size:  60px;
    color:      white;
    filter:     drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cyber-text {
    color:          #fff;
    font-family:    sans-serif;
    font-weight:    800;
    font-size:      1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin:         0;
    background:     rgba(255,255,255,0.1);
    padding:        8px 20px;
    border-radius:  50px;
    border:         1px solid rgba(255,255,255,0.2);
    transition:     background 0.3s, color 0.3s, box-shadow 0.3s;
}

.cyber-circle {
    position:      absolute;
    width:         250px;
    height:        250px;
    background:    rgba(255,255,255,0.1);
    border-radius: 50%;
    top:           -50px;
    right:         -50px;
    z-index:       1;
    filter:        blur(30px);
}

.portfolio-card:hover .cyber-icon  { transform: scale(1.25) rotate(8deg); }
.portfolio-card:hover .cyber-text  { background: white; color: #3a1c71; box-shadow: 0 0 20px rgba(255,255,255,0.4); }

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Mobile Portfolio Frame ──────────────────────────────────── */
.pf-wrapper {
    height:  100%;
    width:   100%;
    display: flex;
    justify-content: center;
    align-items:     center;
    padding-top:     10px;
}

.pf-mobile-frame {
    width:         100px;
    height:        180px;
    background:    #1e293b;
    border:        2px solid #38bdf8;
    border-radius: 16px;
    box-shadow:    0 10px 25px rgba(0,0,0,0.5);
    position:      relative;
    overflow:      hidden;
    z-index:       1;
}

.pf-mobile-notch {
    position:               absolute;
    top:                    0;
    left:                   50%;
    transform:              translateX(-50%);
    width:                  40px;
    height:                 12px;
    background:             #0f172a;
    border-bottom-left-radius:  8px;
    border-bottom-right-radius: 8px;
    z-index:                10;
}

.pf-mobile-screen {
    width:      100%;
    height:     100%;
    background: #0f172a;
    overflow:   hidden;
    position:   relative;
}

.pf-scroll-content {
    width:          100%;
    padding:        20px 8px 10px;
    display:        flex;
    flex-direction: column;
    gap:            8px;
    animation:      pfScroll 6s linear infinite;
}

@keyframes pfScroll {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(0); }
    80%  { transform: translateY(-120px); }
    100% { transform: translateY(0); }
}

.pf-ui-hero {
    width:        100%;
    height:       40px;
    background:   linear-gradient(135deg, #38bdf8, #0284c7);
    border-radius:6px;
    display:      flex;
    align-items:  center;
    padding:      0 8px;
    gap:          6px;
}

.pf-ui-circle { width: 20px; height: 20px; background: rgba(255,255,255,0.3); border-radius: 50%; }
.pf-ui-bar    { height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; }

.pf-ui-grid {
    display:             grid;
    grid-template-columns:1fr 1fr;
    gap:                 6px;
}

.pf-ui-card { height: 40px; background: rgba(255,255,255,0.05); border-radius: 4px; border: 1px solid rgba(255,255,255,0.05); }
.pf-ui-text { height: 60px; background: rgba(255,255,255,0.03); border-radius: 4px; }

/* ── Ticket Generator ────────────────────────────────────────── */
.tg-wrapper {
    height:          100%;
    width:           100%;
    display:         flex;
    justify-content: center;
    align-items:     center;
    padding-top:     20px;
}

.tg-dispenser {
    width:        140px;
    height:       40px;
    background:   #1e293b;
    border-radius:8px 8px 0 0;
    border:       2px solid #f43f5e;
    border-bottom:none;
    position:     relative;
    z-index:      5;
    box-shadow:   0 -5px 15px rgba(0,0,0,0.3);
    display:      flex;
    align-items:  center;
    justify-content:center;
}

.tg-slot  { position: absolute; bottom: -4px; left: 10px; right: 10px; height: 8px; background: #000; border-radius: 4px; z-index: 6; }
.tg-light { width: 8px; height: 8px; background: #333; border-radius: 50%; position: absolute; top: 10px; right: 15px; animation: tgBlink 1s infinite; }

.tg-ticket {
    position:       relative;
    width:          120px;
    height:         140px;
    background:     #f8fafc;
    border-radius:  0 0 6px 6px;
    margin-top:     -5px;
    box-shadow:     0 5px 15px rgba(0,0,0,0.2);
    display:        flex;
    flex-direction: column;
    padding:        15px 10px;
    gap:            8px;
    overflow:       hidden;
    animation:      tgPrint 4s ease-in-out infinite;
    transform-origin:top center;
}

.tg-line     { height: 4px; background: #cbd5e1; border-radius: 2px; }
.tg-cut-line { width: 100%; height: 1px; border-bottom: 2px dashed #94a3b8; margin-top: 5px; }

.tg-qr-box {
    margin-top:          auto;
    width:               40px;
    height:              40px;
    background:          #1e293b;
    align-self:          flex-end;
    display:             grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:  1fr 1fr;
    gap:                 2px;
    padding:             2px;
}

.tg-qr-dot { background: #f8fafc; opacity: 0.5; }

@keyframes tgPrint {
    0%   { height: 0px;   opacity: 0; }
    20%  { height: 40px;  opacity: 1; }
    70%  { height: 140px; }
    90%  { height: 140px; transform: translateY(0); }
    100% { height: 140px; transform: translateY(20px); opacity: 0; }
}

@keyframes tgBlink {
    0%, 100% { background: #333; box-shadow: none; }
    50%      { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }
}

/* ── Blogger Card Animation ──────────────────────────────────── */
.gb-wrapper {
    height:          100%;
    width:           100%;
    display:         flex;
    justify-content: center;
    align-items:     center;
}

.gb-floating-card {
    width:         150px;
    height:        190px;
    background:    #1e293b;
    border:        1px solid rgba(249,115,22,0.4);
    border-radius: 12px;
    box-shadow:    0 15px 35px rgba(0,0,0,0.5);
    position:      relative;
    overflow:      hidden;
    animation:     gbFloat 4s ease-in-out infinite;
}

.gb-hero-header {
    width:             100%;
    height:            70px;
    background:        linear-gradient(120deg, #334155 30%, #475569 50%, #334155 70%);
    background-size:   200% 100%;
    border-bottom:     1px solid rgba(255,255,255,0.1);
    animation:         gbShimmer 3s infinite linear;
}

.gb-icon-bubble {
    position:        absolute;
    bottom:          -15px;
    right:           12px;
    width:           34px;
    height:          34px;
    background:      #f97316;
    border-radius:   50%;
    display:         flex;
    justify-content: center;
    align-items:     center;
    color:           white;
    font-size:       16px;
    box-shadow:      0 4px 8px rgba(0,0,0,0.4);
    z-index:         10;
}

.gb-body-content {
    padding:        25px 15px 15px;
    display:        flex;
    flex-direction: column;
    gap:            8px;
}

.gb-text-line { height: 5px; background: rgba(255,255,255,0.1); border-radius: 4px; }

.gb-heart-pop {
    position:        absolute;
    top:             -8px;
    right:           -8px;
    width:           26px;
    height:          26px;
    background:      #ef4444;
    border-radius:   50%;
    display:         flex;
    justify-content: center;
    align-items:     center;
    color:           white;
    font-size:       11px;
    animation:       gbHeartBeat 2s infinite;
}

@keyframes gbFloat    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gbShimmer  { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes gbHeartBeat{ 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ── Laptop Showcase (Portfolio v1) ─────────────────────────── */
.laptop-showcase { width: 220px; }

.laptop-screen {
    width:          100%;
    height:         150px;
    background:     #0d1b2a;
    border:         2px solid rgba(0,212,255,0.25);
    border-radius:  10px;
    overflow:       hidden;
    box-shadow:     0 20px 45px rgba(0,0,0,0.5);
    display:        flex;
    flex-direction: column;
    animation:      lapFloat 4s ease-in-out infinite;
}

.lap-navbar {
    height:     18px;
    background: #16213e;
    display:    flex;
    align-items:center;
    gap:        4px;
    padding:    0 10px;
    flex-shrink:0;
}

.lap-navbar::before {
    content:       '';
    width:         6px;
    height:        6px;
    border-radius: 50%;
    background:    #00d4ff;
    box-shadow:    12px 0 0 rgba(255,255,255,0.15), 24px 0 0 rgba(255,255,255,0.15);
}

.lap-hero  { height: 50px; margin: 10px; border-radius: 6px; background-size: 200% 100%; animation: lapShimmer 3s linear infinite; }

.lap-content { display: flex; gap: 6px; padding: 0 10px 10px; flex: 1; }

.lap-box {
    flex:      1;
    background:rgba(255,255,255,0.05);
    border:    1px solid rgba(0,212,255,0.15);
    border-radius:4px;
    animation: lapBoxPulse 2.5s ease-in-out infinite;
}

.lap-box:nth-child(2) { animation-delay: 0.3s; }
.lap-box:nth-child(3) { animation-delay: 0.6s; }

@keyframes lapFloat    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lapShimmer  { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes lapBoxPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

/* ── Fixture Card (FIFA) ─────────────────────────────────────── */
.fixture-card {
    width:         170px;
    background:    #14141f;
    border-radius: 10px;
    overflow:      hidden;
    box-shadow:    0 15px 35px rgba(0,0,0,0.5);
    border:        1px solid rgba(227,25,55,0.2);
}

.fixture-header { height: 28px; }

.fixture-body {
    padding:        12px;
    display:        flex;
    flex-direction: column;
    gap:            8px;
    position:       relative;
}

.fixture-row {
    height:        14px;
    background:    rgba(255,255,255,0.06);
    border-radius: 4px;
    border:        1px solid transparent;
    transition:    all 0.3s ease;
}

.fixture-row.active {
    background:  rgba(227,25,55,0.12);
    border-color:rgba(227,25,55,0.5);
    animation:   fixtureGlow 2.5s ease-in-out infinite;
}

.fixture-medal {
    align-self:      center;
    margin-top:      6px;
    width:           34px;
    height:          34px;
    border-radius:   50%;
    background:      linear-gradient(145deg, #f8d347, #e3a91f);
    color:           #4a2c00;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       0.9rem;
    box-shadow:      0 6px 14px rgba(248,211,71,0.4);
    animation:       medalBounce 2.5s ease-in-out infinite;
}

@keyframes fixtureGlow  { 0%,100% { box-shadow: 0 0 0 rgba(227,25,55,0); } 50% { box-shadow: 0 0 12px rgba(227,25,55,0.5); } }
@keyframes medalBounce  { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(8deg); } }

/* ── Work Timeline Card ──────────────────────────────────────── */
.work-timeline {
    width:    200px;
    height:   170px;
    position: relative;
    display:  flex;
    align-items:    center;
    justify-content:center;
}

.timeline-bar {
    position:      absolute;
    left:          20px;
    right:         20px;
    top:           50%;
    height:        3px;
    background:    rgba(99,102,241,0.2);
    border-radius: 3px;
    transform:     translateY(-50%);
}

.work-timeline .timeline-dot {
    position:      absolute;
    top:           50%;
    width:         12px;
    height:        12px;
    border-radius: 50%;
    background:    #2a2a3d;
    border:        2px solid #6366f1;
    transform:     translateY(-50%);
    z-index:       2;
}

.work-timeline .timeline-dot:nth-child(1) { left: 20px; }
.work-timeline .timeline-dot:nth-child(2) { left: 50%; margin-left: -6px; }
.work-timeline .timeline-dot:nth-child(3) { right: 20px; }

.work-timeline .timeline-dot.active {
    background: #6366f1;
    box-shadow: 0 0 14px rgba(99,102,241,0.8);
    animation:  dotPulse 2s ease-in-out infinite;
}

.work-card {
    position:      absolute;
    bottom:        20px;
    width:         110px;
    background:    #1a1a2e;
    border:        1px solid rgba(99,102,241,0.25);
    border-radius: 8px;
    padding:       10px;
    box-shadow:    0 10px 25px rgba(0,0,0,0.4);
    animation:     workCardFloat 3.5s ease-in-out infinite;
}

.work-title { height: 6px; width: 70%; background: #6366f1; border-radius: 3px; margin-bottom: 8px; }
.work-time  { height: 4px; width: 45%; background: rgba(255,255,255,0.15); border-radius: 3px; }

@keyframes dotPulse      { 0%,100% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-50%) scale(1.3); } }
@keyframes workCardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── Mobile Device (TaskDeck) ────────────────────────────────── */
.mobile-device {
    width:         110px;
    height:        190px;
    background:    #0b1f17;
    border:        2px solid #10b981;
    border-radius: 18px;
    position:      relative;
    box-shadow:    0 15px 35px rgba(0,0,0,0.5);
    overflow:      hidden;
}

.mobile-notch {
    position:               absolute;
    top:                    0;
    left:                   50%;
    transform:              translateX(-50%);
    width:                  40px;
    height:                 12px;
    background:             #061410;
    border-bottom-left-radius:  8px;
    border-bottom-right-radius: 8px;
    z-index:                5;
}

.mobile-app {
    width:          100%;
    height:         100%;
    display:        flex;
    flex-direction: column;
    padding-top:    16px;
    gap:            8px;
    position:       relative;
}

.app-header { height: 34px; margin: 0 8px; border-radius: 6px; }

.app-task {
    height:        22px;
    margin:        0 8px;
    background:    rgba(255,255,255,0.05);
    border:        1px solid rgba(16,185,129,0.15);
    border-radius: 5px;
}

.app-task.active {
    background:  rgba(16,185,129,0.12);
    border-color:rgba(16,185,129,0.5);
    animation:   taskCheck 3s ease-in-out infinite;
}

.app-fab {
    position:        absolute;
    bottom:          10px;
    right:           10px;
    width:           26px;
    height:          26px;
    border-radius:   50%;
    color:           #06281c;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       0.7rem;
    box-shadow:      0 6px 15px rgba(16,185,129,0.5);
    animation:       fabPop 2.5s ease-in-out infinite;
}

@keyframes taskCheck { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes fabPop    { 0%,100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.15) rotate(90deg); } }

/* ── Football Field Builder ──────────────────────────────────── */
.field-builder {
    width:    100%;
    height:   100%;
    position: relative;
    overflow: hidden;
}

.pitch {
    position:      absolute;
    inset:         15px;
    border-radius: 8px;
    border:        2px solid rgba(255,255,255,0.25);
}

.pitch::before {
    content:    '';
    position:   absolute;
    top:        50%;
    left:       0;
    right:      0;
    height:     1px;
    background: rgba(255,255,255,0.25);
}

.pitch::after {
    content:       '';
    position:      absolute;
    top:           50%;
    left:          50%;
    width:         34px;
    height:        34px;
    border:        1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    transform:     translate(-50%, -50%);
}

.player-icon {
    position:   absolute;
    font-size:  1.4rem;
    color:      #ec4899;
    text-shadow:0 0 10px rgba(236,72,153,0.8);
    z-index:    3;
    animation:  playerMove 5s ease-in-out infinite;
}

.lineup-info {
    position:      absolute;
    bottom:        14px;
    left:          50%;
    transform:     translateX(-50%);
    width:         90px;
    height:        8px;
    background:    rgba(236,72,153,0.15);
    border:        1px solid rgba(236,72,153,0.4);
    border-radius: 10px;
    z-index:       3;
}

@keyframes playerMove {
    0%   { top: 30%; left: 30%; }
    25%  { top: 20%; left: 60%; }
    50%  { top: 55%; left: 65%; }
    75%  { top: 60%; left: 25%; }
    100% { top: 30%; left: 30%; }
}

/* ── Experience Showcase ─────────────────────────────────────── */
.exp-showcase {
    height:          100%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             14px;
}

.exp-card {
    width:         55px;
    height:        90px;
    background:    #101c1b;
    border-radius: 8px;
    box-shadow:    0 10px 25px rgba(0,0,0,0.4);
    animation:     expFloat 3.5s ease-in-out infinite;
}

.exp-card:nth-child(1) { animation-delay: 0s; }
.exp-card:nth-child(2) { animation-name: expFloatMid; animation-delay: 0.4s; }
.exp-card:nth-child(3) { animation-delay: 0.8s; }

@keyframes expFloat    { 0%,100% { transform: translateY(0); }    50% { transform: translateY(-10px); } }
@keyframes expFloatMid { 0%,100% { transform: translateY(-10px); } 50% { transform: translateY(-20px); } }

/* ── Link Hub ────────────────────────────────────────────────── */
.link-hub {
    height:          100%;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             10px;
}

.link-avatar {
    width:         44px;
    height:        44px;
    border-radius: 50%;
    box-shadow:    0 0 20px rgba(217,70,239,0.5);
    animation:     avatarGlow 2.5s ease-in-out infinite;
    margin-bottom: 6px;
}

.link-item {
    width:         130px;
    height:        20px;
    background:    rgba(255,255,255,0.05);
    border:        1px solid rgba(217,70,239,0.25);
    border-radius: 20px;
    opacity:       0;
    animation:     linkFadeIn 0.5s ease forwards, linkFloat 3s ease-in-out infinite;
}

.link-item:nth-child(2) { animation-delay: 0.1s,  0s;   }
.link-item:nth-child(3) { animation-delay: 0.25s, 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s,  0.6s; }
.link-item:nth-child(5) { animation-delay: 0.55s, 0.9s; }

@keyframes avatarGlow { 0%,100% { box-shadow: 0 0 15px rgba(217,70,239,0.4); } 50% { box-shadow: 0 0 26px rgba(217,70,239,0.7); } }
@keyframes linkFadeIn { to { opacity: 1; } }
@keyframes linkFloat  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ── Project Preview (DYD) ───────────────────────────────────── */
.project-preview {
    width:         190px;
    background:    #1a1030;
    border-radius: 10px;
    overflow:      hidden;
    box-shadow:    0 15px 35px rgba(0,0,0,0.5);
    position:      relative;
    animation:     previewFloat 4s ease-in-out infinite;
}

.prev-header { height: 26px; }

.prev-content {
    padding:        12px;
    display:        flex;
    flex-direction: column;
    gap:            8px;
}

.prev-item { height: 14px; background: rgba(255,255,255,0.06); border-radius: 4px; }
.prev-item:nth-child(2) { width: 70%; }

.prev-badge {
    position:      absolute;
    top:           6px;
    right:         8px;
    color:         #fff;
    font-size:     0.6rem;
    font-weight:   700;
    padding:       2px 8px;
    border-radius: 10px;
    letter-spacing:0.5px;
}

@keyframes previewFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ── Education Card (DIIT) ───────────────────────────────────── */
.education-card {
    width:         180px;
    background:    #0c1c22;
    border-radius: 10px;
    overflow:      hidden;
    box-shadow:    0 15px 35px rgba(0,0,0,0.5);
    position:      relative;
    animation:     eduFloat 4s ease-in-out infinite;
}

.edu-header { height: 55px; }

.edu-badge {
    position:      absolute;
    top:           35px;
    left:          12px;
    background:    #06b6d4;
    color:         #00232b;
    font-size:     0.6rem;
    font-weight:   800;
    padding:       3px 10px;
    border-radius: 5px;
    box-shadow:    0 4px 10px rgba(6,182,212,0.4);
}

.edu-items {
    padding:        20px 12px 14px;
    display:        flex;
    flex-direction: column;
    gap:            8px;
}

.edu-item             { height: 10px; background: rgba(255,255,255,0.06); border-radius: 4px; }
.edu-item:nth-child(2){ width: 60%; }

@keyframes eduFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* =====================================================================
   PERFORMANCE: ANIMATION GATING (NEW)
   All decorative infinite animations above are PAUSED by default.
   They only play when their parent .portfolio-card has the `.in-view`
   class, which portfolio-observer.js toggles via IntersectionObserver
   as each card scrolls into/out of the viewport. This means only the
   2-4 cards actually on screen are ever animating at once, instead of
   all 30+ animating simultaneously in the background.
   ===================================================================== */
.ds-btn, .ds-row.target, .ds-invoice, .ds-success, .ds-cursor,
.scan-line, .scan-overlay, .card-seal, .id-badge, .id-bg-circle,
.cyber-cover, .pf-scroll-content, .tg-light, .tg-ticket,
.gb-floating-card, .gb-hero-header, .gb-heart-pop,
.laptop-screen, .lap-hero, .lap-box,
.fixture-row.active, .fixture-medal,
.work-timeline .timeline-dot.active, .work-card,
.app-task.active, .app-fab, .player-icon,
.link-avatar, .link-item,
.project-preview, .education-card, .exp-card {
    animation-play-state: paused;
}

.portfolio-card.in-view .ds-btn,
.portfolio-card.in-view .ds-row.target,
.portfolio-card.in-view .ds-invoice,
.portfolio-card.in-view .ds-success,
.portfolio-card.in-view .ds-cursor,
.portfolio-card.in-view .scan-line,
.portfolio-card.in-view .scan-overlay,
.portfolio-card.in-view .card-seal,
.portfolio-card.in-view .id-badge,
.portfolio-card.in-view .id-bg-circle,
.portfolio-card.in-view .cyber-cover,
.portfolio-card.in-view .pf-scroll-content,
.portfolio-card.in-view .tg-light,
.portfolio-card.in-view .tg-ticket,
.portfolio-card.in-view .gb-floating-card,
.portfolio-card.in-view .gb-hero-header,
.portfolio-card.in-view .gb-heart-pop,
.portfolio-card.in-view .laptop-screen,
.portfolio-card.in-view .lap-hero,
.portfolio-card.in-view .lap-box,
.portfolio-card.in-view .fixture-row.active,
.portfolio-card.in-view .fixture-medal,
.portfolio-card.in-view .work-timeline .timeline-dot.active,
.portfolio-card.in-view .work-card,
.portfolio-card.in-view .app-task.active,
.portfolio-card.in-view .app-fab,
.portfolio-card.in-view .player-icon,
.portfolio-card.in-view .link-avatar,
.portfolio-card.in-view .link-item,
.portfolio-card.in-view .project-preview,
.portfolio-card.in-view .education-card,
.portfolio-card.in-view .exp-card {
    animation-play-state: running;
}

/* ── Reduce animations on mobile for perf ───────────────────── */
@media (max-width: 600px) {
    .laptop-showcase,
    .fixture-card,
    .work-timeline,
    .project-preview,
    .education-card { transform: scale(0.9); }

    .exp-showcase { gap: 10px; }
    .link-item    { width: 110px; }

    /* PERF: mobile devices don't get real hover feedback and users scroll
       fast — so fully KILL every decorative infinite animation on mobile
       instead of just gating by visibility. This is the single biggest
       fix for the mobile lag/slow-loading complaint. */
    .ds-btn, .ds-row.target, .ds-invoice, .ds-success, .ds-cursor,
    .scan-line, .scan-overlay, .card-seal, .id-badge, .id-bg-circle,
    .cyber-cover, .pf-scroll-content, .tg-light, .tg-ticket,
    .gb-floating-card, .gb-hero-header, .gb-heart-pop,
    .laptop-screen, .lap-hero, .lap-box,
    .fixture-row.active, .fixture-medal,
    .work-timeline .timeline-dot.active, .work-card,
    .app-task.active, .app-fab, .player-icon,
    .link-avatar, .link-item,
    .project-preview, .education-card, .exp-card {
        animation: none !important;
    }

    /* filter: blur() is expensive on mobile GPUs — drop it there */
    .cyber-circle,
    .id-bg-circle { filter: none; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration:   0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration:  0.01ms !important;
    }
}

/* =====================================================================
   SECTION: WORK EXPERIENCE TIMELINE
   ===================================================================== */
.experience-section {
    padding:   100px 5%;
    position:  relative;
    background:transparent;
    overflow:  hidden;
    z-index:   1;
}

.timeline {
    position:  relative;
    max-width: 1000px;
    margin:    0 auto;
    padding:   20px 0;
}

/* Center vertical line */
.timeline-line {
    position:   absolute;
    left:       50%;
    top:        0;
    bottom:     0;
    width:      2px;
    background: rgba(255,255,255,0.1);
    transform:  translateX(-50%);
}

.timeline-line::after {
    content:    '';
    position:   absolute;
    inset:      0;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity:    0.5;
}

/* Individual Timeline Entry */
.timeline-item {
    position:     relative;
    width:        50%;
    padding:      0 40px;
    margin-bottom:60px;
}

.timeline-item.left  { left: 0;   text-align: right; }
.timeline-item.right { left: 50%; text-align: left;  }

/* Dot marker */
.timeline-item .timeline-dot {
    position:      absolute;
    top:           25px;
    width:         16px;
    height:        16px;
    background:    var(--bg-color);
    border:        2px solid var(--accent);
    border-radius: 50%;
    z-index:       2;
    transition:    background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow:    0 0 10px var(--accent);
}

.timeline-item.left  .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left:  -8px; }

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    transform:  scale(1.3);
    box-shadow: 0 0 20px var(--accent);
}

/* Card */
.timeline-content {
    background:    var(--card-bg);
    border:        1px solid var(--border);
    border-radius: var(--radius-lg);
    padding:       30px;
    position:      relative;
    transition:    transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change:   transform;
}

@media (min-width: 769px) {
    .timeline-content {
        backdrop-filter:         blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

/* Arrow pointer */
.timeline-content::before {
    content:       '';
    position:      absolute;
    top:           28px;
    width:         0;
    height:        0;
    border-style:  solid;
    z-index:       1;
}

.timeline-item.left .timeline-content::before {
    right:        -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--border);
}

.timeline-item.right .timeline-content::before {
    left:         -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--border) transparent transparent;
}

.timeline-item:hover .timeline-content {
    transform:   translateY(-5px);
    border-color:var(--accent);
    box-shadow:  0 10px 30px rgba(0,0,0,0.2);
}

/* Content styles */
.exp-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom:15px;
}

.exp-role h3 {
    font-family:   'Space Grotesk', sans-serif;
    font-size:     1.4rem;
    color:         var(--text-color);
    margin-bottom: 5px;
}

.company {
    color:          var(--accent);
    font-weight:    700;
    text-transform: uppercase;
    font-size:      0.85rem;
    letter-spacing: 1px;
}

.exp-date {
    font-family: 'Space Grotesk', sans-serif;
    color:       var(--text-muted);
    font-size:   0.9rem;
    margin-top:  5px;
}

.exp-desc {
    color:         var(--text-muted);
    font-size:     0.95rem;
    margin-bottom: 20px;
    line-height:   1.6;
}

.exp-list {
    padding:0;
    margin: 0;
}

.exp-list li {
    display:     flex;
    align-items: center;
    gap:         12px;
    color:       var(--text-color);
    font-size:   0.9rem;
    margin-bottom:10px;
    line-height: 1.4;
}

.exp-list li i {
    color:      var(--accent);
    font-size:  0.9rem;
    min-width:  20px;
    text-align: center;
    flex-shrink:0;
}

/* Reverse list direction for left-side card on desktop */
@media (min-width: 769px) {
    .timeline-item.left .exp-list li { flex-direction: row-reverse; }
}

/* Experience Link Button */
.exp-link-btn {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-top:      25px;
    padding:         12px 20px;
    background:      var(--accent);
    border:          1px solid var(--border);
    border-radius:   var(--radius-md);
    text-decoration: none;
    transition:      transform var(--transition), box-shadow var(--transition);
}

.exp-link-btn span {
    font-family:    'Space Grotesk', sans-serif;
    font-weight:    700;
    font-size:      0.85rem;
    text-transform: uppercase;
    color:          #000;
}

.exp-link-btn i { color: #000; font-size: 1rem; }

.exp-link-btn:hover {
    transform:  translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

[data-theme="light"] .exp-link-btn,
[data-theme="light"] .exp-link-btn span,
[data-theme="light"] .exp-link-btn i { background: #2970ff; border-color: #2970ff; color: #fff; }

/* Floating Logo Bubble (Desktop only) */
.timeline-bg-logo {
    position:        absolute;
    top:             20px;
    width:           200px;
    height:          200px;
    border-radius:   50%;
    border:          1px solid rgba(255,255,255,0.1);
    box-shadow:      0 0 25px rgba(0,0,0,0.5), inset 0 0 10px rgba(255,255,255,0.05);
    display:         flex;
    justify-content: center;
    align-items:     center;
    z-index:         1;
    transition:      border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.timeline-bg-logo img {
    width:      90%;
    height:     90%;
    object-fit: contain;
    filter:     drop-shadow(0 0 5px rgba(255,255,255,0.2));
    transition: transform 0.4s ease;
}

.timeline-item.right .timeline-bg-logo { left:  -310px; top: 110px; }
.timeline-item.left  .timeline-bg-logo { right: -320px; top: 120px; }

.timeline-item:hover .timeline-bg-logo {
    border-color: var(--accent);
    box-shadow:   0 0 30px var(--accent);
    transform:    scale(1.08);
}

.timeline-item:hover .timeline-bg-logo img { transform: scale(1.1) rotate(5deg); }

/* ── Timeline Mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .timeline-line { left: 24px; }

    .timeline-item {
        width:        100%;
        padding-left: 65px;
        padding-right:15px;
        margin-bottom:40px;
    }

    .timeline-item.left,
    .timeline-item.right { left: 0 !important; text-align: left; }

    .timeline-item.left  .timeline-dot,
    .timeline-item.right .timeline-dot { left: 16px; right: auto; }

    .timeline-item.left  .timeline-content::before,
    .timeline-item.right .timeline-content::before {
        left: -10px; right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--border) transparent transparent;
    }

    .timeline-item.left .exp-list li { flex-direction: row; }

    .timeline-bg-logo { display: none; }

    .timeline-content {
        backdrop-filter:         none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 480px) {
    .experience-section { padding: 60px 5%; }
    .exp-role h3        { font-size: 1.2rem; }
    .timeline-content   { padding: 20px; }
}

/* =====================================================================
   SECTION: MARKETPLACE
   ===================================================================== */
.marketplace-section { padding: 100px 5%; }

.marketplace-grid {
    display:             grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:                 25px;
    margin-top:          50px;
    /* Browser optimization: defer off-screen rendering */
    content-visibility:  auto;
    contain-intrinsic-size: 300px;
}

.market-card {
    position:       relative;
    background:     var(--card-bg);
    border:         1px solid var(--border);
    border-radius:  24px;
    padding:        40px 30px;
    text-decoration:none;
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;
    transition:     transform var(--transition), border-color var(--transition), background-color var(--transition);
    will-change:    transform;
    transform:      translateZ(0);
}

.market-status {
    position:      absolute;
    top:           18px;
    right:         22px;
    font-size:     0.65rem;
    text-transform:uppercase;
    letter-spacing:1px;
    color:         var(--text-muted);
    display:       flex;
    align-items:   center;
    gap:           8px;
    background:    rgba(255,255,255,0.03);
    padding:       5px 12px;
    border-radius: 50px;
    border:        1px solid var(--border);
    pointer-events:none;
}

.pulse-dot {
    width:         6px;
    height:        6px;
    background:    var(--accent);
    border-radius: 50%;
    position:      relative;
    flex-shrink:   0;
}

.pulse-dot::after {
    content:       '';
    position:      absolute;
    inset:         0;
    background:    var(--accent);
    border-radius: 50%;
    animation:     pulse 2s infinite ease-out;
}

@keyframes pulse {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.market-icon {
    font-size:   2.5rem;
    color:       var(--text-color);
    margin-bottom:30px;
    transition:  transform 0.3s cubic-bezier(0.34,1.56,0.64,1), color var(--transition);
    will-change: transform;
}

.market-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; margin-bottom: 8px; color: var(--text-color); }
.market-info p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 25px; }

.view-profile {
    font-family:    'Space Grotesk', sans-serif;
    font-size:      0.8rem;
    font-weight:    700;
    color:          var(--accent);
    display:        flex;
    align-items:    center;
    gap:            10px;
    text-transform: uppercase;
    opacity:        1;
    transform:      translateX(0);
    transition:     transform var(--transition), opacity var(--transition);
}

/* Desktop hover behavior */
@media (hover: hover) {
    .view-profile { opacity: 0; transform: translateX(-10px); }

    .market-card:hover {
        transform:   translateY(-8px);
        border-color:var(--accent);
        background:  rgba(255,255,255,0.05);
    }

    .market-card:hover .market-icon    { transform: scale(1.1) rotate(-5deg); color: var(--accent); }
    .market-card:hover .view-profile   { opacity: 1; transform: translateX(0); }
    .market-card:hover .card-glow      { opacity: 0.25; }

    .card-glow {
        position:       absolute;
        width:          120px;
        height:         120px;
        background:     var(--accent);
        filter:         blur(60px);
        bottom:         -60px;
        right:          -60px;
        opacity:        0;
        transition:     opacity 0.4s ease;
        pointer-events: none;
        z-index:        0;
    }
}

/* Mobile: show view-profile always, disable glow */
@media (hover: none) {
    .card-glow      { display: none; }
    .market-card:active { transform: scale(0.98); border-color: var(--accent); }
}

[data-theme="light"] .market-card   { background: #ffffff; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
[data-theme="light"] .market-status { background: rgba(0,0,0,0.03); }

@media (max-width: 600px) {
    .marketplace-grid { grid-template-columns: 1fr; gap: 15px; }
    .market-card      { padding: 30px 20px; }
}

/* =====================================================================
   SECTION: SKILLS
   ===================================================================== */
.skills-section { padding: 100px 5%; }

.skills-grid {
    display:             grid;
    grid-template-columns:repeat(auto-fit, minmax(270px, 1fr));
    gap:                 30px;
    margin-top:          50px;
    content-visibility:  auto;
    contain-intrinsic-size: 350px;
}

.skill-card {
    background:     var(--card-bg);
    border:         1px solid var(--border);
    border-radius:  var(--radius-lg);
    padding:        35px 25px;
    position:       relative;
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
    height:         100%;
    transition:     transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275),
                    border-color 0.4s ease,
                    box-shadow 0.4s ease;
    will-change:    transform;
    transform:      translateZ(0);
}

.skill-icon {
    width:           60px;
    height:          60px;
    background:      rgba(255,255,255,0.05);
    border:          1px solid var(--border);
    border-radius:   15px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       1.5rem;
    color:           var(--text-color);
    margin-bottom:   25px;
    transition:      transform 0.5s ease, background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
}

.skill-content h3 {
    font-family:   'Space Grotesk', sans-serif;
    font-size:     1.3rem;
    font-weight:   700;
    margin-bottom: 8px;
    color:         var(--text-color);
}

.skill-content p {
    font-size:     0.9rem;
    color:         var(--text-muted);
    margin-bottom: 20px;
    line-height:   1.5;
}

.skill-tags {
    display:  flex;
    flex-wrap:wrap;
    gap:      10px;
    margin-bottom:25px;
}

.skill-tags span {
    font-size:      0.75rem;
    background:     rgba(255,255,255,0.05);
    padding:        6px 14px;
    border-radius:  30px;
    color:          var(--text-muted);
    border:         1px solid transparent;
    transition:     background var(--transition), color var(--transition), border-color var(--transition);
    font-family:    'Space Grotesk', sans-serif;
    font-weight:    600;
}

/* Progress Bar */
.skill-progress-bar {
    width:         100%;
    height:        6px;
    background:    rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow:      hidden;
    margin-top:    auto;
}

.skill-progress-bar .progress {
    height:           100%;
    background:       var(--accent);
    border-radius:    10px;
    transform:        translateX(-100%);
    animation:        fillBar 1.5s cubic-bezier(0.4,0,0.2,1) forwards;
    animation-delay:  0.3s;
}

@keyframes fillBar { to { transform: translateX(0); } }

/* Desktop hover */
@media (hover: hover) {
    .skill-card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

    .skill-card:hover {
        transform:   translateY(-10px);
        border-color:var(--accent);
        box-shadow:  0 10px 40px -10px rgba(0,0,0,0.3);
    }

    .skill-card:hover .skill-icon {
        background:   var(--accent);
        color:        #000;
        border-color: var(--accent);
        transform:    rotateY(360deg);
    }

    .skill-card:hover .skill-tags span {
        background:  rgba(0,255,136,0.05);
        border-color:rgba(0,255,136,0.2);
        color:       var(--accent);
    }
}

/* Mobile tap */
@media (hover: none) {
    .skill-card:active { transform: scale(0.98); border-color: var(--accent); }
}

[data-theme="light"] .skill-card             { background: #ffffff; border-color: #e5e5e5; }
[data-theme="light"] .skill-tags span        { background: rgba(0,0,0,0.05); color: #555; }
[data-theme="light"] .skill-card:hover       { box-shadow: 0 15px 30px rgba(41,112,255,0.1); }
[data-theme="light"] .skill-card:hover .skill-tags span { background: rgba(41,112,255,0.1); border-color: rgba(41,112,255,0.3); color: var(--accent); }

@media (max-width: 600px) {
    .skills-grid { grid-template-columns: 1fr; gap: 15px; }
    .skill-card  { padding: 25px 20px; }
}

/* =====================================================================
   SECTION: CERTIFICATES (Swiper Carousel)
   ===================================================================== */
.cert-section {
    padding:   100px 5%;
    overflow:  hidden;
    background:transparent;
}

.cert-swiper {
    padding:       40px 10px 80px;
    margin-top:    20px;
    transform:     translateZ(0);
    mask-image:         linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.swiper-slide {
    height:  auto;
    display: flex;
    align-items: stretch;
}

.cert-card {
    width:          100%;
    position:       relative;
    border-radius:  24px;
    background:     var(--card-bg);
    border:         1px solid var(--border);
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
    z-index:        1;
    transition:     transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    will-change:    transform;
}

.cert-img-container {
    width:      100%;
    padding:    20px 20px 0;
    background: transparent;
    display:    flex;
    justify-content:center;
}

.cert-img {
    width:         100%;
    height:        200px;
    object-fit:    cover;
    border-radius: 12px;
    box-shadow:    0 5px 15px rgba(0,0,0,0.2);
    border:        1px solid rgba(255,255,255,0.05);
    transition:    transform 0.6s ease, box-shadow 0.6s ease;
    display:       block;
}

.cert-content {
    padding:        25px;
    flex-grow:      1;
    display:        flex;
    flex-direction: column;
    z-index:        2;
}

.cert-header {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    margin-bottom:   12px;
}

.cert-issuer {
    font-family:    'Space Grotesk', sans-serif;
    font-size:      0.75rem;
    font-weight:    700;
    color:          var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-badge {
    font-size:     0.65rem;
    font-weight:   800;
    padding:       4px 12px;
    background:    rgba(255,255,255,0.08);
    border:        1px solid var(--accent);
    border-radius: 50px;
    color:         var(--accent);
}

.cert-content h3 {
    font-family:   'Space Grotesk', sans-serif;
    font-size:     1.2rem;
    color:         var(--text-color);
    margin-bottom: 8px;
    line-height:   1.3;
}

.cert-date {
    font-size:     0.85rem;
    color:         var(--text-muted);
    margin-bottom: 25px;
}

.cert-link {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    gap:             12px;
    width:           100%;
    padding:         14px;
    margin-top:      auto;
    background:      rgba(255,255,255,0.03);
    border:          1px solid var(--border);
    border-radius:   var(--radius-md);
    color:           var(--text-color);
    font-family:     'Space Grotesk', sans-serif;
    font-weight:     600;
    font-size:       0.9rem;
    transition:      background var(--transition), color var(--transition), border-color var(--transition);
}

.cert-link::after {
    content:    "→";
    font-size:  1.1rem;
    transition: transform var(--transition);
}

@media (hover: hover) {
    .cert-card:hover {
        transform:   translateY(-12px);
        border-color:var(--accent);
        box-shadow:  0 25px 50px rgba(0,0,0,0.4);
    }

    .cert-card:hover .cert-img {
        transform:  scale(1.03) rotate(-1deg);
        box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    }

    .cert-link:hover {
        background:  var(--accent);
        border-color:var(--accent);
        color:       #000;
    }

    .cert-link:hover::after { transform: translateX(6px); }

    .cert-glow {
        position:       absolute;
        width:          150px;
        height:         150px;
        background:     var(--accent);
        filter:         blur(80px);
        bottom:         -50px;
        right:          -50px;
        opacity:        0;
        transition:     opacity 0.5s ease;
        pointer-events: none;
        z-index:        0;
    }

    .cert-card:hover .cert-glow { opacity: 0.4; }
}

@media (hover: none) {
    .cert-glow        { display: none; }
    .cert-card:active { transform: scale(0.98); }
}

/* Swiper nav styling */
.swiper-button-next,
.swiper-button-prev {
    color:         var(--accent);
    background:    rgba(15,15,15,0.9);
    width:         45px;
    height:        45px;
    border-radius: 50%;
    border:        1px solid var(--border);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size:   1rem;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background:    var(--accent) !important;
    width:         25px !important;
    border-radius: 10px !important;
    opacity:       1;
}

/* =====================================================================
   SECTION: BLOG / RESEARCH & MEDIA
   ===================================================================== */
.blog-section {
    padding:    100px 0;
    background: transparent;
    position:   relative;
    z-index:    2;
}

.blog-grid {
    display:             grid;
    grid-template-columns:repeat(2, 1fr);
    gap:                 30px;
    width:               90%;
    max-width:           1200px;
    margin:              0 auto;
}

.blog-card {
    background:     var(--card-bg);
    border:         1px solid var(--border);
    border-radius:  24px;
    overflow:       hidden;
    display:        flex;
    flex-direction: column;
    transition:     transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position:       relative;
    will-change:    transform;
}

@media (hover: hover) {
    .blog-card {
        backdrop-filter:         blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .blog-card:hover {
        transform:   translateY(-10px);
        border-color:var(--accent);
        box-shadow:  0 20px 40px rgba(0,0,0,0.3);
    }

    .blog-card:hover .blog-img-box img { transform: scale(1.05); }
}

.blog-img-box {
    position:   relative;
    height:     250px;
    overflow:   hidden;
    width:      100%;
    background: #111;
    flex-shrink:0;
}

.blog-img-box img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display:    block;
}

/* Iframe inside blog card */
.blog-img-box iframe {
    width:     100%;
    height:    100%;
    position:  absolute;
    inset:     0;
    border:    none;
    z-index:   1;
}

/* Prevent scroll inside PDF preview thumb */
.pdf-thumbnail { pointer-events: none; user-select: none; }

/* Clickable overlay above iframe */
.click-overlay {
    position:   absolute;
    inset:      0;
    cursor:     pointer;
    z-index:    10;
    background: transparent;
}

/* Category tag */
.blog-category {
    position:      absolute;
    top:           18px;
    left:          18px;
    background:    var(--accent);
    color:         #000;
    padding:       6px 14px;
    border-radius: 50px;
    font-size:     0.7rem;
    font-weight:   800;
    font-family:   'Space Grotesk', sans-serif;
    text-transform:uppercase;
    z-index:       15;
    box-shadow:    0 5px 15px rgba(0,0,0,0.2);
}

.blog-info {
    padding:        28px;
    flex-grow:      1;
    display:        flex;
    flex-direction: column;
}

.blog-meta {
    display:     flex;
    align-items: center;
    gap:         10px;
    font-size:   0.8rem;
    color:       var(--text-muted);
    margin-bottom:15px;
}

.blog-meta .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

.blog-info h3 {
    font-family:   'Space Grotesk', sans-serif;
    font-size:     1.4rem;
    color:         var(--text-color);
    line-height:   1.3;
    margin:        0 0 12px;
}

.blog-info p {
    color:         var(--text-muted);
    font-size:     0.95rem;
    line-height:   1.6;
    margin-bottom: 25px;
}

.blog-btn-link {
    margin-top:    auto;
    color:         var(--text-color);
    font-weight:   700;
    font-size:     0.9rem;
    display:       flex;
    align-items:   center;
    gap:           10px;
    transition:    color var(--transition), transform var(--transition);
    font-family:   'Space Grotesk', sans-serif;
    background:    none;
    border:        none;
    cursor:        pointer;
    padding:       0;
    text-decoration:none;
}

.blog-btn-link:hover {
    color:     var(--accent);
    transform: translateX(5px);
}

/* Featured Card (Research Paper) */
.blog-card.featured {
    grid-column:    1 / -1;
    flex-direction: row;
}

.blog-card.featured .blog-img-box {
    flex:       1.2;
    height:     auto;
    min-height: 350px;
}

.blog-card.featured .blog-info {
    flex:    1;
    padding: 45px;
    justify-content:center;
}

.blog-card.featured h3 { font-size: 2rem; }

/* ── Blog Mobile ─────────────────────────────────────────────── */
@media (max-width: 992px) {
    .blog-card.featured {
        flex-direction: column;
        grid-column:    1 / -1;
    }

    .blog-card.featured .blog-img-box { height: 280px; min-height: unset; }
    .blog-card.featured .blog-info    { padding: 30px; }
    .blog-card.featured h3            { font-size: 1.6rem; }
    .blog-grid                        { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .blog-section       { padding: 60px 0; }
    .blog-info          { padding: 20px; }
    .blog-img-box       { height: 200px; }
}

/* =====================================================================
   SECTION: PDF MODAL
   ===================================================================== */
.modal-overlay {
    display:     none;
    position:    fixed;
    z-index:     9999;
    inset:       0;
    background:  rgba(0,0,0,0.9);
    backdrop-filter:         blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation:   fadeIn 0.3s ease;
}

.modal-overlay[aria-hidden="false"],
.modal-overlay[style*="display: block"] {
    display: flex;
    align-items:    center;
    justify-content:center;
}

.modal-content {
    background:    #1a1a1a;
    margin:        auto;
    padding:       20px;
    border:        1px solid var(--accent);
    width:         92%;
    height:        90%;
    max-width:     1200px;
    border-radius: var(--radius-lg);
    position:      relative;
    display:       flex;
    flex-direction:column;
    box-shadow:    0 25px 50px rgba(0,0,0,0.5);
}

.close-modal {
    color:       #fff;
    font-size:   2rem;
    font-weight: bold;
    position:    absolute;
    right:       20px;
    top:         8px;
    cursor:      pointer;
    background:  none;
    border:      none;
    line-height: 1;
    transition:  color var(--transition);
    z-index:     100;
}

.close-modal:hover { color: var(--accent); }

.pdf-container {
    flex-grow:     1;
    width:         100%;
    margin-top:    30px;
    background:    #fff;
    border-radius: var(--radius-md);
    overflow:      hidden;
}

.pdf-container iframe { width: 100%; height: 100%; border: none; }

.modal-footer {
    text-align: center;
    margin-top: 12px;
    color:      var(--text-muted);
    font-size:  0.85rem;
}

.modal-footer a { color: var(--accent); font-weight: bold; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   SECTION: CONTACT
   ===================================================================== */
.contact-section {
    position:        relative;
    background:      transparent;
    padding:         80px 20px 100px;
    min-height:      80vh;
    display:         flex;
    align-items:     center;
    justify-content: center;
    overflow:        hidden;
}

/* Ambient glow */
.glow-container {
    position:       absolute;
    inset:          0;
    z-index:        1;
    pointer-events: none;
}

/* Reuse blob classes but scoped to contact section */
.contact-section .glow-blob {
    position:      absolute;
    border-radius: 50%;
    filter:        blur(140px);
    opacity:       0.12;
    mix-blend-mode:screen;
}

.contact-section .blob-1 {
    width:      400px;
    height:     400px;
    background: var(--accent);
    top:        10%;
    left:       -100px;
    animation:  floatBlob 10s ease-in-out infinite alternate;
}

.contact-section .blob-2 {
    width:      300px;
    height:     300px;
    background: var(--accent);
    bottom:     10%;
    right:      -50px;
    animation:  floatBlob 8s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlob {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* Hide ambient blobs on mobile */
@media (max-width: 768px) {
    .contact-section .glow-blob { display: none; }
}

.contact-section .container {
    width:     100%;
    max-width: 1100px;
    position:  relative;
    z-index:   2;
}

/* Glassmorphism card */
.contact-card {
    display:              grid;
    grid-template-columns:1fr 1.2fr;
    background:           var(--card-bg);
    border:               1px solid var(--border);
    border-radius:        24px;
    overflow:             hidden;
    box-shadow:           0 20px 40px rgba(0,0,0,0.1);
}

@media (min-width: 769px) {
    .contact-card {
        backdrop-filter:         blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Left: Info */
.contact-info {
    padding:        45px;
    display:        flex;
    flex-direction: column;
    justify-content:center;
    border-right:   1px solid var(--border);
}

.contact-info .section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    text-align:left;
    margin-bottom:18px;
}

.section-desc {
    color:         var(--text-muted);
    font-size:     1rem;
    margin-bottom: 35px;
    line-height:   1.6;
}

.contact-details { margin-bottom: 30px; }

.detail-item {
    display:     flex;
    align-items: center;
    gap:         15px;
    margin-bottom:18px;
    color:       var(--text-color);
    font-size:   0.95rem;
    font-weight: 500;
}

.detail-item a         { color: var(--text-color); transition: color var(--transition); }
.detail-item a:hover   { color: var(--accent); }
.detail-item .icon     { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

/* Right: Form */
.contact-form-wrapper { padding: 45px; }

.form-group { margin-bottom: 22px; }

.form-group label {
    display:       block;
    color:         var(--text-muted);
    margin-bottom: 8px;
    font-size:     0.9rem;
    font-weight:   500;
}

.form-group input,
.form-group textarea {
    width:         100%;
    background:    rgba(0,0,0,0.1);
    border:        1px solid var(--border);
    padding:       14px 16px;
    border-radius: var(--radius-md);
    color:         var(--text-color);
    font-size:     1rem;
    font-family:   'Outfit', sans-serif;
    outline:       none;
    transition:    border-color var(--transition), box-shadow var(--transition);
    resize:        vertical;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea { background: rgba(255,255,255,0.5); }

.form-group input:focus,
.form-group textarea:focus {
    border-color:var(--accent);
    box-shadow:  0 0 0 3px rgba(0,255,136,0.1);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(41,112,255,0.1);
}

.submit-btn {
    width:           100%;
    padding:         16px;
    background:      var(--accent);
    color:           var(--btn-text);
    border:          none;
    border-radius:   var(--radius-md);
    font-size:       1rem;
    font-weight:     700;
    font-family:     'Space Grotesk', sans-serif;
    cursor:          pointer;
    transition:      filter var(--transition), transform var(--transition), box-shadow var(--transition);
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             10px;
}

.submit-btn:hover {
    filter:     brightness(1.1);
    transform:  translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0,255,136,0.4);
}

.arrow { transition: transform var(--transition); }
.submit-btn:hover .arrow { transform: translateX(5px); }

/* ── Contact Mobile ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-right:  none;
        border-bottom: 1px solid var(--border);
        padding:       35px 25px;
    }

    .contact-info .section-title { text-align: center; }

    .contact-form-wrapper { padding: 35px 25px; }
}

@media (max-width: 480px) {
    .contact-section      { padding: 50px 10px 80px; }
    .contact-info         { padding: 25px 20px; }
    .contact-form-wrapper { padding: 25px 20px; }
    .submit-btn           { padding: 14px; }
}

/* =====================================================================
   SECTION: SECTION HEADER (shared utility)
   ===================================================================== */
.section-header {
    text-align:     center;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    width:          100%;
    margin:         0 auto 50px;
}

/* =====================================================================
   SECTION: LIGHT MODE GLOBAL OVERRIDES
   ===================================================================== */
[data-theme="light"] .btn-solid {
    background: linear-gradient(90deg, #2970ff, #0056e0);
    color:      #ffffff;
    box-shadow: 0 10px 25px rgba(41,112,255,0.3);
}

[data-theme="light"] .btn-solid:hover {
    box-shadow: 0 15px 35px rgba(41,112,255,0.5);
    color:      #ffffff;
}

[data-theme="light"] .btn-outline:hover {
    background:   var(--accent);
    color:        #ffffff;
    border-color: var(--accent);
}

[data-theme="light"] .social-btn:hover {
    box-shadow:   0 0 20px rgba(41,112,255,0.4);
    background:   var(--accent);
    border-color: var(--accent);
    color:        #ffffff;
}

[data-theme="light"] .service-card:hover .icon-box,
[data-theme="light"] .skill-card:hover .skill-icon,
[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active,
[data-theme="light"] .portfolio-link { color: #ffffff; }

[data-theme="light"] .exp-link-btn {
    background:  #2970ff;
    border-color:#2970ff;
}

[data-theme="light"] .exp-link-btn span,
[data-theme="light"] .exp-link-btn i { color: #fff; }

[data-theme="light"] .submit-btn:hover {
    box-shadow: 0 10px 20px -5px rgba(41,112,255,0.4);
}

/* =====================================================================
   SECTION: MAGNETIC HOVER UTILITY
   Desktop-only: handled entirely by JS (not CSS)
   ===================================================================== */
/* .magnetic — no CSS needed; transform applied via gsap in script.js */

/* =====================================================================
   END OF STYLE.CSS
   ===================================================================== */




   /* =========================================================
   GLOBAL MOBILE WIDTH FIX
   ========================================================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Make sections use more of the mobile screen */
    section {
        padding-left: 2% !important;
        padding-right: 2% !important;
    }

    .about-section,
.service-section,
.portfolio-section,
.experience-section,
.education-section,
.skills-section,
.marketplace-section {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

    /* Cards / grids */
    .portfolio-grid,
    .skills-grid,
    .marketplace-grid {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Contact */
    .contact-section {
        padding-left: 2% !important;
        padding-right: 2% !important;
    }

    .contact-section .container {
        width: 100% !important;
    }
}

/* Extra small phones */
@media (max-width: 480px) {

    section {
        padding-left: 1% !important;
        padding-right: 1% !important;
    }

    .container {
        width: 100% !important;
    }

    .portfolio-grid,
    .skills-grid,
    .marketplace-grid {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


