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

body, html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background-color: #203050; /* Updated blue color */
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

/* Header */
.header {
    position: absolute;
    top: 30px;
    right: 5%;
    z-index: 20; /* Keep header above side nav */
}

.brand-logo {
    /* Removed absolute positioning since it's now in logos-wrapper */
    position: static;
    height: 180px; /* Increased size again */
    width: auto;
    z-index: 10;
}

/* Hamburger Menu (Hidden by default on desktop) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 21;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger active animation */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Side Navigation */
.side-nav {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 15;
}

.side-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing like in the image */
}

.side-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #203050;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 10px 22px;
    border: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: #eef2f6;
    width: 200px;
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.15), inset -4px -4px 8px #ffffff;
}

.side-nav a:hover {
    background: #eef2f6;
    /* Convex pop on hover */
    box-shadow: 4px 4px 10px rgba(0,0,0,0.3), -4px -4px 10px rgba(255,255,255,0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Stack vertically */
    align-items: flex-start; /* Left aligned */
    justify-content: center;
    padding: 0 350px 0 5%; /* Left padding, leave space for right-side nav */
    z-index: 2;
    text-align: left; /* Left aligned text */
}

/* Logos Wrapper */
.logos-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start; /* Left aligned */
    gap: 40px; /* Space between logos */
    margin-bottom: 40px;
}

/* Content Text */
.content-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left aligned */
    max-width: 800px;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem; /* First line size */
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.main-title .large-text {
    font-size: 5rem; /* Bigger font for CYBER DEFENSE */
    display: block;
    margin-top: 10px;
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 4px;
    color: #a0aabf;
    margin-bottom: 40px;
}

.subtitle-en {
    font-size: 1.95rem;
    font-weight: 500;
    letter-spacing: 4px;
}

.subtitle-fr {
    letter-spacing: 8px;
    font-size: 0.92rem;
}

.hero-logo {
    max-width: 100%;
    max-height: 580px;
}

/* Wave Pattern Removed to keep background uniform */

/* Responsive Design */
@media (min-width: 1025px) {
    html { zoom: 0.85; }
}

@media (max-width: 1350px) {
    .main-title { font-size: 2.5rem; }
    .main-title .large-text { font-size: 4rem; }
    .hero-section { padding: 0 280px 0 5%; }
}

@media (max-width: 1024px) {
    /* Enable Hamburger */
    .hamburger-menu {
        display: flex;
    }

    /* Keep hamburger visible when page scrolls */
    .header {
        position: fixed;
    }

    /* Transform nav into a side drawer */
    .side-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden offscreen by default */
        width: 300px;
        height: 100vh;
        background-color: rgba(32, 48, 80, 0.98); /* Match body background but slightly transparent */
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        transform: none;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }

    .side-nav.active {
        right: 0; /* Slide in */
    }

    .side-nav ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 30px;
        max-width: none;
        margin: 0;
    }

    .side-nav a {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        padding: 100px 5% 50px;
    }

    .logos-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }

    .brand-logo {
        order: 1; /* Lumiverse on top */
        margin: 0 auto 0 auto;
        height: 120px; /* Even bigger on mobile */
    }

    .hero-logo {
        order: 2; /* Cyberlumisecure below it */
        max-height: 60vh; /* Even bigger on mobile */
    }

    .content-text {
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .main-title { font-size: 1.6rem; }
    .main-title .large-text { font-size: 2.4rem; }
    .subtitle-en { font-size: 1.1rem; letter-spacing: 2px; }
    .subtitle-fr { font-size: 0.78rem; letter-spacing: 3px; }

    .side-nav { width: 100%; }
    .side-nav a { font-size: 0.85rem; padding: 12px 20px; }

    .brand-logo { height: 80px; }
    .hero-logo { max-height: 45vh; }
    .logos-wrapper { gap: 6px; margin-bottom: 12px; }
}

@media (max-width: 400px) {
    .main-title { font-size: 1.3rem; }
    .main-title .large-text { font-size: 2rem; }
    .subtitle-en { font-size: 0.95rem; letter-spacing: 1.5px; }
    .brand-logo { height: 65px; }
    .hero-logo { max-height: 38vh; }
}

/* ===================== INNER PAGES ===================== */

/* Fixed header & nav for scrollable inner pages */
.inner-page .header {
    position: fixed;
}

.inner-page .side-nav {
    position: fixed;
}

/* Active nav link highlight */
.side-nav a[aria-current="page"] {
    background: #203050;
    color: #ffffff;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.4), -4px -4px 10px rgba(255,255,255,0.05);
}

/* Back to home brand logo */
.back-home {
    display: inline-block;
    margin-bottom: 40px;
    text-decoration: none;
}

.page-brand-logo {
    height: 55px;
    width: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page-brand-logo:hover {
    opacity: 0.85;
}

/* Page Hero */
.page-hero {
    width: 100%;
    min-height: 38vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 350px 60px 5%;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #a0aabf;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 18px;
}

.page-subtitle {
    font-size: 0.92rem;
    color: #a0aabf;
    letter-spacing: 3px;
    max-width: 560px;
    line-height: 1.7;
}

/* Page Content */
.page-content {
    padding: 70px 5%;
    padding-right: 370px;
    max-width: 1400px;
}

.section-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-divider {
    width: 50px;
    height: 2px;
    background: rgba(255,255,255,0.25);
    margin: 0 0 18px 0;
}

.section-intro {
    font-size: 0.92rem;
    color: #a0aabf;
    line-height: 1.9;
    max-width: 680px;
    margin-bottom: 0;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 45px;
}

.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-3px);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 18px;
    display: block;
}

.card h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.85rem;
    color: #a0aabf;
    line-height: 1.75;
}

/* Two-column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 50px;
}

.two-col .text-col p {
    font-size: 0.92rem;
    color: #a0aabf;
    line-height: 1.9;
    margin-bottom: 18px;
}

/* Stat boxes */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.stat-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    padding: 24px 18px;
    text-align: center;
}

.stat-box .stat-num {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.stat-box .stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #a0aabf;
    text-transform: uppercase;
}

/* Case study cards */
.case-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 35px 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.case-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.18);
}

.case-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #a0aabf;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 15px;
}

.case-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.case-card p {
    font-size: 0.88rem;
    color: #a0aabf;
    line-height: 1.8;
}

.case-result {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ccd3e0;
}

/* Contact Form */
.contact-form {
    margin-top: 45px;
    max-width: 580px;
}

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

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #a0aabf;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 8px;
    padding: 13px 16px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(255,255,255,0.35);
}

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

.form-group select option {
    background: #203050;
    color: #ffffff;
}

.submit-btn {
    background: #eef2f6;
    color: #203050;
    border: none;
    border-radius: 30px;
    padding: 13px 38px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.15), inset -4px -4px 8px #ffffff;
    text-transform: uppercase;
}

.submit-btn:hover {
    box-shadow: 4px 4px 10px rgba(0,0,0,0.3), -4px -4px 10px rgba(255,255,255,0.1);
}

/* Responsive for inner pages */
@media (max-width: 1350px) {
    .page-hero { padding: 80px 280px 60px 5%; }
    .page-content { padding-right: 290px; }
}

@media (max-width: 1024px) {
    .page-hero { padding: 100px 5% 50px; }
    .page-content { padding: 50px 5%; }
    .page-title { font-size: 2.4rem; }
    .section-heading { font-size: 1.2rem; }
    .two-col { grid-template-columns: 1fr; gap: 36px; }
    .card-grid { gap: 18px; }
}

@media (max-width: 600px) {
    .page-hero { min-height: auto; padding-top: 80px; padding-bottom: 36px; }
    .back-home { margin-bottom: 24px; }
    .page-brand-logo { height: 44px; }

    .page-title { font-size: 1.6rem; letter-spacing: 1px; }
    .page-subtitle { font-size: 0.84rem; letter-spacing: 1.5px; }
    .section-heading { font-size: 1.05rem; letter-spacing: 1px; }
    .section-intro { font-size: 0.86rem; }

    .page-content { padding: 36px 5%; }

    .card-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
    .card { padding: 22px 18px; }

    .two-col { gap: 24px; margin-top: 26px; }
    .two-col .text-col p { font-size: 0.88rem; }

    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-box { padding: 18px 12px; }
    .stat-box .stat-num { font-size: 1.5rem; }

    .case-card { padding: 22px 18px; }

    .contact-form { margin-top: 28px; }
    .submit-btn { width: 100%; text-align: center; display: block; }
}

@media (max-width: 400px) {
    .page-title { font-size: 1.35rem; }
    .section-heading { font-size: 0.95rem; }
    .stat-box .stat-num { font-size: 1.2rem; }
    .stat-box .stat-label { font-size: 0.6rem; }
}
