/* ==========================================
   1. GLOBAL STYLES & PURPLE CONFIGURATION
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #2d253d;
    background-color: #f7f4fc; /* Light Lavender Tint Background */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================
   2. HEADER & NAVIGATION (DESKTOP & TABLET)
   ========================================== */
header {
    background-color: #1a102f; /* Deep Midnight Purple */
    color: #ffffff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(26, 16, 47, 0.2);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo span {
    color: #a78bfa; /* Soft Violet Accent */
}

/* Desktop Horizontal Top Menu Bar */
nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-size: 15px;
    font-weight: 600;
    color: #e2d9f3;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

nav ul li a:hover, 
nav ul li a.active {
    color: #a78bfa; 
}

/* Hide Hamburger Menu Icon by Default on Desktop/Tablets */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* ==========================================
   3. THEATRICAL HERO DISPLAY
   ========================================== */
.hero {
    background: linear-gradient(135deg, rgba(26, 10, 47, 0.95), rgba(76, 29, 149, 0.85)), 
                url('https://unsplash.com') no-repeat center center/cover;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 19px;
    color: #e2d9f3;
    margin-bottom: 35px;
}

.btn {
    display: inline-block;
    background-color: #8b5cf6; /* Vibrant Amethyst Theme Accent */
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* ==========================================
   4. CONTENT RESPONSIVE GRID
   ========================================== */
.section-title {
    text-align: center;
    margin-top: 70px;
    font-size: 32px;
    color: #1a102f;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns on standard monitors */
    gap: 30px;
    margin: 40px 0 90px 0;
}

.card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #e8e3f5;
    box-shadow: 0 10px 30px rgba(76, 29, 149, 0.04);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(76, 29, 149, 0.1);
}

.card-icon {
    font-size: 44px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    color: #1a102f;
    margin-bottom: 15px;
    font-weight: 700;
}

.card p {
    font-size: 15px;
    color: #65587f;
}

/* ==========================================
   5. FOOTER
   ========================================== */
footer {
    background-color: #110922;
    color: #9b8eb9;
    text-align: center;
    padding: 35px 0;
    font-size: 14px;
    border-top: 1px solid #23163f;
}

/* ==========================================
   6. RESPONSIVE BREAKPOINTS (MEDIA QUERIES)
   ========================================== */

/* 📊 TABLET CONFIGURATION (Under 992px wide) */
@media (max-width: 992px) {
    .hero h1 { font-size: 38px; }
    
    /* 3 Columns shift into an easily viewable 2-column format */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* 📱 MOBILE SMARTPHONE CONFIGURATION (Under 768px wide) */
@media (max-width: 768px) {
    /* Show Hamburger button menu bars */
    .menu-toggle {
        display: flex;
    }

    /* Transform main navigation overlay drawer */
    nav {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #1a102f;
        padding: 25px 0;
        border-top: 1px solid #2b1d47;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }

    /* JS adds active state to make the hamburger slider block visible */
    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    nav ul li a {
        font-size: 18px;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* CSS transforms the three distinct bars into a close 'X' */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Compress sizing layout elements cleanly for small touch interfaces */
    .hero { padding: 75px 0; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .section-title { font-size: 26px; margin-top: 40px; }
    
    /* Collapse down completely into a single vertical row */
    .features-grid { 
        grid-template-columns: 1fr; 
        margin: 25px 0 60px 0; 
    }
}
