/* assets/css/style.css */
:root {
    /* Light Theme (Default - Apple aesthetic) */
    --bg-color: #fbfbfd;
    --text-color: #1d1d1f;
    --text-muted: #86868b;
    --brand-accent: #0066cc;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --border-color: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --button-text: #ffffff;
}

:root[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --text-muted: #86868b;
    --brand-accent: #2997ff;
    --glass-bg: rgba(29, 29, 31, 0.72);
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: #1c1c1e;
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    --button-text: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-accent);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 400;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.sun-icon { display: none; }
:root[data-theme="dark"] .sun-icon { display: block; }
:root[data-theme="dark"] .moon-icon { display: none; }

.lang-switch {
    font-size: 0.85rem;
    display: flex;
    gap: 0.5rem;
}
.lang-switch .active {
    font-weight: 700;
    color: var(--brand-accent);
}

/* Sections */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--brand-accent);
    color: var(--button-text);
    border-radius: 980px; /* Apple pill style */
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    color: var(--button-text);
    transform: scale(1.02);
    opacity: 0.9;
}

/* Services / Features */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.card {
    background-color: var(--card-bg);
    border-radius: 18px;
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    border-color: rgba(255,255,255,0.2);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--brand-accent);
}

/* Utility Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.lazy-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lazy-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Architecture */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 80px 20px 40px 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
    color: var(--text-color);
}

.footer-brand p {
    color: var(--text-muted);
    opacity: 0.8;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 30px auto 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-socials a:hover {
    color: var(--brand-accent);
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* Scroll Storytelling Sections (Phase 3) */
.text-gigantic {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.pinned-container {
    height: 100vh;
    position: relative;
    background: var(--bg-color);
    overflow: hidden;
}

.pin-content {
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 0 20px;
    position: relative;
}

.fullscreen-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.pin-step {
    grid-area: 1 / 1;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.theme-inverted {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.theme-inverted .card {
    background-color: #1c1c1e !important;
    border-color: rgba(255,255,255,0.1) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.6) !important;
}

.theme-inverted p, .theme-inverted .text-muted {
    color: #a1a1a6 !important;
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* In a real app, make a hamburger menu */
    }
}
