/*
 * PrimeVision Events - Main Stylesheet
 *
 * Table of Contents:
 *   1. Reset & Base
 *   2. CSS Variables (Design Tokens)
 *   3. Navbar
 *   4. Buttons
 *   5. Hero Section
 *   6. Section Layout
 *   7. Why Us Cards
 *   8. Services Grid
 *   9. Contact Form & Info
 *  10. Footer
 *  11. Team Grid
 *  12. Scroll Animations
 *  13. Form Success Message
 *  14. Dark Mode Toggle Button
 *  15. Dark Mode Overrides
 *  16. Responsive (Tablet & Mobile)
 */


/* ===== 1. Reset & Base ===== */

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

:root {
    /* Brand colors */
    --primary: #8125d0;
    --primary-dark: #6b1db3;
    --primary-light: rgba(129, 37, 208, 0.1);
    --accent: #fb8145;
    --accent-dark: #e96e30;

    /* Neutral colors */
    --dark: #0f0f1a;
    --dark-light: #1a1a2e;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f8f9fc;
    --white: #ffffff;

    /* Layout & Effects */
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed navbar */
}

body {
    font-family: 'Mulish', -apple-system, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ===== 2. Navbar ===== */
/* Starts transparent on homepage, gets "scrolled" class via JS when user scrolls down.
   Sub-pages start with "scrolled" class already set in HTML. */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-prime {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.logo-vision {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.logo-events {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-light);
}

.navbar.scrolled .logo-prime {
    color: #0f0f1a;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #ffffff;
}

.navbar.scrolled .nav-links a {
    color: #0f0f1a;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
}

/* Hamburger button - hidden on desktop, shown on mobile via media query */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: #0f0f1a;
}


/* ===== 3. Buttons ===== */
/* Base .btn class + modifier classes. All pill-shaped (border-radius: 50px). */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 129, 69, 0.35);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: transparent;
}

.btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: var(--primary);
    color: #ffffff;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(129, 37, 208, 0.35);
}

.btn-nav {
    padding: 10px 24px;
    background: var(--accent);
    color: #ffffff !important;
    border-radius: 50px;
}

.btn-nav:hover {
    background: var(--accent-dark);
}

.btn-full {
    width: 100%;
    text-align: center;
}


/* ===== 4. Hero Section ===== */
/* ::before and ::after create decorative gradient glow circles in the background */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 40%, #2d1054 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(129, 37, 208, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 129, 69, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-tagline {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-light);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* clamp(min, preferred, max) = responsive font size that scales with viewport */
.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: #ffffff;
    line-height: 1.125;
    margin-bottom: 24px;
    padding-bottom: 0.1em;
}

.highlight {
    color: var(--accent);
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-light);
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}


/* ===== 5. Section Layout ===== */

.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--light);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 0.05em;
    color: var(--dark);
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 60px;
}


/* ===== 6. Why Us Cards ===== */

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 48px 32px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid #eee;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.why-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
}

.why-icon.purple {
    background: rgba(129, 37, 208, 0.1);
    color: var(--primary);
}

.why-icon.orange {
    background: rgba(251, 129, 69, 0.1);
    color: var(--accent);
}

.why-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.why-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
    padding-bottom: 0.1em;
    color: var(--dark);
}

.why-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ===== 7. Services Grid ===== */
/* ::before creates a gradient top-border that fades in on hover */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-bottom: 0.1em;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ===== 8. Contact Form & Info ===== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(129, 37, 208, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin-bottom: 4px;
    padding-bottom: 0.05em;
    color: var(--dark);
}

.contact-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent);
}


/* ===== 9. Footer ===== */
/* Always dark background, independent of dark mode toggle */

.footer {
    background: #0f0f1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 16px;
    padding-bottom: 0.05em;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}


/* ===== 10. Team Grid ===== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.team-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid #eee;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.team-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 6px;
    padding-bottom: 0.1em;
    color: var(--dark);
}

.team-role {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-email {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.team-email a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.team-email a:hover {
    color: var(--accent);
}


/* ===== 11. Scroll Animations ===== */
/* .fade-in is added by JS. .visible is added when element enters viewport. */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== 12. Form Success Message ===== */

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.active {
    display: block;
}

.form-success .checkmark {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 16px;
}

.form-success h3 {
    margin-bottom: 8px;
    color: var(--dark);
}

.form-success p {
    color: var(--gray);
}


/* ===== 13. Dark Mode Toggle Button ===== */

.dark-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    color: #ffffff;
}

.dark-toggle:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.navbar.scrolled .dark-toggle {
    color: #0f0f1a;
    border-color: rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .dark-toggle:hover {
    border-color: var(--primary);
}


/* ===== 14. Dark Mode Overrides ===== */
/* Overrides the CSS variables from :root so all components swap colors automatically */

body.dark {
    --dark: #e8e8f0;
    --dark-light: #1a1a2e;
    --gray: #9ca3af;
    --gray-light: #9ca3af;
    --light: #16162a;
    --white: #111125;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    background: #111125;
    color: #e8e8f0;
}

body.dark .navbar.scrolled {
    background: rgba(17, 17, 37, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

body.dark .navbar.scrolled .logo-prime {
    color: #ffffff;
}

body.dark .navbar.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

body.dark .navbar.scrolled .nav-links a:hover {
    color: var(--accent);
}

body.dark .navbar.scrolled .dark-toggle {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark .navbar.scrolled .nav-toggle span {
    background: #ffffff;
}

body.dark .why-card,
body.dark .service-card,
body.dark .contact-form,
body.dark .team-card {
    background: #1a1a2e;
    border-color: #2a2a45;
}

body.dark .form-group input,
body.dark .form-group select,
body.dark .form-group textarea {
    background: #222240;
    border-color: #2a2a45;
    color: #e8e8f0;
}

body.dark .section-dark {
    background: #0e0e20;
}


/* ===== 15. Responsive ===== */

/* Tablet (< 992px): 3-col grids become 2-col */
@media (max-width: 992px) {
    .services-grid,
    .why-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* Mobile (< 768px): everything single column, hamburger menu visible */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    /* Slide-in nav panel from the right */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #0f0f1a;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: var(--transition);
        padding: 40px;
    }

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

    .nav-links a {
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 1.1rem;
    }

    .services-grid,
    .why-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 70px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}
