/* css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Dark Theme Palette (Deep Brown Edition) */
    --bg-main: #140e08;
    /* Deepest Espresso Brown */
    --bg-surface: #2E211A;
    /* Rich Dark Chocolate for cards */
    --bg-surface-hover: #3C2E26;

    --text-main: #EAE0D5;
    /* Warm Cream/Off-white */
    --text-secondary: #A89F95;
    /* Muted Warm Grey */

    --accent-orange: #FF8C42;
    /* Main Brand Color (unchanged) */
    --accent-green: #10B981;
    /* Emerald Green for success */

    --glass-bg: rgba(46, 33, 26, 0.85);
    /* Dark Brown Glass */
    --glass-border: rgba(234, 224, 213, 0.1);

    --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);

    --font-main: 'Outfit', sans-serif;
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Firefox scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--bg-surface) transparent;
}

/* Custom Scrollbar Styles for Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 140, 66, 0.05) 0%, transparent 20%);
    padding-top: 120px;
    /* Space for fixed header */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
}

.text-accent-green {
    color: var(--accent-green);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
    color: white;
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 140, 66, 0.4);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

/* Header */
.main-header {
    background: rgba(20, 14, 8, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    /* Guaranteed sticky */
    top: 20px;
    /* Floating top offset */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    /* Floating width */
    max-width: 1400px;
    margin: 0;
    /* Positioned by top/left/transform */
    border-radius: 50px;
    /* Floating radius */
    padding: 10px 0;
    /* Compact padding */
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Header Shrink Animation (Desktop Only) */
@media (min-width: 992px) {
    .main-header.header-shrunk {
        top: 10px;
        padding: 5px 0;
        background: rgba(20, 14, 8, 0.98);
        width: calc(100% - 250px);
        /* Significant shrink */
        max-width: 1200px;
        border-radius: 30px;
        /* More rectangular when shrunk */
        border: 1px solid rgba(255, 140, 66, 0.3);
        /* Subtle orange tint */
    }
}

/* Hide toggle on desktop - Forcefully */
.nav-toggle {
    display: none;
}

@media (min-width: 992px) {
    .nav-toggle {
        display: none !important;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-orange);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- Category Filters (Desktop Defaults) --- */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
    transform: translateY(-2px);
}

.mobile-scroll-wrapper {
    width: 100%;
}

.scroll-cue-overlay {
    display: none;
    /* Hide visual cue on desktop */
}

/* Footer */
.main-footer {
    margin-top: 100px;
    padding: 80px 0 30px;
    background: linear-gradient(135deg, #1a120b 0%, #2E211A 100%);
    border-top: 1px solid rgba(255, 140, 66, 0.1);
    position: relative;
    overflow: hidden;
}

/* Add a subtle top glow */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    /* Asymmetric grid */
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
    margin-top: 8px;
}

/* Brand Column (Centered) */
.brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-col .footer-desc {
    margin: 0 auto 25px;
    /* Center text block */
}

.brand-col .social-links {
    justify-content: center;
}

/* Larger Logos (Desktop) */
.footer-logo img {
    height: 70px;
    /* Bigger */
    margin-bottom: 20px;
}

.logo img {
    height: 60px !important;
    /* Bigger header logo */
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
}

/* Newsletter Form */
.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
    /* Added spacing */
}

.input-group {
    position: relative;
    display: flex;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.08);
}

.input-group button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    background: var(--accent-orange);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.5);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--accent-orange);
}


/* Card Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        top: 0;
        margin: 0;
        width: 100%;
        border-radius: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .scroll-cue-overlay {
        display: block;
        /* Show visual cue on mobile */
    }
}