/* Design System based on LCCA.org.uk */
:root {
    /* Color Palette */
    --color-primary: #000F24;
    /* Deep Navy - Replacing Black */
    --color-secondary: #00f5cc;
    /* Eparth Teal - Main Accent */
    --color-accent: #7B42F6;
    /* LCCA Purple reference - usage for subtle highlights if needed, or stick to Teal */
    --color-text-dark: #212529;
    /* Dark Grey for body text */
    --color-text-light: #6c757d;
    /* Muted text */
    --color-white: #ffffff;
    --color-light-bg: #f8f9fa;
    /* Light grey background for alternate sections */

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    --container-padding: 20px;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 15px;
    }
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Tools */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    /* LCCA uses heavy bolds */
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    /* LCCA style */
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
}

.text-center {
    text-align: center;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .grid {
        gap: 20px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Header */
header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container.centered-header {
    justify-content: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--color-secondary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    background-color: var(--color-light-bg);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    align-items: center;
}

.hero-content {
    padding: 50px;
    padding-left: max(var(--container-padding), calc((100vw - var(--container-width)) / 2 + var(--container-padding)));
    z-index: 2;
}

.hero-image-container {
    position: relative;
    height: 100%;
    width: 100%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    background: linear-gradient(45deg, #000F24, #004d40);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

/* Sections */
#about {
    background-color: var(--color-white);
}

#explore {
    background-color: var(--color-light-bg);
}

#cards-3d {
    background-color: var(--color-white);
}

/* --- WHO WE ARE (About) Section Redesign --- */
.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Decorative background text or shape */
.about-section::before {
    content: '';
    position: absolute;
    top: 50px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 245, 204, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.about-image-wrapper {
    position: relative;
    padding: 20px;
    z-index: 1;
}

/* Main image styling */
.about-image {
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--color-primary);
    /* Bold offset shadow */
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

/* "Stat Card" Overlay */
.about-stat-card {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--color-white);
    padding: 25px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 3;
    border-left: 5px solid var(--color-secondary);
    max-width: 250px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* Angular Cards (LCCA Style) */
.angled-card {
    background: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.angled-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    width: 100%;
    object-fit: cover;
    /* Angled bottom */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    background-color: var(--color-primary);
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer-line {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Feature Row (Alternating) */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    margin-bottom: 0;
}

.feature-img-col {
    height: 500px;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text-col {
    padding: 60px;
    background: var(--color-white);
}

@media (max-width: 768px) {
    .feature-text-col {
        padding: 40px var(--container-padding);
        text-align: center;
    }
}

.feature-row.alt .feature-text-col {
    order: -1;
    background: var(--color-light-bg);
}

/* Roadmap Grid */
.roadmap-step {
    background: var(--color-white);
    padding: 30px;
    border-left: 4px solid var(--color-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 15, 36, 0.1);
    line-height: 1;
    margin-bottom: 10px;
}

/* Contact Footer */
.footer-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}

.footer-cta h2 {
    color: var(--color-white);
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 30px;
}

footer {
    background-color: #000c1d;
    color: #888;
    padding: 40px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .hero-content {
        padding: 60px 20px;
        text-align: center;
    }

    .hero-image-container {
        height: 400px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .about-image-wrapper {
        margin-bottom: 60px;
    }

    .about-stat-card {
        right: 0;
        left: 0;
        margin: 0 auto;
        bottom: -40px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .feature-img-col {
        height: 300px;
    }

    .feature-row.alt .feature-text-col {
        order: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }
}