/* ==========================================================================
   1. SETUP: VARIABLES, RESET, GLOBAL STYLES
   ========================================================================== */
:root {
    --primary-color: #A8FBD3;
    /* Electric Cyan */
    --cta-color: #4FB7B3;
    /* Hot Pink/Magenta */
    --bg-dark: #0A0A1A;
    /* Deep Navy Blue */
    --bg-light-dark: #1A1A2A;
    /* Lighter Navy */
    --border-color: #2A2A3A;
    /* Subtle Border */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.2);
    --transition: 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700;800&family=Inter:wght@400;500&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-secondary);
    color: var(--text-secondary);
    background-color: var(--bg-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-glow {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* ==========================================================================
   2. REUSABLE COMPONENTS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-tagline {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.header.scrolled {
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.main-nav {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition);
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
}

.hamburger-menu span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger-menu span:nth-child(1),
.hamburger-menu span:nth-child(3) {
    transition: transform 0.3s;
}

.hamburger-menu.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition), visibility var(--transition);
    opacity: 0;
    visibility: hidden;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin-bottom: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 6vw, 2rem);
    color: var(--text-primary);
}

body.nav-open {
    overflow: hidden;
}

/* ==========================================================================
   4. PAGE SECTIONS
   ========================================================================== */
.hero-section {
    padding: calc(var(--header-height) + 80px) 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin: 1.5rem 0 2.5rem 0;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.hero-glow-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0.15;
    filter: blur(50px);
}

.clients-section {
    padding: 40px 0;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.clients-title {
    text-align: center;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.clients-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.client-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    color: #8b949e;
    transition: color var(--transition), text-shadow var(--transition);
}

.client-name:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--primary-color);
}

.services-section {
    background-color: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(26, 26, 42, 0.5);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.about-section {
    background-color: var(--bg-light-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-container img {
    border-radius: var(--border-radius);
    width: 100%;
}

.process-section {
    background-color: var(--bg-dark);
}

.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--cta-color));
}

.timeline-item {
    position: relative;
    padding-left: 70px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--bg-light-dark);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--shadow-glow);
}

.casestudy-section {
    background: var(--bg-light-dark);
}

.casestudy-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.casestudy-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.casestudy-content {
    padding: 3rem;
}

.casestudy-metrics {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.metric-label {
    font-size: 0.9rem;
}

.faq-section {
    background-color: var(--bg-dark);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.faq-answer p {
    padding: 0 0 1.5rem 0;
    color: var(--text-secondary);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform var(--transition);
    color: var(--cta-color);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.cta-section {
    background: linear-gradient(90deg, var(--cta-color) 0%, var(--primary-color) 100%);
    color: var(--white-color);
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white-color);
}

.cta-section p {
    max-width: 600px;
    margin: 1rem auto 2rem auto;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: var(--white-color);
    color: var(--bg-dark);
}

/* Contact Page */
.contact-hero-section {
    text-align: center;
    padding: calc(var(--header-height) + 60px) 0 80px;
}

.contact-form-section {
    padding-bottom: 100px;
}

.contact-wrapper {
    background: var(--bg-light-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: grid;
    grid-template-columns: 2fr 1fr;
    overflow: hidden;
}

.contact-form {
    padding: 3rem;
}

.contact-info {
    background: var(--bg-dark);
    padding: 3rem;
    border-left: 1px solid var(--border-color);
}

.contact-info-list {
    list-style: none;
    margin-top: 2rem;
}

.contact-info-list li {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-secondary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: #8b949e;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #8b949e;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-container {
        order: -1;
        max-width: 500px;
        margin: 0 auto 3rem auto;
    }

    .about-content {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .casestudy-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .process-timeline::before {
        left: 12px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-item::before {
        left: 4px;
    }
}