/* ============================================
   Get NGO St Pete — Community Platform
   Core Stylesheet — Light/Dark Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme (default) */
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1f6;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a0;
    --border-color: #d8dce6;
    --border-subtle: #e8ecf2;

    --blue: #2563eb;
    --blue-light: #3b82f6;
    --blue-dim: #1d4ed8;
    --blue-subtle: rgba(37, 99, 235, 0.08);
    --blue-glow: rgba(37, 99, 235, 0.15);
    --green: #16a34a;
    --green-dim: #15803d;
    --red: #dc2626;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(37, 99, 235, 0.1);
    --glass-blur: 18px;

    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1c25;
    --bg-tertiary: #242630;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    --border-color: #2a2c38;
    --border-subtle: #1f2130;

    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --blue-dim: #2563eb;
    --blue-subtle: rgba(59, 130, 246, 0.12);
    --blue-glow: rgba(59, 130, 246, 0.2);

    --glass-bg: rgba(15, 17, 23, 0.88);
    --glass-border: rgba(59, 130, 246, 0.1);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

::selection {
    background: var(--blue);
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-primary);
}

/* --- Theme Toggle --- */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}

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

/* Hide correct icon based on theme */
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .fa-sun,
html:not([data-theme="dark"]) .theme-toggle .fa-sun { display: none; }

/* ==========================================
   GLASSMORPHISM PANELS
   ========================================== */
.glass-panel {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-md);
    overflow: visible;
}

.glass-panel--hero {
    padding: 3.5rem 4rem 3rem;
}

.glass-panel--section {
    padding: 3rem;
}

.glass-panel--card {
    padding: 3rem 2rem;
}

/* ==========================================
   SPLASH (Hero)
   ========================================== */
.splash {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 50%, var(--bg-primary) 100%);
}

.splash__content {
    animation: fadeInUp 1.8s var(--ease-smooth) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Logo Mark --- */
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--blue);
    opacity: 0;
    animation: fadeIn 2s 0.3s var(--ease-smooth) forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- Brand Name --- */
.brand-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 2s 0.6s var(--ease-smooth) forwards;
}

/* --- Tagline --- */
.tagline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--blue);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 2s 1s var(--ease-smooth) forwards;
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem auto 0;
    opacity: 0;
    animation: fadeIn 2s 1.4s var(--ease-smooth) forwards;
}

.divider__line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.divider__icon {
    font-size: 0.6rem;
    color: var(--blue);
}

/* --- Scroll Hint --- */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeIn 2s 1.8s var(--ease-smooth) forwards;
    cursor: pointer;
    transition: color 0.3s;
}

.scroll-hint:hover {
    color: var(--blue);
}

.scroll-hint i {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

/* ==========================================
   SECTION: About
   ========================================== */
.section-about {
    position: relative;
    z-index: 10;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    overflow: hidden;
    background: var(--bg-secondary);
}

.section-about__inner {
    max-width: 700px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

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

.about-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.8rem;
    color: var(--blue);
    margin-bottom: 2rem;
}

.section-about h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-about p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.about-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.badge:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-subtle);
}

.badge i {
    color: var(--blue);
    font-size: 0.95rem;
}

/* ==========================================
   SECTION: Services / Features
   ========================================== */
.section-lines {
    position: relative;
    z-index: 10;
    padding: 6rem 2rem;
    overflow: hidden;
    background: var(--bg-primary);
}

.section-lines__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-lines h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-lines__intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.line-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.4s, transform 0.4s var(--ease-smooth), box-shadow 0.4s;
}

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

.line-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--blue);
}

.line-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.line-card__source {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--blue);
    margin-bottom: 1.25rem;
}

.line-card__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.line-card__cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--blue);
    transition: color 0.3s;
}

.line-card:hover .line-card__cta {
    color: var(--blue-dim);
}

.line-card__cta i {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

.line-card:hover .line-card__cta i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .lines-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ==========================================
   SECTION: Collection
   ========================================== */
.section-collection {
    position: relative;
    z-index: 10;
    padding: 6rem 2rem;
    overflow: hidden;
    background: var(--bg-secondary);
}

.section-collection__inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

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

.section-collection h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

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

.collection-card {
    text-align: center;
    transition: border-color 0.4s, transform 0.4s var(--ease-smooth), box-shadow 0.4s;
}

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

.collection-card__icon {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 1.5rem;
}

.collection-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.collection-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: var(--bg-secondary);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-logo i {
    color: var(--blue);
    font-size: 1rem;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-admin-star {
    text-decoration: none;
    font-size: 0.55rem;
    color: var(--text-muted);
    opacity: 0.25;
    margin-left: 0.4rem;
    transition: color 0.3s, opacity 0.3s;
}

.footer-admin-star:hover {
    color: var(--blue);
    opacity: 1;
}

.footer-version {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .glass-panel--hero {
        padding: 2.5rem 2rem 2rem;
    }

    .glass-panel--section {
        padding: 2rem 1.5rem;
    }

    .logo-mark {
        font-size: 1.8rem;
        gap: 0.75rem;
    }

    .about-badges {
        gap: 0.75rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.9rem;
    }

    .collection-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .glass-panel--hero {
        padding: 2rem 1.5rem 1.5rem;
    }

    .brand-name {
        letter-spacing: -0.01em;
    }

    .tagline {
        letter-spacing: 0.05em;
    }

    .about-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================
   UTILITIES
   ========================================== */
.js-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

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