/*
  ardeshir.io Design System
  DeepMind Weather AI - Light/Dark Theme
  Light mode default, DeepMind-inspired colors
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLES - Light Theme (Default)
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Light theme backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.95);

    /* Text colors */
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-muted: #80868b;

    /* DeepMind accent colors */
    --accent-blue: #4285f4;
    --accent-blue-dim: rgba(66, 133, 244, 0.1);
    --accent-cyan: #00bcd4;
    --accent-cyan-dim: rgba(0, 188, 212, 0.1);
    --accent-green: #34a853;
    --accent-yellow: #fbbc04;
    --accent-red: #ea4335;
    --accent-purple: #a142f4;

    /* Borders & shadows */
    --border-color: #dadce0;
    --border-subtle: #e8eaed;
    --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.1);
    --shadow-md: 0 2px 6px rgba(60, 64, 67, 0.15);
    --shadow-lg: 0 4px 12px rgba(60, 64, 67, 0.2);
    --shadow-card: 0 1px 3px rgba(60, 64, 67, 0.12), 0 1px 2px rgba(60, 64, 67, 0.24);

    /* Typography */
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 64px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

/* ═══════════════════════════════════════════════════════════════
   DARK THEME
   ═══════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-nav: rgba(0, 0, 0, 0.95);

    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-muted: #80868b;

    --accent-blue: #8ab4f8;
    --accent-blue-dim: rgba(138, 180, 248, 0.15);
    --accent-cyan: #4dd0e1;
    --accent-cyan-dim: rgba(77, 208, 225, 0.15);
    --accent-green: #81c995;
    --accent-yellow: #fdd663;
    --accent-red: #f28b82;
    --accent-purple: #c58af9;

    --border-color: #3c4043;
    --border-subtle: #282a2d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    padding-top: var(--nav-height);
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); font-weight: 700; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

@media (max-width: 768px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

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

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

strong {
    color: var(--text-primary);
    font-weight: 600;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--accent-blue) !important;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue) !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width var(--transition-base);
}

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

/* Theme toggle button */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all var(--transition-fast);
    margin-left: var(--space-xs);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-dim);
}

/* Mobile nav toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

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

@media (max-width: 900px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-subtle);
        padding: var(--space-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition-base);
    }

    .navbar-menu.open {
        transform: translateY(0);
        opacity: 1;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header p {
    font-size: var(--text-lg);
    max-width: 600px;
    margin: var(--space-sm) auto 0;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

.hero-tagline {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-bottom: var(--space-md);
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

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

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: #1a73e8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-blue-dim);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-blue-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: var(--space-lg);
}

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

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

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MODEL CARDS (specific to Weather AI)
   ═══════════════════════════════════════════════════════════════ */

.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.model-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.model-card.featured::before {
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-green));
}

.model-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.model-year {
    font-size: var(--text-sm);
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.model-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: 8px;
}

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

.stat-value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   INFO CARDS & TIMELINE
   ═══════════════════════════════════════════════════════════════ */

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: var(--space-lg);
    height: 100%;
    transition: all var(--transition-base);
}

.timeline-item {
    position: relative;
    padding-left: 32px;
    padding-bottom: 32px;
    border-left: 2px solid var(--border-color);
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.timeline-date {
    color: var(--accent-blue);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════
   QUOTE BLOCK
   ═══════════════════════════════════════════════════════════════ */

.quote-block {
    background: var(--accent-blue-dim);
    border-left: 4px solid var(--accent-blue);
    padding: var(--space-lg);
    border-radius: 0 12px 12px 0;
    margin: var(--space-lg) 0;
}

.quote-text {
    font-style: italic;
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.quote-attribution {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════════════════════════
   TAGS & BADGES
   ═══════════════════════════════════════════════════════════════ */

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-blue-dim);
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: var(--text-sm);
    margin: 4px;
    color: var(--accent-blue);
    font-weight: 500;
}

.tag-cyan {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
}

.tag-green {
    background: rgba(52, 168, 83, 0.1);
    color: var(--accent-green);
}

.tag-yellow {
    background: rgba(251, 188, 4, 0.1);
    color: var(--accent-yellow);
}

.tag-purple {
    background: rgba(161, 66, 244, 0.1);
    color: var(--accent-purple);
}

/* ═══════════════════════════════════════════════════════════════
   LINKS GRID (Social links)
   ═══════════════════════════════════════════════════════════════ */

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

.link-icon {
    font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-2xl) 0;
    margin-top: var(--space-2xl);
}

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

.footer a {
    color: var(--accent-blue);
}

.footer p {
    margin-bottom: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-blue); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col {
    flex: 1;
    padding: 0 12px;
}

.g-4 { gap: var(--space-lg); }

@media (max-width: 768px) {
    .row { flex-direction: column; }
    .col-lg-4, .col-lg-6, .col-lg-8 { width: 100%; }
}

@media (min-width: 769px) {
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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