/* =========================================
   AVR EXCELSA
   GLOBAL DESIGN SYSTEM
========================================= */

/* =========================================
   1. ROOT VARIABLES
========================================= */

:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --bg-primary: #e7e7e7;
    --bg-secondary: #dddddd;
    --surface: #e9e9e9;

    --text-primary: #111111;
    --text-secondary: #626262;
    --text-muted: #858585;

    --border: rgba(0, 0, 0, 0.035);

    --accent: #111111;
    --accent-text: #ffffff;

    --soft-highlight: rgba(255, 255, 255, 0.7);
    --hero-glow: rgba(255, 255, 255, 0.55);
    --ring-color: rgba(0, 0, 0, 0.08);
    --inner-border: rgba(255, 255, 255, 0.5);

    --shadow-light:
        -14px -14px 30px rgba(255, 255, 255, 0.88),
        14px 14px 30px rgba(0, 0, 0, 0.14);

    --shadow-small:
        -6px -6px 14px rgba(255, 255, 255, 0.82),
        6px 6px 14px rgba(0, 0, 0, 0.1);

    --shadow-hero:
        -22px -22px 45px rgba(255, 255, 255, 0.95),
        22px 22px 45px rgba(0, 0, 0, 0.16);

    --shadow-inset:
        inset -5px -5px 12px rgba(255, 255, 255, 0.75),
        inset 5px 5px 12px rgba(0, 0, 0, 0.08);

    --shadow-inset-small:
        inset -3px -3px 7px rgba(255, 255, 255, 0.75),
        inset 3px 3px 7px rgba(0, 0, 0, 0.08);

    --shadow-navbar:
        0 10px 30px rgba(0, 0, 0, 0.06);

    --container-width: 1200px;
    --section-padding: 120px;

    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 28px;
    --radius-pill: 999px;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.7s ease;
}

/* =========================================
   2. DARK THEME
========================================= */

[data-theme="dark"] {
    --bg-primary: #090909;
    --bg-secondary: #0e0e0e;
    --surface: #111111;

    --text-primary: #f2f2f2;
    --text-secondary: #9a9a9a;
    --text-muted: #6f6f6f;

    --border: rgba(255, 255, 255, 0.025);

    --accent: #f2f2f2;
    --accent-text: #090909;

    --soft-highlight: rgba(255, 255, 255, 0.04);
    --hero-glow: rgba(255, 255, 255, 0.025);
    --ring-color: rgba(255, 255, 255, 0.06);
    --inner-border: rgba(255, 255, 255, 0.035);

    --shadow-light:
        -14px -14px 30px rgba(255, 255, 255, 0.025),
        14px 14px 30px rgba(0, 0, 0, 0.92);

    --shadow-small:
        -6px -6px 14px rgba(255, 255, 255, 0.018),
        6px 6px 14px rgba(0, 0, 0, 0.8);

    --shadow-hero:
        -22px -22px 45px rgba(255, 255, 255, 0.03),
        22px 22px 45px rgba(0, 0, 0, 0.95);

    --shadow-inset:
        inset -5px -5px 12px rgba(255, 255, 255, 0.025),
        inset 5px 5px 12px rgba(0, 0, 0, 0.85);

    --shadow-inset-small:
        inset -3px -3px 7px rgba(255, 255, 255, 0.025),
        inset 3px 3px 7px rgba(0, 0, 0, 0.75);

    --shadow-navbar:
        0 10px 30px rgba(0, 0, 0, 0.35);
}

/* =========================================
   3. RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-medium), color var(--transition-medium);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* =========================================
   4. GLOBAL CONTAINER
========================================= */

.container {
    width: min(calc(100% - 40px), var(--container-width));
    margin-inline: auto;
}

/* =========================================
   5. SECTION
========================================= */

section {
    position: relative;
    padding: var(--section-padding) 0;
}

/* =========================================
   6. TYPOGRAPHY
========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 600;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: 1.4rem;
}

p {
    color: var(--text-secondary);
}

/* =========================================
   7. BUTTON SYSTEM
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: 0;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: var(--shadow-small);
}

.btn-primary:hover {
    box-shadow: var(--shadow-light);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-small);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-light);
}

/* =========================================
   8. UTILITY
========================================= */

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* =========================================
   9. SELECTION
========================================= */

::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* =========================================
   10. SCROLLBAR
========================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}
