:root {
    --bg-dark: #0f0a1a;        /* Deep Midnight Purple */
    --bg-card: #1a1429;      /* Lighter Purple for cards */
    --accent-pink: #ff007a;   /* Electric Pink */
    --accent-purple: #9d00ff; /* Vivid Purple */
    --text-main: #ffffff;
    --text-dim: #b4acc5;
    --border: #2d2445;
    --bg-footer: #08050e;
    --bg-navbar: rgba(15, 10, 26, 0.9);
    --hero-overlay: linear-gradient(rgba(15, 10, 26, 0.8), rgba(15, 10, 26, 0.8));
    --bg-card-hover: #251b3a;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --bg-navbar-mobile: rgba(15, 10, 26, 0.98);
    --bg-card-rgb: 26, 20, 41;
    --bg-subtle: rgba(255, 255, 255, 0.02);
    --bg-card-grad-end: #1d162e;
    --trust-banner-grad-end: #2d1b4d;
    --feature-box-bg: #141021;
}

body.light-mode {
    --bg-dark: #f4f7fc;
    --bg-card: #ffffff;
    --text-main: #1c202b;
    --text-dim: #5a647e;
    --border: #e1e5eb;
    --bg-footer: #e9eef5;
    --bg-navbar: rgba(244, 247, 252, 0.9);
    --hero-overlay: linear-gradient(rgba(240, 240, 245, 0.7), rgba(240, 240, 245, 0.7));
    --bg-card-hover: #f8f9fa;
    --border-subtle: rgba(0, 0, 0, 0.05);
    --bg-navbar-mobile: rgba(244, 247, 252, 0.98);
    --bg-card-rgb: 255, 255, 255;
    --bg-subtle: rgba(0, 0, 0, 0.03);
    --bg-card-grad-end: #f8f9fa;
    --trust-banner-grad-end: #f0f3f8;
    --feature-box-bg: #fdfdff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    padding: 20px 0;
    background: var(--bg-navbar);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.9rem; }

/* Hamburger button (desktop hidden) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}



.hero { 
    position: relative;
    padding: 160px 0;
    background-image: url('images/hero-bg.jpg'); /* fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--hero-overlay);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.highlight {
    background: linear-gradient(to right, var(--accent-pink), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 0, 122, 0.3));
}

.tagline { color: var(--accent-pink); font-family: 'Roboto Mono', monospace; font-size: 0.8rem; letter-spacing: 3px; display: block; margin-bottom: 20px; }

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 25px; }

/* Buttons */
.btn-primary { 
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple));
    color: white; padding: 16px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; 
    display: inline-block; transition: 0.3s;
}

.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 0, 122, 0.5); }

.btn-secondary { 
    border: 1px solid var(--accent-purple); color: white; padding: 16px 32px; border-radius: 8px; 
    text-decoration: none; font-weight: 700; margin-left: 15px; transition: 0.3s; 
}

/* Pillar Cards with Pink Accents */
.pillars { padding: 100px 0; }
.section-title { margin-bottom: 60px; font-size: 2.5rem; text-align: center; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.pillar-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-purple);
    transition: 0.3s;
}

.pillar-card:hover {
    border-left: 4px solid var(--accent-pink);
    transform: translateY(-5px); 
    background: var(--bg-card-hover);
}

.pillar-card .icon { color: var(--accent-pink); font-family: 'Roboto Mono', monospace; margin-bottom: 15px; font-weight: bold; }

/* Footer Styling */
.main-footer {
    background: var(--bg-footer);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-dim);
    margin-top: 15px;
    max-width: 300px;
}

.footer-grid h4 {
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-family: 'Roboto Mono', monospace;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 12px;
}

.footer-grid ul li a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-grid ul li a:hover {
    color: var(--accent-pink);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px; 
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.highlight-link {
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 15px auto; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }

    /* Make the header container position relative so the mobile menu can be positioned */
    .navbar .container { position: relative; }

    /* Show hamburger and hide desktop links by default */
    .hamburger { display: flex; }
    .nav-links { display: none; position: absolute; top: 68px; right: 20px; background: var(--bg-navbar-mobile); border: 1px solid var(--border); padding: 18px; flex-direction: column; gap: 12px; border-radius: 10px; min-width: 200px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
    .nav-links li { margin: 0; }
    .nav-links a { font-size: 1rem; }

    /* When navbar has .open, show the mobile menu */
    .navbar.open .nav-links { display: flex; }

    /* Animate hamburger into X when open */
    .navbar.open .hamburger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .navbar.open .hamburger span:nth-child(2) { opacity: 0; }
    .navbar.open .hamburger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}


/* Contact Page Specifics */
.contact-page {
    background: radial-gradient(circle at top right, var(--bg-card), var(--bg-dark));
}

.contact-hero {
    padding: 80px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.info-details {
    margin-top: 40px;
}

.info-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 2px solid var(--accent-pink);
}

.info-item strong {
    display: block;
    color: var(--accent-pink);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* The Glass Form */
.contact-form-container {
    background: rgba(var(--bg-card-rgb), 0.5);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-family: 'Roboto Mono', monospace;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 15px;
    color: var(--text-main);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 10px rgba(255, 0, 122, 0.2);
}

.w-full { width: 100%; cursor: pointer; border: none; }

@media (max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact-info { text-align: center; }
    .info-item { border-left: none; border-top: 2px solid var(--accent-pink); padding-top: 10px; }
}



/* PH CHANGE - TO stack vertically at max 450.  Original value was 400 */
/* Specific Fixes for Galaxy S8 and Mobile Devices */
@media (max-width: 450px) {
    /* Shrink the headline so it doesn't break awkwardly */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    /* Adjust the hero padding so the text isn't touching the edges */
    .hero {
        padding: 80px 0 40px;
    }

    /* Stack buttons vertically so they don't overlap */
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .btn-secondary {
        margin-left: 0 !important;
    }

    /* Ensure the contact form doesn't feel too cramped */
    .contact-form-container {
        padding: 25px 15px;
        margin: 0 10px;
    }

    /* Make the logo slightly smaller for the narrow header */
    .logo {
        font-size: 1.2rem;
    }

    /* Ensure the background image stays centered */
    .hero {
        background-position: 65% center; /* Shifts the wind turbines slightly so they aren't hidden by text */
    }
}


/* Assessment Page Styling */
.page-header {
    padding: 100px 0 60px;
    text-align: center;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 20px auto 0;
}

.methodology {
    padding: 60px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.process-step {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 15px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-purple), var(--accent-pink));
}

.step-num {
    font-family: 'Roboto Mono', monospace;
    color: var(--accent-pink);
    font-size: 2.5rem;
    font-weight: bold;
    opacity: 0.3;
    margin-bottom: 10px;
}

.process-step h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.process-step p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Mobile Fixes for S8 */
@media (max-width: 400px) {
    .page-header h1 { font-size: 2.2rem; }
    .process-step { padding: 25px; }
}


/* Advisory Page Specifics */
.advisory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.advisory-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-grad-end));
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.advisory-card:hover {
    border-color: var(--accent-pink);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(157, 0, 255, 0.15);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--accent-pink));
}

.advisory-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Trust Banner */
.trust-banner {
    margin-top: 80px;
    background: linear-gradient(90deg, var(--bg-card), var(--trust-banner-grad-end));
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--accent-purple);
}

.trust-banner h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.trust-banner p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Mobile Adjustments for Galaxy S8 */
@media (max-width: 768px) {
    .advisory-grid {
        grid-template-columns: 1fr;
    }
    .advisory-card {
        padding: 30px;
    }
    .trust-banner {
        padding: 40px 20px;
    }
}




/* Management Page Styles */
.mgt-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.mgt-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px; 
    background: var(--bg-subtle);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.mgt-item:hover {
    border-color: var(--accent-purple);
    background: rgba(157, 0, 255, 0.05);
}

.mgt-icon {
    color: var(--accent-pink);
    font-size: 1.5rem;
}

.sidebar-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--accent-pink);
    position: sticky;
    top: 120px;
}

.sidebar-card h4 {
    margin-bottom: 15px;
    color: var(--accent-pink);
}

.sidebar-list {
    margin-top: 20px;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.sidebar-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.sidebar-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

/* Mobile Fixes for Galaxy S8 */
@media (max-width: 900px) {
    .mgt-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-card {
        position: static;
    }
}




/* Styling for links inside the cards */
.pillar-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-pink);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.pillar-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Animation: When the user hovers over the WHOLE card, the link reacts */
.pillar-card:hover .pillar-link {
    text-shadow: 0 0 10px var(--accent-pink);
}

.pillar-card:hover .arrow {
    transform: translateX(5px);
}


/* Management Page Specifics */
.mgt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.mgt-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border-top: 3px solid var(--accent-purple);
    transition: 0.3s;
}

.mgt-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-pink);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.mgt-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}



/* Management Summary Box */
.management-summary-box {
    background: linear-gradient(135deg, rgba(157, 0, 255, 0.1), rgba(255, 0, 122, 0.1));
    border: 1px solid var(--border);
    padding: 50px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.summary-text { flex: 2; }
.summary-cta { flex: 1; text-align: right; }

/* Mobile Fixes for S8 */
@media (max-width: 768px) {
    .management-summary-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .summary-cta {
        text-align: center;
    }
}




/* Design Page Styling */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-box {
    background: var(--feature-box-bg);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 4px; /* Sharper corners for a technical feel */
    position: relative;
}

.blueprint-icon {
    font-family: 'Roboto Mono', monospace;
    color: var(--accent-purple);
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--accent-purple);
    display: inline-block;
    padding-bottom: 5px;
}

.tech-deep-dive {
    background: rgba(157, 0, 255, 0.03);
    border: 1px dashed var(--accent-purple);
    padding: 60px;
    border-radius: 20px;
}

.tech-text h2 {
    color: var(--accent-pink);
    margin-bottom: 25px;
}

.check-list {
    list-style: none;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.check-list li {
    padding-left: 30px;
    position: relative;
    color: var(--text-dim);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-pink);
    font-weight: bold;
}

/* Mobile Fixes for Galaxy S8 */
@media (max-width: 600px) {
    .check-list {
        grid-template-columns: 1fr;
    }
    .tech-deep-dive {
        padding: 30px 20px;
    }
}



/* --- CONSOLIDATED LOGO SECTION --- */
/* Ensure the Logo link never underlines and stays white */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important; /* Forces no underline */
    border: none !important;
}

.logo-wrapper:hover, 
.logo-wrapper:active {
    text-decoration: none !important;
}

.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: 2px; color: #ffffff !important; /* Forces white text */  text-decoration: none !important; }
.logo span { color: #ffffff !important; /* Forces white text */ }

body.light-mode .logo,
body.light-mode .logo span {
    color: #a200ff !important;
}
