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

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

/* ===== THEME VARIABLES ===== */
[data-theme="light"] {
    --bg: #fafbff;
    --text: #1e293b;
    --card-bg: #ffffff;
    --muted: #64748b;
    --border: #e2e8f0;
    --nav-bg: rgba(250, 251, 255, 0.8);
    --nav-bg-scrolled: rgba(250, 251, 255, 0.95);
    --section-alt-bg: #f1f5f9;
    --stats-bg: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    --skill-icon-bg: rgba(102, 126, 234, 0.1);
    --tag-bg: rgba(102, 126, 234, 0.06);
    --social-bg: #1e293b;
    --social-color: #ffffff;
    --code-bg: #f1f5f9;
    --glow-soft: rgba(102, 126, 234, 0.08);
    --card-hover-shadow: 0 20px 60px rgba(102, 126, 234, 0.12);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --text: #f1f5f9;
    --card-bg: #1e293b;
    --muted: #94a3b8;
    --border: #334155;
    --nav-bg: rgba(15, 23, 42, 0.8);
    --nav-bg-scrolled: rgba(15, 23, 42, 0.95);
    --section-alt-bg: #1a2332;
    --stats-bg: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    --skill-icon-bg: rgba(102, 126, 234, 0.15);
    --tag-bg: rgba(102, 126, 234, 0.12);
    --social-bg: #334155;
    --social-color: #f1f5f9;
    --code-bg: #1a2332;
    --glow-soft: rgba(102, 126, 234, 0.12);
    --card-hover-shadow: 0 20px 60px rgba(102, 126, 234, 0.18);
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* ===== AMBIENT BACKGROUND BLOBS ===== */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0;
    transition: opacity 0.5s;
}

[data-theme="dark"] body::before {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.18), transparent 70%);
    opacity: 1;
    animation: blob-drift-1 20s ease-in-out infinite;
}

[data-theme="dark"] body::after {
    width: 500px;
    height: 500px;
    bottom: -5%;
    right: -5%;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.15), transparent 70%);
    opacity: 1;
    animation: blob-drift-2 25s ease-in-out infinite;
}

[data-theme="light"] body::before {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08), transparent 70%);
    opacity: 1;
    animation: blob-drift-1 20s ease-in-out infinite;
}

[data-theme="light"] body::after {
    width: 500px;
    height: 500px;
    bottom: -5%;
    right: -5%;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.06), transparent 70%);
    opacity: 1;
    animation: blob-drift-2 25s ease-in-out infinite;
}

@keyframes blob-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(15vw, 10vh) scale(1.1); }
    50% { transform: translate(5vw, 30vh) scale(0.95); }
    75% { transform: translate(-10vw, 15vh) scale(1.05); }
}

@keyframes blob-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-12vw, -15vh) scale(1.05); }
    50% { transform: translate(-5vw, -25vh) scale(1.1); }
    75% { transform: translate(10vw, -10vh) scale(0.95); }
}

/* Subtle dot grid overlay - dark mode only */
[data-theme="dark"] #particles-canvas {
    background-image: radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

::selection {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul, ol {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== THIRD AMBIENT BLOB ===== */
.ambient-blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0;
    transition: opacity 0.5s;
}

[data-theme="dark"] .ambient-blob-3 {
    width: 450px;
    height: 450px;
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent 70%);
    opacity: 1;
    animation: blob-drift-3 22s ease-in-out infinite;
}

[data-theme="light"] .ambient-blob-3 {
    width: 450px;
    height: 450px;
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05), transparent 70%);
    opacity: 1;
    animation: blob-drift-3 22s ease-in-out infinite;
}

@keyframes blob-drift-3 {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    25% { transform: translate(-30%, -20vh) scale(1.08); }
    50% { transform: translate(-60%, 10vh) scale(0.92); }
    75% { transform: translate(-40%, -10vh) scale(1.05); }
}

/* ===== MOUSE FOLLOWER ===== */
.mouse-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar .container,
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.nav-logo .logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
}

.logo-dot {
    color: #667eea;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--text);
    transition: background 0.3s, color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
}

.nav-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    margin-left: 0.5rem;
    color: var(--text);
}

.theme-toggle:hover {
    transform: rotate(30deg);
    border-color: #667eea;
}

/* Theme toggle animations handled in enhanced section below */

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.1));
    top: -100px;
    right: -100px;
    animation: float-shape-1 8s ease-in-out infinite;
}

.hero-bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.2), rgba(102, 126, 234, 0.1));
    bottom: -50px;
    left: -50px;
    animation: float-shape-2 10s ease-in-out infinite;
}

.hero-bg-shapes .shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(236, 72, 153, 0.1));
    top: 50%;
    left: 50%;
    animation: float-shape-3 12s ease-in-out infinite;
}

@keyframes float-shape-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}

@keyframes float-shape-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.05); }
}

@keyframes float-shape-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    background: var(--card-bg);
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-name {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.hero-role {
    font-size: 1.4rem;
    min-height: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.4rem;
    background: #667eea;
    margin-left: 4px;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animated {
    background: linear-gradient(270deg, #667eea, #764ba2, #38bdf8, #667eea);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-bio {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 540px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-color: #667eea;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.hero-buttons,
.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Hero Socials */
.hero-socials {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--social-bg);
    color: var(--social-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
}

.social-icon.github:hover {
    background: #333333;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.4);
}

.social-icon.email:hover {
    background: #ea4335;
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.4);
}

.social-icon.medium:hover {
    background: #00ab6c;
    box-shadow: 0 4px 15px rgba(0, 171, 108, 0.4);
}

/* Hero Avatar */
.hero-avatar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-ring {
    background: linear-gradient(270deg, #667eea, #764ba2, #38bdf8, #667eea);
    background-size: 300% 300%;
    animation: gradient-shift 4s ease infinite;
    padding: 4px;
    border-radius: 20px;
    display: inline-block;
    transition: transform 0.5s;
}

.avatar-ring:hover {
    transform: scale(1.03);
}

.avatar-ring img {
    border-radius: 16px;
    width: 340px;
    height: 420px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.avatar-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1rem;
}

.avatar-status .status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ===== STATS STRIP ===== */
/* ===== WHAT I DO STRIP ===== */
.what-i-do-strip {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.wid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.wid-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.wid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #38bdf8);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wid-card:hover::before {
    opacity: 1;
}

.wid-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.1);
}

.wid-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    color: #667eea;
}

[data-theme="dark"] .wid-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: #a5b4fc;
}

.wid-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading);
}

.wid-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== SECTION HEADERS ===== */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CURRENTLY BUILDING ===== */
.currently-building {
    padding: 5rem 0;
}

.building-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.building-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #38bdf8);
    background-size: 200% 100%;
    animation: gradient-slide 3s ease infinite;
}

@keyframes gradient-slide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.building-card:hover {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.15), 0 0 40px rgba(118, 75, 162, 0.08);
}

.building-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.building-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #22c55e;
}

.building-date {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.building-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.building-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.building-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.building-highlight-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.highlight-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.highlight-detail {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}

.building-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .building-card {
        padding: 1.5rem;
    }
    .building-highlights {
        grid-template-columns: 1fr;
    }
    .building-title {
        font-size: 1.3rem;
    }
}

/* ===== SKILLS GRID ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.skill-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    background-size: 200% 100%;
    animation: accent-slide 3s ease infinite;
}

@keyframes accent-slide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.skill-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--skill-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.skill-emoji {
    font-size: 2rem;
}

.skill-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags .tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--muted);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.skill-card:hover .skill-tags .tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--text);
}

.tag.highlight {
    background: transparent;
    border-color: var(--border);
}

/* ===== TIMELINE / EXPERIENCE ===== */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2, transparent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateX(calc(-50% + 1px));
    transition: transform 0.3s;
    z-index: 1;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(calc(-50% + 1px)) scale(1.5);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.exp-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.exp-company {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.exp-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #667eea;
    white-space: nowrap;
}

.exp-location {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.exp-achievements {
    list-style: none;
    padding: 0;
}

.exp-achievements li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

.exp-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ===== CERTIFICATIONS ===== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cert-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.cert-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.cert-issuer {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.cert-year {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #667eea;
}

/* ===== BLOG SECTION ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-read {
    font-size: 0.88rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s;
}

.blog-card-read:hover {
    gap: 0.6rem;
}

/* Blog Skeleton Loading */
.blog-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skeleton-card {
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.skeleton-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, var(--border) 25%, rgba(102, 126, 234, 0.08) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-line {
    height: 14px;
    margin: 1rem 1.5rem;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--border) 25%, rgba(102, 126, 234, 0.08) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-line:nth-child(2) {
    width: 80%;
}

.skeleton-line:nth-child(3) {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.blog-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3.5rem;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
}

.contact-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.contact-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.contact-bg-shapes .shape:nth-child(1) {
    width: 200px;
    height: 200px;
    background: rgba(102, 126, 234, 0.2);
    top: -60px;
    right: -60px;
}

.contact-bg-shapes .shape:nth-child(2) {
    width: 150px;
    height: 150px;
    background: rgba(118, 75, 162, 0.15);
    bottom: -40px;
    left: -40px;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.contact-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.contact-method-card svg {
    color: #667eea;
}

.contact-method-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
}

.contact-method-value {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
}

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

/* ===== PROJECTS PAGE ===== */
.projects-hero {
    padding-top: 8rem;
    padding-bottom: 2rem;
    text-align: center;
}

.projects-count {
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

/* Sticky Filter Bar */
.filter-bar-sticky {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: var(--bg);
    padding: 1rem 0;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s, background 0.3s;
    border-bottom: 1px solid transparent;
}

.filter-bar-sticky.stuck {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.filter-bar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

/* Search with icon inside */
.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    transition: color 0.3s;
}

.search-wrapper:focus-within .search-icon {
    color: #667eea;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 2.75rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.search-input::placeholder {
    color: var(--muted);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    font-family: inherit;
}

.filter-tab:hover {
    border-color: #667eea;
    color: var(--text);
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border-color: transparent;
}

.filter-count {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 700;
}

.filter-tab:not(.active) .filter-count {
    background: var(--tag-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.project-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-img-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #ffffff;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.overlay-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.project-card-body {
    padding: 1.5rem;
}

.project-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-summary {
    font-size: 0.88rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tech span {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #667eea;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.project-link {
    font-size: 0.85rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
}

.project-link:hover {
    color: #667eea;
}

.project-details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    font-family: inherit;
}

.project-details-toggle:hover {
    color: #667eea;
    border-color: #667eea;
}

.project-details-toggle .chevron {
    transition: transform 0.3s;
    display: inline-block;
}

.project-details-toggle.active .chevron {
    transform: rotate(180deg);
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 1.5rem;
}

.project-details.open {
    max-height: 600px;
    padding: 1rem 1.5rem 1.5rem;
}

.project-details ul {
    list-style: none;
    padding: 0;
}

.project-details li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

.project-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.no-results.show {
    display: block;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.no-results p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 3rem 0 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand .logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s, visibility 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* ===== TILT CARD ===== */
.tilt-card {
    perspective: 1000px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* ===== SCROLL REVEAL (moved to enhanced section below) ===== */

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

[data-theme="light"] .grain-overlay {
    opacity: 0.02;
}

/* ===== HERO CODE FLOAT ===== */
.hero-code-float {
    position: absolute;
    bottom: 40px;
    left: -80px;
    z-index: 2;
    animation: float-code 6s ease-in-out infinite;
}

@keyframes float-code {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(0deg); }
}

.code-window {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.8;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    max-width: 260px;
}

.code-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-keyword { color: #c678dd; }
.code-name { color: #e5c07b; }
.code-func { color: #61afef; }
.code-string { color: #98c379; }

[data-theme="light"] .code-keyword { color: #7c3aed; }
[data-theme="light"] .code-name { color: #b45309; }
[data-theme="light"] .code-func { color: #2563eb; }
[data-theme="light"] .code-string { color: #059669; }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 1rem 0 2rem;
    position: relative;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    font-weight: 600;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #667eea, transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* ===== ENHANCED HERO NAME UNDERLINE ===== */
.hero-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* ===== ENHANCED SOCIAL ICONS ===== */
.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

/* ===== ENHANCED STAT ITEMS ===== */
.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.stat-item:last-child::after {
    display: none;
}

/* ===== ENHANCED SKILL CARDS ===== */
.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.04), transparent 70%);
    transition: opacity 0.5s;
    opacity: 0;
}

.skill-card:hover::before {
    opacity: 1;
}

/* ===== ENHANCED TIMELINE ===== */
.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.timeline-item:hover .timeline-dot::after {
    opacity: 1;
}

/* ===== ENHANCED BLOG CARDS ===== */
.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.blog-card:hover::after {
    transform: scaleX(1);
}

/* ===== ENHANCED CONTACT CARD ===== */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #38bdf8);
    background-size: 200% 100%;
    animation: accent-slide 3s ease infinite;
}

/* ===== ANIMATED GRADIENT BORDER ON PRIMARY BUTTONS ===== */
.btn-primary {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ===== GLASSMORPHISM NAVBAR ===== */
.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    border-bottom: 1px solid var(--border);
}

/* ===== ENHANCED HERO SECTION ===== */
.hero-name .gradient-text {
    position: relative;
    display: inline-block;
}

.hero-role {
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ===== GLOWING SKILL CARDS ===== */
.skill-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(102, 126, 234, 0.3);
}

.skill-icon-wrap {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.skill-card:hover .skill-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

/* ===== ENHANCED TIMELINE CARDS ===== */
.timeline-content {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
}

.timeline-item:hover .timeline-content {
    transform: translateX(8px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(102, 126, 234, 0.3);
}

/* ===== ENHANCED CERT CARDS ===== */
.cert-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.cert-card:hover::before {
    transform: scaleX(1);
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(102, 126, 234, 0.3);
}

.cert-icon {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ===== ENHANCED BLOG CARDS ===== */
.blog-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.3s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(102, 126, 234, 0.3);
}

.blog-card-img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.06);
}

/* ===== ENHANCED CONTACT SECTION ===== */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

/* ===== FOOTER ENHANCEMENTS ===== */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5), transparent);
}

.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ===== ENHANCED PROJECT CARDS ===== */
.project-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(102, 126, 234, 0.3);
}

/* ===== SECTION TAG GLOW ===== */
.section-tag {
    position: relative;
    transition: box-shadow 0.3s;
}

.section-tag::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s;
}

/* ===== SMOOTH FOCUS STATES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== AVATAR GLOW ===== */
.avatar-ring {
    position: relative;
}

.avatar-ring::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    background: linear-gradient(270deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25), rgba(236, 72, 153, 0.15));
    background-size: 300% 300%;
    animation: gradient-shift 4s ease infinite;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
}

/* ===== NAV LINK HOVER UNDERLINE ===== */
.nav-link:not(.nav-cta) {
    position: relative;
}

.nav-link:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:not(.nav-cta):hover::after,
.nav-link:not(.nav-cta).active::after {
    width: 60%;
    left: 20%;
}

/* ===== BACK TO TOP PULSE ===== */
.back-to-top::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    z-index: -1;
    opacity: 0;
    animation: btt-pulse 2s ease-in-out infinite;
}

.back-to-top.visible::before {
    opacity: 0.3;
}

@keyframes btt-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0; }
}

/* ===== TECH MARQUEE ===== */
.tech-marquee {
    overflow: hidden;
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--section-alt-bg);
}

.tech-marquee::before,
.tech-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.tech-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
}

.tech-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg), transparent);
}

[data-theme="dark"] .tech-marquee::before {
    background: linear-gradient(90deg, var(--section-alt-bg), transparent);
}

[data-theme="dark"] .tech-marquee::after {
    background: linear-gradient(270deg, var(--section-alt-bg), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

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

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-right: 2rem;
}

.marquee-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

.marquee-track:hover .marquee-item {
    color: var(--text);
}

.marquee-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== GLASSMORPHISM CARDS ===== */
.skill-card,
.cert-card,
.timeline-content,
.contact-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .skill-card,
[data-theme="dark"] .cert-card,
[data-theme="dark"] .timeline-content {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

/* ===== VIBRANT GRADIENT ACCENTS ===== */
.hero-name {
    position: relative;
}

.hero-name .gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2, #38bdf8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

/* ===== ANIMATED GRADIENT BORDER BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2, #38bdf8);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    border: none;
    position: relative;
}

.btn-outline {
    position: relative;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), linear-gradient(135deg, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.btn-outline:hover {
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), linear-gradient(135deg, #667eea, #764ba2, #38bdf8);
    border-color: transparent;
}

/* ===== ENHANCED HERO BADGE ===== */
.hero-badge {
    background: linear-gradient(var(--card-bg), var(--card-bg)), linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
    animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
    50% { box-shadow: 0 0 20px -5px rgba(102, 126, 234, 0.3); }
}

/* ===== SECTION TAG PILL ENHANCEMENT ===== */
.section-tag {
    background: linear-gradient(var(--card-bg), var(--card-bg)), linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
    -webkit-text-fill-color: unset;
}

/* ===== INTERACTIVE STAT NUMBERS ===== */
.stat-number {
    background: linear-gradient(135deg, #667eea, #a78bfa, #38bdf8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

.stat-suffix {
    background: linear-gradient(135deg, #667eea, #a78bfa, #38bdf8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

/* ===== HOVER CARD SPOTLIGHT ===== */
.skill-card:hover,
.cert-card:hover,
.blog-card:hover,
.featured-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .skill-card:hover,
[data-theme="dark"] .cert-card:hover,
[data-theme="dark"] .blog-card:hover,
[data-theme="dark"] .featured-card:hover {
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15), 0 0 80px -20px rgba(102, 126, 234, 0.1);
}

/* ===== ENHANCED SCROLL PROGRESS ===== */
.scroll-progress {
    height: 3px;
    background: linear-gradient(90deg, #667eea, #a78bfa, #38bdf8, #06b6d4);
    background-size: 300% 100%;
    animation: gradient-shift 3s ease infinite;
}

/* ===== SKILL TAG HOVER ===== */
.skill-tags .tag {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-tags .tag:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--text);
    transform: translateY(-2px);
}

/* ===== EXPERIENCE COMPANY LINK STYLE ===== */
.exp-company {
    background: linear-gradient(135deg, #667eea, #a78bfa, #38bdf8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

/* ===== FUN NAV CTA ===== */
.nav-cta {
    background: linear-gradient(135deg, #667eea, #764ba2, #38bdf8);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

/* ===== ANIMATED PROJECT CARD TRANSITIONS ===== */
.project-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.3s, opacity 0.4s ease;
}

.project-card.hidden {
    display: none !important;
}

/* Project card gradient top border on hover */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
    border-radius: 18px 18px 0 0;
}

.project-card:hover::before {
    transform: scaleX(1);
}

/* Project card body */
.project-body {
    padding: 1.5rem;
}

/* Architecture details section */
.details-images {
    padding: 0.5rem 0;
}

.details-images figure {
    margin: 0;
    text-align: center;
}

.details-images img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.details-images figcaption {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Coming Soon Empty State */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.coming-soon h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loading {
    overflow: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 1.5rem;
}

.loader-bar {
    width: 120px;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    animation: loader-progress 0.8s ease-out forwards;
}

@keyframes loader-progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* ===== PAGE FADE-IN ===== */
body:not(.page-loading) {
    animation: page-fade-in 0.5s ease;
}

@keyframes page-fade-in {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* ===== FEATURED PROJECTS GRID ===== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(102, 126, 234, 0.3);
}

.featured-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.featured-card:hover .featured-img img {
    transform: scale(1.06);
}

.featured-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.featured-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

/* ===== BLOG CARD IMAGE ===== */
.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s;
}

.blog-card-link:hover {
    gap: 0.6rem;
}

.blog-fallback {
    text-align: center;
    padding: 3rem 2rem;
}

.blog-fallback p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.blog-fallback a {
    color: #667eea;
    font-weight: 600;
}

/* ===== SECTION GLOW DIVIDERS ===== */
.section-divider-glow {
    position: relative;
    width: 100%;
    height: 1px;
    z-index: 1;
}

.section-divider-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 700px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5), transparent);
}

.section-divider-glow::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    max-width: 500px;
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.12), transparent 70%);
    filter: blur(4px);
}

[data-theme="light"] .section-divider-glow::before {
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25), transparent);
}

[data-theme="light"] .section-divider-glow::after {
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.06), transparent 70%);
}

/* ===== ENHANCED SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.cursor-hover .cursor-ring {
    width: 54px;
    height: 54px;
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.06);
}

.cursor-hover .cursor-dot {
    width: 6px;
    height: 6px;
    opacity: 0.7;
}

/* ===== HERO PHOTO CLIP-PATH REVEAL ===== */
@keyframes heroImageReveal {
    0% {
        clip-path: inset(0 100% 0 0);
        transform: scale(1.05);
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: scale(1);
    }
}

.hero-avatar .avatar-ring {
    clip-path: inset(0 100% 0 0);
    animation: heroImageReveal 1s cubic-bezier(0.77, 0, 0.175, 1) 0.3s forwards;
}

/* ===== PAGE TRANSITION OVERLAY ===== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== PARALLAX DEPTH ===== */
#particles-canvas,
.ambient-blob {
    will-change: transform;
}

/* ===== STAGGERED CARD CASCADE ALTERNATING OFFSET ===== */
.skill-card.reveal:not(.active),
.cert-card.reveal:not(.active),
.blog-card.reveal:not(.active),
.featured-card.reveal:not(.active),
.wid-card.reveal:not(.active),
.timeline-content.reveal:not(.active) {
    /* Base state handled by JS-applied inline styles */
}

/* ===== ROTATING GRADIENT BORDERS ON CARDS ===== */
@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate-gradient {
    to { --gradient-angle: 360deg; }
}

/* Rotating border uses border-image approach instead */
.skill-card,
.cert-card,
.featured-card,
.wid-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s;
}

.skill-card:hover,
.cert-card:hover,
.featured-card:hover,
.wid-card:hover {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.15), 0 0 40px rgba(118, 75, 162, 0.08);
}

/* ===== SCROLL SPOTLIGHT ===== */
.scroll-spotlight {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(102, 126, 234, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] .scroll-spotlight {
    background: radial-gradient(ellipse, rgba(102, 126, 234, 0.02), transparent 70%);
}

/* ===== ANIMATED THEME TOGGLE ===== */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: inline;
    transform: scale(1) rotate(0deg);
    opacity: 1;
}
[data-theme="dark"] .theme-toggle .moon-icon {
    display: inline;
    position: absolute;
    transform: scale(0) rotate(-90deg);
    opacity: 0;
}
[data-theme="light"] .theme-toggle .sun-icon {
    display: inline;
    position: absolute;
    transform: scale(0) rotate(90deg);
    opacity: 0;
}
[data-theme="light"] .theme-toggle .moon-icon {
    display: inline;
    transform: scale(1) rotate(0deg);
    opacity: 1;
}


/* ===== FLOATING TECH ICONS ===== */
.floating-icons {
    position: absolute;
    inset: -30px;
    pointer-events: none;
    z-index: 1;
}

.float-icon {
    position: absolute;
    font-size: 1.3rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.float-icon-1 { top: 0%; left: 10%; animation: float-bob 3s ease-in-out infinite; }
.float-icon-2 { top: 15%; right: -5%; animation: float-bob 3.5s ease-in-out 0.5s infinite; }
.float-icon-3 { bottom: 40%; right: -8%; animation: float-bob 4s ease-in-out 1s infinite; }
.float-icon-4 { bottom: 15%; right: 5%; animation: float-bob 3.2s ease-in-out 0.3s infinite; }
.float-icon-5 { top: 45%; left: 5%; animation: float-bob 3.8s ease-in-out 0.8s infinite; }

@keyframes float-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(4deg); }
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ===== RESPONSIVE: 768px ===== */
@media (max-width: 768px) {
    .floating-icons {
        display: none;
    }
    .scroll-spotlight {
        display: none;
    }
    .container {
        padding: 0 1.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--nav-bg-scrolled);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem;
        gap: 0.5rem;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-avatar {
        order: -1;
    }

    .avatar-ring img {
        width: 250px;
        height: 310px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-role {
        font-size: 1.1rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-bio {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-code-float {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .wid-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number,
    .stat-suffix {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .timeline {
        padding-left: 2rem;
    }

    .timeline-dot {
        left: -2rem;
    }

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

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

    .blog-grid,
    .blog-skeleton {
        grid-template-columns: 1fr;
    }

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

    .filter-bar,
    .filter-bar-inner {
        flex-direction: column;
    }

    .search-wrapper {
        width: 100%;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .exp-header {
        flex-direction: column;
    }
}

/* ===== RESPONSIVE: 480px ===== */
@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .hero-role {
        font-size: 1rem;
        min-height: 2rem;
    }

    .hero-bio {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .avatar-ring img {
        width: 200px;
        height: 200px;
    }

    .wid-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number,
    .stat-suffix {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.88rem;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.92rem;
    }

    .social-icon span.social-text {
        display: none;
    }

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

    .contact-desc {
        font-size: 0.95rem;
    }

    .contact-actions {
        flex-direction: column;
        align-items: center;
    }

    .blog-grid,
    .blog-skeleton {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .project-img-wrapper {
        height: 180px;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
    }
}
