/* ===== CSS Variables - Dark Theme with Bowsprit Brand Colors ===== */
:root {
    /* Brand Colors */
    --color-primary: #007FFF;
    --color-primary-light: #3399ff;
    --color-primary-dark: #0066cc;
    --color-accent: #007FFF;
    --color-accent-light: #4da6ff;

    /* Dark Theme Colors */
    --color-text: #f5f5f5;
    --color-text-light: #b0b0b0;
    --color-text-muted: #808080;
    --color-background: #0B0B0B;
    --color-background-alt: #141414;
    --color-background-elevated: #1a1a1a;
    --color-background-card: #1f1f1f;
    --color-border: #2a2a2a;
    --color-border-light: #333333;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows for dark theme */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(0, 127, 255, 0.15);

    /* Utilities */
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.text-accent {
    color: var(--color-accent);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border-light);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--color-text);
    background-color: var(--color-background-elevated);
}

.nav-link-cta {
    background-color: var(--color-accent);
    color: white !important;
    margin-left: 8px;
}

.nav-link-cta:hover {
    background-color: var(--color-primary-light) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, var(--color-background-alt) 0%, var(--color-background) 70%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(0, 127, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: var(--color-text);
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-title .text-accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 16px;
}

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

/* ===== Services Section ===== */
.services {
    background-color: var(--color-background-alt);
}

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

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: var(--color-background-card);
    padding: 36px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 127, 255, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    color: var(--color-accent);
}

.service-title {
    margin-bottom: 12px;
    color: var(--color-text);
}

.service-description {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-features {
    padding-left: 0;
}

.service-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* ===== About Section ===== */
.about {
    background-color: var(--color-background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.about-image .headshot {
    width: 100%;
    max-width: 350px;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.about-image .about-logo {
    width: 80px;
    height: auto;
    opacity: 0.8;
}

/* ===== Industries Section ===== */
.industries {
    background-color: var(--color-background-alt);
}

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

.industry-card {
    text-align: center;
    padding: 40px 32px;
    background-color: var(--color-background-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.industry-icon {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.industry-title {
    color: var(--color-text);
    margin-bottom: 12px;
}

.industry-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, var(--color-background-card) 0%, var(--color-background-elevated) 100%);
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.cta-title {
    color: var(--color-text);
    margin-bottom: 16px;
}

.cta-subtitle {
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--color-background);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 127, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 4px;
    color: var(--color-text);
}

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

.contact-item a {
    color: var(--color-text-light);
}

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

.contact-form {
    background-color: var(--color-background-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-background-elevated);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 127, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background-color: var(--color-background-card);
    color: var(--color-text);
}

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

/* ===== Footer ===== */
.footer {
    background-color: var(--color-background-alt);
    color: var(--color-text);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.footer-brand .nav-logo {
    margin-bottom: 12px;
}

.footer-brand .nav-logo img {
    height: 36px;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-image-placeholder {
        max-width: 300px;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-background);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .nav-link-cta {
        margin-left: 0;
        margin-top: 8px;
    }

    .nav-toggle.active .hamburger {
        background-color: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    section {
        padding: 70px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 40px 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .service-card {
        padding: 28px;
    }

    .industry-card {
        padding: 28px 20px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.industry-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.industry-card:nth-child(1) { animation-delay: 0.1s; }
.industry-card:nth-child(2) { animation-delay: 0.2s; }
.industry-card:nth-child(3) { animation-delay: 0.3s; }
.industry-card:nth-child(4) { animation-delay: 0.4s; }
