/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --bg-dark: #0A0A14;
    --primary-glow: #3182CE;
    --secondary-glow: #8A31CE;
    --brand-brown: #AF692F; /* ADD THIS LINE */
    --text-primary: #F7FAFC;
    --text-secondary: #A0AEC0;
    --glass-bg: rgba(26, 32, 44, 0.6);
    --glass-border: rgba(100, 116, 139, 0.3);
    --font-primary: 'Exo 2', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    text-shadow: 0 0 10px rgba(49, 130, 206, 0.2);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* --- ANIMATED BACKGROUND --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* --- HEADER --- */
#main-header {
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

body.scrolled #main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

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

/* --- LOGO (NEW) --- */
.logo {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--text-primary); /* This styles the "make" part */
    text-decoration: none;
    letter-spacing: -2px;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* A subtle hover effect for interactivity */
.logo:hover {
    transform: scale(1.03);
}

/* This styles the "Better" part in glowing blue */
.logo .logo-primary {
    color: var(--primary-glow);
}

/* This styles the "369" part in brand brown with a glow */
.logo .logo-secondary {
    color: var(--brand-brown);
    /* Layered text-shadow creates a soft, luminous glow effect */
    text-shadow: 0 0 3px rgba(175, 105, 47, 0.8), 
                 0 0 3px rgba(175, 105, 47, 0.6);
}
#main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

#main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 0;
}
#main-nav a:hover, #main-nav a.active {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--primary-glow);
}
#main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-glow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
#main-nav a:hover::after, #main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- BUTTONS --- */
.cta-button, .button-primary, .button-secondary {
    font-family: var(--font-primary);
    font-weight: 500;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button-primary {
    background: var(--primary-glow);
    color: var(--text-primary);
}
.button-primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
}
/* Style for header CTA and other secondary buttons */
.cta-button, .button-secondary {
    background: transparent;
    /* More visible text color by default */
    color: var(--text-secondary); 
}

/* Hover effect for the header CTA button */
.cta-button:hover {
    color: var(--text-primary);
    border-color: var(--primary-glow);
    /* Add a glow effect on hover */
    box-shadow: 0 0 15px rgba(49, 130, 206, 0.6); 
}

/* Hover effect for general secondary buttons */
.button-secondary::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--primary-glow);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.button-secondary:hover {
    color: var(--text-primary);
}

.button-secondary:hover::before {
    transform: translateX(0);
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}
.hero-buttons { display: flex; justify-content: center; gap: 1rem; }

/* --- SECTIONS & CARDS --- */
.section-padding { padding: 100px 0; }
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card-icon { color: var(--primary-glow); margin-bottom: 1.5rem; }
.card-icon svg { width: 48px; height: 48px; }
.card h3 { font-size: 1.5rem; }

/* Alternating Layout */
.alternating-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
.alternating-layout:nth-child(even) .image-content { grid-column: 1; grid-row: 1; }
.alternating-layout img { width: 100%; border-radius: 8px; border: 1px solid var(--glass-border); }
.alternating-layout .section-title { text-align: left; }
.alternating-layout .section-title::after { left: 0; transform: translateX(0); }

/* --- FINAL CTA --- */
.final-cta {
    text-align: center;
    padding: 80px 0;
}
.final-cta h2 { font-size: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto;}
.final-cta p { font-size: 1.2rem; padding-bottom: 10px; }
.button-large { padding: 16px 40px; font-size: 1.1rem; }

/* --- FOOTER --- */
#main-footer {
    padding: 60px 0 20px;
    background: #06060F;
    border-top: 1px solid var(--glass-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 1rem; }
.footer-column ul { list-style: none; }
.footer-column a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
.footer-column a:hover { color: var(--primary-glow); }

#newsletter-form { display: flex; }
#newsletter-form input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 4px 0 0 4px;
}
#newsletter-form button {
    background: var(--primary-glow);
    border: none; color: #fff; padding: 0 15px;
    cursor: pointer; font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: #555;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVENESS --- */
#mobile-menu-toggle { display: none; }
@media (max-width: 768px) {
    #main-nav, .cta-button { display: none; }
    #mobile-menu-toggle { display: block; background: none; border: none; cursor: pointer; }
    .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-primary); transition: all 0.3s; }
    .alternating-layout { grid-template-columns: 1fr; }
    .alternating-layout:nth-child(even) .image-content { grid-column: 1; }
}