/* 
  CBMS Website - Premium Design System
  Colors: Gold (#D4AF37) and Black (#0A0A0A)
*/

:root {
    --gold: #e2ae1a;
    --gold-hover: #ffcf40;
    --black: #0A0A0A;
    --dark-grey: #1A1A1A;
    --light-grey: #333333;
    --text-white: #FFFFFF;
    --text-muted: #BBBBBB;
    --accent-gradient: linear-gradient(135deg, #e2ae1a 0%, #ffcf40 100%);
    --bg-dark: #050505;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

ul {
    list-style: none;
}

/* Nav Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--gold);
    cursor: pointer;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--gold);
}

.cta-btn {
    background: var(--accent-gradient);
    color: var(--black);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.cta-btn.nav-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.hero-btn-outline {
    margin-left: 1rem;
    border: 1px solid var(--gold);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.hero-btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/business_management.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Content Sections */
section {
    padding: 3.5rem 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title span {
    display: block;
    height: 4px;
    width: 60px;
    background: var(--gold);
    margin: 0 auto;
}

section #about-brief, 
section #impact {
    padding: 2.5rem 8%;
}

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--dark-grey);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

/* Footer */
footer {
    background: var(--black);
    padding: 4rem 10% 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--black);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-white);
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--gold);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}

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

/* Staggering (if needed via JS or CSS) */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        order: 2; /* Moved to middle */
    }

    nav {
        padding: 1rem 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        order: 1;
    }

    .nav-btn {
        order: 3; /* Moved to far right */
        padding: 0.5rem 1rem !important; /* Reduced height as requested */
        font-size: 0.85rem !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        text-align: center;
        order: 4; /* Below the nav bar components */
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: row; /* Side-by-side on mobile if possible */
        gap: 1rem;
        width: 100%;
        max-width: 500px; /* Prevent over-stretching */
    }

    .hero-btns a {
        margin-left: 0 !important;
        flex: 1; /* Ensures equal width */
        white-space: nowrap;
        font-size: 0.9rem !important;
        padding: 0.8rem 0.5rem !important;
        text-align: center;
    }

    section {
        padding: 2.5rem 5%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }

    /* Target the main CTA button on mobile */
    #impact .cta-btn, 
    .hero .cta-btn {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.95rem !important;
        white-space: nowrap;
        width: fit-content;
        margin: 0 auto;
    }

    /* Stack flex containers on mobile */
    .mobile-stack {
        flex-direction: column !important;
        padding: 2rem !important;
        gap: 2rem !important;
    }

    .mobile-stack > div {
        width: 100% !important;
        height: auto !important;
        min-width: unset !important;
    }

    .mobile-stack img {
        height: 300px !important;
    }
}

/* Additional Premium Touches */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.text-gold-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
