:root {
    /* Future Forward Palette */
    --bg-void: #020617;
    --bg-panel: rgba(30, 41, 59, 0.7);
    --bg-surface: #0f172a;

    --accent-cyan: #06b6d4;
    --accent-glow: #22d3ee;
    --accent-amber: #f59e0b;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    /* Dimensions & Effects */
    --container-width: 1400px;
    --glass-blur: 12px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --glow-text: 0 0 20px rgba(34, 211, 238, 0.5);

    /* Typography - Jost */
    --font-main: 'Jost', sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-cyan);
    margin-top: 15px;
}

p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.section-subtitle {
    display: block;
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 18px 45px;
    background: var(--accent-cyan);
    color: var(--bg-void);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0;
    /* Square edges */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
    background: #22d3ee;
}

.btn-secondary {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    border-radius: 0;
}

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

/* Header & Nav */
/* Ribbon Header (Refined White) */
header {
    position: fixed;
    top: 0;
    /* Fixed to top now */
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0;
    /* Remove padding to make it full width/flush */
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-ribbon {
    /* Removed individual background/backdrop since header container handles it now for full width look 
       OR keep it if we want the contained look. The image showed a full white bar. 
       Let's make 'header' the white bar. */
    height: 90px;
    /* Adjusted for professional look */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Logo Setup */
.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: auto;
    /* Push nav to the right/center depending on layout */
}

/* Adjust logo size slightly for top bar balance */
.logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    height: 100%;
    align-items: center;
    margin: 0 3rem;
    /* Spacing from logo and button */
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    color: #1e293b;
    /* Dark Slate for clearer contrast on white */
    text-decoration: none;
}

.nav-links a:hover {
    color: #00217A;
}

/* Get Quote Button */
.get-quote-btn {
    background-color: #003399;
    /* Deep Royal Blue per reference */
    color: white;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: background 0.3s;
    white-space: nowrap;
}

.get-quote-btn:hover {
    background-color: #00217A;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 20px;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: #00217A;
    margin: 6px 0;
    transition: 0.4s;
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('fresh-hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, var(--bg-void), transparent);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-top: 80px;
    width: 100%;
    /* Ensure it spans full width so .container padding/margin works */
}

.hero-eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
    width: fit-content;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

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

.service-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    transition: all 0.3s;
    border-radius: 0;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.icon-box {
    color: var(--accent-cyan);
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    position: relative;
    height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-panel);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.1), 0 4px 6px -2px rgba(6, 182, 212, 0.05);
    transform: translateY(-5px);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s;
    opacity: 0.8;
    filter: grayscale(20%);
}

.project-card:hover .project-img {
    transform: scale(1.1);
    opacity: 0.6;
    filter: grayscale(0%);
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.project-card:hover .project-info {
    opacity: 1;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-card:hover .project-info h3 {
    transform: translateY(0);
}

.project-cat {
    text-transform: uppercase;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-card:hover .project-cat {
    transform: translateY(0);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-features li {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.about-features svg {
    color: var(--accent-cyan);
}

.about-img-wrapper {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 0;
    filter: grayscale(100%) contrast(1.1);
    transition: 0.5s;
}

.about-img-wrapper:hover .about-img {
    filter: grayscale(0%);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-cyan);
    color: var(--bg-void);
    padding: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.experience-number {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Contact Details */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    border: 1px solid var(--border-glass);
    background: var(--bg-panel);
}

.contact-info-panel {
    padding: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.info-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 1.1rem;
}

.info-item svg {
    color: var(--accent-cyan);
}

.contact-footer {
    margin-top: auto;
    padding-top: 3rem;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-wrapper {
    padding: 4rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 5rem 0 2rem;
    background: #01040f;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo-img {
    height: 96px;
    width: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.footer-logo {
    display: block;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 1rem;
    opacity: 0.7;
}

.footer-col h4 {
    margin-bottom: 2rem;
    color: var(--accent-cyan);
}

.footer-links li {
    margin-bottom: 1rem;
}

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

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    header {
        top: 0;
        padding: 0;
    }

    .header-ribbon {
        width: 100%;
        height: 70px;
        padding: 0 1.5rem;
    }

    .nav-links {
        display: block;
        position: fixed;
        top: 70px;
        /* Header height */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: circle(0px at 100% 0%);
        /* Hidden initially */
        transition: clip-path 0.5s ease-in-out;
        pointer-events: none;
        height: auto;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0%);
        /* Reveal */
        pointer-events: all;
    }

    .nav-links a {
        display: block;
        padding: 1.5rem;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 3.5rem;
    }

    .about-grid,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }

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

/* Social Links */
.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.social-links a:hover {
    background: #0077b5;
    /* LinkedIn Blue */
    color: white;
    color: #0077b5;
    border-color: #0077b5;
    transform: translateY(-3px);
}

/* Legal Content (Privacy & Terms) */
.legal-content {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border: none;
    /* Remove default underline if inherited */
}

.legal-content h2::after {
    display: none;
    /* Remove the cyan underline from main styles */
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-content ul {
    padding-left: 20px;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 0.5rem;
}