/* ==========================================
   CSS Variables & Reset
   ========================================== */
:root {
    --primary: #e63946;
    --primary-light: #ff6b6b;
    --primary-dark: #c1121f;
    --primary-glow: rgba(230, 57, 70, 0.35);
    --primary-subtle: rgba(230, 57, 70, 0.06);
    --bg-dark: #0d0a0e;
    --bg-section: #110d13;
    --bg-card: rgba(22, 16, 26, 0.7);
    --bg-card-solid: #16101a;
    --bg-card-hover: #1e1528;
    --bg-glass: rgba(25, 18, 32, 0.6);
    --text-primary: #f4f0f6;
    --text-secondary: #b0a8b8;
    --text-muted: #736c7e;
    --border: rgba(230, 57, 70, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --terminal-bg: #0e0a12;
    --terminal-green: #4ade80;
    --terminal-yellow: #fbbf24;
    --terminal-red: #ef4444;
    --shadow-3d: 0 2px 4px rgba(0,0,0,0.3), 0 8px 16px rgba(0,0,0,0.25), 0 20px 40px rgba(0,0,0,0.2);
    --shadow-3d-hover: 0 4px 8px rgba(230,57,70,0.15), 0 12px 24px rgba(0,0,0,0.3), 0 30px 60px rgba(0,0,0,0.25);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(230, 57, 70, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 50%, rgba(180, 30, 50, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 100% 80%, rgba(230, 57, 70, 0.04) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   Particle Canvas
   ========================================== */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   Floating Code Shapes (Hero)
   ========================================== */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    font-family: var(--font-mono);
    color: rgba(230, 57, 70, 0.08);
    font-size: 1.4rem;
    font-weight: 700;
    animation: floatShape 12s ease-in-out infinite;
    user-select: none;
}

.shape-1 { top: 15%; left: 8%; font-size: 1.8rem; animation-delay: 0s; animation-duration: 14s; }
.shape-2 { top: 25%; right: 12%; font-size: 2.2rem; animation-delay: -2s; animation-duration: 16s; color: rgba(230, 57, 70, 0.06); }
.shape-3 { bottom: 30%; left: 5%; font-size: 1.5rem; animation-delay: -4s; animation-duration: 11s; }
.shape-4 { top: 60%; left: 20%; font-size: 1.3rem; animation-delay: -6s; animation-duration: 18s; color: rgba(255, 255, 255, 0.04); }
.shape-5 { bottom: 20%; right: 8%; font-size: 1.6rem; animation-delay: -3s; animation-duration: 13s; }
.shape-6 { top: 40%; right: 25%; font-size: 1.4rem; animation-delay: -5s; animation-duration: 15s; color: rgba(230, 57, 70, 0.05); }

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    25% { transform: translateY(-20px) rotate(5deg); opacity: 1; }
    50% { transform: translateY(-8px) rotate(-3deg); opacity: 0.7; }
    75% { transform: translateY(-25px) rotate(4deg); opacity: 0.9; }
}

/* ==========================================
   Background Orbs (per-section glow blobs)
   ========================================== */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbDrift 15s ease-in-out infinite alternate;
}

.bg-orb-1 {
    width: 400px; height: 400px;
    background: rgba(230, 57, 70, 0.06);
    top: -10%; right: -5%;
    animation-delay: 0s;
}
.bg-orb-2 {
    width: 300px; height: 300px;
    background: rgba(180, 40, 60, 0.04);
    bottom: -5%; left: -3%;
    animation-delay: -5s;
    animation-duration: 18s;
}
.bg-orb-3 {
    width: 350px; height: 350px;
    background: rgba(230, 57, 70, 0.05);
    top: 10%; left: -8%;
    animation-delay: -3s;
}
.bg-orb-4 {
    width: 500px; height: 500px;
    background: rgba(230, 57, 70, 0.04);
    top: -20%; right: -10%;
    animation-delay: -7s;
    animation-duration: 20s;
}
.bg-orb-5 {
    width: 350px; height: 350px;
    background: rgba(230, 57, 70, 0.05);
    top: 5%; right: -5%;
    animation-delay: -2s;
}
.bg-orb-6 {
    width: 280px; height: 280px;
    background: rgba(180, 40, 60, 0.04);
    bottom: 5%; left: -5%;
    animation-delay: -8s;
    animation-duration: 17s;
}
.bg-orb-7 {
    width: 400px; height: 400px;
    background: rgba(230, 57, 70, 0.05);
    top: -15%; left: 50%;
    transform: translateX(-50%);
    animation-delay: -4s;
}

@keyframes orbDrift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -10px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
    100% { transform: translate(10px, -5px) scale(1.02); }
}

/* ==========================================
   Grid Lines (decorative background grid)
   ========================================== */
.bg-grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(230, 57, 70, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 57, 70, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

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

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(13, 10, 14, 0.6);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    border-bottom-color: var(--border);
    background: rgba(13, 10, 14, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(230, 57, 70, 0.05);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s;
}

.nav-logo:hover {
    color: var(--primary);
}

.logo-bracket {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    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(--primary);
    transition: width 0.3s;
}

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

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

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

.lang-toggle {
    display: flex;
    border: 1px solid rgba(230, 57, 70, 0.15);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(22, 16, 26, 0.5);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.3);
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 25% 40%, rgba(230, 57, 70, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 75% 60%, rgba(180, 30, 50, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, -5%) scale(1.1); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-portfolio {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 30px rgba(230, 57, 70, 0.3);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.1s;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.15));
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.6s;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 1s;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-outline {
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: var(--text-primary);
    background: rgba(230, 57, 70, 0.04);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(230, 57, 70, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.1);
}

/* Hero Logo */
.hero-logo {
    flex-shrink: 0;
    z-index: 1;
    opacity: 0;
    animation: fadeInScale 1s ease forwards 0.6s;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.logo-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 130px;
}

.logo-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, rgba(230, 57, 70, 0.05) 40%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
    filter: blur(8px);
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.logo-ring {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.25;
    animation: rotateSlow 20s linear infinite;
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(230, 57, 70, 0.4);
}

.logo-ring-2 {
    width: 340px;
    height: 340px;
    border-style: dashed;
    opacity: 0.1;
    animation-direction: reverse;
    animation-duration: 30s;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.logo-image {
    width: 320px;
    height: 320px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 25px rgba(230, 57, 70, 0.4)) drop-shadow(0 0 50px rgba(230, 57, 70, 0.15));
    transition: transform 0.4s ease;
    image-rendering: auto;
}

.logo-wrapper:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(230, 57, 70, 0.4)) drop-shadow(0 0 50px rgba(230, 57, 70, 0.15));
    image-rendering: auto;
}

.logo-fallback {
    display: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 1.4s;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ==========================================
   Sections General
   ========================================== */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 40% at 50% 50%, rgba(230, 57, 70, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.section .container {
    position: relative;
    z-index: 1;
}

.section:nth-child(even) {
    background: var(--bg-section);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    margin: 0 auto 50px;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

/* ==========================================
   About Section
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-3d);
    backdrop-filter: blur(10px);
}

.info-item:hover {
    border-color: rgba(230, 57, 70, 0.3);
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-3d-hover);
}

.info-item i {
    font-size: 1.3rem;
    color: var(--primary);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(230, 57, 70, 0.05));
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-weight: 600;
    font-size: 1rem;
}

/* ==========================================
   Terminal / Skills
   ========================================== */
.terminal {
    max-width: 750px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(230, 57, 70, 0.12);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.25),
        0 30px 70px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(230, 57, 70, 0.05);
}

.terminal-header {
    background: linear-gradient(180deg, #1e1828, #1a1524);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: var(--terminal-red); }
.dot-yellow { background: var(--terminal-yellow); }
.dot-green { background: var(--terminal-green); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    background: var(--terminal-bg);
    padding: 25px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.terminal-prompt {
    color: var(--terminal-green);
    white-space: nowrap;
}

.terminal-command {
    color: var(--text-primary);
}

.terminal-section {
    color: var(--primary);
}

.terminal-highlight {
    color: #fff;
    font-weight: 700;
}

.terminal-category {
    color: var(--terminal-yellow);
    font-weight: 600;
}

.skill-line {
    color: var(--text-muted);
}

.skill-name {
    color: var(--text-primary);
    display: inline-block;
    min-width: 110px;
}

.skill-bar {
    color: var(--primary);
    letter-spacing: -1px;
}

.skill-percent {
    color: var(--terminal-green);
    font-size: 0.8rem;
}

.terminal-cursor {
    color: var(--terminal-green);
    animation: blink 1s step-end infinite;
}

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

/* ==========================================
   Stats Section
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(230, 57, 70, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(230, 57, 70, 0.35);
    box-shadow: var(--shadow-3d-hover), 0 0 50px rgba(230, 57, 70, 0.08);
}

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

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.3));
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.stat-number::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

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

.service-card {
    padding: 35px 30px;
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), transparent 40%, transparent 60%, rgba(230, 57, 70, 0.08));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: var(--shadow-3d-hover), 0 0 50px rgba(230, 57, 70, 0.08);
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.3));
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.service-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(230, 57, 70, 0.04));
    color: var(--primary-light);
    border-radius: 20px;
    border: 1px solid rgba(230, 57, 70, 0.15);
    backdrop-filter: blur(5px);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-3d);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(230, 57, 70, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: var(--shadow-3d-hover), 0 0 50px rgba(230, 57, 70, 0.08);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(230, 57, 70, 0.3));
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.contact-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 20px;
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 10px;
    transition: all 0.3s;
    background: rgba(230, 57, 70, 0.04);
}

.contact-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transform: translateY(-2px);
}

/* Reviews Section */
.reviews-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 6px 0 0 0;
    margin-top: 8px;
}

.reviews-track {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 12px 4px;
    will-change: transform;
}

.review-card {
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 380px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow-3d);
}

.review-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.review-body { flex: 1; }
.review-name { font-weight: 700; color: #ffffff; font-size: 0.98rem; margin-bottom: 6px; }
.review-rating { color: #ffd166; font-size: 0.95rem; margin-bottom: 6px; }
.review-text { color: #ffffff; font-size: 0.95rem; line-height: 1.45; opacity: 0.97; }
.reviews-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 14px; }

.reviews-wrapper::-webkit-scrollbar { display: none; }
.reviews-wrapper { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-width: 768px) {
    .review-card { min-width: 240px; }
    .reviews-wrapper { padding: 6px 0; }
}

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

/* Ensure animation stays running (no pause on hover) */
.reviews-track { animation-timing-function: linear; animation-iteration-count: infinite; }

/* End Reviews styles */

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-dark), rgba(13, 10, 14, 1));
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.2), transparent);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Accessibility helpers */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   Toast
   ========================================== */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: bottom 0.4s ease;
    z-index: 9999;
    box-shadow: 0 8px 30px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.1);
}

.toast.show {
    bottom: 30px;
}

/* ==========================================
   Scroll Animations
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

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

    .logo-wrapper {
        width: 270px;
        height: 270px;
    }

    .logo-ring { width: 240px; height: 240px; }
    .logo-ring-2 { width: 270px; height: 270px; }
    .logo-image { width: 200px; height: 200px; }

    .about-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(17, 13, 19, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 20px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }

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

    .mobile-menu-btn {
        display: flex;
    }

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

    .section {
        padding: 70px 0;
    }

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

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

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

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

    .terminal-body {
        font-size: 0.72rem;
        padding: 15px;
    }

    .skill-name {
        min-width: 90px;
    }

    .floating-shapes { display: none; }
    .bg-grid-lines { display: none; }
}

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

    .about-info {
        grid-template-columns: 1fr;
    }

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

    .logo-wrapper {
        width: 200px;
        height: 200px;
    }

    .logo-ring { width: 180px; height: 180px; }
    .logo-ring-2 { width: 200px; height: 200px; }
    .logo-image { width: 150px; height: 150px; }
}
