/* 
  ARAM TRADERS - Stylesheet
  Clean Modern Design with Vibrant Accents
  Supports Dark/Light Mode
*/

:root {
    /* Color Palette - Light Mode (Default) */
    --primary-color: #8E44AD;
    /* English Wisteria/Lilac for floral theme */
    --secondary-color: #0056D2;
    /* Royal Blue for trust */
    --accent-color: #E63946;
    /* Red for highlights */
    --bg-body: #F8F9FA;
    --bg-card: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-main: 'Outfit', 'Inter', sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --nav-height: 80px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-card: #1E1E1E;
    --text-main: #E0E0E0;
    --text-muted: #AAAAAA;
    --border-color: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Section Padding */
.section {
    padding: var(--spacing-lg) 0;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal);
}

[data-theme="dark"] .navbar {
    background: rgba(18, 18, 18, 0.9);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
}


.logo img {
    height: 70px;
    margin-right: 12px;
    border-radius: 5px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Responsive Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 100px 2rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
    }

    .nav-links.active {
        right: 0;
    }
}

/* Base Footer */
footer {
    background-color: #111;
    color: #fff;
    padding: var(--spacing-lg) 0;
    margin-top: auto;
}

/* --- Re-applied Responsive Utilities --- */

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.flex-responsive {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
}

.flex-responsive>* {
    flex: 1;
}

/* Mobile Layout Overrides */
@media (max-width: 768px) {

    /* Force stack on mobile */
    .grid-2-cols,
    .grid-responsive {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .flex-responsive {
        flex-direction: column;
    }

    /* Center images in stacked layout */
    .grid-2-cols img,
    .grid-responsive img,
    .flex-responsive img {
        margin: 0 auto;
    }

    /* Reordering utilities */
    .order-2-mobile {
        order: 2 !important;
    }
}

/* Footer Layout Utility */
.footer-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
        /* Reduced gap for mobile stacking */
    }
}