/* ============================================
   RESET & BASE STYLES
   ============================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a4d7a;
    --color-primary-dark: #0f2d47;
    --color-primary-light: #2d6ba3;
    --color-accent: #ff6b35;
    --color-accent-dark: #e55a2b;
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-text-lighter: #6a6a6a;
    --color-bg: #f8f8f7;
    --color-bg-section: #ffffff;
    --color-bg-dark: #1a1a1a;
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#dataStreamCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(26, 77, 122, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 77, 122, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.energy-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(26, 77, 122, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 248, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-lighter);
    letter-spacing: 0.1em;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-section);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: right 0.3s ease;
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 4rem;
}

.mobile-nav-link {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    text-decoration: none;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 248, 247, 0.9) 0%, rgba(248, 248, 247, 0.7) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-full {
    width: 100%;
}

.hero-focus-areas {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.focus-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-lighter);
    margin-bottom: 1.5rem;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-section);
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.focus-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.focus-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.focus-item span {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.hero-tagline {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.hero-tagline p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    font-style: italic;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    position: relative;
    padding: 6rem 0;
    background: var(--color-bg-section);
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 77, 122, 0.1);
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--color-primary);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.service-description {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

.service-image-placeholder {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 1.5rem;
    border-radius: 4px;
    background: var(--color-border-light);
}

.service-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-placeholder img {
    transform: scale(1.05);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    position: relative;
    padding: 6rem 0;
    background: var(--color-bg);
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-main {
    max-width: 600px;
}

.about-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.about-image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

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

.about-approach {
    margin-bottom: 4rem;
}

.about-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-text);
}

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

.approach-item {
    padding: 2rem;
    background: var(--color-bg-section);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
}

.approach-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.approach-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.approach-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.approach-item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.about-values {
    margin-bottom: 4rem;
}

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

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-section);
    border: 1px solid var(--color-border-light);
}

.value-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.value-item span {
    font-size: 1rem;
    color: var(--color-text-light);
}

.values-tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    font-style: italic;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    position: relative;
    padding: 6rem 0;
    background: var(--color-bg-section);
    z-index: 1;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 1rem auto 3rem;
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-card {
    background: var(--color-bg);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
}

.contact-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-lighter);
}

.contact-item span:not(.contact-label),
.contact-item a {
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: none;
}

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

.contact-image-wrapper {
    width: 100%;
    height: 300px;
    margin-top: 2rem;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

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

.contact-social-wrapper {
    background: var(--color-bg);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
}

.contact-social-wrapper h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.social-description {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-twitter {
    background: #000000;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid #000000;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.btn-twitter:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-twitter-secondary {
    background: transparent;
    color: #000000;
    border-color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid #000000;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.btn-twitter-secondary:hover {
    background: #000000;
    color: white;
}

.twitter-x-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-bg-dark);
    color: #ffffff;
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

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

.footer-section h4,
.footer-section h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .about-image-wrapper {
        order: -1;
    }

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

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

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

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-section {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.5rem;
    }

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

    .values-list {
        grid-template-columns: 1fr;
    }

    .about-gallery {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-twitter,
    .btn-twitter-secondary {
        width: 100%;
    }

    .social-buttons {
        width: 100%;
    }
}

/* ============================================
   IMAGE PLACEHOLDERS & FALLBACKS
   ============================================ */
.service-image-placeholder img,
.about-image-wrapper img,
.gallery-item img,
.contact-image-wrapper img {
    background: linear-gradient(135deg, var(--color-border-light) 0%, var(--color-border) 100%);
}

.service-image-placeholder img:not([src]),
.about-image-wrapper img:not([src]),
.gallery-item img:not([src]),
.contact-image-wrapper img:not([src]) {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-image-placeholder img:not([src])::after,
.about-image-wrapper img:not([src])::after,
.gallery-item img:not([src])::after,
.contact-image-wrapper img:not([src])::after {
    content: 'Image placeholder';
    position: absolute;
    color: var(--color-text-lighter);
    font-size: 0.875rem;
    text-align: center;
}

/* ============================================
   ADDITIONAL RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero-focus-areas {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .focus-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-content {
        gap: 2rem;
    }

    .contact-content {
        gap: 2rem;
    }

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

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .animated-background,
    .site-header,
    .mobile-menu,
    .hero-cta,
    .contact-form,
    .site-footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
