/* ======================================
   INVOVIBE TECH - Cinematic Tech Website
   Color Palette from Logo:
   - Deep Navy: #0a0e27
   - Primary Cyan: #00b4d8
   - Accent Blue: #0077b6
   - Light Cyan: #90e0ef
   - Silver: #c0c0c0
   ====================================== */

/* ---- CSS Custom Properties ---- */
:root {
    --bg-primary: #050816;
    --bg-secondary: #0a0e27;
    --bg-card: rgba(15, 23, 60, 0.6);
    --bg-card-hover: rgba(20, 30, 80, 0.8);

    --cyan: #00b4d8;
    --cyan-bright: #00e5ff;
    --cyan-dim: #0077b6;
    --cyan-glow: rgba(0, 180, 216, 0.3);
    --cyan-subtle: rgba(0, 180, 216, 0.08);

    --text-primary: #e8eaed;
    --text-secondary: #8892b0;
    --text-dim: #5a6380;

    --gradient-primary: linear-gradient(135deg, #00b4d8, #0077b6);
    --gradient-hero: linear-gradient(180deg, transparent, rgba(5, 8, 22, 0.8) 60%, #050816);
    --gradient-card: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(0, 119, 182, 0.05));

    --border-subtle: rgba(0, 180, 216, 0.15);
    --border-card: rgba(0, 180, 216, 0.1);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-height: 80px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: rgba(0, 180, 216, 0.3);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Cursor Glow ---- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 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;
}

/* ---- Preloader ---- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.circuit-loader {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 30px;
}

.circuit-line {
    position: absolute;
    background: var(--cyan);
    animation: circuitPulse 2s ease-in-out infinite;
}

.cl-1 { width: 2px; height: 40px; top: 0; left: 50%; transform: translateX(-50%); }
.cl-2 { width: 40px; height: 2px; top: 50%; left: 0; transform: translateY(-50%); animation-delay: 0.3s; }
.cl-3 { width: 2px; height: 40px; bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.6s; }
.cl-4 { width: 40px; height: 2px; top: 50%; right: 0; transform: translateY(-50%); animation-delay: 0.9s; }

.circuit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-bright);
    box-shadow: 0 0 12px var(--cyan);
    animation: nodePulse 2s ease-in-out infinite;
}

.cn-1 { top: -4px; left: 50%; transform: translateX(-50%); }
.cn-2 { top: 50%; left: -4px; transform: translateY(-50%); animation-delay: 0.3s; }
.cn-3 { bottom: -4px; left: 50%; transform: translateX(-50%); animation-delay: 0.6s; }
.cn-4 { top: 50%; right: -4px; transform: translateY(-50%); animation-delay: 0.9s; }
.cn-5 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 0.15s; width: 12px; height: 12px; }

@keyframes circuitPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.cn-1 { transform: translateX(-50%); }
.cn-2 { transform: translateY(-50%); }
.cn-3 { transform: translateX(-50%); }
.cn-4 { transform: translateY(-50%); }

@keyframes nodePulse {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 8px var(--cyan); }
    50% { opacity: 1; box-shadow: 0 0 20px var(--cyan-bright); }
}

.preloader-text {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.preloader-letter {
    font-size: 28px;
    font-weight: 800;
    color: var(--cyan);
    opacity: 0;
    animation: letterReveal 0.5s forwards;
    animation-delay: calc(var(--i) * 0.08s);
    text-shadow: 0 0 20px var(--cyan-glow);
}

.preloader-space {
    width: 12px;
}

.preloader-subtext {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: 8px;
}

.preloader-sub-letter {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-secondary);
    opacity: 0;
    animation: letterReveal 0.5s forwards;
    animation-delay: calc(1s + var(--i) * 0.06s);
}

@keyframes letterReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 8, 22, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border-subtle);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.nav-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--cyan-glow);
}

.nav-cta {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-cta:hover {
    box-shadow: 0 0 30px var(--cyan-glow);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 100;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    padding-top: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--cyan-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.5s;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 8px var(--cyan); }
    50% { box-shadow: 0 0 20px var(--cyan-bright); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.hero-line-1 {
    animation-delay: 0.7s;
    color: var(--text-secondary);
    font-size: 0.6em;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-line-2 {
    animation-delay: 0.9s;
}

.hero-line-3 {
    animation-delay: 1.1s;
    font-size: 0.85em;
}

.hero-line-3 em {
    font-style: normal;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-word-rotate {
    position: relative;
    display: inline-block;
}

.rotate-word {
    display: inline-block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateX(-50%) translateY(20px);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rotate-word.active {
    position: relative;
    left: auto;
    transform: none;
    opacity: 1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 1.3s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 1.5s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 8px 40px var(--cyan-glow);
    transform: translateY(-2px);
}

.btn-primary i {
    transition: var(--transition);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--cyan);
    background: var(--cyan-subtle);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 1.7s;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--cyan);
    display: inline;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--cyan);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 2s;
}

.hero-scroll span {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    position: relative;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 22px; opacity: 0.3; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Section Common ---- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--cyan);
    margin-bottom: 16px;
    padding: 4px 16px;
    background: var(--cyan-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- About Section ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-primary);
}

.about-highlights {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: start;
    gap: 16px;
}

.highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--cyan-subtle);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cyan);
    font-size: 18px;
}

.highlight-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.highlight-item p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 0;
}

/* 3D Holographic Cube */
.about-visual {
    position: sticky;
    top: 120px;
    display: flex;
    justify-content: center;
}

.holo-scene {
    width: 500px;
    height: 560px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* Ambient glow behind the cube */
.holo-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 240, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    animation: holoGlowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes holoGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Orbiting rings */
.holo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 200, 240, 0.15);
    animation: holoOrbit 12s linear infinite;
}

.holo-ring-1 {
    width: 440px;
    height: 440px;
    border-color: rgba(0, 200, 240, 0.12);
    animation-duration: 15s;
}

.holo-ring-2 {
    width: 380px;
    height: 380px;
    border-color: rgba(0, 200, 240, 0.08);
    animation-duration: 20s;
    animation-direction: reverse;
    transform: rotateX(60deg);
}

.holo-ring-3 {
    width: 460px;
    height: 460px;
    border-color: rgba(0, 200, 240, 0.06);
    animation-duration: 25s;
    transform: rotateY(60deg);
}

.holo-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-bright);
    box-shadow: 0 0 15px var(--cyan), 0 0 30px rgba(0, 200, 240, 0.4);
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes holoOrbit {
    from { transform: rotateY(0deg) rotateX(20deg); }
    to { transform: rotateY(360deg) rotateX(20deg); }
}

/* The 3D cube */
.holo-cube {
    width: 260px;
    height: 260px;
    position: relative;
    transform-style: preserve-3d;
    animation: holoCubeRotate 20s ease-in-out infinite;
    z-index: 2;
    cursor: grab;
}

.holo-cube:active {
    cursor: grabbing;
    animation-play-state: paused;
}

@keyframes holoCubeRotate {
    0%   { transform: rotateX(-15deg) rotateY(0deg); }
    25%  { transform: rotateX(10deg) rotateY(90deg); }
    50%  { transform: rotateX(-5deg) rotateY(180deg); }
    75%  { transform: rotateX(15deg) rotateY(270deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

.holo-face {
    position: absolute;
    width: 260px;
    height: 260px;
    backface-visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 20, 50, 0.4);
    border: 1px solid rgba(0, 200, 240, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.5s, box-shadow 0.5s;
}

.holo-face:hover {
    border-color: rgba(0, 220, 255, 0.6);
    box-shadow: inset 0 0 40px rgba(0, 200, 240, 0.1), 0 0 30px rgba(0, 200, 240, 0.15);
}

.holo-front  { transform: rotateY(0deg) translateZ(130px); }
.holo-back   { transform: rotateY(180deg) translateZ(130px); }
.holo-right  { transform: rotateY(90deg) translateZ(130px); }
.holo-left   { transform: rotateY(-90deg) translateZ(130px); }
.holo-top    { transform: rotateX(90deg) translateZ(130px); }
.holo-bottom { transform: rotateX(-90deg) translateZ(130px); }

/* Glowing edges on the cube */
.holo-face::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(0, 220, 255, 0.3), transparent, rgba(0, 180, 216, 0.2)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.holo-face-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 20px;
}

.holo-face-inner i {
    font-size: 48px;
    color: var(--cyan-bright);
    filter: drop-shadow(0 0 12px rgba(0, 220, 255, 0.6));
    transition: 0.4s;
}

.holo-face:hover .holo-face-inner i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 20px rgba(0, 220, 255, 0.9));
}

.holo-label {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.holo-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan);
    font-family: var(--font-mono);
    opacity: 0.8;
}

/* Base platform under cube */
.holo-base {
    position: absolute;
    bottom: 30px;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.holo-base-ring {
    width: 260px;
    height: 40px;
    border: 1px solid rgba(0, 200, 240, 0.15);
    border-radius: 50%;
    animation: basePulse 3s ease-in-out infinite;
}

.holo-base-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: baseDotOrbit 4s linear infinite;
}

@keyframes basePulse {
    0%, 100% { opacity: 0.4; transform: scaleX(1); }
    50% { opacity: 0.8; transform: scaleX(1.1); }
}

@keyframes baseDotOrbit {
    from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
}

/* Floating particles around the cube */
.holo-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.holo-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cyan-bright);
    box-shadow: 0 0 8px var(--cyan);
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

/* ---- Services Section ---- */
.services {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: var(--transition-slow);
}

.service-card:hover {
    border-color: var(--cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 180, 216, 0.12);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--cyan-subtle);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--cyan);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 30px var(--cyan-glow);
}

.service-glow {
    position: absolute;
    top: 50%;
    left: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cyan);
    filter: blur(40px);
    opacity: 0;
    transition: var(--transition-slow);
}

.service-card:hover .service-glow {
    opacity: 0.2;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.service-tech-tags span {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: 20px;
    color: var(--cyan);
    font-family: var(--font-mono);
}

/* ---- Featured Projects ---- */
.featured-projects {
    padding-bottom: 40px;
}

.featured-project {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 80px;
    border: 1px solid var(--border-card);
    transition: var(--transition-slow);
}

.featured-project:hover {
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: 0 30px 80px rgba(0, 180, 216, 0.08);
}

.featured-bg {
    position: absolute;
    inset: 0;
}

.featured-bg-gradient {
    width: 100%;
    height: 100%;
}

.cifa-gradient {
    background: linear-gradient(135deg, rgba(0, 100, 50, 0.15), rgba(0, 180, 216, 0.08), rgba(5, 8, 22, 0.95));
}

.drift-gradient {
    background: linear-gradient(135deg, rgba(100, 0, 180, 0.15), rgba(200, 50, 120, 0.08), rgba(5, 8, 22, 0.95));
}

.tpl-gradient {
    background: linear-gradient(135deg, rgba(0, 180, 160, 0.15), rgba(0, 200, 180, 0.08), rgba(5, 8, 22, 0.95));
}

.featured-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 60px;
    align-items: center;
}

.featured-content.reverse {
    direction: rtl;
}

.featured-content.reverse > * {
    direction: ltr;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(40, 200, 64, 0.1);
    border: 1px solid rgba(40, 200, 64, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #28c840;
    margin-bottom: 20px;
}

.badge-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 8px #28c840;
    animation: dotPulse 2s infinite;
}

.featured-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.featured-client {
    font-size: 15px;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: 20px;
}

.featured-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.featured-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}

.featured-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.featured-highlight i {
    color: var(--cyan);
    font-size: 14px;
}

.featured-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-tag {
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 6px 14px;
    background: var(--cyan-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--cyan);
}

/* App Store Buttons */
.featured-app-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: #fff;
}

.app-store-btn:hover {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.15);
    transform: translateY(-2px);
}

.app-store-btn .fa-apple {
    font-size: 32px;
    color: #fff;
}

.app-store-btn .fa-google-play {
    font-size: 26px;
    background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-store-small {
    display: block;
    font-size: 10px;
    color: #aaa;
    line-height: 1.2;
    font-weight: 500;
}

.app-store-big {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

/* Phone Mockups */
.featured-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-group {
    position: relative;
    width: 340px;
    height: 480px;
}

.phone-mockup {
    position: absolute;
    width: 240px;
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 180, 216, 0.1);
    transition: var(--transition-slow);
}

.phone-mockup:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 180, 216, 0.2);
}

.phone-front {
    bottom: 0;
    left: 0;
    z-index: 2;
}

.phone-back {
    top: 0;
    right: 0;
    z-index: 1;
    transform: scale(0.9);
    opacity: 0.8;
}

.phone-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Websites Showcase ---- */
.websites-showcase {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
}

.websites-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 22px;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan);
    animation: hintPulse 3s ease-in-out infinite;
}

.websites-hint i {
    font-size: 16px;
    animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { border-color: rgba(0, 180, 216, 0.15); }
    50% { border-color: rgba(0, 180, 216, 0.4); box-shadow: 0 0 20px rgba(0, 180, 216, 0.08); }
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.website-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    transition: var(--transition-slow);
    text-decoration: none;
    color: inherit;
}

.website-card:hover {
    border-color: var(--cyan);
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0, 180, 216, 0.12), 0 0 40px rgba(0, 180, 216, 0.06);
}

/* Browser Mockup */
.website-browser {
    background: #0d1117;
    overflow: hidden;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

.browser-url i {
    font-size: 10px;
    color: #28c840;
}

.browser-live-badge {
    padding: 3px 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-main);
    background: rgba(40, 200, 64, 0.15);
    color: #28c840;
    border: 1px solid rgba(40, 200, 64, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.browser-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 6px #28c840;
    animation: dotPulse 2s infinite;
}

.browser-screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.browser-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transition: transform 6s ease;
}

.website-card:hover .browser-screen img {
    transform: translateY(-15%);
}

/* Scan line effect on hover */
.browser-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 200, 240, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.website-card:hover .browser-screen::after {
    opacity: 1;
}

/* Glow border on top of screen */
.browser-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s;
}

.website-card:hover .browser-screen::before {
    opacity: 1;
}

.website-info {
    padding: 24px;
}

.website-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.website-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.website-link-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    transition: var(--transition);
}

.website-card:hover .website-link-label {
    gap: 12px;
}

.website-link-label i {
    font-size: 12px;
    transition: var(--transition);
}

.website-card:hover .website-link-label i {
    transform: translate(2px, -2px);
}

/* ---- Portfolio Grid ---- */
.portfolio {
    padding-top: 40px;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-main);
    background: transparent;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--cyan);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    transition: var(--transition-slow);
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(5, 8, 22, 0.95) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.portfolio-overlay-content {
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay-content {
    transform: translateY(0);
}

.portfolio-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.portfolio-overlay-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-overlay-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.portfolio-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 3px 8px;
    background: rgba(0, 180, 216, 0.15);
    border-radius: 4px;
    color: var(--cyan);
}

/* Portfolio Placeholder (for projects without images yet) */
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(0, 180, 216, 0.05));
    border: 1px dashed var(--border-subtle);
}

.portfolio-placeholder i {
    font-size: 40px;
    color: var(--cyan);
    opacity: 0.5;
}

.portfolio-placeholder span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ---- Tech Stack ---- */
.tech-stack {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.tech-category:hover {
    border-color: var(--border-subtle);
    transform: translateY(-4px);
}

.tech-cat-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.tech-cat-title i {
    color: var(--cyan);
}

.tech-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tech-item:hover {
    background: var(--cyan-subtle);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.tech-item i {
    font-size: 18px;
    color: var(--cyan);
    width: 20px;
    text-align: center;
}

/* ---- Contact Section ---- */
.contact {
    border-top: 1px solid var(--border-card);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--cyan-subtle);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-item a:hover {
    color: var(--cyan);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--cyan-subtle);
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    font-family: var(--font-main);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- Footer ---- */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-card);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 40px;
    gap: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    padding: 4px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--cyan);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-card);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-tagline {
    margin-top: 4px;
    font-size: 12px !important;
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-content {
        padding: 40px;
        gap: 32px;
    }

    .featured-title {
        font-size: 28px;
    }

    .websites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 8, 22, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 20px;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        position: static;
    }

    .holo-scene {
        width: 320px;
        height: 400px;
    }

    .holo-cube {
        width: 180px;
        height: 180px;
    }

    .holo-front  { transform: rotateY(0deg) translateZ(90px); }
    .holo-back   { transform: rotateY(180deg) translateZ(90px); }
    .holo-right  { transform: rotateY(90deg) translateZ(90px); }
    .holo-left   { transform: rotateY(-90deg) translateZ(90px); }
    .holo-top    { transform: rotateX(90deg) translateZ(90px); }
    .holo-bottom { transform: rotateX(-90deg) translateZ(90px); }

    .holo-face {
        width: 180px;
        height: 180px;
    }

    .holo-face-inner i {
        font-size: 32px;
    }

    .holo-label {
        font-size: 14px;
    }

    .holo-sub {
        font-size: 11px;
    }

    .holo-ring-1 { width: 300px; height: 300px; }
    .holo-ring-2 { width: 260px; height: 260px; }
    .holo-ring-3 { width: 320px; height: 320px; }

    .holo-glow { width: 240px; height: 240px; }
    .holo-base-ring { width: 180px; }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .featured-content,
    .featured-content.reverse {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        direction: ltr;
    }

    .featured-visual {
        order: -1;
    }

    .phone-mockup-group {
        width: 280px;
        height: 400px;
    }

    .phone-mockup {
        width: 200px;
    }

    .featured-highlights {
        grid-template-columns: 1fr;
    }

    .featured-app-links {
        flex-direction: column;
    }

    .app-store-btn {
        justify-content: center;
        width: 100%;
    }

    .websites-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-scroll {
        display: none;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 48px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .code-content {
        font-size: 11px;
    }

    .terminal-content {
        font-size: 11px;
    }

    .featured-desc {
        font-size: 14px;
    }

    .featured-stack {
        gap: 6px;
    }

    .stack-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-line-1 {
        font-size: 0.5em;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .featured-project {
        margin-bottom: 48px;
        border-radius: var(--radius-lg);
    }

    .featured-title {
        font-size: 24px;
    }

    .featured-client {
        font-size: 13px;
    }

    .phone-mockup-group {
        width: 240px;
        height: 350px;
    }

    .phone-mockup {
        width: 170px;
    }

    .app-store-btn {
        padding: 10px 20px;
    }

    .app-store-big {
        font-size: 14px;
    }

    .about-code-card,
    .terminal-card {
        border-radius: var(--radius-sm);
    }

    .highlight-item {
        gap: 12px;
    }

    .highlight-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .contact-socials {
        margin-top: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}
