:root {
    /* Main branding colors sampled from your logo and existing CSS */
    --logo-bg: #0a1923;   /* Deep Night Blue */
    --logo-icon: #2acdfc; /* Electric Blue (sampled from logo icon) */
    --text-white: #f1faee; /* Clean White */
    --dark-blue-text: #1A97C2; /* Blue color for main title H1 */
    --accent-blue-text: #60B8E8; /* Lighter blue for H2 title */
}

/* Ensure smooth scrolling when clicking navigation links */
html {
    scroll-behavior: smooth;
    overflow-y: auto; /* Enable vertical scrolling */
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    background-color: var(--logo-bg);
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Deeper, refined radial gradient centered */
    background: radial-gradient(circle at center, #112d40 0%, var(--logo-bg) 70%);
    z-index: -1;
}

/* --- ADDED HEADER STYLES --- */
.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(10, 25, 35, 0.9); /* Opaque background with alpha */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 40px;
    height: auto;
    display: block;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    outline: none;
}

.logo-link:hover {
    opacity: 0.8; /* Subtle visual feedback when hovering the logo */
    transition: opacity 0.3s ease;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation li a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.main-navigation li a:hover {
    color: var(--logo-icon);
}

/* --- ADJUSTED GLASS CARD STYLES --- */
.hero-section {
    width: 100%;
    height: 100vh; /* Centered in viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px; /* Offset for the fixed header */
}

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.8), 
                0 0 15px 0px rgba(42, 205, 252, 0.1); 
}

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    max-width: 100px;
    height: auto;
    display: block;
}

/* Hero Text */
.hero-tagline {
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--logo-icon);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-white);
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 2rem;
}
h1 { 
    margin: 0; 
    font-weight: 500; 
    letter-spacing: 8px; 
    color: var(--dark-blue-text); 
    font-size: 2.3rem;
}

h2 { 
    margin: 4; 
    font-weight: 500; 
    letter-spacing: 6px; 
    color: var(--accent-blue-text); 
    font-size: 1.5rem;
}

.subtitle { 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 2.5px; 
    margin-top: 1.5rem; 
    font-weight: 600;
    color: var(--text-white); 
}

hr { 
    border: 0; 
    height: 1px; 
    background: rgba(255,255,255,0.1); 
    margin: 2.5rem 0; 
}

.status { 
    line-height: 1.7; 
    color: #cbd5e1; 
    font-weight: 300; 
    margin-bottom: 2.5rem; 
    font-size: 1.05rem;
}

.cta-button {
    text-decoration: none;
    background: var(--dark-blue-text); 
    color: var(--logo-bg); 
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s ease;
    display: inline-block;
}

.cta-button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px 0 rgba(42, 205, 252, 0.5); 
}

/* --- ADDED MAIN CONTENT CONTAINER --- */
.main-content {
    max-width: 1000px; 
    width: 100%;
    margin: 0 auto;
    background: rgba(10, 25, 35, 0.4); 
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(5px);
    overflow: hidden;
    /* REMOVED the negative margin-top to stop it from sliding under the header */
    margin-top: 2rem; 
}


/* This ensures that when you click 'About' or 'Services', 
   the fixed header doesn't cover the section title. */
.content-block {
    scroll-margin-top: 100px; /* Adjust this value based on your header height */
    margin: 2rem auto; 
    padding: 0 3rem;
    color: #cbd5e1; 
    font-weight: 300;
    line-height: 1.8;
}

.content-block h3 {
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--logo-icon); 
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.content-block p {
    margin-bottom: 1.25rem;
}

/* --- ADDED CONTENT HEADER VISUAL --- */
.content-block-header {
    width: 100%;
    height: 485px; /* Balanced height for the Flatirons image */
    overflow: hidden;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.header-visual {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    /* Centers the image horizontally and aligns the top edge */
    object-position: top center; 
    display: block;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay for blending and text readability */
    background: linear-gradient(180deg, rgba(10, 25, 35, 0.1) 0%, rgba(10, 25, 35, 0.7) 90%);
}

/* --- BENTO GRID STYLES --- */

.services-bento-grid {
    display: grid;
    /* Forces exactly two equal columns */
    grid-template-columns: 1fr 1fr; 
    grid-auto-rows: auto;
    gap: 1.5rem;
}

.bento-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2.5rem; /* Increased padding for a more premium feel */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.05);
}

.bento-box h4 {
    margin: 0 0 1rem;
    color: var(--dark-blue-text); 
    font-weight: 600;
    font-size: 1.2rem;
}

.bento-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.service-1 {
    grid-column: span 2;
}




@media (max-width: 768px) {
    .service-1 {
        grid-column: span 1;
    }
}

/* --- ADJUSTED CONTACT SECTION STYLES --- */
.contact-section {
    padding-bottom: 3rem; /* Final content block needs extra space */
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: flex-start;
}



.contact-cta-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2rem;
    flex-grow: 1;
}

.contact-cta-block h4 {
    margin: 0 0 1rem;
    color: var(--logo-icon); 
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.contact-cta-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}


/* Specific Contact CTA customizations */
.contact-cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center; /* This ensures the button is centered, rather than stretched */
}

.primary-cta {
    /* MODIFICATION 1: Main heading now matches the electric blue of the logo */
    background: var(--logo-icon) !important; 
    
    /* MODIFICATION 2: Subtitle is now white */
    color: var(--logo-bg) !important; 
    
    /* MODIFICATION 3: Removed width: 100%; to allow the button to remain centered and correctly sized */
    /* width: 100%; */ /* DELETED */
    
    /* Optional: Slight adjustment for balance, since it's no longer full width */
    padding: 1rem 3rem; 
}

/* --- ADDED FOOTER STYLES --- */
.main-footer {
    width: 100%;
    background: rgba(10, 25, 35, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 3rem;
    display: grid;
    grid-template-columns: auto 1fr auto; /* Three columns: Logo, Info, Social */
    align-items: center;
    gap: 2rem;
}

.footer-logo-img {
    max-height: 30px;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;    
}

.footer-info {
    text-align: left;
    color: #cbd5e1;
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-info p {
    margin: 0;
}

.location {
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--logo-icon);
    margin-bottom: 0.25rem !important;
}

.copyright {
    text-transform: uppercase;
}

.terms-link {
    margin-top: 0.5rem !important;
}

.terms-link a {
    color: #cbd5e1;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-self: end;
}

.social-icon {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    background: var(--logo-icon);
    color: var(--logo-bg);
}

/* --- MOBILE RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    /* Fix Navigation: Change from flex-row to a centered column or stack */
    .header-content {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .main-navigation ul {
        gap: 1.2rem;
    }

    .main-navigation li a {
        font-size: 0.8rem; /* Slightly smaller text for narrow screens */
    }

    /* Fix Mountain Image: Adjust height and ensure it centers */
    .content-block-header {
        height: 250px; /* Reduce height on mobile so it doesn't take the whole screen */
    }

    .header-visual {
        object-position: center; /* Shift focus to the center of the image */
    }

    /* Fix Layout Spacing: Reduce padding so content doesn't feel cramped */
    .main-content {
        margin-top: 120px; /* Space for the stacked header */
        border-radius: 0;   /* Square edges look better on small screens */
    }

    .content-block {
        padding: 0 1.5rem;
    }

    .contact-container {
        flex-direction: column; /* Stack the contact text and CTA box */
        gap: 2rem;
    }

    .contact-cta-block {
        max-width: 100%; /* Allow CTA to take full width */
    }
    .services-bento-grid {
        /* Drops to 1 column on mobile for readability */
        grid-template-columns: 1fr; 
    }
    
    .service-1 {
        grid-column: span 1;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 35, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 5% auto;
    padding: 3rem;
    width: 80%;
    max-width: 800px;
    border-radius: 20px;
    color: var(--text-white);
    position: relative;
    text-align: center;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
    margin-top: 2rem;
}

.modal-item h5 {
    color: var(--logo-icon);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--logo-icon);
}

.modal-trigger {
    background: transparent;
    border: 1px solid var(--logo-icon);
    color: var(--logo-icon);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: 0.3s;
}

.modal-trigger:hover {
    background: var(--logo-icon);
    color: var(--logo-bg);
}

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