/* ===================================
   RESET & BASE STYLES
   =================================== */

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

:root {
    /* Colors - Refined Dark Grey Palette */
    --color-bg: #131313;
    --color-bg-secondary: #1a1a1a;
    --color-bg-tertiary: #0d0d0d;
    --color-surface: #1f1f1f;
    --color-surface-elevated: #252525;
    --color-text: #f5f5f5;
    --color-text-secondary: #a8a8a8;
    --color-accent: #00d4ff;
    --color-accent-secondary: #6366f1;
    --color-accent-tertiary: #f59e0b;

    /* Typography */
    --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 180px;
    --section-padding-mobile: 100px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

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

/* ===================================
   CUSTOM CURSOR
   =================================== */

.cursor,
.cursor-follower {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out;
}

.cursor {
    background-color: var(--color-accent);
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    background-color: transparent;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s var(--ease-out-expo), width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo);
}

body.cursor-active .cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* ===================================
   NOISE OVERLAY
   =================================== */

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: 0.03;
    z-index: 100;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    animation: grain 8s steps(10) infinite;
    mix-blend-mode: overlay;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    background: linear-gradient(180deg, rgba(19, 19, 19, 0.95) 0%, rgba(19, 19, 19, 0) 100%);
    pointer-events: none;
}

.nav > * {
    pointer-events: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.3s var(--ease-out-expo);
}

.nav-logo:hover {
    opacity: 0.7;
}

.logo-icon {
    flex-shrink: 0;
    color: var(--color-accent);
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s var(--ease-out-expo);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out-expo);
}

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

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-contact {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.nav-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-expo);
    z-index: -1;
}

.nav-contact:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.nav-contact:hover::before {
    opacity: 0.1;
}

/* ===================================
   UTILITIES
   =================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 3rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   PARTICLE CANVAS
   =================================== */

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 35%),
        var(--color-bg);
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    animation: floatOrb 30s ease-in-out infinite;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--color-accent-secondary) 0%, transparent 70%);
    bottom: -250px;
    left: -150px;
    animation-delay: -15s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.15;
    }
    50% {
        transform: translate(-30px, -80px) scale(0.95);
        opacity: 0.12;
    }
    75% {
        transform: translate(30px, 30px) scale(1.05);
        opacity: 0.14;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1100px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding: 0.05em 0;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-bg);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
    border: none;
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-secondary) 0%, var(--color-accent) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-text,
.btn-arrow {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(20px); opacity: 0; }
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services {
    padding: var(--section-padding) 0;
    position: relative;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        var(--color-bg-secondary);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    opacity: 0.5;
    animation: gradientShift 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-20px) scale(1.05); opacity: 0.8; }
}

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

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.15) 0%,
        rgba(99, 102, 241, 0.15) 50%,
        rgba(245, 158, 11, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

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

.service-card:hover::after {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

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

.service-number {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.service-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.service-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-icon {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: var(--color-accent);
    opacity: 0.2;
    transition: all 0.5s var(--ease-out-expo);
}

.service-card:hover .service-icon {
    opacity: 0.5;
    transform: scale(1.1) rotate(5deg);
}

/* ===================================
   PROCESS SECTION
   =================================== */

.process {
    padding: var(--section-padding) 0;
    background: var(--color-bg-tertiary);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.process-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
}

.process-left .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.process-link {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 3rem;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.process-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out-expo);
}

.process-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.process-link:hover {
    opacity: 0.7;
}

.process-decorative {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    position: relative;
}

.process-decorative::before,
.process-decorative::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 50%;
}

.process-decorative::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
}

.process-decorative::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.process-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.process-text.large {
    font-size: 1.35rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.process-principles {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.principle {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.principle-label {
    min-width: 120px;
    font-weight: 500;
    color: var(--color-text);
}

.principle-bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.principle-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s var(--ease-out-expo);
}

.principle-bar.animated span {
    transform: scaleX(1);
}

/* ===================================
   WORK SECTION
   =================================== */

.work {
    padding: var(--section-padding) 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
        var(--color-bg-secondary);
    position: relative;
}

.work::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    animation: morphBlob 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 50% 50% 50% 50%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 60% 40% 50% 50%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 60% 40% 50%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 50% 50% 60% 40%;
        transform: rotate(270deg) scale(1.05);
    }
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.work-item {
    cursor: pointer;
    transition: transform 0.5s var(--ease-out-expo);
}

.work-item:hover {
    transform: translateY(-12px);
}

.work-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.work-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 20px);
    opacity: 0.5;
    transition: opacity 0.5s var(--ease-out-expo);
}

.work-item:hover .work-pattern {
    opacity: 0.8;
}

.work-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.work-tag {
    font-size: 0.8rem;
    color: var(--color-accent);
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.work-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.work-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.work-cta {
    text-align: center;
    margin-top: 5rem;
}

.work-link {
    display: inline-block;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 1.25rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.work-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    z-index: -1;
}

.work-link:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.work-link:hover::before {
    opacity: 0.1;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta {
    padding: calc(var(--section-padding) * 1.2) 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        var(--color-bg-tertiary);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        rgba(0, 212, 255, 0.03) 0deg,
        transparent 60deg,
        rgba(99, 102, 241, 0.03) 120deg,
        transparent 180deg,
        rgba(245, 158, 11, 0.03) 240deg,
        transparent 300deg,
        rgba(0, 212, 255, 0.03) 360deg
    );
    animation: rotateConic 30s linear infinite;
    pointer-events: none;
}

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

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.cta-title .line {
    display: block;
}

.cta-text {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.cta-email {
    display: inline-block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.3s var(--ease-out-expo);
}

.cta-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.cta-email:hover {
    color: var(--color-accent);
}

.cta-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.cta-decoration::before,
.cta-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 212, 255, 0.05);
    border-radius: 50%;
}

.cta-decoration::before {
    width: 800px;
    height: 800px;
}

.cta-decoration::after {
    width: 1000px;
    height: 1000px;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--color-bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-icon {
    color: var(--color-accent);
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.footer-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s var(--ease-out-expo);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 120px;
    }

    .container {
        padding: 0 2rem;
    }

    .process-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .process-decorative {
        margin: 0 auto;
    }

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

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

    .nav {
        padding: 1.5rem 1.5rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-contact {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

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

    .section-header {
        margin-bottom: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .cta-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

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

    .work-item {
        min-width: 100%;
    }
}

/* ===================================
   ANIMATIONS & TRANSITIONS
   =================================== */

/* Fade in on load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth reveal for elements */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   PAGE HEADER (Projects & About)
   =================================== */

.page-header {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 180px 0 120px;
    overflow: hidden;
    background: radial-gradient(ellipse at top left, rgba(0, 212, 255, 0.12), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.12), transparent 50%),
                radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.08), transparent 60%);
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.header-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-accent) 25%,
        var(--color-accent-secondary) 50%,
        var(--color-accent-tertiary) 75%,
        transparent 100%);
    opacity: 0.8;
    animation: shimmer 3s ease-in-out infinite, slideAccent 8s ease-in-out infinite;
}

@keyframes slideAccent {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

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

.header-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
    animation: gridFloat 20s linear infinite;
}

@keyframes gridFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

.page-header-content {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-meta {
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 700;
    margin-bottom: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.page-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}

.page-title-line {
    display: block;
    background: linear-gradient(135deg,
        var(--color-text) 0%,
        var(--color-accent) 50%,
        var(--color-accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
}

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

.page-title-line:nth-child(2) {
    animation-delay: -2s;
}

.page-title-line:nth-child(3) {
    animation-delay: -4s;
}

.page-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    color: var(--color-text-secondary);
    max-width: 750px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 300;
}

/* Page Stats */
.page-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.page-stat-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.page-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About Header Quote */
.about-header-quote {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--color-text-secondary);
    font-style: italic;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.6;
}

/* Active nav link */
.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Projects Header Visual Enhancement */
.projects-header .page-header-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
    opacity: 0.06;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatShape 20s ease-in-out infinite;
}

.projects-header .page-header-bg::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid var(--color-accent);
    opacity: 0.1;
    transform: rotate(45deg);
    animation: rotateShape 30s linear infinite;
}

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

@keyframes rotateShape {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* About Header Visual Enhancement */
.about-header .page-header-bg::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 8%;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--color-accent-secondary) 0%, var(--color-accent-tertiary) 100%);
    opacity: 0.08;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: floatShape 25s ease-in-out infinite reverse;
}

/* ===================================
   PROJECTS PAGE
   =================================== */

.projects-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-secondary);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) > * {
    direction: ltr;
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gradient-4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.gradient-5 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-6 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 20px);
    opacity: 0.5;
}

.project-content {
    padding: 2rem 0;
}

.project-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 0.8rem;
    color: var(--color-accent);
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

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

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===================================
   ABOUT PAGE
   =================================== */

.about-content {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

.about-section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.about-text-large {
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 400;
}

.about-text-large p {
    margin-bottom: 1.5rem;
}

.about-philosophy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* Principles Section */
.principles-section {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-bg-tertiary);
}

.principles-section .section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.principle-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s var(--ease-out-expo);
}

.principle-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
}

.principle-number {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.principle-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.principle-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Expertise Section */
.expertise-section {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-bg-secondary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.expertise-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-top: 1.5rem;
}

.expertise-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.expertise-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.expertise-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

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

/* Approach Section */
.approach-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-tertiary);
}

.approach-section .section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.approach-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    background: var(--color-bg);
    position: relative;
    z-index: 1;
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--color-accent) 0%, rgba(0, 212, 255, 0.2) 100%);
    margin-top: 1rem;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-phase {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.timeline-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.timeline-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link-nav {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s var(--ease-out-expo);
}

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

/* ===================================
   RESPONSIVE (Projects & About)
   =================================== */

@media (max-width: 1024px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-card:nth-child(even) {
        direction: ltr;
    }

    .about-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

    .expertise-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        min-height: 50vh;
        padding: 140px 0 80px;
    }

    .page-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-stat-value {
        font-size: 2rem;
    }

    .about-header-quote {
        font-size: 1.1rem;
        padding: 2rem 0;
    }

    .projects-grid {
        gap: 5rem;
    }

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

    .timeline-item {
        grid-template-columns: 40px 1fr;
        gap: 2rem;
        padding-bottom: 3rem;
    }

    .project-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ===================================
   ANIMATIONS FOR NEW PAGES
   =================================== */

.page-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
