/* ========================================
   VARIABLES & DESIGN TOKENS
   ======================================== */
:root {
    /* Primary Palette - Deep Indigo & Cyan */
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2e;
    --bg-tertiary: #141432;
    --bg-card: rgba(20, 20, 55, 0.6);
    --bg-card-hover: rgba(30, 30, 75, 0.8);
    --bg-glass: rgba(15, 15, 50, 0.7);

    /* Accent Colors */
    --accent-primary: #6c63ff;
    --accent-secondary: #00d4ff;
    --accent-tertiary: #ff6b9d;
    --accent-success: #00e676;
    --accent-warning: #ffd740;
    --accent-gradient: linear-gradient(135deg, #6c63ff, #00d4ff);
    --accent-gradient-alt: linear-gradient(135deg, #ff6b9d, #6c63ff);
    --accent-gradient-warm: linear-gradient(135deg, #ffd740, #ff6b9d);

    /* Text */
    --text-primary: #e8e8ff;
    --text-secondary: #a0a0c0;
    --text-muted: #6868a0;
    --text-accent: #00d4ff;

    /* Borders */
    --border-subtle: rgba(108, 99, 255, 0.15);
    --border-hover: rgba(108, 99, 255, 0.4);
    --border-active: rgba(0, 212, 255, 0.5);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.3);
    --shadow-glow-cyan: 0 0 30px rgba(0, 212, 255, 0.3);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

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

/* ========================================
   CURSOR GLOW
   ======================================== */
#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

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

/* ========================================
   LOADING SCREEN
   ======================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.code-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.loader-bracket {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bracketPulse 1.5s ease-in-out infinite;
}

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

.loader-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

.loader-text {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s steps(4, end) infinite;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(108, 99, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    animation: loaderFill 2s ease-in-out forwards;
}

/* ========================================
   NAVIGATION
   ======================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-medium);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
}

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

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-slash {
    color: var(--accent-secondary);
}

.nav-logo:hover .logo-bracket {
    color: var(--accent-secondary);
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: var(--transition-medium);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    border-left: 1px solid var(--border-subtle);
}

.mobile-menu.active {
    right: 0;
}

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

.mobile-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--text-primary);
    transform: translateX(8px);
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
.section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding);
    padding-left: 24px;
    padding-right: 24px;
}

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-primary);
    opacity: 0.7;
    display: block;
    margin-bottom: 12px;
}

.closing-tag {
    margin-top: 48px;
    text-align: center;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 4px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-content {
    max-width: 640px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--accent-success);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
}

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

.hero-title {
    margin-bottom: 24px;
}

.hero-greeting {
    display: block;
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.hero-name {
    display: block;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
}

.name-letter {
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: letterFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
    transition: var(--transition-spring);
}

.name-letter:hover {
    transform: translateY(-8px) scale(1.1);
    filter: brightness(1.3);
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 400;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.role-prefix {
    color: var(--accent-primary);
    font-weight: 700;
}

.typed-text {
    color: var(--accent-secondary);
    font-weight: 500;
}

.typed-cursor {
    color: var(--accent-primary);
    animation: cursorBlink 0.8s step-end infinite;
    font-weight: 300;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 18px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.stat-plus {
    font-size: 24px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* Hero Visual - Code Window */
.hero-visual {
    position: absolute;
    right: max(5%, calc(50% - 600px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.85;
}

.code-window {
    width: 380px;
    background: rgba(15, 15, 40, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: perspective(800px) rotateY(-8deg) rotateX(3deg);
    transition: var(--transition-medium);
    animation: codeFloat 6s ease-in-out infinite;
}

.code-window:hover {
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(108, 99, 255, 0.4);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}

.code-dots {
    display: flex;
    gap: 6px;
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.code-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
}

.code-body code {
    white-space: pre;
}

.code-keyword { color: #c792ea; }
.code-variable { color: #82aaff; }
.code-property { color: #f78c6c; }
.code-string { color: #c3e88d; }
.code-method { color: #82aaff; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    z-index: 5;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDotMove 2s ease-in-out infinite;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-container {
    position: relative;
    width: 350px;
    height: 420px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 2;
}

.image-border-glow {
    position: absolute;
    inset: -4px;
    border-radius: var(--border-radius-lg);
    background: var(--accent-gradient);
    z-index: 1;
    opacity: 0.6;
    filter: blur(8px);
    animation: glowPulse 3s ease-in-out infinite;
}

.image-float-badge {
    position: absolute;
    z-index: 3;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    animation: badgeFloat 4s ease-in-out infinite;
}

.badge-top {
    top: 20px;
    right: -30px;
}

.badge-bottom {
    bottom: 20px;
    left: -30px;
    animation-delay: 1s;
}

.about-subtitle {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-paragraph {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.highlight-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-medium);
}

.highlight-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.highlight-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.highlight-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.highlight-item span {
    font-size: 12px;
    color: var(--text-muted);
}

.about-cta {
    margin-top: 12px;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    padding: 28px;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-medium);
}

.skill-category:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

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

.category-icon {
    font-size: 28px;
}

.category-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.skill-emoji {
    font-size: 18px;
}

.skill-name {
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    color: var(--text-secondary);
}

.skill-bar {
    flex: 1;
    height: 6px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
    opacity: 0;
    transition: opacity 0.3s ease 1s;
}

.skill-category.animated .skill-bar-fill {
    width: var(--level);
}

.skill-category.animated .skill-bar-fill::after {
    opacity: 1;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-medium);
    font-family: var(--font-primary);
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-medium);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.project-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-image-gradient {
    background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 50%, #0f0f3e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-project-content {
    padding: 16px;
    width: 100%;
}

.terminal-mockup {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.8;
}

.terminal-line {
    color: var(--text-secondary);
}

.terminal-prompt {
    color: var(--accent-success);
    margin-right: 8px;
}

.terminal-success {
    color: var(--accent-success);
    margin-right: 4px;
}

.terminal-cursor {
    animation: cursorBlink 0.8s step-end infinite;
    color: var(--accent-success);
}

.terminal-line.blink {
    animation: terminalBlink 1s step-end infinite;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 30, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

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

.project-overlay-content {
    display: flex;
    gap: 16px;
}

.project-link-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(108, 99, 255, 0.2);
    border: 1px solid var(--accent-primary);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
    transform: translateY(10px);
}

.project-card:hover .project-link-btn {
    transform: translateY(0);
}

.project-link-btn:hover {
    background: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5);
}

.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    z-index: 3;
}

.project-info {
    padding: 24px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 4px 12px;
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 50px;
    font-size: 12px;
    color: var(--accent-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.tech-tag:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: var(--accent-primary);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.service-card.featured {
    border-color: var(--accent-primary);
    background: rgba(108, 99, 255, 0.08);
}

.service-card.featured::before {
    transform: scaleX(1);
}

.service-popular-badge {
    position: absolute;
    top: 16px;
    right: -30px;
    background: var(--accent-gradient);
    color: white;
    padding: 4px 40px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
}

.service-icon-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    font-size: 36px;
    position: relative;
    z-index: 2;
}

.service-icon-bg {
    position: absolute;
    inset: 0;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 20px;
    transform: rotate(45deg);
    transition: var(--transition-medium);
}

.service-card:hover .service-icon-bg {
    transform: rotate(0deg);
    background: rgba(108, 99, 255, 0.2);
    border-radius: 50%;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.service-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-success);
    font-weight: 700;
}

.service-price {
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.price-from {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.price-amount {
    font-size: 24px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    min-height: auto;
    background: var(--bg-secondary);
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition-medium);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.testimonial-stars {
    font-size: 16px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-medium);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.12);
    border-radius: 12px;
    color: var(--accent-secondary);
    transition: var(--transition-medium);
}

.contact-card-icon svg {
    color: var(--accent-secondary);
    fill: var(--accent-secondary);
    stroke: var(--accent-secondary);
}

.contact-card-icon svg[fill="none"] {
    fill: none;
}

.contact-card:hover .contact-card-icon {
    background: rgba(108, 99, 255, 0.25);
    transform: scale(1.05);
}

.contact-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card a {
    font-size: 14px;
    color: var(--accent-secondary);
}

.contact-card a:hover {
    color: var(--accent-primary);
}

.contact-social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: var(--transition-medium);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition-medium);
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236868a0' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: var(--transition-medium);
}

.form-group input:focus ~ .input-highlight,
.form-group select:focus ~ .input-highlight,
.form-group textarea:focus ~ .input-highlight {
    width: 100%;
}

.btn-submit {
    align-self: flex-start;
    margin-top: 8px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

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

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-links-group h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-group a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--accent-secondary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

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

.heart {
    animation: heartBeat 1.5s ease-in-out infinite;
    display: inline-block;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-medium);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.6);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */
@keyframes bracketPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

@keyframes loaderFill {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

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

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

@keyframes codeFloat {
    0%, 100% { transform: perspective(800px) rotateY(-8deg) rotateX(3deg) translateY(0); }
    50% { transform: perspective(800px) rotateY(-8deg) rotateX(3deg) translateY(-12px); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollDotMove {
    0% { top: 6px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

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

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    56% { transform: scale(1); }
}

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

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

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

    .hero-content {
        text-align: center;
        max-width: 600px;
    }

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

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

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-image-container {
        width: 280px;
        height: 340px;
    }

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

    .highlight-item {
        justify-content: center;
    }

    .about-cta {
        display: inline-flex;
    }

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

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

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

    .testimonials-carousel {
        grid-template-columns: 1fr;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-section {
        padding: 100px 20px 60px;
    }

    .hero-name {
        font-size: 48px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

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

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

    .section-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .btn-submit {
        align-self: stretch;
    }

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

@media (max-width: 480px) {
    .hero-name {
        font-size: 36px;
    }

    .hero-role {
        font-size: 16px;
    }

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

    .btn {
        justify-content: center;
    }

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

    .about-image-container {
        width: 240px;
        height: 300px;
    }

    .badge-top,
    .badge-bottom {
        display: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 99, 255, 0.5);
}

/* Selection */
::selection {
    background: rgba(108, 99, 255, 0.3);
    color: white;
}

/* ========================================
   DEMO MODAL
   ======================================== */
#demo-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#demo-modal.active {
    opacity: 1;
    visibility: visible;
}

.demo-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.demo-modal-content {
    position: relative;
    width: 90vw;
    max-width: 1100px;
    height: 85vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

#demo-modal.active .demo-modal-content {
    transform: scale(1) translateY(0);
}

.demo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.demo-modal-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

#demo-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 22px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

#demo-modal-close:hover {
    background: rgba(255, 95, 87, 0.2);
    color: #ff5f57;
}

#demo-modal-iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: white;
}

/* ========================================
   GPU PERFORMANCE HINTS
   ======================================== */
#bg-canvas,
#cursor-glow,
.code-window,
.project-card,
.service-card {
    will-change: transform;
}

.animate-on-scroll {
    will-change: opacity, transform;
}

/* ========================================
   ENHANCED MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    /* Modal on mobile */
    .demo-modal-content {
        width: 96vw;
        height: 80vh;
        border-radius: 12px;
    }

    /* Touch-friendly tap targets */
    .btn {
        padding: 16px 28px;
        font-size: 16px;
        min-height: 48px;
    }

    .filter-btn {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px;
    }

    .project-link-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    /* Mobile nav improvements */
    .mobile-menu {
        width: 100%;
        right: -100%;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-link {
        font-size: 22px;
        padding: 8px 0;
    }

    /* Hero mobile polish */
    .hero-section {
        padding-top: 90px;
        padding-bottom: 40px;
        min-height: calc(100vh - 60px);
        text-align: center;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .hero-description {
        font-size: 15px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-role {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-name {
        font-size: clamp(40px, 12vw, 56px);
    }

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

    .scroll-indicator {
        bottom: 16px;
    }

    /* About mobile */
    .about-image-container {
        width: 260px;
        height: 320px;
    }

    .about-subtitle {
        font-size: 22px;
    }

    .about-paragraph {
        font-size: 15px;
    }

    /* Skills mobile */
    .skill-name {
        min-width: 90px;
        font-size: 13px;
    }

    .skill-category {
        padding: 20px 16px;
    }

    /* Projects mobile */
    .project-image-container {
        height: 180px;
    }

    .project-info {
        padding: 18px;
    }

    .project-title {
        font-size: 16px;
    }

    .project-description {
        font-size: 13px;
    }

    /* Services mobile */
    .service-card {
        padding: 24px 20px;
    }

    .service-popular-badge {
        font-size: 10px;
        padding: 3px 35px;
        right: -32px;
    }

    /* Testimonials mobile */
    .testimonial-card {
        padding: 24px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    /* Contact mobile */
    .contact-card {
        padding: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* prevents zoom on iOS */
        padding: 14px 16px;
    }

    .contact-social-links {
        justify-content: center;
    }

    /* Footer mobile */
    .footer-content {
        padding: 40px 16px 16px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* Section spacing mobile */
    .section-header {
        margin-bottom: 40px;
    }

    .closing-tag {
        margin-top: 32px;
    }

    .section-title {
        font-size: clamp(26px, 7vw, 36px);
    }

    /* Back to top - more accessible on mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 380px) {
    .hero-name {
        font-size: 32px;
    }

    .hero-role {
        font-size: 14px;
    }

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

    .about-image-container {
        width: 200px;
        height: 250px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .project-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(10, 10, 30, 0.9) 0%, transparent 60%);
    }

    .project-overlay-content {
        position: absolute;
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .project-link-btn {
        transform: none !important;
    }

    /* Disable tilt effect on touch */
    .project-card:hover,
    .service-card:hover {
        transform: none !important;
    }
}
