:root {
    /* Light Theme Variables */
    --primary-color: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-blue: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    
    --bg-color: #0f172a;
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-color: #334155;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
    --shadow-blue: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

/* Typography */
.highlight {
    color: var(--primary-color);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary {
    background-color: #403d39;
    color: #ffffff;
    border: 1px solid #403d39;
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
    color: #403d39;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ══════════════════════════════════════
   ANNOUNCEMENT TICKER BAR
══════════════════════════════════════ */
.main-ticker-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1100;
}

.main-ticker-content {
    display: flex;
    width: max-content;
    animation: infiniteTickerScroll 25s linear infinite;
    will-change: transform;
}

.main-ticker-track {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    align-items: center;
    padding-right: 2.5rem;
    flex-shrink: 0;
}

.main-ticker-track span {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #ffffff;
    text-transform: uppercase;
}

.main-ticker-track .ticker-dot {
    opacity: 0.55;
    font-size: 0.6rem;
    letter-spacing: 0;
}

@keyframes infiniteTickerScroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Hero scroll padding when ticker present */
html {
    scroll-padding-top: 111px; /* ticker(36) + header(75) */
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 36px; /* sits below ticker */
    left: 0;
    width: 100%;
    height: 75px;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .header {
    background-color: rgba(15, 23, 42, 0.9);
}

.header.scrolled {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo with Vibrant Gradient */
.logo {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.logo span {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: scale(1.03);
    filter: brightness(1.15);
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: #475569;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    text-decoration: none;
    transition: color 0.25s ease;
}

[data-theme="dark"] .nav-links a {
    color: #94a3b8;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-only {
    display: none;
}

/* Nav Actions (Icons + CTA Button) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-icon-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-icon-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.theme-toggle {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

/* "Let's Talk" Button */
.btn-nav-talk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.45rem;
    background: var(--primary-color);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-talk:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(110deg, rgba(235, 230, 255, 1) 0%, rgba(255, 255, 255, 1) 40%, rgba(255, 240, 210, 1) 80%, rgba(255, 245, 190, 1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    gap: 1.25rem;
}

.hero-socials a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* ═══════════════════════════════════════════════
   HERO IMAGE — Pop-out composition
   Photo is absolutely positioned ABOVE the circle
   so the head naturally overflows the top edge.
════════════════════════════════════════════════ */

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;   /* stage sits at the bottom of the flex row */
    position: relative;
}

/* Stage: tall enough to hold the circle + the head that pops above */
.image-stage {
    position: relative;
    width: min(520px, 90vw);
    /* 
       Stage height = circle height + head overhang (~20%)
       circle = width (square), head overhang = 20% of width
    */
    height: calc(min(520px, 90vw) * 1.20);
    flex-shrink: 0;
}

/* ── Circle frame (sits at the BOTTOM of the stage) ── */
.image-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Circle height = 100% of its own width → perfect circle */
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--bg-card);
    /* Primary-color border */
    border: 2px solid rgba(37, 99, 235, 0.5);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.10),
                0 4px 16px rgba(0, 0, 0, 0.06);
    z-index: 1;
    overflow: visible;
}

/* Dashed outer ring */
.outer-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1.5px dashed var(--primary-color);
    opacity: 0.22;
    animation: spin-outer 50s linear infinite;
}

@keyframes spin-outer {
    to { transform: rotate(360deg); }
}

/* ── Person photo — anchored bottom, head overflows top ── */
.profile-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* Width slightly narrower than stage so left/right margins look clean */
    width: 88%;
    /* Height = full stage height so the top (head) reaches the very top of stage */
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Bottom rounded to blend with circle, top stays square (head pops out) */
    border-radius: 0 0 9999px 9999px;
    z-index: 3;   /* above .image-card */
    transition: transform 0.4s ease;
}

.image-stage:hover .profile-img {
    transform: translateX(-50%) translateY(-6px);
}

/* ── Floating badge base ── */
.floating-label {
    position: absolute;
    background: var(--bg-card);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    animation: floatBadge 6s ease-in-out infinite;
    z-index: 10;
    white-space: nowrap;
}

.floating-label i { color: var(--primary-color); }

/* Badge positions (relative to .image-stage) */
.fl-1 { top: 42%;  left: -18%; animation-delay: 0s;   }
.fl-2 { top: 42%;  right: -18%; animation-delay: 2s;  }
.fl-3 { bottom: 6%; left: 50%; transform: translateX(-50%); animation-delay: 4s; }

/* "Clean Code" accent badge */
.clean-code-badge {
    position: absolute;
    top: 2%;
    right: 0%;
    background: var(--primary-color);
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-blue);
    z-index: 11;
    animation: floatBadge 6s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes floatBadge {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* About & Skills Section */
.about-skills {
    padding: 6rem 0;
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.about-skills-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
}

/* About Me Card */
.about-content {
    background: var(--bg-card);
    padding: 2.75rem 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    position: relative;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.35);
}

.about-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
    width: fit-content;
}

.about-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.about-content p {
    margin-bottom: 1.15rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-content p:last-of-type {
    margin-bottom: 1.75rem;
}

.about-content strong {
    color: var(--text-main);
    font-weight: 700;
}

.about-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.about-tag i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.about-tag:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
}

/* Skills Column */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    justify-content: center;
}

/* Individual Skill Category Cards */
.skill-category {
    background: var(--bg-card);
    padding: 1.6rem 1.85rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

/* Category Accent Strip */
.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--cat-accent, var(--primary-color));
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0.85;
}

.skill-category:hover::before {
    width: 6px;
    opacity: 1;
}

/* Color Variables per Category */
.skill-cat-frontend { --cat-accent: #2563eb; }
.skill-cat-backend  { --cat-accent: #0284c7; }
.skill-cat-design   { --cat-accent: #8b5cf6; }
.skill-cat-data     { --cat-accent: #f59e0b; }
.skill-cat-tools    { --cat-accent: #10b981; }
.skill-cat-ai       { --cat-accent: #ec4899; }

/* Skill Category Hover */
.skill-category:hover {
    transform: translateY(-6px) scale(1.008);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--cat-accent);
    border-color: transparent;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.skill-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--cat-accent);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover .skill-icon-wrap {
    transform: scale(1.12) rotate(6deg);
    background: var(--cat-accent);
    color: #ffffff;
    box-shadow: 0 8px 18px -4px rgba(37, 99, 235, 0.4);
    border-color: var(--cat-accent);
}

.skill-category h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.15rem;
    letter-spacing: -0.2px;
}

.skill-sub {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Skill Badges & Hover Interaction */
.skill-category .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.skill-category .skill-tags span {
    padding: 0.45rem 1rem;
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: default;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    display: inline-flex;
    align-items: center;
}

.skill-category .skill-tags span:hover {
    background-color: var(--cat-accent);
    color: #ffffff;
    border-color: var(--cat-accent);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 14px -3px rgba(37, 99, 235, 0.35);
}

/* Dark Theme Adjustments for About & Skills */
[data-theme="dark"] .about-content {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .about-content:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .about-card-badge {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .skill-category {
    background: #1e293b;
    border-color: #334155;
}

/* Spotlight glare effect on skill cards */
.skill-category::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(380px circle at var(--skill-mouse-x, 50%) var(--skill-mouse-y, 50%), rgba(var(--cat-accent-rgb, 37 99 235) / 0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.skill-category:hover::after {
    opacity: 1;
}

/* Extra skill cards — hidden by default */
.skill-cat-extra {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.skill-cat-extra.show {
    display: flex;
    flex-direction: column;
    animation: skillCardReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes skillCardReveal {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Skills toggle wrapper */
.skills-toggle-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.skills-toggle-btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-card);
}

.skills-toggle-icon {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-toggle-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.skills-toggle-btn.expanded .skills-toggle-icon {
    transform: rotate(180deg);
}

[data-theme="dark"] .skill-cat-frontend { --cat-accent: #3b82f6; }
[data-theme="dark"] .skill-cat-backend  { --cat-accent: #38bdf8; }
[data-theme="dark"] .skill-cat-design   { --cat-accent: #a78bfa; }
[data-theme="dark"] .skill-cat-data     { --cat-accent: #fbbf24; }
[data-theme="dark"] .skill-cat-tools    { --cat-accent: #34d399; }
[data-theme="dark"] .skill-cat-ai       { --cat-accent: #f472b6; }

[data-theme="dark"] .skill-category:hover {
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--cat-accent);
}

/* ══════════════════════════════════════
   WEBSITE BLUE CURSOR BLUR & AMBIENT GLOW
══════════════════════════════════════ */
.cursor-ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    margin-top: -210px;
    margin-left: -210px;
    border-radius: 50%;
    /* Soft, gentle website primary blue (#2563eb) ambient blur with lower opacity */
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.11) 0%,
        rgba(96, 165, 250, 0.05) 40%,
        rgba(37, 99, 235, 0.015) 65%,
        transparent 80%
    );
    filter: blur(34px);
    pointer-events: none;
    z-index: 99997;
    opacity: 0;
    scale: 1;
    transition: opacity 0.5s ease, scale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

[data-theme="dark"] .cursor-ambient-glow {
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.18) 0%,
        rgba(37, 99, 235, 0.10) 40%,
        rgba(96, 165, 250, 0.03) 70%,
        transparent 85%
    );
    mix-blend-mode: screen;
}

.cursor-ambient-glow.cursor-glow-active {
    scale: 1.15;
    opacity: 0.38;
    filter: blur(36px);
}

/* Cursor Blue Blur Follower (Soft, translucent, doesn't block text) */
.cursor-trail-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    border-radius: 50%;
    /* Soft blue blur with reduced, elegant opacity */
    background: rgba(37, 99, 235, 0.10);
    filter: blur(16px);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.14);
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.35s ease, height 0.35s ease, margin 0.35s ease, background 0.3s ease, filter 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

[data-theme="dark"] .cursor-trail-dot {
    background: rgba(59, 130, 246, 0.16);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.18);
}

/* When hovering over interactive elements: gently and softly expands with low opacity */
.cursor-trail-dot.cursor-hover {
    width: 88px;
    height: 88px;
    margin-top: -44px;
    margin-left: -44px;
    background: rgba(37, 99, 235, 0.14);
    filter: blur(18px);
    box-shadow: 0 0 26px rgba(37, 99, 235, 0.18);
}

[data-theme="dark"] .cursor-trail-dot.cursor-hover {
    background: rgba(59, 130, 246, 0.20);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.24);
}

@media (hover: none) or (max-width: 768px) {
    .cursor-ambient-glow,
    .cursor-trail-dot {
        display: none !important;
    }
}

/* Projects Section - Modern Card Architecture & Animations */
.projects {
    padding: 6.5rem 0;
    background-color: var(--bg-color);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Dynamic Spotlight Glare on Hover */
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 3;
}

.project-card:hover::before {
    opacity: 1;
}

/* Top accent gradient bar */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(37, 99, 235, 0.26);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 16px 36px -8px rgba(59, 130, 246, 0.18), 0 4px 12px rgba(0, 0, 0, 0.35);
    border-color: rgba(59, 130, 246, 0.35);
}

/* Hidden initially for View More functionality */
.project-card.project-card-extra {
    display: none;
    opacity: 0;
    transform: translateY(25px);
}

.project-card.project-card-extra.show {
    display: flex;
    animation: projectCardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes projectCardReveal {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-img-wrapper {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.07);
    filter: brightness(1.03);
}

.project-info {
    padding: 2rem 1.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.65rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.85rem;
    color: var(--text-main);
    transition: color 0.25s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.project-tech span {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.32rem 0.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.project-card:hover .project-tech span {
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--text-main);
}

.project-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

[data-theme="dark"] .project-links {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.project-links .btn {
    transition: var(--transition);
}

.project-links .btn i {
    transition: transform 0.25s ease;
}

.project-links .btn:hover i {
    transform: translateX(3px);
}

/* Toggle More Projects Button Container */
.projects-toggle-wrapper {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.projects-toggle-btn {
    padding: 0.85rem 2.25rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-card);
}

.projects-toggle-btn .toggle-icon {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-toggle-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}

.projects-toggle-btn:hover .toggle-icon {
    transform: translateY(2px);
}

.projects-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

.projects-toggle-btn.expanded:hover .toggle-icon {
    transform: rotate(180deg) translateY(2px);
}

/* Certifications Section - Modern Image 1 Design & Auto-Slide */
.certificates {
    padding: 6.5rem 0 5rem;
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.cert-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2.75rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0 auto 0.9rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.12);
}

.section-badge i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.section-badge i.fa-circle-check {
    color: #10b981; /* Verified green checkmark tick */
}

[data-theme="dark"] .section-badge {
    background-color: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

/* Behind the Code - Eye-Catching Professional Section Badge */
.section-badge.about-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: var(--primary-color);
    box-shadow: 0 4px 16px -2px rgba(79, 70, 229, 0.18);
    margin-bottom: 1.25rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.4px;
}

.section-badge.about-badge i {
    color: #6366f1;
    font-size: 1rem;
    display: inline-block;
    animation: badgeWandSparkle 3s ease-in-out infinite;
}

@keyframes badgeWandSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.22) rotate(12deg); }
    60% { transform: scale(1.1) rotate(-6deg); }
}

.section-badge.about-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 22px -2px rgba(79, 70, 229, 0.3);
    border-color: rgba(79, 70, 229, 0.55);
}

[data-theme="dark"] .section-badge.about-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c7d2fe;
    box-shadow: 0 4px 18px -2px rgba(168, 85, 247, 0.25);
}

[data-theme="dark"] .section-badge.about-badge i {
    color: #c084fc;
}

.cert-section-header .section-title {
    font-size: 2.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cert-section-header .section-subtitle {
    max-width: 580px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 auto 1.5rem;
}

.cert-header-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.25rem;
}

.cert-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.cert-nav-arrows {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-arrow-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cert-arrow-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.cert-arrow-btn:active {
    transform: translateY(0);
}

/* Auto-Sliding Viewport & Track */
.cert-slider-viewport {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1.5rem 0 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
    user-select: none;
}

.cert-slider-viewport::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.cert-slider-viewport:active {
    cursor: grabbing;
}

/* Gradient edge fades */
.certificates::before,
.certificates::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 5;
}

.certificates::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-alt) 20%, transparent);
}

.certificates::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-alt) 20%, transparent);
}

.cert-slider-track {
    display: flex;
    gap: 1.75rem;
    width: max-content;
    padding: 0 max(2rem, calc((100vw - 1280px) / 2));
    transition: transform 0.1s linear;
}

/* Card V2: Exact Image 1 Styling */
.cert-card-v2 {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    min-height: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.2rem 1.85rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Spotlight glare on cert cards */
.cert-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(380px circle at var(--cert-mouse-x, 50%) var(--cert-mouse-y, 50%), rgba(37, 99, 235, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.cert-card-v2:hover::before {
    opacity: 1;
}

.cert-card-v2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.11), 0 4px 10px rgba(0, 0, 0, 0.04);
    border-color: rgba(37, 99, 235, 0.28);
}

.cert-card-v2:hover::after {
    opacity: 1;
}

/* Badge Icon at Top */
.cert-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.cert-card-badge svg {
    display: block;
    stroke: var(--primary-color);
}

.cert-card-v2:hover .cert-card-badge {
    transform: scale(1.08) rotate(-3deg);
}

/* Card Content */
.cert-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cert-card-title {
    font-family: var(--font-heading);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 0.45rem;
}

.cert-card-issuer {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
    display: inline-block;
}

.cert-card-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.cert-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .cert-card-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.cert-date-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    white-space: nowrap;
}

[data-theme="dark"] .cert-date-pill {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}

.cert-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.08);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.cert-open-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Footer info hint */
.cert-slider-info-bar {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.cert-hint-text {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.cert-hint-text i {
    color: var(--primary-color);
}

/* ═══════════════════════ CERTIFICATE MODAL VIEWER ═══════════════════════ */
.cert-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cert-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cert-modal-dialog {
    background: var(--bg-card);
    width: 100%;
    max-width: 960px;
    max-height: 92vh;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.93) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modal-backdrop.active .cert-modal-dialog {
    transform: scale(1) translateY(0);
}

.cert-modal-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--bg-alt);
}

.cert-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.45rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cert-modal-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin: 0 0 0.35rem;
}

.cert-modal-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.cert-modal-issuer {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cert-modal-dot {
    color: var(--text-muted);
}

.cert-modal-date {
    color: var(--text-muted);
}

.cert-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.cert-modal-close:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.cert-modal-body {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--bg-color);
}

.cert-modal-frame-wrapper {
    position: relative;
    width: 100%;
    height: 56vh;
    min-height: 360px;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cert-pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #ffffff;
}

.cert-fallback-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
    color: #f8fafc;
}

.cert-fallback-icon {
    font-size: 3.5rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.cert-modal-desc-box {
    background: var(--bg-alt);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.cert-modal-desc-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.cert-modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--bg-alt);
}

.cert-modal-status-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cert-modal-status-text i {
    color: var(--primary-color);
}

.cert-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cert-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.cert-btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-blue);
}

.cert-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.cert-btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.cert-btn-secondary:hover {
    background-color: var(--bg-alt);
    border-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Articles Section */
.articles {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.article-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-img img {
    transform: scale(1.06);
}

.article-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.85rem;
}

.article-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
}

.read-more:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-alt);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-info-card {
    background: var(--primary-color);
    color: #ffffff;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-info-card h3 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
}

.contact-list i {
    font-size: 1.25rem;
}

.contact-socials {
    display: flex;
    gap: 1rem;
}

.contact-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition);
}

.contact-socials a:hover {
    background: #ffffff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.circle-1, .circle-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    right: -50px;
}

.circle-2 {
    width: 100px;
    height: 100px;
    bottom: 50px;
    right: 50px;
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-alt);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.success-message {
    color: #10b981;
}

.error-message {
    color: #ef4444;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 5rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 400px;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer ul a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: #94a3b8;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
}

/* ════════════════════════════════════════════════════════════════
   MODERN SLIDEIN ANIMATION SYSTEM — Section Reveal
   Used by: About, Projects, Certifications, Articles
   ════════════════════════════════════════════════════════════════ */

/* ── Core keyframes ── */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-42px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(42px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(28px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInFadeWord {
    from {
        opacity: 0;
        transform: translateY(18px) skewY(1.5deg);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) skewY(0);
        filter: blur(0);
    }
}

/* ── Base hidden state for all section-slide elements ── */
.si-hidden {
    opacity: 0 !important;
}

/* ── Generic reusable slideIn classes ── */
.slide-up,
.slide-left,
.slide-right,
.slide-scale {
    opacity: 0;
    will-change: opacity, transform;
}

.slide-up.animated    { animation: slideInUp    0.80s cubic-bezier(0.16, 1, 0.3, 1) both; }
.slide-left.animated  { animation: slideInLeft  0.80s cubic-bezier(0.16, 1, 0.3, 1) both; }
.slide-right.animated { animation: slideInRight 0.80s cubic-bezier(0.16, 1, 0.3, 1) both; }
.slide-scale.animated { animation: slideInScale 0.88s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ── Stagger delay set ── */
.si-d0  { animation-delay: 0.00s !important; }
.si-d1  { animation-delay: 0.10s !important; }
.si-d2  { animation-delay: 0.20s !important; }
.si-d3  { animation-delay: 0.32s !important; }
.si-d4  { animation-delay: 0.44s !important; }
.si-d5  { animation-delay: 0.56s !important; }
.si-d6  { animation-delay: 0.68s !important; }
.si-d7  { animation-delay: 0.80s !important; }
.si-d8  { animation-delay: 0.92s !important; }

/* ══════════════════════════════════
   SECTION 1: BEHIND THE CODE & CREATIVITY
   ══════════════════════════════════ */
/* Badge */
#about .section-badge {
    opacity: 0;
    will-change: opacity, transform;
}
#about.section-animated .section-badge {
    animation: slideInUp 0.70s cubic-bezier(0.16, 1, 0.3, 1) 0.00s both;
}
/* Title */
#about .section-title {
    opacity: 0;
    will-change: opacity, transform;
}
#about.section-animated .section-title {
    animation: slideInFadeWord 0.80s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
/* Subtitle */
#about .section-subtitle {
    opacity: 0;
    will-change: opacity, transform;
}
#about.section-animated .section-subtitle {
    animation: slideInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}
/* About content card — slide from left */
#about .about-content {
    opacity: 0;
    will-change: opacity, transform;
}
#about.section-animated .about-content {
    animation: slideInLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both;
}
/* Skills grid — slide from right */
#about .skills-content {
    opacity: 0;
    will-change: opacity, transform;
}
#about.section-animated .skills-content {
    animation: slideInRight 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both;
}
/* Individual skill cards inside skills-content stagger */
#about .skill-category {
    opacity: 0;
    will-change: opacity, transform;
}
#about.section-animated .skill-category:nth-child(1) { animation: slideInScale 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both; }
#about.section-animated .skill-category:nth-child(2) { animation: slideInScale 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both; }
#about.section-animated .skill-category:nth-child(3) { animation: slideInScale 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both; }
#about.section-animated .skill-category:nth-child(4) { animation: slideInScale 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.66s both; }
#about.section-animated .skill-category:nth-child(5) { animation: slideInScale 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.74s both; }
#about.section-animated .skill-category:nth-child(6) { animation: slideInScale 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.82s both; }

/* ══════════════════════════════════
   SECTION 2: FEATURED PROJECTS
   ══════════════════════════════════ */
#projects .section-badge {
    opacity: 0;
    will-change: opacity, transform;
}
#projects.section-animated .section-badge {
    animation: slideInUp 0.70s cubic-bezier(0.16, 1, 0.3, 1) 0.00s both;
}
#projects .section-title {
    opacity: 0;
    will-change: opacity, transform;
}
#projects.section-animated .section-title {
    animation: slideInFadeWord 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
#projects .section-subtitle {
    opacity: 0;
    will-change: opacity, transform;
}
#projects.section-animated .section-subtitle {
    animation: slideInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}
/* Project cards with clean stagger — left/up/right alternating */
#projects .project-card:nth-child(1) {
    opacity: 0;
    will-change: opacity, transform;
}
#projects .project-card:nth-child(2) {
    opacity: 0;
    will-change: opacity, transform;
}
#projects .project-card:nth-child(3) {
    opacity: 0;
    will-change: opacity, transform;
}
#projects.section-animated .project-card:nth-child(1) {
    animation: slideInLeft  0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}
#projects.section-animated .project-card:nth-child(2) {
    animation: slideInUp    0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
}
#projects.section-animated .project-card:nth-child(3) {
    animation: slideInRight 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.56s both;
}
/* Toggle button */
#projects .projects-toggle-wrapper {
    opacity: 0;
    will-change: opacity, transform;
}
#projects.section-animated .projects-toggle-wrapper {
    animation: slideInUp 0.70s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both;
}

/* ══════════════════════════════════
   SECTION 3: CERTIFICATIONS & LEARNING
   ══════════════════════════════════ */
#certificates .section-badge {
    opacity: 0;
    will-change: opacity, transform;
}
#certificates.section-animated .section-badge {
    animation: slideInUp 0.70s cubic-bezier(0.16, 1, 0.3, 1) 0.00s both;
}
#certificates .section-title {
    opacity: 0;
    will-change: opacity, transform;
}
#certificates.section-animated .section-title {
    animation: slideInFadeWord 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
#certificates .section-subtitle {
    opacity: 0;
    will-change: opacity, transform;
}
#certificates.section-animated .section-subtitle {
    animation: slideInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}
#certificates .cert-header-controls {
    opacity: 0;
    will-change: opacity, transform;
}
#certificates.section-animated .cert-header-controls {
    animation: slideInUp 0.70s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}
/* Slider viewport slides up as a whole */
#certificates .cert-slider-viewport {
    opacity: 0;
    will-change: opacity, transform;
}
#certificates.section-animated .cert-slider-viewport {
    animation: slideInScale 0.90s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
}

/* ══════════════════════════════════
   SECTION 4: LATEST ARTICLES
   ══════════════════════════════════ */
#articles .section-badge {
    opacity: 0;
    will-change: opacity, transform;
}
#articles.section-animated .section-badge {
    animation: slideInUp 0.70s cubic-bezier(0.16, 1, 0.3, 1) 0.00s both;
}
#articles .section-title {
    opacity: 0;
    will-change: opacity, transform;
}
#articles.section-animated .section-title {
    animation: slideInFadeWord 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
#articles .section-subtitle {
    opacity: 0;
    will-change: opacity, transform;
}
#articles.section-animated .section-subtitle {
    animation: slideInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}
/* Article cards: slide from different directions */
#articles .article-card:nth-child(1) {
    opacity: 0;
    will-change: opacity, transform;
}
#articles .article-card:nth-child(2) {
    opacity: 0;
    will-change: opacity, transform;
}
#articles .article-card:nth-child(3) {
    opacity: 0;
    will-change: opacity, transform;
}
#articles.section-animated .article-card:nth-child(1) {
    animation: slideInLeft  0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}
#articles.section-animated .article-card:nth-child(2) {
    animation: slideInUp    0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
#articles.section-animated .article-card:nth-child(3) {
    animation: slideInRight 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}
/* View all button */
#articles .text-center:last-child {
    opacity: 0;
    will-change: opacity, transform;
}
#articles.section-animated .text-center:last-child {
    animation: slideInUp 0.70s cubic-bezier(0.16, 1, 0.3, 1) 0.70s both;
}

/* ── Legacy & generic reveal classes (kept for compatibility) ── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-from-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-from-left.is-revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-from-right {
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-from-right.is-revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.95) translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-scale.is-revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.delay-100 { transition-delay: 0.10s !important; }
.delay-200 { transition-delay: 0.20s !important; }
.delay-300 { transition-delay: 0.30s !important; }
.delay-400 { transition-delay: 0.40s !important; }
.delay-500 { transition-delay: 0.50s !important; }

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.appear,
.fade-in.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Reduced motion: skip all animations ── */
@media (prefers-reduced-motion: reduce) {
    #about,
    #projects,
    #certificates,
    #articles {
        /* pre-reveal all children immediately */
    }
    #about .section-badge, #about .section-title, #about .section-subtitle,
    #about .about-content, #about .skills-content, #about .skill-category,
    #projects .section-badge, #projects .section-title, #projects .section-subtitle,
    #projects .project-card, #projects .projects-toggle-wrapper,
    #certificates .section-badge, #certificates .section-title, #certificates .section-subtitle,
    #certificates .cert-header-controls, #certificates .cert-slider-viewport,
    #articles .section-badge, #articles .section-title, #articles .section-subtitle,
    #articles .article-card, #articles .text-center:last-child,
    .reveal-on-scroll, .reveal-from-left, .reveal-from-right, .reveal-scale, .fade-in {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

