/* ===== CSS Variables — DARK RED THEME (Default) ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d14;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #e8e8ec;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --border-color: rgba(255, 255, 255, 0.06);
    --accent: #c0392b;
    --accent-dark: #1e0a0a;
    --accent-glow: rgba(192, 57, 43, 0.5);
    --accent-glow-soft: rgba(192, 57, 43, 0.15);
    --accent-glow-strong: rgba(192, 57, 43, 0.6);
    --gradient-accent: linear-gradient(135deg, #8b0000, #c0392b);
}

[data-theme="blue"] {
    --accent: #1a3a8b;
    --accent-dark: #0a0a1e;
    --accent-glow: rgba(26, 58, 139, 0.5);
    --accent-glow-soft: rgba(26, 58, 139, 0.15);
    --accent-glow-strong: rgba(26, 58, 139, 0.6);
    --gradient-accent: linear-gradient(135deg, #0f2573, #1a3a8b);
}

[data-mode="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #eaeaef;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #7a7a9a;
    --border-color: rgba(0, 0, 0, 0.08);
}

[data-mode="light"][data-theme="red"] {
    --accent: #c0392b;
    --accent-dark: #fde8e6;
    --accent-glow: rgba(192, 57, 43, 0.25);
    --accent-glow-soft: rgba(192, 57, 43, 0.1);
    --accent-glow-strong: rgba(192, 57, 43, 0.4);
    --gradient-accent: linear-gradient(135deg, #8b0000, #c0392b);
}

[data-mode="light"][data-theme="blue"] {
    --accent: #1a3a8b;
    --accent-dark: #e6eaf7;
    --accent-glow: rgba(26, 58, 139, 0.25);
    --accent-glow-soft: rgba(26, 58, 139, 0.1);
    --accent-glow-strong: rgba(26, 58, 139, 0.4);
    --gradient-accent: linear-gradient(135deg, #0f2573, #1a3a8b);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s, color 0.4s;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

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

.loader-logo {
    overflow: visible;
}

.loader-text {
    font-family: 'Syne', sans-serif;
    font-size: 40px;
    font-weight: 800;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLogo 1.2s ease forwards;
}

@keyframes drawLogo {
    to { stroke-dashoffset: 0; fill: var(--accent); }
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #c0392b, #ff6b6b, #c0392b);
    z-index: 9999;
    transition: width 0.08s linear;
}

[data-theme="blue"] .scroll-progress {
    background: linear-gradient(90deg, #1a3a8b, #6b8bff);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 16px 0;
    transition: all 0.4s;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(30px) saturate(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(1.3);
    border-bottom: 1px solid rgba(192, 57, 43, 0.25);
    padding: 10px 0;
}

[data-mode="light"] .navbar.scrolled {
    background: rgba(245, 245, 247, 0.92);
}

[data-theme="blue"] .navbar.scrolled {
    border-bottom-color: rgba(26, 58, 139, 0.2);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Theme Switcher ===== */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.theme-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    outline: none;
}

.theme-dot-red { background: #c0392b; }
.theme-dot-blue { background: #1a3a8b; }

.theme-dot.active {
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transform: scale(1.15);
}

.theme-dot:hover:not(.active) {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ===== Mode Toggle ===== */
.mode-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.mode-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow-soft);
}

/* ===== Hamburger ===== */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow-soft);
}

.btn-service {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 25px;
    padding: 10px 28px;
    font-size: 14px;
    margin-top: auto;
}

.btn-service:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

.btn-mailto {
    margin-top: 8px;
    font-size: 14px;
    padding: 10px 24px;
}

/* ===== Glass Card ===== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(192, 57, 43, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow-soft);
}

[data-theme="blue"] .glass-card:hover {
    border-color: rgba(26, 58, 139, 0.2);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 80px;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow-soft) 0%, transparent 70%);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

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

.hero-photo {
    margin-bottom: 28px;
    position: relative;
    display: inline-block;
}

/* Particle Canvas — full-page background */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.photo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: none;
    background: conic-gradient(from 0deg, var(--accent), transparent 40%, var(--accent) 50%, transparent 90%, var(--accent));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
    animation: spinRing 4s linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

@keyframes spinRing {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
}

.photo-wrapper {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-accent);
    box-shadow: 0 0 40px rgba(192, 57, 43, 0.8), 0 0 80px rgba(192, 57, 43, 0.3), 0 0 120px rgba(192, 57, 43, 0.1);
    animation: float 4s ease-in-out infinite, photoGlow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

[data-theme="blue"] .photo-wrapper {
    box-shadow: 0 0 40px rgba(26, 58, 139, 0.8), 0 0 80px rgba(26, 58, 139, 0.3), 0 0 120px rgba(26, 58, 139, 0.1);
}

@keyframes photoGlow {
    0% { box-shadow: 0 0 40px rgba(192, 57, 43, 0.8), 0 0 80px rgba(192, 57, 43, 0.3), 0 0 120px rgba(192, 57, 43, 0.1); }
    100% { box-shadow: 0 0 50px rgba(192, 57, 43, 1), 0 0 100px rgba(192, 57, 43, 0.5), 0 0 140px rgba(192, 57, 43, 0.15); }
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 4px solid #c0392b;
}

[data-theme="blue"] .photo-wrapper img {
    border-color: #1a3a8b;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--accent);
}

/* Hero Entrance Animations */
.hero-anim {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: var(--delay, 0s);
}

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

.hero-greeting {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title-wrapper {
    height: 32px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
}

.typing-cursor {
    color: var(--accent);
    font-weight: 300;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

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

.name-cursor {
    color: var(--accent);
    font-weight: 300;
    animation: blink 0.6s infinite;
    margin-left: 1px;
}

.hero-available {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2ecc71;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.hero-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== Sections ===== */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--bg-secondary);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.section-tag {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.section-title em {
    font-style: normal;
    color: var(--accent);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-top: -35px;
    margin-bottom: 40px;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 40px;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text {
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.decorative-quote {
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 120px;
    font-family: 'Syne', serif;
    color: var(--accent);
    opacity: 0.12;
    line-height: 1;
    pointer-events: none;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.about-text p:first-of-type {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Skill Bars */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.skill-bar-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--gradient-accent);
    transition: width 1.2s ease-out;
}

.skill-bar-fill.animate {
    width: var(--target-width);
}

/* About Right */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    padding: 24px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-glow-soft) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.stat-icon {
    color: var(--accent);
    margin: 0 auto 8px;
    display: block;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    display: inline;
    position: relative;
    z-index: 1;
}

.stat-plus {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* Available Pill */
.available-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2ecc71;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    align-self: center;
    animation: pulse-pill 2s infinite;
}

@keyframes pulse-pill {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
}

/* Timeline */
.about-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 0;
}

.timeline-year {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.timeline-label {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: center;
}

.timeline-divider {
    flex: 1;
    min-width: 20px;
    height: 1px;
    background: var(--border-color);
    margin: 0 8px;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 28px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: scale(1.03);
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow), 0 12px 40px rgba(0, 0, 0, 0.3);
    background: rgba(192, 57, 43, 0.05);
}

[data-theme="blue"] .service-card:hover {
    background: rgba(26, 58, 139, 0.05);
}

.service-number {
    position: absolute;
    top: 10px;
    right: 16px;
    font-family: 'Syne', sans-serif;
    font-size: 80px;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.06;
    line-height: 1;
    pointer-events: none;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-dark);
    border: 1px solid var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 4px;
}

.service-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.service-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.service-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-tags span {
    font-size: 11px;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

/* ===== Tools Showcase (Skills) ===== */
.tools-showcase {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 44px;
    perspective: 1000px;
}

.tools-cat-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Hexagon grid layout */
.tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.tools-row .tool-card:nth-child(even) {
    margin-top: 30px;
}

.tool-card {
    width: 110px;
    height: 120px;
    perspective: 800px;
    cursor: default;
    opacity: 0;
    transform: perspective(800px) rotateX(60deg) rotateZ(var(--burst-rz, 15deg)) translateZ(-80px) scale(0.5);
    filter: blur(3px);
}

.tool-card.animate {
    animation: hexBurstIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Wave animation after entrance */
.tool-card.animate.wave {
    animation: hexBurstIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, hexWave 3s ease-in-out infinite;
    animation-delay: var(--anim-delay, 0ms), var(--wave-delay, 0ms);
}

@keyframes hexWave {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-8px) translateZ(10px); }
}

@keyframes hexBurstIn {
    0% { opacity: 0; transform: perspective(800px) rotateX(60deg) rotateZ(var(--burst-rz, 15deg)) translateZ(-80px) scale(0.5); filter: blur(3px); }
    60% { transform: perspective(800px) rotateX(-5deg) rotateZ(0deg) translateZ(20px) scale(1.05); filter: blur(0); }
    100% { opacity: 1; transform: perspective(800px) rotateX(0) rotateZ(0) translateZ(0) scale(1); filter: blur(0); }
}

.tool-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover .tool-card-inner {
    transform: rotateY(180deg);
}

.tool-card-front,
.tool-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    /* Hexagon clip path */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: none;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px 14px;
    text-align: center;
    transition: box-shadow 0.3s;
}

/* Hex border glow via layered background */
.tool-card-front {
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(135deg, transparent 30%, var(--accent-glow-soft) 50%, transparent 70%) border-box;
}

.tool-card:hover .tool-card-front {
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow-soft);
    filter: brightness(1.15);
}

.tool-card-back {
    transform: rotateY(180deg);
    background: var(--gradient-accent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.tool-card-back .tool-name {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

/* Glow behind skill icons */
.tool-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 18px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.tool-card:hover .tool-icon::after {
    opacity: 1;
}

.tool-icon img,
.tool-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.tool-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.2;
}

[data-mode="light"] .tool-icon {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-mode="light"] .tool-card-front,
[data-mode="light"] .tool-card-back {
    background: var(--bg-card);
}

/* ===== Projects ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    perspective: 1200px;
}

.project-card {
    overflow: visible;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
}

/* Neon border trace via pseudo-element */
.project-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(from var(--neon-angle, 0deg), transparent 0%, var(--accent) 10%, transparent 20%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
    animation: neonTrace 2s linear infinite;
}

@keyframes neonTrace {
    to { --neon-angle: 360deg; }
}

@property --neon-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Hover: scale + glow */
.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--accent-glow), 0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.project-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    border-radius: 16px 16px 0 0;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.2) 0%, rgba(10, 10, 15, 0.92) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 16px;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-overlay .overlay-title {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    transform: translateY(12px) translateZ(30px);
    opacity: 0;
    transition: transform 0.4s 0.08s, opacity 0.4s 0.08s;
}

.project-overlay .btn {
    transform: translateY(12px) translateZ(20px);
    opacity: 0;
    transition: transform 0.4s 0.15s, opacity 0.4s 0.15s, background 0.3s, box-shadow 0.3s;
}

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

.project-card:hover .project-overlay .overlay-title,
.project-card:hover .project-overlay .btn {
    transform: translateY(0) translateZ(0);
    opacity: 1;
}

.project-info {
    padding: 16px 20px;
}

.project-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-badge {
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-video {
    background: rgba(192, 57, 43, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(192, 57, 43, 0.3);
}

.cat-gfx {
    background: rgba(124, 58, 237, 0.15);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.project-tools {
    display: flex;
    gap: 6px;
}

.project-tools span {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Websites Section ===== */
.websites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.website-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

/* Hover: scale + glow */
.website-card:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow), 0 12px 40px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.browser-frame {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Browser top bar */
.browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

[data-mode="light"] .browser-bar {
    background: rgba(0, 0, 0, 0.03);
}


.browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.browser-dots span:hover {
    transform: scale(1.3);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(1):hover { box-shadow: 0 0 8px #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(2):hover { box-shadow: 0 0 8px #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-dots span:nth-child(3):hover { box-shadow: 0 0 8px #28c840; }

.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Inter', monospace;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s;
}

.browser-url:hover {
    border-color: var(--accent);
    color: var(--accent);
}

[data-mode="light"] .browser-url {
    background: rgba(0, 0, 0, 0.03);
}

.browser-url svg {
    flex-shrink: 0;
    color: #28c840;
}

/* Viewport with screenshot image */
.browser-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--card-bg);
}

.browser-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Hover overlay — only visible when iframe is not being interacted with */
.website-overlay {
    position: absolute;
    inset: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.15) 0%, rgba(10, 10, 15, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 28px 16px;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 16px;
    z-index: 3;
}

.website-card:hover .website-overlay {
    opacity: 1;
    pointer-events: auto;
}

.website-overlay .overlay-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s 0.05s ease-out, opacity 0.35s 0.05s ease-out;
}

.website-overlay .btn {
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s 0.12s ease-out, opacity 0.35s 0.12s ease-out, background 0.3s, box-shadow 0.3s;
}

.website-card:hover .website-overlay .overlay-title,
.website-card:hover .website-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}

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

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

/* ===== Graphic Design + Partner Layout ===== */
.gfx-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.partner-card {
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(192, 57, 43, 0.2);
}

[data-theme="blue"] .partner-card {
    border-color: rgba(26, 58, 139, 0.2);
}

.partner-photo-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-accent);
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--accent-glow-soft);
}

.partner-photo-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.partner-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.partner-label {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.partner-name {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.partner-title {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.partner-location {
    font-size: 12px;
    color: var(--text-muted);
}

.partner-available {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2ecc71;
    font-size: 12px;
    font-weight: 600;
}

.partner-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.partner-socials {
    display: flex;
    gap: 10px;
}

.partner-socials .social-icon {
    width: 40px;
    height: 40px;
}

.gfx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    perspective: 1200px;
}

/* ===== Contact ===== */
.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: -30px;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    text-align: center;
    font-size: 14px;
    color: #2ecc71;
    min-height: 20px;
}

.form-status.error { color: #e74c3c; }
.form-status.info { color: var(--accent); }

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: center;
}

.contact-info-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    background: var(--bg-card);
}

.social-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow-soft);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Syne', sans-serif;
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 800;
    color: var(--text-primary);
    opacity: 0.02;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 8px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-nav a:hover { color: var(--accent); }

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials .social-icon {
    width: 36px;
    height: 36px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 800;
    box-shadow: 0 4px 20px var(--accent-glow);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s;
    cursor: default;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .gfx-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gfx-layout {
        grid-template-columns: 1fr;
    }
    .partner-card {
        position: static;
        max-width: 320px;
        margin: 0 auto;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right 0.3s;
        border-left: 1px solid var(--border-color);
        z-index: 999;
    }

    [data-mode="light"] .nav-links {
        background: rgba(245, 245, 247, 0.97);
    }

    .nav-links.open { right: 0; }

    .nav-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .about-stats {
        flex-direction: row;
    }

    .stat-card {
        flex: 1;
        padding: 18px 12px;
    }

    .stat-number { font-size: 30px; }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero-name { font-size: clamp(24px, 7vw, 36px); letter-spacing: -1.5px; }

    .photo-wrapper {
        width: 220px;
        height: 220px;
    }

    .photo-ring {
        width: 270px;
        height: 270px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 36px;
    }

    .tools-row {
        gap: 10px;
    }

    .tools-row .tool-card:nth-child(even) {
        margin-top: 20px;
    }

    .tool-card {
        width: 95px;
        height: 105px;
    }

    .tool-card-front,
    .tool-card-back {
        padding: 14px 6px 10px;
        gap: 6px;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
    }

    .tool-icon img,
    .tool-icon svg {
        width: 24px;
        height: 24px;
    }

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

    .footer-nav { justify-content: center; }
    .footer-socials { justify-content: center; }

    .about-timeline {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-direction: column;
    }

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

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

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }

    .tools-row {
        gap: 8px;
        justify-content: center;
    }

    .tools-row .tool-card:nth-child(even) {
        margin-top: 18px;
    }

    .tool-card {
        width: 80px;
        min-width: 80px;
        height: 90px;
    }

    .tool-card-front,
    .tool-card-back {
        padding: 12px 4px 8px;
        gap: 4px;
    }

    .tool-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .tool-name {
        font-size: 11px;
    }

    .tools-cat-title {
        font-size: 16px;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Premium Enhancements ===== */

body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled .btn,
body.custom-cursor-enabled .project-thumb,
body.custom-cursor-enabled .social-icon,
body.custom-cursor-enabled input,
body.custom-cursor-enabled textarea,
body.custom-cursor-enabled .theme-dot,
body.custom-cursor-enabled .nav-menu-btn,
body.custom-cursor-enabled .mode-toggle {
    cursor: none;
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow-strong), 0 0 20px var(--accent-glow);
    pointer-events: none;
    opacity: 0;
    z-index: 10001;
    will-change: transform;
    transition: width 0.2s, height 0.2s, margin 0.2s, box-shadow 0.2s;
}

.custom-cursor-dot.cursor-hover {
    width: 12px;
    height: 12px;
    margin: -2px 0 0 -2px;
    box-shadow: 0 0 16px var(--accent-glow-strong), 0 0 30px var(--accent-glow);
}

.custom-cursor-circle {
    display: none;
}

/* ===== Scroll Progress Glow ===== */
.scroll-progress {
    box-shadow: 0 0 16px var(--accent-glow), 0 0 32px var(--accent-glow-soft);
}

/* ===== Enhanced Navbar Glassmorphism ===== */
.navbar.scrolled {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03), 0 14px 40px rgba(0, 0, 0, 0.24);
}

.navbar.scrolled::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 18%, rgba(255, 255, 255, 0.75) 50%, var(--accent) 82%, transparent 100%);
    opacity: 0.58;
    filter: blur(0.4px);
    pointer-events: none;
}

.nav-links a::after {
    left: 50%;
    transform: translateX(-50%) translate3d(0, 0, 0);
    transform-origin: center;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 0.35s ease, opacity 0.35s ease;
    opacity: 0.72;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a:focus-visible::after,
.nav-links a.touch-active::after {
    width: 100%;
    opacity: 1;
}

/* ===== Animated Hero Gradient ===== */
.hero {
    overflow: hidden;
}

.hero-bg-glow {
    top: auto;
    left: auto;
    transform: none;
    inset: 7% 7% auto;
    width: auto;
    height: 78%;
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.12), transparent 26%),
        radial-gradient(circle at 78% 28%, var(--accent-glow) 0%, transparent 30%),
        radial-gradient(circle at 52% 82%, rgba(255, 140, 90, 0.18), transparent 28%),
        linear-gradient(120deg, rgba(255, 90, 70, 0.12) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(255, 120, 80, 0.18) 52%, rgba(255, 255, 255, 0.03) 74%, rgba(120, 30, 20, 0.18) 100%);
    background-size: 170% 170%;
    background-position: 0% 50%;
    filter: blur(24px);
    opacity: 0.95;
    animation: heroGradientShift 18s ease-in-out infinite alternate;
    will-change: background-position, transform;
    transform: translate3d(0, 0, 0);
}

[data-theme="blue"] .hero-bg-glow {
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.14), transparent 26%),
        radial-gradient(circle at 80% 24%, rgba(26, 58, 139, 0.4), transparent 30%),
        radial-gradient(circle at 52% 82%, rgba(107, 139, 255, 0.22), transparent 28%),
        linear-gradient(120deg, rgba(26, 58, 139, 0.18) 0%, rgba(255, 255, 255, 0.05) 28%, rgba(82, 121, 255, 0.2) 52%, rgba(255, 255, 255, 0.04) 74%, rgba(15, 37, 115, 0.2) 100%);
    background-size: 170% 170%;
}

@keyframes heroGradientShift {
    0% {
        background-position: 0% 50%;
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: translate3d(0, -12px, 0) scale(1.04);
    }
    100% {
        background-position: 0% 100%;
        transform: translate3d(0, 0, 0) scale(1.08);
    }
}

/* ===== Performance: will-change only on hover ===== */
.custom-cursor-dot,
.custom-cursor-circle {
    will-change: transform;
}

.project-card:hover,
.service-card:hover,
.website-card:hover {
    will-change: transform, box-shadow;
}

/* ===== Section Scroll Entrance ===== */
.section-reveal {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
    transform-origin: center bottom;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* ===== Card Stagger Entrance ===== */
.card-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: var(--card-delay, 0ms);
}

.card-reveal.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===== Staggered Section Entrances (legacy) ===== */
.stagger-children > * {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--stagger-delay, 0ms);
}

.stagger-children.stagger-visible > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ===== Touch Device Hover Equivalents ===== */
.service-card.touch-active {
    transform: scale(1.03);
}

.project-card.touch-active .project-overlay {
    opacity: 1;
}

.project-card.touch-active .project-thumb img {
    transform: scale(1.05);
}

.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn-service:focus-visible,
.btn.touch-active,
.social-icon:focus-visible,
.social-icon.touch-active,
.back-to-top:focus-visible,
.back-to-top.touch-active {
    transform: translate3d(0, -3px, 0);
}

.btn-outline.touch-active,
.btn-outline:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow-soft);
}

.btn-primary.touch-active,
.btn-primary:focus-visible {
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.btn-service.touch-active,
.btn-service:focus-visible {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.social-icon.touch-active,
.social-icon:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow-soft);
}

body.is-touch-device .custom-cursor-dot,
body.is-touch-device .custom-cursor-circle {
    display: none;
}

/* ===== Reduced Motion Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .custom-cursor-dot,
    .custom-cursor-circle {
        display: none !important;
    }

    .hero-bg-glow,
    .photo-ring,
    .photo-wrapper,
    .scroll-indicator,
    .pulse-dot,
    .available-pill,
    .tool-card-inner {
        animation: none !important;
    }

    .fade-in,
    .fade-in.visible,
    .section-reveal,
    .section-reveal.revealed,
    .card-reveal,
    .card-reveal.card-visible,
    .stagger-children > *,
    .stagger-children.stagger-visible > *,
    .project-card,
    .service-card,
    .btn,
    .social-icon,
    .back-to-top {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ===== Mobile hero gradient ===== */
@media (max-width: 768px) {
    .hero-bg-glow {
        inset: 12% 3% auto;
        height: 62%;
        filter: blur(18px);
    }
}
