/* ═══════════════════════════════════════════════════════════════════════════
   SHULEGUIDE AI - PROFESSIONAL GREEN THEME STYLESHEET
   ═══════════════════════════════════════════════════════════════════════════
   
   Color Palette:
   - Primary: #2d6a4f (Forest Green)
   - Mid: #52b788 (Sage Green)
   - Light: #d8f3dc (Light Mint)
   - Dark: #1b4332 (Deep Forest)
   
   Typography:
   - Display: Space Grotesk (bold, structured)
   - Body: Instrument Sans (readable, professional)
   
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES & THEME ────────────────────────────────────────────────── */
:root {
    /* CBC Theme Color Palette - Darker Version */
    --primary: #1e2a4a;
    --primary-light: #2a3558;
    --primary-mid: #3a4568;
    --primary-dark: #152040;
    
    --secondary: #0f4a45;
    --secondary-light: #1a5550;
    --secondary-dark: #0a3530;
    
    /* Background Colors */
    --bg-dark: #0a0f1a;
    --card-dark: #0f1825;
    --text-dark: #b8c5d6;
    --muted-dark: #7a8a9a;
    --border-dark: #1a2535;
}

/* ── GLOBAL STYLES ────────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-dark);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

/* ── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(30px);
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-30px);
}

.animate-on-scroll.fade-in-right {
    transform: translateX(30px);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.875rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
}

h4 {
    font-size: 1.125rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ── NAVIGATION ───────────────────────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-dark);
    background-color: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(4px);
}

.nav-container {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-mid);
}

/* ── HERO SECTION ──────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 1rem 0 3rem;
    min-height: 280px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, #0a0f1a 100%);
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('guide2.jpg') right center / cover no-repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    color: #dbeafe;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}


/* ── ABOUT SECTION ────────────────────────────────────────────────────────── */
.about {
    padding: 4rem 1rem;
    background-color: var(--bg-dark);
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

.about-card {
    background-color: var(--card-dark);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-dark);
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(79, 124, 255, 0.3);
    border-color: var(--primary-mid);
}

.about-card h3 {
    color: var(--primary-mid);
    margin-bottom: 1rem;
}

.about-card p {
    color: rgba(232, 245, 241, 0.8);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.features-card {
    background: linear-gradient(to bottom right, var(--secondary-dark), var(--card-dark));
    border: 1px solid var(--border-dark);
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.features-list span:first-child {
    color: var(--primary-mid);
    font-weight: bold;
    margin-top: 0.25rem;
}

.features-list span:last-child {
    color: rgba(232, 245, 241, 0.8);
}

/* ── SYSTEMS SECTION ──────────────────────────────────────────────────────── */
.systems {
    padding: 4rem 1rem;
    background-color: var(--bg-dark);
}

.systems-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.systems-header {
    text-align: center;
    margin-bottom: 3rem;
}

.systems-header h2 {
    color: var(--primary-mid);
    margin-bottom: 1rem;
}

.systems-header p {
    color: rgba(232, 245, 241, 0.7);
    max-width: 42rem;
    margin: 0 auto;
}

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

.system-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, var(--card-dark), rgba(21, 32, 64, 0.3));
    border: 1px solid var(--border-dark);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.system-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(79, 124, 255, 0.4);
    border-color: var(--primary-mid);
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    background-color: rgba(82, 183, 136, 0.2);
    border-radius: 50%;
    margin-right: -80px;
    margin-top: -80px;
}

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

.system-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-mid);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 9999px;
}

.system-card h3 {
    color: var(--primary-mid);
    margin-bottom: 0.75rem;
}

.system-card p {
    color: rgba(232, 245, 241, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}


/* ── CTA SECTION ──────────────────────────────────────────────────────────── */
.cta {
    padding: 4rem 1rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.cta-container {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--primary-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
    background-color: var(--card-dark);
    color: var(--text-dark);
    padding: 3rem 1rem;
    border-top: 1px solid var(--border-dark);
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.footer-grid {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-dark);
}

.footer-section h3 {
    color: var(--primary-mid);
    margin-bottom: 0.5rem;
    margin-left: 0;
    padding-left: 0;
}

.footer-section p {
    color: rgba(232, 245, 241, 0.7);
    font-size: 0.875rem;
    margin-left: 0;
    padding-left: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(232, 245, 241, 0.7);
    font-size: 0.875rem;
}

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

.footer-bottom {
    text-align: center;
    color: rgba(232, 245, 241, 0.6);
    font-size: 0.875rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 0 0.5rem;
}

/* ── RESPONSIVE DESIGN ──────────────────────────────────────────────────────@media (max-width: 1024px) {
    .footer-container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .about-container, .systems-container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 0 3rem;
        min-height: auto;
    }

    .hero-content {
        padding: 0 1rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .about, .systems, .cta {
        padding: 3rem 1.5rem;
    }

    .systems-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-container {
        padding: 0 1rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-container {
        padding: 0 1rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-section p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0 2rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .cta-container {
        padding: 0 0.5rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .footer-container {
        padding: 0 0.5rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }

    .about, .systems, .cta {
        padding: 2rem 1rem;
    }
    
    .about-card, .system-card {
        padding: 1.5rem;
    }
    
    .systems-grid, .about-grid {
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.75rem;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .about-card, .system-card {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.875rem;
    }
}

/* ── ACCESSIBILITY ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── PRINT STYLES ─────────────────────────────────────────────────────────── */
@media print {
    body {
        background-color: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    nav, .cta-buttons {
        display: none;
    }
}
