/*
  ================================================================================
  Theme: Vibrant & Modern / SaaS-Style
  Version: 8.0
  Author: AI Assistant
  Description: A complete, framework-free stylesheet for a modern, energetic
               digital marketing agency. Features a dark theme, vibrant accents,
               glassmorphism, and multiple new content sections.
  ================================================================================
*/

/* =============================================================================
   1. CSS Variables & Font Imports
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    /* Vibrant Palette */
    --color-bg-dark: #0A0A0A;
    --color-bg-medium: #141414;
    --color-border: #262626;
    --color-accent: #14B8A6;
    /* Teal */
    --color-accent-hover: #0D9488;
    --color-text-headings: #F5F5F5;
    --color-text-body: #A3A3A3;
    --color-text-muted: #737373;
    --gradient-accent: linear-gradient(90deg, #2DD4BF 0%, #14B8A6 100%);

    /* Typography */
    --font-family-base: 'Be Vietnam Pro', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Sizing & Spacing */
    --header-height: 80px;
    --container-width: 1200px;
    --spacing-base: 1rem;
    /* 16px */
    --border-radius-lg: 16px;
}

/* =============================================================================
   2. Base & Reset Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family-base);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-body);
    background-color: var(--color-bg-dark);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-weight: var(--font-weight-extrabold);
    line-height: 1.25;
    color: var(--color-text-headings);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    letter-spacing: -1.5px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

/* =============================================================================
   3. Layout & Helpers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    margin: 0 auto 4rem;
    text-align: center;
    max-width: 750px;
}

.section-subtitle {
    display: block;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.section-title>p {
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-muted);
}

/* Background Gradient Mesh */
.section-bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 25%, rgba(20, 184, 166, 0.1), transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(45, 212, 191, 0.1), transparent 30%);
}

/* =============================================================================
   4. Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80px;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 2.5rem;
}

.main-nav a {
    color: var(--color-text-body);
    font-weight: var(--font-weight-bold);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-text-headings);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-icon {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-headings);
    border-radius: 2px;
}

/* =============================================================================
   5. Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: var(--border-radius-lg);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-image: var(--gradient-accent);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-headings);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-medium);
}

/* =============================================================================
   6. Hero Section
   ========================================================================== */
.hero {
    text-align: center;
    padding: 120px 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--color-text-headings);
    font-size: 4.5rem;
}

.hero h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-body);
    margin: 2rem auto;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* =============================================================================
   7. Industries Section
   ========================================================================== */
.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.industry-tag {
    padding: 12px 24px;
    background-color: var(--color-bg-medium);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    color: var(--color-text-body);
}

/* =============================================================================
   8. Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

.service-card:hover {
    background-color: var(--color-bg-medium);
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card .icon-wrapper svg {
    width: 30px;
    height: 30px;
    color: var(--color-bg-dark);
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* =============================================================================
   9. Philosophies Section
   ========================================================================== */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.philosophy-item {
    display: flex;
    align-items: start;
    gap: 20px;
    margin-bottom: 2rem;
}

.philosophy-item .icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}

.philosophy-item h4 {
    font-weight: bold;
    font-size: 1.2rem;
}

/* =============================================================================
   10. Case Studies Section
   ========================================================================== */
.case-study-card {
    background-color: var(--color-bg-medium);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 2rem;
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.case-study-header h3 {
    margin-bottom: 0;
}

.case-study-header .client {
    font-weight: 600;
    color: var(--color-text-muted);
}

.case-study-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.result-item .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.result-item .label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* =============================================================================
   11. Technology Stack Section
   ========================================================================== */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.tech-logo {
    height: 40px;
    filter: grayscale(100%) brightness(5);
}

.tech-logo:hover {
    filter: none;
}

/* =============================================================================
   12. FAQ Section
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item details {
    background: transparent;
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-headings);
    padding: 2rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.faq-item details[open] summary {
    color: var(--color-accent);
}

.faq-item details[open] summary::after {
    content: '−';
}

.faq-item .faq-answer {
    padding-bottom: 2rem;
}

/* =============================================================================
   13. CTA & Form Section
   ========================================================================== */
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    font-family: var(--font-family-base);
    background-color: var(--color-bg-medium);
    color: var(--color-text-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* =============================================================================
   14. Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-dark);
    border-top: 1px solid var(--color-border);
    padding-top: 80px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-widget h4 {
    font-weight: bold;
    color: var(--color-text-headings);
    font-size: 1.1rem;
}

.footer-widget p,
.footer-widget ul a {
    color: var(--color-text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* =============================================================================
   15. Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-bg-medium);
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
    }

    .main-nav li {
        margin: 0;
    }

    .main-nav a {
        display: block;
        padding: 1.25rem 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}