/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties */
:root {
    --deep-navy: #204060;
    --bright-green: #3BCB6F;
    --coral-dot: #ED5C47;
    --pure-white: #FFFFFF;
    --light-grey: #F5F7FA;
    --text-grey: #666666;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --letter-spacing: 0.2px;
    
    --max-width: 1100px;
    --section-padding: 64px;
    --transition: 120ms ease-out;
    
    --focus-ring: 2px solid var(--bright-green);
}

/* Base Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    letter-spacing: var(--letter-spacing);
    line-height: 1.6;
    color: var(--deep-navy);
    overflow-x: hidden;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 65ch;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
    color: var(--deep-navy);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    letter-spacing: var(--letter-spacing);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #2fa85a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 203, 111, 0.3);
}

/* Navigation */
.nav-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--deep-navy);
    z-index: 1000;
    transition: all var(--transition);
}

.nav-sticky .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
}

.logo-fallback {
    color: var(--pure-white);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: var(--font-weight-normal);
    transition: color var(--transition);
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bright-green);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--pure-white);
    margin: 2px 0;
    transition: all var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, #1a3352 50%, var(--deep-navy) 100%);
    color: var(--pure-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

/* L0 - Canvas Mesh Gradient */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none; /* Allow clicks to pass through but still capture mouse movement via window */
}

/* L1 - Grain Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml;utf8,<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="1" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>'),
        radial-gradient(circle at 40% 30%, rgba(59, 203, 111, 0.2) 0%, transparent 70%);
    background-size: 512px 512px, 100% 100%;
    background-repeat: repeat, no-repeat;
    pointer-events: none;
    z-index: 2;
}

/* L2 - Radial Spotlight (integrated into ::before) */
/* L3 - Content Layer */

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-logo img {
    height: 64px;
    width: auto;
}

.logo-fallback-hero {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logo-text {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--pure-white);
}

.logo-dot {
    width: 16px;
    height: 16px;
    background-color: var(--coral-dot);
    border-radius: 50%;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    margin-bottom: 48px;
    font-size: 1.25rem;
    opacity: 0.9;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    font-size: 1.125rem;
}

/* About Section */
.about {
    background-color: var(--pure-white);
    padding: var(--section-padding) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.about-avatar img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.7;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.client-logo {
    opacity: 0.6;
    transition: opacity var(--transition);
}

.client-logo:hover {
    opacity: 1;
}

.client-logo img {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--transition);
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* Services Section */
.services {
    background-color: var(--light-grey);
    padding: var(--section-padding) 0;
}

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

.service-card {
    background: linear-gradient(145deg, var(--pure-white) 0%, #fafbfc 100%);
    padding: 48px 32px;
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 203, 111, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bright-green), var(--coral-dot));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 203, 111, 0.2);
}

.service-icon {
    margin-bottom: 24px;
    color: var(--bright-green);
}

.service-icon svg {
    width: 48px;
    height: 48px;
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--deep-navy);
}

.service-card p {
    color: var(--text-grey);
    line-height: 1.6;
    margin: 0 auto;
}

/* Selected Work Section */
.selected-work {
    background-color: var(--pure-white);
    padding: var(--section-padding) 0;
}

.work-categories {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.work-category {
    text-align: center;
}

.category-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--deep-navy);
    margin-bottom: 24px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--bright-green);
    border-radius: 2px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.work-item {
    cursor: pointer;
    transition: all var(--transition);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--pure-white) 0%, #fafbfc 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.work-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 203, 111, 0.05), rgba(237, 92, 71, 0.05));
    opacity: 0;
    transition: opacity var(--transition);
}

.work-item:hover::after {
    opacity: 1;
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 203, 111, 0.2);
}

.work-thumbnail {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.work-thumbnail-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    text-align: center;
    transition: opacity var(--transition);
}

.work-thumbnail.has-image .work-thumbnail-fallback {
    opacity: 0;
    pointer-events: none;
}

.work-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.work-preview-text {
    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-grey);
    line-height: 1.3;
}

.work-title {
    padding: 24px;
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--deep-navy);
}

/* Process Section */
.process {
    background: linear-gradient(135deg, var(--deep-navy) 0%, #1a3352 50%, var(--deep-navy) 100%);
    color: var(--pure-white);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(59, 203, 111, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.process .section-title {
    color: var(--pure-white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    position: relative;
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 32px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.process-icon {
    margin-bottom: 24px;
    color: var(--bright-green);
}

.process-icon svg {
    width: 48px;
    height: 48px;
}

.process-step h3 {
    margin-bottom: 16px;
    color: var(--bright-green);
}

.process-step p {
    opacity: 0.9;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    background-color: var(--pure-white);
    padding: var(--section-padding) 0;
}

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

.contact-info {
    text-align: center;
}

.contact-info p {
    margin-bottom: 32px;
    font-size: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--deep-navy);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-email:hover {
    color: var(--coral-dot);
}

.contact-form-container {
    background: linear-gradient(145deg, var(--light-grey) 0%, #f0f3f7 100%);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 203, 111, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: var(--font-weight-bold);
    color: var(--deep-navy);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    background-color: var(--pure-white);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bright-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 8px;
}

.form-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: var(--font-weight-bold);
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background-color: var(--deep-navy);
    color: var(--pure-white);
    padding: 32px 0;
}

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

.footer-link {
    color: var(--pure-white);
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--coral-dot);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 64, 96, 0.9);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--pure-white);
    margin: 10% auto;
    padding: 48px;
    border-radius: 12px;
    max-width: 600px;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-grey);
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--coral-dot);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(32px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.6s ease-out;
}

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

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-canvas {
        display: none;
    }
    
    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(59, 203, 111, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(237, 92, 71, 0.1) 0%, transparent 50%);
        pointer-events: none;
        z-index: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--deep-navy);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        padding: calc(var(--section-padding) + 64px) 0 var(--section-padding);
    }
    
    .hero-canvas {
        opacity: 0.6;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .client-logos {
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .work-categories {
        gap: 32px;
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-container {
        order: -1;
        padding: 32px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .modal-content {
        margin: 20% 16px;
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .work-categories {
        gap: 24px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }
    
    .client-logos {
        flex-direction: column;
        gap: 16px;
    }
} 