: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);
}

[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);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body { 
    background: var(--bg-color); 
    color: var(--text-color); 
    font-family: 'Outfit', sans-serif; 
    overflow-x: hidden;
    cursor: auto; /* Default to auto to prevent mobile bugs */
    transition: background 0.4s;
}

/* ===========================
   FIXED 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 .6s ease, visibility .6s ease;
  opacity: 1;
  visibility: visible;
}

/* Logo Fixes */
.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.preloader-img {
  width: 120px;
  height: auto;
  filter: invert(1) brightness(2);
  /* Ensures browser reserves space immediately */
  display: block; 
}

/* Progress Bar */
.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); /* Simplified gradient for performance */
  transition: width .9s cubic-bezier(.25,.8,.25,1);
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===========================
   FIXED BLOBS (Smoother)
   =========================== */
.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; 
    /* THIS IS THE FIX: Forces GPU usage to stop lag */
    transform: translate3d(0, 0, 0);
    will-change: transform; 
}

.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; }

/* ===========================
   NAVIGATION & CURSOR
   =========================== */
.glass-nav-top {
    position: fixed; top: 25px; left: 50%; 
    transform: translateX(-50%) translate3d(0,0,0); /* GPU Fix */
    width: 90%; max-width: 950px; z-index: 1000;
    background: var(--nav-bg); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari Fix */
    border: 1px solid var(--border); border-radius: 100px; padding: 12px 30px;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; position: relative; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 35px; width: auto; transition: filter 0.3s ease; }
[data-theme="dark"] .logo-img { filter: invert(1) brightness(100%); }
.logo span { font-family: 'Space Grotesk'; font-weight: 800; color: var(--accent); font-size: 1.1rem; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { 
    color: var(--text-color); text-decoration: none; 
    font-size: 0.85rem; text-transform: uppercase; 
    font-weight: 600; opacity: 0.7; transition: 0.3s; 
}
.nav-links a:hover { opacity: 1; color: var(--accent); }

.menu-toggle { display: none; font-size: 1.2rem; cursor: pointer; color: var(--text-color); }
.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); 
    cursor: pointer; color: var(--text-color); 
}

/* HIDE CURSOR ON MOBILE (Fixes scroll lag) */
@media (max-width: 768px) {
    .cursor, .cursor-dot { display: none; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

/*---------------------Hero Section Start------------------*/
header { 
    /* Fix for mobile address bar jumping */
    min-height: 100vh;
    min-height: 100svh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    /* Added top padding so nav doesn't cover text */
    padding: 120px 10% 0; 
    position: relative;
    z-index: 1;
}

.hero-container { 
    width: 100%; 
    max-width: 1100px; 
    text-align: left; 
    /* GPU Fix: Prevents flickering during animation */
    transform: translateZ(0);
}

.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'; 
    font-size: clamp(3rem, 7vw, 6rem); 
    line-height: 1.1; 
    font-weight: 800; 
    margin-bottom: 15px; 
    /* Smoother text rendering */
    -webkit-font-smoothing: antialiased;
}

.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'; 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 700; 
    margin-bottom: 25px; 
}

.hero-bio { 
    font-family: 'Outfit'; 
    color: var(--text-muted); 
    font-size: 1rem; 
    max-width: 600px; 
    line-height: 1.6; 
    margin-bottom: 40px; 
}

.cta-group { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    flex-wrap: wrap; 
}

.btn-solid { 
    padding: 16px 45px; 
    background: linear-gradient(90deg, var(--accent), #00cc6a); 
    color: #000; 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 700; 
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2); 
    /* Optimized transition (removed 'all') */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    white-space: nowrap;
}

.btn-solid:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.4); 
}

/* --- Hero Social Icons --- */
.hero-socials {
    display: flex;
    gap: 15px;
    margin-left: 20px; 
    align-items: center;
}

/* Responsive spacing for socials */
@media (max-width: 600px) {
    .hero-socials {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

.social-btn {
    width: 45px;
    height: 45px;
    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);
    text-decoration: none;
    font-size: 1.1rem;
    
    /* SPEED FIX: Removed 'backdrop-filter: blur' because it lags mobile phones */
    /* SPEED FIX: Targeted transitions only */
    transition: transform 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}

.social-btn:hover {
    border-color: var(--accent);
    color: var(--bg-color); 
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); 
}
/*---------------------Hero Section End------------------*/

/*---------------------About Section Start------------------*/

.about-section { 
    position: relative; 
    padding: 120px 5%; 
    overflow: hidden; 
}

.watermark-text { 
    position: absolute; 
    top: 50%; 
    left: 0; 
    transform: translateY(-50%) translateZ(0); 
    font-size: 15rem; 
    font-family: 'Space Grotesk'; 
    font-weight: 800; 
    color: var(--text-color); 
    opacity: 0.03; 
    z-index: 0; 
    pointer-events: none; 
    white-space: nowrap;
    user-select: none;
}

.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
    position: relative; 
    z-index: 2; 
}

/* --- Image Styling --- */
.about-img-wrapper { position: relative; }

.img-frame { 
    border-radius: 20px; 
    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 { 
    position: absolute; 
    bottom: 30px; 
    right: -20px; 
    background: rgba(10, 10, 10, 0.85); 
    border: 1px solid var(--accent); 
    padding: 20px; 
    border-radius: 15px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    z-index: 3; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
}

.exp-number { 
    font-family: 'Space Grotesk'; 
    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 ALIGNMENT FIX START --- */

/* 1. Force container to hold items on the Left */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important; /* Force Flex items left */
    text-align: left !important;        /* Force Text left */
    justify-content: center;
    width: 100%;
}

/* 2. Specific fix for the Tag (Introduction) */
#about .section-tag {
    text-align: left !important;
    margin-left: 0 !important;
    display: block;
    width: 100%;
    color: var(--accent);
    font-family: 'Space Grotesk';
    font-weight: 600;
    margin-bottom: 10px;
}

/* 3. Specific fix for the Title */
#about .section-title {
    text-align: left !important;
    width: 100%;
    font-family: 'Space Grotesk';
    font-size: clamp(2.5rem, 4vw, 3rem);
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}
.section-title span { color: var(--accent); }

/* 4. Specific fix for the Bio Paragraph */
#about .about-bio {
    text-align: left !important;
    font-family: 'Outfit';
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- CONTENT ALIGNMENT FIX END --- */

.stats-row { 
    display: flex; 
    gap: 40px; 
    margin: 40px 0; 
    border-top: 1px solid var(--border); 
    padding-top: 30px; 
    width: 100%;
}

.stat-item h3 { 
    font-family: 'Space Grotesk'; 
    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; 
}

.btn-outline { 
    display: inline-flex; 
    align-items: center;
    gap: 10px;
    padding: 12px 35px; 
    border: 1px solid var(--accent); 
    color: var(--accent); 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 600; 
    transition: all 0.3s ease; 
}

.btn-outline:hover { 
    background: var(--accent); 
    color: #000; 
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .watermark-text {
        font-size: 8rem;
        top: 20%;
    }
    .experience-badge {
        right: 0;
        padding: 15px;
    }
    .stats-row {
        gap: 20px;
        flex-wrap: wrap;
    }
}

/*---------------------About Section End------------------*/


/* --- SERVICES CAROUSEL --- */
section { padding: 100px 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.carousel-container { 
    width: 100%; overflow: hidden; padding: 40px 0; 
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); 
}
.carousel-track { display: flex; gap: 25px; width: max-content; }
.service-card { 
    width: 280px; background: var(--card-bg); padding: 45px 25px; border-radius: 20px; 
    border: 1px solid var(--border); text-decoration: none; text-align: center; 
    flex-shrink: 0; transition: 0.4s; backdrop-filter: blur(10px); color: var(--text-color); 
}
.service-card h3 { font-family: 'Space Grotesk'; margin-top: 15px; }
.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: 0.4s; 
}
.service-card:hover { border-color: var(--accent); transform: translateY(-10px); }
.service-card:hover .icon-box { background: var(--accent); color: #000; }

/* --- CURSOR --- */
.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; 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; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    /* Mobile Navigation Fix */
    .menu-toggle { display: block; }
    
    .nav-links { 
        display: none; /* Hidden by default */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-radius: 25px;
        border: 1px solid var(--border);
        text-align: center;
        box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    }

    /* Shown when toggled by JS */
    .nav-links.active {
        display: flex;
    }

    header { padding-top: 100px; }
    .hero-container { text-align: center; }
    
    /* Responsive adjustment for Socials */
    .cta-group { 
        flex-direction: column; 
        gap: 30px; 
    }
    .hero-socials {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-bio { margin: 0 auto 40px; }

    .about-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .stats-row { justify-content: center; gap: 20px; flex-wrap: wrap; }
    .watermark-text { font-size: 6rem; top: 10%; }
    .experience-badge { 
        position: relative; right: auto; bottom: auto; 
        margin: -30px auto 0; width: fit-content; 
    }
}

/* =========================================
   LIGHT MODE SPECIFIC OVERRIDES
   ========================================= */

/* 1. "Let's Talk" Button Changes */
[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);
}

/* 2. "Download CV" Button Hover Text Color */
[data-theme="light"] .btn-outline:hover {
    color: #ffffff;
}

/* 3. Social Icons Light Mode */
[data-theme="light"] .social-btn:hover {
    box-shadow: 0 0 20px rgba(41, 112, 255, 0.4);
    background: var(--accent); /* Blue */
    border-color: var(--accent);
}






/* --- PORTFOLIO SECTION --- */
/* --- Variables & Base Styles (Assuming these exist, added defaults just in case) --- */
/* =========================================================
   GLOBAL BASE (KEEP YOUR EXISTING GLOBAL THEME)
   ========================================================= */

/* =========================================================
   PORTFOLIO SECTION
   ========================================================= */
/* =========================================
   EPIC PLACEHOLDER (CSS GRAPHIC)
   ========================================= */

/* =========================================================
   PORTFOLIO SECTION MAIN
   ========================================================= */
/* =========================================================
   PORTFOLIO SECTION
   ========================================================= */
/* =========================================================
   PORTFOLIO SECTION LAYOUT
   ========================================================= */
.portfolio-section {
    padding: 80px 0;
    background: transparent;
}

.portfolio-section .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Titles */
.portfolio-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    text-align: center;
}

.portfolio-section .section-title span {
    color: var(--accent);
}

.portfolio-section .section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
}

/* =========================================================
   FILTER BUTTONS
   ========================================================= */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 700;
}

/* =========================================================
   GRID SYSTEM
   ========================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start; /* Prevents stretching */
}

/* Responsive Grid */
@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.hidden {
    display: none !important;
}

/* =========================================================
   CARD STRUCTURE
   ========================================================= */

/* 1. DEFAULT CARD (Images/Graphics) */
.portfolio-card {
    position: relative;
    display: block;
    height: auto !important;
    background: var(--card-bg, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    line-height: 0; /* Removes gap under images */
    isolation: isolate;
}

.portfolio-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Hover Effect */
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

/* 2. MIXED LAYOUT (For Web Apps/Text) */
.portfolio-card.mixed-layout {
    display: flex;
    flex-direction: column;
    line-height: 1.6; /* Restore text spacing */
}

/* Content Area for Mixed Layout */
.portfolio-content {
    padding: 25px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

/* =========================================================
   EPIC CARD STYLING (Themed Content)
   ========================================================= */
.portfolio-card.mixed-layout .portfolio-content.epic-style {
    padding: 15px 20px;
    background: var(--bg-color); 
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, border 0.3s ease;
}

/* Badges */
.tech-stack {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.tech-badge {
    font-size: 0.65rem;
    background: var(--border); 
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-weight: 600;
}

/* Typography */
.epic-style h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.epic-style h3 .version {
    font-size: 0.6rem;
    background: var(--accent);
    color: #000;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: bold;
}

[data-theme="light"] .epic-style h3 .version {
    color: #fff;
}

.epic-style p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.epic-style p .highlight {
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 1px dashed var(--accent);
}

/* =========================================================
   EPIC BUTTON (Cleaned & Merged)
   ========================================================= */
.epic-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    
    /* Default (Dark Mode) */
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #000000;
}

/* Epic Button Hover (Dark Mode) */
.epic-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px var(--accent);
    transform: translateY(-2px);
    color: #ffffff !important;
    border-color: #ffffff;
}

/* Light Mode Override */
[data-theme="light"] .epic-btn {
    color: #ffffff !important;
}

[data-theme="light"] .epic-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000000;
    color: #000000 !important;
}

/* =========================================================
   OVERLAY (For Image Cards)
   ========================================================= */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: transform 0.4s ease;
    transform: translateY(100%);
    z-index: 2;
    line-height: 1.5;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s;
}

.portfolio-info span {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s 0.1s;
}

.portfolio-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    text-decoration: none;
    transform: scale(0) rotate(-45deg);
    transition: 0.4s 0.2s;
}

/* Overlay Hover States */
.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);
}

/* =========================================================
   PROJECT ANIMATIONS
   ========================================================= */

/* --- 1. DESKTOP ANIMATION --- */
.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.15) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    z-index: 0;
}

.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: #111;
    border-radius: 8px;
    border: 2px solid #333;
    padding: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    position: relative;
    background: linear-gradient(to bottom, #222, #000);
}

.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;
}

/* Desktop UI Elements */
.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-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: 0.3s;
}
.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; }

/* Desktop Keyframes & Interactive Elements */
.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; }
}

.ds-btn {
    padding: 3px 8px; background: #cbd5e1; border-radius: 3px;
    color: white; font-size: 0.5rem; font-weight: bold;
    animation: clickDesktopBtn 6s infinite;
}
@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;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    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; }
}

/* --- 2. TABLET / SCANNER ANIMATION --- */
.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;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(234, 179, 8, 0) 0%, rgba(234, 179, 8, 0.1) 50%, rgba(234, 179, 8, 0) 100%);
    animation: scanMove 2.5s infinite linear;
    transform: translateY(-100%);
}

@keyframes scanMove {
    0% { top: -10%; transform: translateY(-100%); }
    100% { top: 110%; transform: translateY(0%); }
}

.scan-badge {
    position: absolute;
    bottom: 15px;
    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.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

/* --- 3. SMART ID CARD ANIMATION --- */
.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);
    position: relative;
    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;
}

.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); }
}

/* =========================================================
   LOAD MORE BUTTON
   ========================================================= */
.load-more-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

#loadMoreBtn {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 700;
}

#loadMoreBtn:hover {
    background: transparent;
    color: #00ff88;
    border-color: #00ff88;
}

/* Load More - Light Theme Override */
[data-theme="light"] #loadMoreBtn {
    background: #2970ff;
    color: #fff;
    border-color: #2970ff;
}

[data-theme="light"] #loadMoreBtn:hover {
    background: transparent;
    color: #2970ff;
    border-color: #2970ff;
}


/*------------------------------------------Start of Google Bloger POrtfolio Section-----------------------------------------*/

/* =========================================
   BLOG / CONTENT ANIMATION
   ========================================= */

/* =========================================
   GOOGLE BLOGGER ANIMATION (Unique Names)
   ========================================= */

/* 1. The Container */
.gb-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 2. The Floating Orange Card */
.gb-floating-card {
    width: 150px;
    height: 190px;
    background: #1e293b; /* Dark Slate */
    border: 1px solid rgba(249, 115, 22, 0.4); /* Orange Border */
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    
    /* Animation: Float Up and Down */
    animation: gbFloat 4s ease-in-out infinite;
}

/* 3. The Header (Shimmer Effect) */
.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);
    position: relative;
    
    /* Animation: Shimmer/Shine */
    animation: gbShimmer 3s infinite linear;
}

/* 4. The "B" Icon Bubble */
.gb-icon-bubble {
    position: absolute;
    bottom: -15px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: #f97316; /* Orange */
    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;
}

/* 5. Text Lines */
.gb-body-content {
    padding: 25px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gb-text-line {
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* 6. Heart Notification */
.gb-heart-pop {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    background: #ef4444; /* Red */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 11px;
    box-shadow: 0 5px 10px rgba(239, 68, 68, 0.4);
    
    /* Animation: Pulse */
    animation: gbHeartBeat 2s infinite;
}

/* --- KEYFRAMES (Must be unique) --- */

@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); }
}
/* ----------------------------------------- End of Google Blogger Portfolio Section ----------------------------------------- */
/*------------------------------------------ Data Entry ____-------------------------------*/
/* --- 1. The Container (Taller & New Colors) --- */
.cyber-cover {
    /* INCREASED HEIGHT HERE */
    height: 350px; 
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    
    /* NEW COLOR: Deep Purple to Blue Gradient */
    background: linear-gradient(-45deg, #3a1c71, #d76d77, #ffaf7b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite; /* Smooth moving background */
}

/* --- 2. The Content (Centered) --- */
.cyber-content {
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* --- 3. The Icon --- */
.cyber-icon {
    font-size: 70px;
    color: white;
    /* Adds a subtle shadow to make it pop */
    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);
}

/* --- 4. The Text --- */
.cyber-text {
    color: #fff;
    font-family: sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px; /* Pill shape */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- 5. Background Decoration (The Floating Circle) --- */
.cyber-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    z-index: 1;
    filter: blur(40px); /* Soft glow effect */
}

/* --- HOVER EFFECTS --- */
.portfolio-card:hover .cyber-cover {
    /* Slight zoom on background when hovering */
}

.portfolio-card:hover .cyber-icon {
    transform: scale(1.3) rotate(10deg); /* Big pop effect */
}

.portfolio-card:hover .cyber-text {
    background: white;
    color: #3a1c71; /* Invert colors on hover */
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

/* --- ANIMATIONS --- */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/*------------------------------------------ End of Data Entry ____-------------------------------*/

/*------------------------------------------ Portfolio Card-----------------------------------*/
/* =========================================
   PORTFOLIO "STACK" ANIMATION
   ========================================= */

/* =========================================
   PORTFOLIO "SMARTPHONE" ANIMATION
   ========================================= */

/* Center the Phone */
.pf-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
}

/* The Phone Frame */
.pf-mobile-frame {
    width: 100px;
    height: 180px;
    background: #1e293b; /* Dark Body */
    border: 2px solid #38bdf8; /* Cyan Border */
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* The Camera Notch */
.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;
}

/* The Screen Content Container */
.pf-mobile-screen {
    width: 100%;
    height: 100%;
    background: #0f172a; /* Black Screen */
    overflow: hidden; /* Hide scrollbars */
    position: relative;
}

/* The Scrolling Content Animation */
.pf-scroll-content {
    width: 100%;
    padding: 20px 8px 10px 8px; /* Padding for top notch */
    display: flex;
    flex-direction: column;
    gap: 8px;
    
    /* SCROLL ANIMATION */
    animation: pfScroll 6s linear infinite;
}

@keyframes pfScroll {
    0% { transform: translateY(0); }
    20% { transform: translateY(0); } /* Pause at top */
    80% { transform: translateY(-120px); } /* Scroll down */
    100% { transform: translateY(0); } /* Snap back */
}

/* --- UI Elements inside the phone --- */

/* Hero Section (Profile) */
.pf-ui-hero {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    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;
}

/* Grid of "Projects" */
.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);
}

/* Long Text Block */
.pf-ui-text {
    height: 60px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}
/* ----------------------------------------- End of Portfolio Card ----------------------------------------- */
/*========================================== Ticket Generator Card ==========================================*/
/* =========================================
   TICKET GENERATOR ANIMATION
   ========================================= */

/* Center the Kiosk */
.tg-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

/* The Dispenser Machine Header */
.tg-dispenser {
    width: 140px;
    height: 40px;
    background: #1e293b;
    border-radius: 8px 8px 0 0;
    border: 2px solid #f43f5e; /* Rose Border */
    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;
}

/* The Slot (Dark opening) */
.tg-slot {
    position: absolute;
    bottom: -4px;
    left: 10px;
    right: 10px;
    height: 8px;
    background: #000;
    border-radius: 4px;
    z-index: 6;
}

/* The "Auto Save" Data Light */
.tg-light {
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 15px;
    animation: tgBlink 1s infinite; /* Blinks while printing */
}

/* The Ticket Paper */
.tg-ticket {
    position: relative;
    width: 120px;
    height: 140px;
    background: #f8fafc; /* White/Paper color */
    border-radius: 0 0 6px 6px;
    margin-top: -5px; /* Tuck under dispenser */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    gap: 8px;
    overflow: hidden;
    
    /* ANIMATION: Print out */
    animation: tgPrint 4s ease-in-out infinite;
    transform-origin: top center;
}

/* Ticket Details (Fake Text) */
.tg-line {
    height: 4px;
    background: #cbd5e1; /* Light gray text */
    border-radius: 2px;
}

/* The QR Code Box */
.tg-qr-box {
    margin-top: auto; /* Push to bottom */
    width: 40px;
    height: 40px;
    background: #1e293b;
    align-self: flex-end; /* Right align */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    padding: 2px;
}
.tg-qr-dot { background: #f8fafc; opacity: 0.5; }

/* Perforation Line (Dashed) */
.tg-cut-line {
    width: 100%;
    height: 1px;
    border-bottom: 2px dashed #94a3b8;
    margin-top: 5px;
}

/* --- Keyframes --- */

@keyframes tgPrint {
    0% { 
        height: 0px; 
        opacity: 0;
    }
    20% { 
        height: 40px; 
        opacity: 1; 
    }
    70% { 
        height: 140px; /* Fully printed */
    }
    90% {
        height: 140px;
        transform: translateY(0);
    }
    100% { 
        height: 140px;
        transform: translateY(20px); /* Drop/Cut effect */
        opacity: 0;
    }
}

@keyframes tgBlink {
    0%, 100% { background: #333; box-shadow: none; }
    50% { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; } /* Red Flash */
}





/* =========================================================================
   NEW PROJECT CARD ANIMATIONS
   Paste this whole block at the END of your existing portfolio.css file.
   These style the new project cards you added:
   Portfolio v1, FIFA Schedule, Work Details, Admit Card Portal, TaskDeck,
   Lineup Builder, Experience, Profile Link, DYD Project, DIIT Work
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. LAPTOP SHOWCASE  (Portfolio v1 – #00d4ff)
   ------------------------------------------------------------------------- */
.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; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.05); }
}

/* -------------------------------------------------------------------------
   2. FIXTURE CARD  (FIFA Schedule – #e31937)
   ------------------------------------------------------------------------- */
.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: 0.3s;
}

.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); }
}

/* -------------------------------------------------------------------------
   3. WORK TIMELINE  (Work Details – #6366f1)
   ------------------------------------------------------------------------- */
.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%);
}

.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;
}

.timeline-dot:nth-child(1) { left: 20px; }
.timeline-dot:nth-child(2) { left: 50%; margin-left: -6px; }
.timeline-dot:nth-child(3) { right: 20px; }

.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); }
}

/* -------------------------------------------------------------------------
   4. CARD PORTAL  (Admit Card Portal – #8b5cf6)
   ------------------------------------------------------------------------- */
.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; }
}

/* -------------------------------------------------------------------------
   5. MOBILE DEVICE  (TaskDeck Android – #10b981)
   ------------------------------------------------------------------------- */
.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;
    transition: 0.3s;
}

.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); }
}

/* -------------------------------------------------------------------------
   6. FIELD BUILDER  (Football Lineup Builder – #ec4899)
   ------------------------------------------------------------------------- */
.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%; }
}

/* -------------------------------------------------------------------------
   7. EXPERIENCE SHOWCASE  (#14b8a6)
   ------------------------------------------------------------------------- */
.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-delay: 0.4s; transform: translateY(-10px); }
.exp-card:nth-child(3) { animation-delay: 0.8s; }

@keyframes expFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.exp-card:nth-child(2) {
    animation-name: expFloatMid;
}

@keyframes expFloatMid {
    0%, 100% { transform: translateY(-10px); }
    50% { transform: translateY(-20px); }
}

/* -------------------------------------------------------------------------
   8. LINK HUB  (Profile Link – #d946ef)
   ------------------------------------------------------------------------- */
.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); }
}

/* -------------------------------------------------------------------------
   9. PROJECT PREVIEW  (DYD Project – #a855f7)
   ------------------------------------------------------------------------- */
.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); }
}

/* -------------------------------------------------------------------------
   10. EDUCATION CARD  (DIIT Work – #06b6d4)
   ------------------------------------------------------------------------- */
.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); }
}

/* -------------------------------------------------------------------------
   MOBILE RESPONSIVE TWEAKS for the new mockups
   ------------------------------------------------------------------------- */
@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;
    }
}
/* ----------------------------------------- End of Ticket Generator Card ----------------------------------------- */



/* --- SKILL SECTION --- */



/* --- EPIC SKILLS SECTION --- */
/* --- HEADER ALIGNMENT FIX --- */
.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
}

/* --- SKILLS SECTION --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    /* Performance: Helps browser render faster */
    content-visibility: auto;
    contain-intrinsic-size: 350px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    
    /* Performance: Specific transitions only */
    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); 
}

/* Icon Styling */
.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;
    
    /* Icon Flip Animation Setup */
    transition: transform 0.5s ease, background-color 0.4s ease, color 0.4s ease;
    transform-style: preserve-3d;
}

/* Text Styling */
.skill-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    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 (The pills) */
.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 0.3s, color 0.3s, border-color 0.3s;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* --- PROGRESS BAR FIXED --- */
.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;
    
    /* Animation: Slides in automatically on load */
    transform: translateX(-100%); /* Start hidden */
    animation: fillBar 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s; /* Slight delay so user sees it happen */
}

@keyframes fillBar {
    to { transform: translateX(0); }
}

/* --- DESKTOP LOGIC (Fancy Effects) --- */
@media (hover: hover) {
    /* Only blur on desktop */
    .skill-card {
        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 LOGIC (Speed) --- */
@media (hover: none) {
    .skill-card:active {
        transform: scale(0.98);
        border-color: var(--accent);
    }
}

/* Light Mode Overrides */
[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); 
}


/* ----------------------------------------- End of Skill Section ----------------------------------------- */

/* --- MARKETPLACE SECTION --- */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly wider min-width */
    gap: 25px;
    margin-top: 50px;
    /* Browser optimization: tells browser to only render what is on screen */
    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;
    
    /* PERFORMANCE FIX 1: Only animate specific properties, not 'all' */
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    
    /* PERFORMANCE FIX 2: Hardware acceleration */
    will-change: transform;
    transform: translateZ(0); 
    backface-visibility: hidden; /* Makes icon rotation smooth */
}

/* --- LIVE STATUS INDICATOR --- */
.market-status {
    position: absolute;
    top: 20px;
    right: 25px;
    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; /* Prevents status from blocking clicks */
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite ease-out; /* Added ease-out for smoothness */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; } /* Reduced scale slightly for performance */
}

/* --- ICON & CONTENT --- */
.market-icon {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 30px;
    /* Specific transition */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    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;
    
    /* Default state: Visible on mobile, hidden on desktop until hover */
    opacity: 1; 
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- DESKTOP HOVER EFFECTS (Only applies if user has a mouse) --- */
@media (hover: hover) {
    .view-profile {
        opacity: 0;
        transform: translateX(-10px);
    }

    .market-card:hover {
        transform: translateY(-8px); /* Removed scale to reduce jank */
        border-color: var(--accent);
        background: rgba(255, 255, 255, 0.05);
    }

    .market-card:hover .market-icon {
        transform: scale(1.1) rotate(-5deg); /* Reduced scale slightly */
        color: var(--accent);
    }

    .market-card:hover .view-profile {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Enable Glow ONLY on Desktop to save Mobile Battery/Speed */
    .card-glow {
        position: absolute;
        width: 120px;
        height: 120px;
        background: var(--accent);
        filter: blur(60px); /* Reduced blur radius slightly */
        bottom: -60px;
        right: -60px;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
        z-index: 0;
    }

    .market-card:hover .card-glow {
        opacity: 0.25;
    }
}

/* --- MOBILE OPTIMIZATION (Speed Boost) --- */
@media (hover: none) {
    .card-glow {
        display: none; /* Disable glow completely on mobile for high FPS */
    }
    .market-card:active {
        transform: scale(0.98); /* Simple tap effect instead of hover */
        border-color: var(--accent);
    }
}

/* Light Mode Overrides */
[data-theme="light"] .market-card {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Simpler shadow */
}
[data-theme="light"] .market-status {
    background: rgba(0,0,0,0.03);
}



/* --- HEADER ALIGNMENT FIX --- */
.section-header {
    text-align: center;            /* Centers the text inside */
    display: flex;                 /* Uses Flexbox to align items */
    flex-direction: column;        /* Stacks Tag on top of Title */
    align-items: center;           /* Forces items to horizontal center */
    justify-content: center;       /* Centers vertically if needed */
    width: 100%;                   /* Ensures it spans full width */
    margin: 0 auto 40px auto;      /* Centers the box itself & adds bottom spacing */
}

/* Optional: Ensure the tag itself behaves correctly */
.section-tag {
    display: inline-block;
    margin-bottom: 10px;           /* Space between TAG and TITLE */
}


/* ----------------------------------------- End of Marketplace Section ----------------------------------------- */



/* --- CERTIFICATE SECTION --- */
/* --- CERTIFICATE SECTION --- */
/* --- CERTIFICATE SECTION --- */
/* --- FIXED BACKGROUND --- */
.cert-section {
    padding: 100px 5%;
    overflow: hidden;
    /* CHANGE: Set to transparent so it matches your body color automatically */
    background: transparent; 
    position: relative;
}

/* Optional: If you want a slight distinction, use your card background variable */
/* .cert-section { background: var(--card-bg); } */

/* --- SWIPER CAROUSEL OPTIMIZATION --- */
.cert-swiper {
    padding: 40px 10px 80px 10px;
    margin-top: 20px;
    /* Performance: Isolated layer for smoother sliding */
    transform: translateZ(0); 
    
    /* Fade Effect on Edges */
    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;
}

/* --- CARD DESIGN --- */
.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;

    /* Optimized Transitions */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    will-change: transform;
}

/* --- THE IMAGE FIX --- */
.cert-img-container {
    width: 100%;
    padding: 20px 20px 0 20px;
    background: transparent;
    display: flex;
    justify-content: center;
}

.cert-img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover; /* or 'contain' depending on image ratio */
    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;
}

/* --- CARD CONTENT --- */
.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(var(--accent-rgb), 0.1); /* Fallback or define RGB var */
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
}

.cert-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* --- ACTION BUTTON --- */
.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: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cert-link::after {
    content: "→";
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

/* --- DESKTOP HOVER EFFECTS (Heavy Math) --- */
@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);
    }

    /* ONLY Show Glow on Desktop */
    .cert-glow {
        position: absolute;
        width: 150px;
        height: 150px;
        background: var(--accent);
        filter: blur(80px); /* Reduced blur for performance */
        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;
    }
}

/* --- MOBILE OPTIMIZATION --- */
@media (hover: none) {
    .cert-glow {
        display: none; /* Hide glow to stop lag */
    }
    .cert-card:active {
        transform: scale(0.98);
    }
}

/* --- NAVIGATION BUTTONS --- */
.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: 1.1rem;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--accent) !important;
    width: 25px !important;
    border-radius: 10px !important;
    opacity: 1;
}

/* Contact Section Overrides */
/* --- Contact Section Styles --- */

/* --- 1. SETUP & UTILS (Integrating your variables) --- */
/* I added --btn-text to ensure text is readable on the accent color */
/* --- 1. VARIABLES (Keep these for the card colors) --- */
: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;
}

[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;
}

/* --- 2. LAYOUT & SECTION --- */
.contact-section {
    position: relative;
    /* FIX: Changed from var(--bg-color) to transparent so your main bg shows */
    background-color: transparent; 
    padding: 100px 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: system-ui, -apple-system, sans-serif;
}

.container {
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 2;
}

/* --- 3. AMBIENT GLOW ANIMATION --- */
.glow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow-blob {
    filter: blur(140px);
    opacity: 0.14;
    mix-blend-mode: screen;
}


.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 10%;
    left: -100px;
    animation: float 10s ease-in-out infinite alternate;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 10%;
    right: -50px;
    animation: float 8s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* --- 4. GLASSMORPHISM CARD --- */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- 5. LEFT SIDE: INFO --- */
.contact-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-align: center;
}

.highlight {
    color: var(--accent);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 500;
}

.detail-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
}

.detail-item a:hover {
    color: var(--accent);
}



/* --- 6. RIGHT SIDE: FORM --- */
.contact-form-wrapper {
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.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: 15px;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

[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 4px rgba(0, 255, 136, 0.1);
}

[data-theme="light"] .form-group input:focus {
     box-shadow: 0 0 0 4px rgba(41, 112, 255, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--btn-text);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    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 var(--accent);
}

.arrow {
    transition: 0.3s;
}

.submit-btn:hover .arrow {
    transform: translateX(5px);
}

/* --- 7. RESPONSIVENESS --- */
@media (max-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 40px 30px;
    }

    .contact-form-wrapper {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    .contact-section {
        padding: 50px 15px;
    }
}
/*------------------------------------------ End of Contact Section ----------------------------------------- */




/* ----------------------------------------- Blog Section ----------------------------------------- */
/* ==========================================================================
   BLOG SECTION & GRID SYSTEM
   ========================================================================== */
.blog-section {
    padding: 120px 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ==========================================================================
   BLOG CARD BASE STYLING
   ========================================================================== */
.blog-card {
    background: var(--card-bg, #1a1a1a);
    border: 1px solid var(--border, #333);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent, #00d4ff);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Media Container (Images, Videos, PDF Thumbs) --- */
.blog-img-box {
    position: relative;
    height: 250px;
    overflow: hidden;
    width: 100%;
    background: #000; /* Backdrop for loading states */
}

.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

/* Standard Image Hover */
.blog-card:hover .blog-img-box img {
    transform: scale(1.05);
}

/* YouTube & PDF Iframe Handling */
.blog-img-box iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    z-index: 1;
}

/* --- PDF THUMBNAIL SPECIFIC --- */
.pdf-thumbnail {
    pointer-events: none; /* Prevents scrolling inside the card thumb */
    user-select: none;
}

.click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10; /* Sits above the iframe to capture clicks */
    background: rgba(0,0,0,0); 
}

/* --- CATEGORY TAG --- */
.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent, #00d4ff);
    color: #000;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    z-index: 15; /* Sits above click-overlay and video */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ==========================================================================
   CARD CONTENT AREA
   ========================================================================== */
.blog-info {
    padding: 30px;
    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, #888);
    margin-bottom: 15px;
}

.blog-meta .dot {
    width: 4px;
    height: 4px;
    background: var(--accent, #00d4ff);
    border-radius: 50%;
}

.blog-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text-color, #fff);
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.blog-info p {
    color: var(--text-muted, #aaa);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Link/Button Style */
.blog-btn-link {
    margin-top: auto;
    color: var(--text-color, #fff);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-family: 'Space Grotesk', sans-serif;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.blog-btn-link:hover {
    color: var(--accent, #00d4ff);
    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: 50px;
    justify-content: center;
}

.blog-card.featured h3 {
    font-size: 2.2rem;
}

/* ==========================================================================
   PDF MODAL (POPUP) STYLES
   ========================================================================== */
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 2% auto;
    padding: 20px;
    border: 1px solid var(--accent, #00d4ff);
    width: 90%;
    height: 90%;
    max-width: 1200px;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.close-modal {
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    right: 25px;
    top: 10px;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--accent, #00d4ff);
}

.pdf-container {
    flex-grow: 1;
    width: 100%;
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-footer {
    text-align: center;
    margin-top: 15px;
    color: #888;
    font-size: 0.9rem;
}

.modal-footer a {
    color: var(--accent, #00d4ff);
    text-decoration: none;
    font-weight: bold;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .blog-card.featured {
        flex-direction: column;
    }
    
    .blog-card.featured .blog-img-box {
        height: 300px;
        min-height: 300px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured h3 {
        font-size: 1.8rem;
    }

    .modal-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}/*------------------------------------------- Work Experience Section ------------------------------------------ */

.experience-section {
    padding: 100px 0;
    position: relative;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ==============================
   The Neon Laser Line
============================== */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.timeline-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--accent, #00d4ff), transparent);
    opacity: 0.5;
}

/* ==============================
   Timeline Items
============================== */
.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; }

/* ==============================
   Timeline Dot
============================== */
.timeline-dot {
    position: absolute;
    top: 25px;
    width: 16px;
    height: 16px;
    background: var(--bg-color, #000);
    border: 2px solid var(--accent, #00d4ff);
    border-radius: 50%;
    z-index: 2;
    transition: 0.3s ease;
    box-shadow: 0 0 10px var(--accent, #00d4ff);
}

.timeline-item.left .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left: -8px; }

.timeline-item:hover .timeline-dot {
    background: var(--accent, #00d4ff);
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--accent, #00d4ff);
}

/* ==============================
   Timeline Card (Optimized)
============================== */
.timeline-content {
    background: var(--card-bg, #1a1a1a);
    border: 1px solid var(--border, #333);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Performance: Enable Hardware Acceleration */
    will-change: transform;
}

/* Blur only on Desktop to save Mobile Battery/FPS */
@media (min-width: 769px) {
    .timeline-content {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

/* Card Arrow */
.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, #333);
}

.timeline-item.right .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--border, #333) transparent transparent;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    border-color: var(--accent, #00d4ff);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==============================
   Card Content Styling
============================== */
.exp-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border, #333);
    padding-bottom: 15px;
}

.exp-role h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: var(--text-color, #fff);
    margin-bottom: 5px;
}

.company {
    color: var(--accent, #00d4ff);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.exp-date {
    font-family: 'Space Grotesk';
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
}

.exp-desc {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ==============================
   Bullet List (FIXED)
============================== */
.exp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-list li {
    display: flex;
    align-items: center; /* Vertically center icon with text */
    gap: 15px;
    color: var(--text-color, #fff);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* The Icons */
.exp-list li i {
    color: var(--accent, #00d4ff);
    font-size: 0.9rem;
    /* FIX: Prevents icon from shrinking or disappearing on mobile */
    min-width: 20px; 
    text-align: center;
    flex-shrink: 0; 
}

/* Desktop Only: Reverse the left card items */
@media (min-width: 769px) {
    .timeline-item.left .exp-list li {
        flex-direction: row-reverse;
    }
}

/* ==============================
   RESPONSIVE DESIGN (FIXED)
============================== */
@media (max-width: 768px) {
    .timeline-line { 
        left: 30px; 
    }

    /* 1. Reset the base item style */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
        margin-bottom: 40px;
    }

    /* 2. CRITICAL FIX: Force both Left and Right items to align to the start */
    /* We use !important or specific selectors to override desktop 'left: 50%' */
    .timeline-item.left,
    .timeline-item.right {
        left: 0 !important; /* Forces the item back to the left edge */
        text-align: left;
    }

    /* 3. Fix the Dots positioning */
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 21px;
        right: auto;
    }

    /* 4. Fix the Arrows pointing to the line */
    .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, #333) transparent transparent;
    }

    /* 5. Fix the Icon List Alignment */
    .timeline-item.left .exp-list li,
    .timeline-item.right .exp-list li {
        flex-direction: row; 
        justify-content: flex-start;
        text-align: left;
    }

    /* 6. Performance Fix */
    .timeline-content {
        backdrop-filter: none;
        background: var(--card-bg, #1a1a1a);
    }
}

/* ==============================
   Experience Buttons
============================== */
.exp-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding: 12px 20px;
    background: #00ff88;
    border: 1px solid var(--border, #333);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .exp-link-btn {
    background: #2970ff;
    border-color: #2970ff;
}

.exp-link-btn span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #000;
}
[data-theme="light"] .exp-link-btn span,
[data-theme="light"] .exp-link-btn i { color: #fff; }

.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);
}


/*-------------------------------------/*

/* ==========================================================================
   SECTION HEADERS (Global Style for Blog & Experience)
   ========================================================================== */


/*-------------------------------------/*





/*------------------------------------temporerary end-------------------------------------*/

/* =========================================
   EPIC FLOATING LOGO FIX
   ========================================= */

/* 1. Base Container for the Logo */
.timeline-bg-logo {
    position: absolute;
    top: 20px; /* Aligns with the top of the card/dot */
    width: 200px;
    height: 200px;
    border-radius: 50%;
    
    /* Glassmorphism & Glow Effect */
    
    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);
    backdrop-filter: blur(15px);
    
    /* Flexbox to center the image inside the circle */
    display: flex;
    justify-content: center;
    align-items: center;
    
    z-index: 1; /* Behind the dot but visible */
    transition: all 0.4s ease;
}

/* 2. The Image inside the Logo Circle */
.timeline-bg-logo img {
    width: 90%; /* Adjust size of logo inside the bubble */
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
    transition: transform 0.4s ease;
}

/* 3. Positioning Logic - The "Epic" Placement */

/* IF Content is on the RIGHT -> Place Logo on the LEFT */
.timeline-item.right .timeline-bg-logo {
    left: -300px; /* Pulls it across the center line to the left */
    top: 110px;
}

/* IF Content is on the LEFT -> Place Logo on the RIGHT */
.timeline-item.left .timeline-bg-logo {
    right: -310px; /* Pushes it across the center line to the right */
    top: 120px;

}


/* =========================================
   HOVER EFFECTS
   ========================================= */

/* When hovering the ITEM, make the logo glow */
.timeline-item:hover .timeline-bg-logo {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent), inset 0 0 15px rgba(var(--accent-rgb), 0.2);
    transform: scale(1.1); /* Slight pop */
}

.timeline-item:hover .timeline-bg-logo img {
    transform: scale(1.1) rotate(5deg);
}


/* =========================================
   MOBILE FIX (Critical)
   ========================================= */
@media (max-width: 768px) {
    /* On mobile, there is no empty space, so we hide the big floating logo 
       or move it inside the card. Hiding is cleaner for this layout. */
    .timeline-bg-logo {
        display: none; 
    }
}



/* =========================================
   LIGHT MODE SPECIFIC OVERRIDES
   ========================================= */

/* 1. "Let's Talk" Button Changes */
[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;
}

/* 2. "Download CV" Button Hover Text Color */
[data-theme="light"] .btn-outline:hover {
    background: var(--accent);
    color: #ffffff; /* Changed from black to white */
    border-color: var(--accent);
}

/* 3. Social Icons Light Mode */
[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; /* Changed from black to white */
}

/* 4. FIX: White Text/Icons on Blue Backgrounds (Services, Skills, Portfolio) */
[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;
}
