/* =============================================================
   JOSEPHWARE — main.css
   Variables · Themes · Reset · Typography · Utilities · Buttons
   ============================================================= */

/* ---------------------------------------------------------------
   CSS CUSTOM PROPERTIES — DEFAULT (LIGHT) THEME
--------------------------------------------------------------- */
:root {
    /* Brand colors */
    --primary:        #3B82F6;
    --primary-dark:   #1D4ED8;
    --primary-light:  #DBEAFE;
    --secondary:      #8B5CF6;
    --accent:         #06B6D4;

    /* Gradient */
    --gradient:       linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-soft:  linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(139,92,246,0.1) 100%);

    /* Text */
    --text:           #0F172A;
    --text-muted:     #64748B;
    --text-light:     #94A3B8;

    /* Surfaces */
    --bg:             #FFFFFF;
    --bg-secondary:   #F8FAFC;
    --bg-tertiary:    #F1F5F9;
    --card-bg:        #FFFFFF;

    /* Borders */
    --border:         #E2E8F0;
    --border-light:   #F1F5F9;

    /* Shadows */
    --shadow-xs:      0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow:         0 4px 16px rgba(0,0,0,0.08);
    --shadow-md:      0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg:      0 16px 48px rgba(0,0,0,0.12);
    --shadow-xl:      0 24px 64px rgba(0,0,0,0.16);
    --shadow-colored: 0 16px 40px rgba(59,130,246,0.25);

    /* Radius */
    --radius-sm:   6px;
    --radius:      12px;
    --radius-md:   16px;
    --radius-lg:   20px;
    --radius-xl:   28px;
    --radius-full: 9999px;

    /* Easing & Transitions */
    --ease:              cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition:        0.3s  cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   0.6s  cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --section-padding: 100px 0;
    --container-max:   1200px;

    /* Z-index layers */
    --z-base:      1;
    --z-header:    100;
    --z-theme:     150;
    --z-modal:     200;
    --z-preloader: 300;
}

/* ---------------------------------------------------------------
   DARK THEME
--------------------------------------------------------------- */
.theme-dark {
    --primary:        #60A5FA;
    --primary-dark:   #3B82F6;
    --primary-light:  rgba(96,165,250,0.15);
    --secondary:      #A78BFA;
    --accent:         #38BDF8;
    --gradient:       linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
    --gradient-soft:  linear-gradient(135deg, rgba(96,165,250,0.15) 0%, rgba(167,139,250,0.15) 100%);
    --text:           #F1F5F9;
    --text-muted:     #94A3B8;
    --text-light:     #64748B;
    --bg:             #0F172A;
    --bg-secondary:   #1E293B;
    --bg-tertiary:    #1E293B;
    --card-bg:        #1E293B;
    --border:         #334155;
    --border-light:   #1E293B;
    --shadow-colored: 0 16px 40px rgba(96,165,250,0.2);
}

/* ---------------------------------------------------------------
   PURPLE THEME
--------------------------------------------------------------- */
.theme-purple {
    --primary:        #8B5CF6;
    --primary-dark:   #7C3AED;
    --primary-light:  #EDE9FE;
    --secondary:      #EC4899;
    --accent:         #A78BFA;
    --gradient:       linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-soft:  linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(236,72,153,0.1) 100%);
    --shadow-colored: 0 16px 40px rgba(139,92,246,0.25);
}

/* ---------------------------------------------------------------
   GREEN THEME
--------------------------------------------------------------- */
.theme-green {
    --primary:        #10B981;
    --primary-dark:   #059669;
    --primary-light:  #D1FAE5;
    --secondary:      #06B6D4;
    --accent:         #34D399;
    --gradient:       linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
    --gradient-soft:  linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(6,182,212,0.1) 100%);
    --shadow-colored: 0 16px 40px rgba(16,185,129,0.25);
}

/* ---------------------------------------------------------------
   ORANGE THEME
--------------------------------------------------------------- */
.theme-orange {
    --primary:        #F59E0B;
    --primary-dark:   #D97706;
    --primary-light:  #FEF3C7;
    --secondary:      #EF4444;
    --accent:         #FBBF24;
    --gradient:       linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-soft:  linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(239,68,68,0.1) 100%);
    --shadow-colored: 0 16px 40px rgba(245,158,11,0.25);
}

/* ---------------------------------------------------------------
   TEAL THEME
--------------------------------------------------------------- */
.theme-teal {
    --primary:        #14B8A6;
    --primary-dark:   #0D9488;
    --primary-light:  #CCFBF1;
    --secondary:      #3B82F6;
    --accent:         #2DD4BF;
    --gradient:       linear-gradient(135deg, #14B8A6 0%, #3B82F6 100%);
    --gradient-soft:  linear-gradient(135deg, rgba(20,184,166,0.1) 0%, rgba(59,130,246,0.1) 100%);
    --shadow-colored: 0 16px 40px rgba(20,184,166,0.25);
}

/* ---------------------------------------------------------------
   ROSE THEME
--------------------------------------------------------------- */
.theme-rose {
    --primary:        #F43F5E;
    --primary-dark:   #E11D48;
    --primary-light:  #FFE4E6;
    --secondary:      #EC4899;
    --accent:         #FB7185;
    --gradient:       linear-gradient(135deg, #F43F5E 0%, #EC4899 100%);
    --gradient-soft:  linear-gradient(135deg, rgba(244,63,94,0.1) 0%, rgba(236,72,153,0.1) 100%);
    --shadow-colored: 0 16px 40px rgba(244,63,94,0.25);
}

/* ---------------------------------------------------------------
   MIDNIGHT THEME (dark variant)
--------------------------------------------------------------- */
.theme-midnight {
    --primary:        #6366F1;
    --primary-dark:   #4F46E5;
    --primary-light:  rgba(99,102,241,0.15);
    --secondary:      #8B5CF6;
    --accent:         #818CF8;
    --gradient:       linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-soft:  linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.15) 100%);
    --text:           #F1F5F9;
    --text-muted:     #94A3B8;
    --text-light:     #64748B;
    --bg:             #0D0F1A;
    --bg-secondary:   #151827;
    --bg-tertiary:    #1C2035;
    --card-bg:        #1C2035;
    --border:         #2D3451;
    --border-light:   #1C2035;
    --shadow-colored: 0 16px 40px rgba(99,102,241,0.25);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; }

input, textarea, select { font-family: inherit; }

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------
   LAYOUT UTILITIES
--------------------------------------------------------------- */
.container {
    width: min(90%, var(--container-max));
    margin-inline: auto;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 70px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ---------------------------------------------------------------
   SECTION TAG (pill label above headings)
--------------------------------------------------------------- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    border: 1px solid var(--primary-light);
}

.section-tag.light {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.25);
}

/* ---------------------------------------------------------------
   TYPOGRAPHY UTILITIES
--------------------------------------------------------------- */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-light {
    background: linear-gradient(135deg, #93C5FD, #C4B5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-text {
    color: #FFFFFF !important;
}

/* ---------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.01em;
}

/* Shine ripple effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.12), rgba(255,255,255,0));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover::after {
    transform: translateX(100%);
}

/* Primary */
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59,130,246,0.35);
}

.btn-primary:active { transform: translateY(0); }

/* Outline primary */
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Ghost */
.btn-ghost {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Sizes */
.btn-lg {
    padding: 15px 36px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

/* ---------------------------------------------------------------
   SCROLL REVEAL ANIMATION
--------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  0.7s var(--ease),
        transform 0.7s var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-delay="100"] { transition-delay: 0.10s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.20s; }
[data-delay="250"] { transition-delay: 0.25s; }
[data-delay="300"] { transition-delay: 0.30s; }
[data-delay="400"] { transition-delay: 0.40s; }
[data-delay="450"] { transition-delay: 0.45s; }

/* ---------------------------------------------------------------
   RESPONSIVE GLOBALS
--------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .btn-lg {
        padding: 13px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }
}
