/* =========================================
   DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    /* Colors */
    --color-primary: #0a0a0a;
    --color-primary-light: #2b2b2b;
    --color-primary-dark: #000000;
    
    --color-accent: #0077b6; /* Oceanic aquatic blue */
    --color-accent-light: #00b4d8;
    --color-accent-dark: #03045e;
    
    --color-bg-light: #f8f9fa;
    --color-bg-white: #ffffff;
    --color-bg-dark: #121212;

    --color-text: #333333;
    --color-text-muted: #6c757d;
    --color-text-light: #ffffff;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows & Radii */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESETS & GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

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

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 1px solid var(--color-primary);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all var(--transition-medium);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

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

.logo {
    height: 48px;
    width: auto;
    transition: filter var(--transition-fast);
}

/* By default, we might invert the logo if it's on a dark hero image. */
.logo.light-mode {
    filter: invert(1);
}

.header.scrolled .logo.light-mode {
    filter: invert(0);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-light); /* Assuming dark hero */
    transition: color var(--transition-fast);
}

.header.scrolled .nav-link {
    color: var(--color-primary);
}

.nav-link:hover {
    color: var(--color-accent-light);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--spacing-xl);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05); /* slightly scaled for parallax effect in js */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.6) 0%, 
        rgba(0,0,0,0.2) 50%, 
        rgba(0,0,0,0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-text-light);
    max-width: 800px;
    margin-top: 4rem; /* offset for header */
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.service-img-wrapper {
    height: 240px;
    overflow: hidden;
    border-bottom: 2px solid var(--color-accent);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.service-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: var(--spacing-md) 0;
    text-align: center;
}

/* =========================================
   ANIMATIONS & EFFECTS
   ========================================= */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   QUOTE MODAL
   ========================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background: var(--color-bg-white);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    z-index: 1001;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: var(--spacing-sm);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-medium);
}

.modal.active .modal-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.modal-header {
    padding: var(--spacing-md) var(--spacing-md) 0;
    text-align: center;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 6px;
    background: var(--color-bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-accent);
    width: 33.33%;
    transition: width var(--transition-medium);
}

.modal-body {
    padding: var(--spacing-md);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-card {
    display: block;
    cursor: pointer;
}

.option-card input {
    display: none;
}

.option-content {
    padding: 1.25rem;
    border: 2px solid var(--color-bg-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.option-card input:checked + .option-content {
    border-color: var(--color-accent);
    background: rgba(0, 119, 182, 0.05); /* accent light */
}

.option-content h4 {
    font-size: 1.1rem;
    color: var(--color-text);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.mt-4 { margin-top: 2rem; }

.success-step {
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.modal .btn-secondary {
    color: var(--color-text);
    border-color: #ccc;
}
.modal .btn-secondary:hover {
    background-color: var(--color-bg-light);
    border-color: #999;
}
