/* Design System & Variables */
:root {
    /* Colors */
    --bg-color: #0d0d0e; /* Deep dark, almost black */
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f2f2f3;
    --text-secondary: #a0a0a5;
    
    --accent-primary: #ab9ff2; /* Phantom-ish Purple */
    --accent-glow: rgba(171, 159, 242, 0.4);
    --gradient-text: linear-gradient(135deg, #fff 0%, #ab9ff2 100%);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing */
    --container-padding: 24px;
    --section-spacing: 120px;
    
    /* Effects */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --blur-xl: 40px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.grid {
    display: grid;
    gap: 24px;
}

.section {
    padding: var(--section-spacing) 0;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.1;
    font-weight: 700;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(13, 13, 14, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav__list {
    display: none; /* Mobile first hidden, simpler for now */
}

@media (min-width: 768px) {
    .nav__list {
        display: flex;
        gap: 32px;
    }
    
    .nav__link {
        color: var(--text-secondary);
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .nav__link:hover {
        color: var(--text-primary);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero__bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
    /* Optimize animation */
    will-change: transform, opacity;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__title {
    font-size: clamp(3.5rem, 10vw, 6rem);
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 99px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn--primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

/* Components: Cards (Glassmorphism) */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(40px);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover {
    background: var(--surface-hover);
    transform: translateY(-5px);
    border-color: rgba(255,255,255, 0.15);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 24px;
}

.services__grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
}

/* Works Section */
.work-item {
    margin-bottom: 60px;
}

.work-item__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-item:hover .placeholder-img {
    transform: scale(1.03);
}

.color-1 { background: linear-gradient(45deg, #2a2a2a, #333); }
.color-2 { background: linear-gradient(45deg, #1f1f23, #2b2b30); }

.work-item__info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.work-item__info p {
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .works__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .work-item {
        margin-bottom: 0;
    }
}

/* Contact Section */
.contact__card {
    text-align: center;
    background: radial-gradient(circle at center, var(--surface-color) 0%, transparent 100%);
    border: 1px solid var(--border-color);
}

.contact__card h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 16px;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact__card p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
