/* ==========================================================================
   1. ROOT VARIABLES
   ========================================================================== */
:root {
    /* Triad Color Scheme */
    --primary-color: #0A4D68; /* Deep Blue - Trust, Stability */
    --primary-color-dark: #07384e;
    --secondary-color: #FF6B00; /* Vibrant Orange - Success, Energy */
    --accent-color: #088395; /* Teal/Green - Growth */

    /* Neutral & Background Colors */
    --light-bg: #F8F9FA;
    --dark-bg: #031720;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --text-darker: #222222;
    --border-color: #e0e0e0;
    
    /* Typography */
    --font-header: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Sizing & Spacing */
    --header-height: 80px;
    --border-radius: 12px;
    --container-width: 1200px;
    --section-padding: 6rem 1.5rem;

    /* Shadows for Volumetric UI */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* ==========================================================================
   2. GLOBAL STYLES & RESETS
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Headings and Text */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: var(--text-darker);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
}

.section-padding-dark {
    padding: var(--section-padding);
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.section-padding-dark h1,
.section-padding-dark h2,
.section-padding-dark h3 {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem auto;
    font-size: 1.1rem;
    color: #666;
}
.section-padding-dark .section-subtitle {
    color: #ccc;
}


/* ==========================================================================
   3. BUTTONS & FORMS (GLOBAL)
   ========================================================================== */
.btn, button, input[type="submit"] {
    display: inline-block;
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    user-select: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-3d {
    box-shadow: 0 6px var(--primary-color-dark), 0 8px 15px rgba(0,0,0,0.3);
}

.btn:hover, button:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn:active, button:active, input[type="submit"]:active {
    transform: translateY(2px);
    box-shadow: 0 2px var(--primary-color-dark), 0 4px 8px rgba(0,0,0,0.3);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0 0.25rem;
    background-color: var(--light-bg);
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

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

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

.logo strong {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger-menu {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}


/* ==========================================================================
   5. SECTION STYLES
   ========================================================================== */
/* Hero Section */
.hero-section {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hero-title {
    font-size: 3.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Mission Section */
.mission-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.mission-image-container {
    flex: 1 1 50%;
}

.mission-image-container img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.mission-text {
    flex: 1 1 50%;
}

/* Portfolio Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.gallery-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Case Studies Section */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content p {
    flex-grow: 1;
}

.progress-indicator {
    width: 100%;
    margin-top: 1.5rem;
}

.progress-indicator label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.progress-indicator progress {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 5px;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background-color: #eee;
}

progress::-webkit-progress-value {
    background-color: var(--accent-color);
    transition: width 1s ease-in-out;
}

.progress-indicator span {
    display: block;
    text-align: right;
    font-weight: bold;
    color: var(--accent-color);
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-number-morph {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: var(--font-header);
    margin: 0 auto 1.5rem auto;
    transition: transform 0.4s ease, border-radius 0.4s ease;
}

.step:hover .step-number-morph {
    transform: scale(1.1) rotate(15deg);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Press Section */
.press-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.press-logos img {
    max-height: 40px;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.3s ease;
}
.press-logos img:hover {
    filter: grayscale(0%) brightness(1);
}

/* Resources Section */
.resource-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.resource-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 5px solid var(--secondary-color);
    transition: background-color 0.3s ease;
}

.resource-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.resource-list a {
    color: var(--text-light);
    font-weight: bold;
    transition: color 0.3s ease;
}

.resource-list a:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}
.contact-info, .contact-form {
    flex: 1 1 45%;
}
.column.is-two-thirds {
    flex-basis: 60%;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 4rem 1.5rem 2rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: #ccc;
}

.footer-column ul a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   7. SPECIFIC PAGE STYLES
   ========================================================================== */
.success-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.success-content h1 {
    color: var(--text-light);
}

.static-page-content {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
}

/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 2.8rem; }
    .mission-content { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links-container {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--light-bg);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .nav-links-container.active {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .burger-menu {
        display: block;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }
    h1 { font-size: 2rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
}

/* ==========================================================================
   9. SCROLLREVEAL PLACEHOLDERS
   ========================================================================== */
/* The actual animation is handled by JS, but this prevents content flashing */
.reveal-fade-in, .reveal-slide-up, .reveal-slide-left, .reveal-slide-right {
    visibility: hidden;
}