/* Base Variables - Updated Palette */
:root {
    --color-bg: #000000;
    --color-surface: rgba(255, 255, 255, 0.03); 
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-primary: #ff7300; /* Vivid Orange */
    --color-secondary: #00bb6f; /* Emerald Green */
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --font-sans: 'Inter', 'Poppins', 'Roboto', sans-serif;
    --font-serif: 'Playfair Display', 'Lora', serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --color-bg: #ffffff;
    --color-surface: rgba(0, 0, 0, 0.02);
    --color-surface-hover: rgba(0, 0, 0, 0.06);
    --color-text: #000000;
    --color-text-muted: #555555;
}

[data-theme="light"] body {
    /* Subtle warm and cool glows in light mode */
    background-image: 
        radial-gradient(circle at top left, rgba(255, 115, 0, 0.05), transparent 40%),
        radial-gradient(circle at bottom right, rgba(0, 187, 111, 0.05), transparent 40%);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Light mode footer is now always dark navy - no override needed */

[data-theme="dark"] .btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-text);
}

[data-theme="dark"] .placeholder-text {
    background: rgba(0, 0, 0, 0.4);
    color: #cccccc;
    border-color: rgba(255,255,255,0.15);
}

[data-theme="light"] .placeholder-text {
    background: rgba(0, 0, 0, 0.06);
    color: #555555;
    border-color: rgba(0,0,0,0.15);
}

/* ====== DARK MODE TEXT VISIBILITY FIXES ====== */
/* Mission section — NO !important on color so Quill inline colors (orange headings etc.) show through */
[data-theme="dark"] .mission-details,
[data-theme="dark"] .mission-details p,
[data-theme="dark"] .mission-details li,
[data-theme="dark"] #mission-content-display,
[data-theme="dark"] #mission-content-display p,
[data-theme="dark"] #mission-content-display li {
    color: #e2e8f0;
}

/* Only override elements WITHOUT inline style colors */
[data-theme="dark"] .mission-details span:not([style*="color"]),
[data-theme="dark"] .mission-details div:not([style*="color"]),
[data-theme="dark"] #mission-content-display span:not([style*="color"]),
[data-theme="dark"] #mission-content-display div:not([style*="color"]) {
    color: #e2e8f0;
}

[data-theme="dark"] .mission-details strong:not([style*="color"]),
[data-theme="dark"] .mission-details b:not([style*="color"]),
[data-theme="dark"] #mission-content-display strong:not([style*="color"]),
[data-theme="dark"] #mission-content-display b:not([style*="color"]) {
    color: #ffffff;
}

[data-theme="dark"] .mission-details h1:not([style*="color"]),
[data-theme="dark"] .mission-details h2:not([style*="color"]),
[data-theme="dark"] .mission-details h3:not([style*="color"]),
[data-theme="dark"] #mission-content-display h1:not([style*="color"]),
[data-theme="dark"] #mission-content-display h2:not([style*="color"]),
[data-theme="dark"] #mission-content-display h3:not([style*="color"]) {
    color: #ffffff;
}

/* Section subtitle in dark mode */
[data-theme="dark"] .section-subtitle {
    color: #94a3b8 !important;
}

/* Educational section background in dark mode */
[data-theme="dark"] .educational-section {
    border-top-color: rgba(255,255,255,0.08);
}

/* ====== MISSION CONTENT HEADING SIZES (from Quill editor) ====== */
#mission-content-display h1,
.mission-details h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
}

#mission-content-display h2,
.mission-details h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 1.3rem 0 0.6rem;
    line-height: 1.3;
}

#mission-content-display h3,
.mission-details h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 1.1rem 0 0.5rem;
    line-height: 1.4;
}

#mission-content-display h4,
.mission-details h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
    line-height: 1.4;
}

#mission-content-display p,
.mission-details p {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

#mission-content-display ul,
#mission-content-display ol,
.mission-details ul,
.mission-details ol {
    margin: 0.5rem 0 1rem 1.5rem;
    line-height: 1.8;
}

#mission-content-display li,
.mission-details li {
    margin-bottom: 0.3rem;
}

/* Quill size classes */
#mission-content-display .ql-size-small { font-size: 0.8rem; }
#mission-content-display .ql-size-large { font-size: 1.4rem; }
#mission-content-display .ql-size-huge { font-size: 2rem; }

/* Quill alignment classes */
#mission-content-display .ql-align-center { text-align: center; }
#mission-content-display .ql-align-right { text-align: right; }
#mission-content-display .ql-align-justify { text-align: justify; }

/* Quill indent classes */
#mission-content-display .ql-indent-1 { padding-left: 2em; }
#mission-content-display .ql-indent-2 { padding-left: 4em; }
#mission-content-display .ql-indent-3 { padding-left: 6em; }

/* Announcement Bar */
.announcement-bar {
    background: var(--color-primary);
    color: #ffffff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    display: none;
}

.announcement-bar.active {
    display: block;
}

/* When announcement is active, push navbar down */
.announcement-bar.active ~ .navbar {
    top: 40px;
}

/* Dark Mode Shopify Buy Button Text Overrides */
[data-theme="dark"] .shopify-buy__product__title,
[data-theme="dark"] .shopify-buy__product-description {
    color: #ffffff !important;
}

[data-theme="dark"] .shopify-buy__product__price {
    color: #00bb6f !important;
}

[data-theme="dark"] .shopify-buy__option-select__label {
    color: #cccccc !important;
}

/* Dark Mode Shopify Modal Overlay */
[data-theme="dark"] .shopify-buy__modal {
    background: rgba(0, 0, 0, 0.92) !important;
}

[data-theme="dark"] .shopify-buy__modal .shopify-buy__product-description,
[data-theme="dark"] .shopify-buy__modal .shopify-buy__product__title {
    color: #ffffff !important;
}

[data-theme="dark"] .shopify-buy__modal .shopify-buy__product__price,
[data-theme="dark"] .shopify-buy__modal .shopify-buy__product__actual-price {
    color: #00bb6f !important;
}

[data-theme="dark"] .shopify-buy__modal .shopify-buy__option-select__label,
[data-theme="dark"] .shopify-buy__modal .shopify-buy__quantity-decrement,
[data-theme="dark"] .shopify-buy__modal .shopify-buy__quantity-increment {
    color: #cccccc !important;
}

[data-theme="dark"] .shopify-buy__modal .shopify-buy__option-select-wrapper select {
    color: #ffffff !important;
    background: #1e293b !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .shopify-buy__modal .shopify-buy__quantity {
    color: #ffffff !important;
    background: #1e293b !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .shopify-buy__modal .shopify-buy__btn--close {
    color: #ffffff !important;
}

/* ====== SHOPIFY BUTTON COLOR: Orange default → Green hover ====== */
.shopify-buy__btn {
    background-color: #ff7300 !important;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}

.shopify-buy__btn:hover {
    background-color: #00bb6f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 187, 111, 0.4) !important;
}

/* Shopify Product Card Alignment & Responsive */
#shopify-section1,
#shopify-section2,
#shopify-section3,
#shopify-donate {
    display: flex;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

/* Donate section highlight animation */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 115, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 115, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 115, 0, 0); }
}

.donate-highlight {
    animation: pulseGlow 1s ease-out 2;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for fixed navbar */
}

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

/* Ensure sections have padding for scroll targets */
section[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    /* Professional ambient color integration - not just flat black */
    background-image: 
        radial-gradient(circle at top left, rgba(255, 115, 0, 0.1), transparent 50%),
        radial-gradient(circle at bottom right, rgba(0, 187, 111, 0.1), transparent 50%);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
}

h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.nav-brand img {
    height: 55px;
    width: auto;
    transition: var(--transition);
}

.nav-brand img:hover {
    transform: scale(1.05);
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

nav a:hover {
    color: var(--color-primary);
}

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: 2rem;
    color: var(--color-text);
    transition: var(--transition);
    vertical-align: middle;
}
.theme-btn:hover {
    transform: scale(1.15) rotate(15deg);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff; /* Explicitly forced white so it stays solid visually */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 115, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--color-secondary);
    box-shadow: 0 8px 25px rgba(0, 187, 111, 0.4);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 187, 111, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--color-primary);
    box-shadow: 0 8px 25px rgba(255, 115, 0, 0.4);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 4%;
    text-align: center;
    overflow: hidden;
}

/* Intense Core Glows in Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 250px;
    height: 250px;
    background: var(--color-primary);
    filter: blur(150px);
    opacity: 0.3;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 30%;
    width: 250px;
    height: 250px;
    background: var(--color-secondary);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 5vh;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-content h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-primary);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 4%;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Pending Educational Info Block */
.educational-section {
    background: var(--color-surface);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(0, 187, 111, 0.4);
    position: relative;
}

.placeholder-text {
    text-align: center;
    color: var(--color-secondary);
    font-style: italic;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 12px;
    border: 1px dashed var(--color-secondary);
}

/* Workshop Cards */
.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: var(--color-surface-hover);
}

.card:hover::before {
    transform: scaleX(1);
    background: var(--color-secondary); /* Dynamic top bar color change */
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card .price {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

/* Store Area */
.store-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 115, 0, 0.3);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: bold;
}

.product-image {
    background: rgba(0, 0, 0, 0.3);
    height: 200px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.product .price {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.product .price.sold-out {
    color: #ff4d4d;
    text-decoration: line-through;
}

/* Footer */
footer {
    background: rgba(0,0,0,0.4);
    text-align: center;
    padding: 4rem 4%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
}

.footer-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
    }
    nav a {
        margin-left: 0;
        font-size: 0.9rem;
    }
    .theme-btn {
        margin-left: 0;
    }
    h2 {
        font-size: 1.8rem;
    }
    .section-container {
        padding: 3rem 4%;
    }
    /* Shopify product grids responsive */
    #shopify-section1,
    #shopify-section2,
    #shopify-section3,
    #shopify-donate {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Mission content responsive */
    .mission-details,
    #mission-content-display {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* Shopify Buy Button Image Hover Zoom Effect */
/* Targets Shopify's dynamically injected product image wrappers */
[class*="shopify-buy__product-img-wrapper"] {
    overflow: hidden;
    border-radius: 8px;
}

[class*="shopify-buy__product-img-wrapper"] img {
    transition: transform 0.4s ease;
}

[class*="shopify-buy__product-img-wrapper"]:hover img {
    transform: scale(1.08);
}

/* Center-align the bottom store collection products */
#store .section-container {
    text-align: center;
}

#store [class*="shopify-buy__collection"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* ====== IMPACT STATS ====== */
.stats-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    color: #ffffff;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    font-family: var(--font-serif);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

/* ====== WHAT WE DO FEATURES ====== */
.features-section {
    padding: 80px 20px;
    background: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

[data-theme="dark"] .feature-card {
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.75;
    line-height: 1.7;
}

/* Staggered feature card animation */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.25s; }
.feature-card:nth-child(3) { transition-delay: 0.4s; }

/* Stat cards stagger */
.stat-card:nth-child(1) { animation: fadeInUp 0.5s ease 0.1s both; }
.stat-card:nth-child(2) { animation: fadeInUp 0.5s ease 0.25s both; }
.stat-card:nth-child(3) { animation: fadeInUp 0.5s ease 0.4s both; }
.stat-card:nth-child(4) { animation: fadeInUp 0.5s ease 0.55s both; }

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

/* Shopify cart badge color fix for dark mode */
[data-theme="dark"] .shopify-buy__cart-toggle__count {
    color: #ffffff !important;
}

/* Section headings subtle entrance */
h2 {
    transition: color 0.3s ease;
}

/* Nav links hover effect */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

nav a.btn-primary::after {
    display: none;
}

/* ====== ENHANCED FOOTER ====== */
footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 0;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 700;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #94a3b8;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #64748b;
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(255,115,0,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(0,187,111,0.3);
}

/* ====== SCROLL REVEAL ANIMATION ====== */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== RESPONSIVE: STATS + FEATURES + FOOTER ====== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .btn-primary, .btn-secondary {
        padding: 0.65rem 1.4rem;
        font-size: 0.85rem;
    }
    .section-container {
        padding: 2.5rem 3%;
    }
}
