/* ============================================
   ASPTech Studio - Premium Design System
   Theme: Enchanted Night Forest / Digital Miracles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Core Colors */
    --bg-primary: #050a0e;
    --bg-secondary: #0a1218;
    --bg-tertiary: #0d1a24;
    --bg-card: rgba(13, 26, 36, 0.6);
    --bg-card-hover: rgba(13, 26, 36, 0.85);
    
    /* Text */
    --text-primary: #e8f0f2;
    --text-secondary: rgba(200, 220, 230, 0.7);
    --text-muted: rgba(200, 220, 230, 0.4);
    
    /* Accent Gradient */
    --accent-emerald: #00f5a0;
    --accent-cyan: #00d9f5;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-amber: #f59e0b;
    
    /* Glassmorphism */
    --glass-bg: rgba(13, 26, 36, 0.4);
    --glass-border: rgba(0, 245, 160, 0.08);
    --glass-blur: 20px;
    
    /* Spacing */
    --section-padding: clamp(80px, 12vh, 160px);
    --container-max: 1200px;
    --container-padding: clamp(20px, 4vw, 60px);
    
    /* Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-emerald) var(--bg-secondary);
}

html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-emerald), var(--accent-purple));
    border-radius: 3px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: clip; /* clip instead of hidden to not break position: sticky */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 160, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

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

/* --- Mesh Gradient Background --- */
.mesh-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #00f5a0, transparent);
    top: -200px;
    left: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #a855f7, transparent);
    top: 40%;
    right: -150px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #00d9f5, transparent);
    bottom: -100px;
    left: 30%;
    animation: orbFloat3 22s ease-in-out infinite;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #065f46, transparent);
    top: 60%;
    left: -50px;
    animation: orbFloat4 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 80px) scale(1.1); }
    66% { transform: translate(-50px, 120px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, -60px) scale(1.15); }
    66% { transform: translate(60px, 40px) scale(0.85); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -80px) scale(1.1); }
}

@keyframes orbFloat4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(120px, -40px); }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 1100px;
    background: rgba(10, 18, 24, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 12px 12px 12px 24px;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 18, 24, 0.85);
    border-color: rgba(0, 245, 160, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-accent {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 100px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 245, 160, 0.08);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 100px;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 245, 160, 0.3);
}

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

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

.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);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 10, 14, 0.95);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-link:hover {
    color: var(--accent-emerald);
}

/* --- Hero Section (Scroll-Bound) --- */
.hero-scroll-track {
    /* Create scroll space to map to video length */
    height: 400vh;
    position: relative;
    z-index: 2;
}

.sticky-hero {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px var(--container-padding) 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.8;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 10, 14, 0.4) 0%, rgba(5, 10, 14, 0.95) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-emerald);
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0, 245, 160, 0); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    text-align: center;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

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

.text-glow {
    position: relative;
    display: inline-block;
}

.text-glow::after {
    content: 'Miracles';
    position: absolute;
    top: 0;
    left: 0;
    filter: blur(20px);
    opacity: 0.4;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-align: center;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    color: var(--bg-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 245, 160, 0.3);
}

.btn-primary.large {
    padding: 20px 48px;
    font-size: 1.1rem;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover .btn-shine {
    left: 120%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--accent-emerald);
    background: rgba(0, 245, 160, 0.05);
    transform: translateY(-2px);
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-emerald), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* --- Section Styles --- */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(0, 245, 160, 0.08);
    border: 1px solid rgba(0, 245, 160, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-emerald);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.section-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- About Section --- */
.about-section {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 2;
}

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

.about-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.about-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    border-color: rgba(0, 245, 160, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.about-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
}

.about-card-icon svg {
    width: 100%;
    height: 100%;
}

.about-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Projects Section --- */
.projects-section {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 2;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
}

.project-showcase:last-child {
    margin-bottom: 0;
}

.project-showcase.reverse {
    direction: rtl;
}

.project-showcase.reverse > * {
    direction: ltr;
}

.project-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    z-index: -1;
}

.glow-emerald { background: var(--accent-emerald); }
.glow-purple { background: var(--accent-purple); }
.glow-amber { background: var(--accent-amber); }

/* --- Project Mockup Screens --- */
.project-mockup {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 9/16;
    max-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-smooth);
}

.project-mockup:hover {
    transform: translateY(-10px) rotateX(2deg);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

.mockup-reflection {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 42%,
        rgba(255, 255, 255, 0.05) 44%,
        transparent 46%
    );
    pointer-events: none;
}

/* PrimeAudit Mockup */
.primeaudit-mockup .mockup-screen {
    background: linear-gradient(180deg, #0a1f1a, #081818);
}

.pa-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.pa-logo-mini {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--bg-primary);
}

.pa-logo-mini span {
    opacity: 0.7;
}

.pa-title-mini {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-emerald);
}

.pa-ai-bubble {
    display: flex;
    gap: 12px;
    background: rgba(0, 245, 160, 0.06);
    border: 1px solid rgba(0, 245, 160, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.pa-ai-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pa-ai-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.pa-typing-line {
    height: 8px;
    background: rgba(0, 245, 160, 0.15);
    border-radius: 4px;
    animation: typingPulse 1.5s ease-in-out infinite;
}

.pa-typing-line.short {
    width: 60%;
    animation-delay: 0.3s;
}

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

.pa-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.pa-day {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 0.7rem;
    text-align: center;
    color: var(--text-muted);
}

.pa-day.active {
    background: rgba(0, 245, 160, 0.1);
    border-color: rgba(0, 245, 160, 0.2);
    color: var(--accent-emerald);
}

.pa-day.current {
    background: rgba(0, 245, 160, 0.15);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    animation: currentDayPulse 2s ease-in-out infinite;
}

@keyframes currentDayPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(0, 245, 160, 0); }
}

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

.pa-progress-fill {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
    border-radius: 3px;
    animation: progressGrow 3s ease-in-out infinite;
}

@keyframes progressGrow {
    0%, 100% { width: 40%; }
    50% { width: 55%; }
}

/* Visionary Mockup */
.visionary-mockup .mockup-screen {
    background: linear-gradient(180deg, #1a0a2e, #0d0820);
}

.vis-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.vis-eye {
    font-size: 1.4rem;
}

.vis-title-mini {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-purple);
}

.vis-streak-circle {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vis-streak-circle svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: streakRotate 8s linear infinite;
}

@keyframes streakRotate {
    to { transform: rotate(360deg); }
}

.vis-streak-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-purple);
}

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

.vis-habits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vis-habit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.vis-habit.done {
    color: var(--accent-purple);
    border-color: rgba(168, 85, 247, 0.2);
}

.vis-habit.pending {
    opacity: 0.5;
}

/* MedStudio Mockup */
.medstudio-mockup .mockup-screen {
    background: linear-gradient(180deg, #1a1408, #141008);
}

.med-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.med-logo-mini {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-amber), #ef4444);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: white;
}

.med-logo-mini span {
    opacity: 0.7;
}

.med-title-mini {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-amber);
}

.med-article {
    margin-bottom: 16px;
}

.med-article-img {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1));
    border-radius: 12px;
    margin-bottom: 12px;
}

.med-article-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.med-line {
    height: 8px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
}

.med-line.short {
    width: 70%;
}

.med-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.med-cat {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.med-cat.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
}

.med-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--accent-amber);
    animation: aiBadgePulse 3s ease-in-out infinite;
}

@keyframes aiBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.1); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.1); }
}

/* --- Project Info --- */
.project-info {
    padding: 10px 0;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 245, 160, 0.08);
    border: 1px solid rgba(0, 245, 160, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-emerald);
    margin-bottom: 20px;
}

.project-badge.badge-purple {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.project-badge.badge-amber {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}

.badge-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulseDot 2s ease-in-out infinite;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.project-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 18px;
    font-style: italic;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Services Section --- */
.services-section {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 2;
}

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

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    transition: all var(--transition-smooth);
    transition-delay: var(--delay, 0s);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
    transition: width var(--transition-smooth);
    border-radius: 3px;
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    border-color: rgba(0, 245, 160, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::after {
    width: 60%;
}

.service-icon {
    width: 52px;
    height: 52px;
    color: var(--accent-emerald);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

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

/* --- Tech Marquee --- */
.tech-marquee-section {
    position: relative;
    z-index: 2;
    padding: 40px 0;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-track {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.marquee-dot {
    font-size: 0.6rem;
    color: var(--accent-emerald);
    opacity: 0.4;
}

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

/* --- Contact Section --- */
.contact-section {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 2;
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-actions {
    margin: 32px 0 40px;
}

.contact-channels {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

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

.channel-link svg {
    width: 20px;
    height: 20px;
}

.channel-link:hover {
    color: var(--accent-emerald);
    border-color: rgba(0, 245, 160, 0.2);
    background: rgba(0, 245, 160, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 245, 160, 0.1);
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--glass-border);
    background-image: url('footer-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Add a subtle dark overlay so the text stays readable */
    box-shadow: inset 0 0 0 2000px rgba(5, 10, 14, 0.85);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px var(--container-padding) 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    font-style: italic;
}

.footer-links-group {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-showcase.reverse {
        direction: ltr;
    }

    .project-visual {
        order: -1;
    }

    .project-mockup {
        max-width: 300px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

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

    .navbar {
        width: calc(100% - 24px);
        padding: 10px 10px 10px 18px;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-divider {
        height: 32px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-group {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .project-showcase {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

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

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

    .project-mockup {
        max-width: 260px;
    }

    .contact-channels {
        gap: 12px;
    }

    .channel-link {
        width: 42px;
        height: 42px;
    }
}

/* ====================================
   Language Toggle
   ==================================== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 245, 160, 0.2);
}

.lang-toggle svg {
    color: var(--accent-1);
}

/* Make space in nav if needed */
.nav-links {
    margin-right: 10px;
}
@media (max-width: 900px) {
    .lang-toggle {
        margin-right: 10px;
    }
}
