/* Core Styling - Colors and Fonts */
:root {
    --primary-color: #004080; /* Dark Blue */
    --secondary-color: #0066cc; /* Medium Blue */
    --accent-color: #F3C97A; /* Gold/Amber */
    --light-color: #FFFFFF; /* White */
    --dark-color: #0A0A27; /* Very Dark Blue/Black */
    --text-color-light: #F2F2F7; /* Off-white for dark backgrounds */
    --text-color-dark: #030629; /* Dark text for light backgrounds */
    --link-color-dark: #03023A; /* Dark link color */
    --link-color-light: #F2F2F7; /* Light link color */
    --bg-light: #BFCBE7; /* Light Blue background from original training page */
    --bg-dark: #093C70; /* Dark Blue background from original index page */
    --bg-contact-form: linear-gradient(116deg, rgba(149,134,224,1.00), rgba(142,151,223,1.00), rgba(255,181,182,1.00), rgba(177,205,244,1.00), rgba(50,107,160,1.00), rgba(210,255,122,1.00));
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('Images/hero.bg.png');
    background-color: var(--bg-dark); /* Default to dark background */
    color: var(--text-color-light);
    line-height: 1.6;
}

/* Specific page background overrides */
body.training-page { background-color: var(--bg-light); }
body.services-page { background-color: #f4f4f4; }
body.aboutus-page { background-color: #f4f4f4; }
body.contact-page { background-color: #EDF4B8; }
body.galleries-page { background-color: #EDF4B8; }

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

a {
    color: var(--link-color-light);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--light-color);
    margin-top: 0;
}

h1.hero-title, h2.section-title {
    font-weight: 700;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    padding: 20px 0;
    text-align: center;
    position: relative;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img.logo {
    width: 250px;
    height: auto;
    filter: invert(0); /* Invert the logo color to work on a dark background */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--light-color);
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.main-nav a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 100;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-dark);
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('image.jpg');
  background-size: cover; /* This is a good practice to ensure the image covers the area */
  background-position: center;
  color: white; /* Make sure the text is a contrasting color */
}
.headi{
 font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: 152px;



}


.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--text-color-light);
    max-width: 800px;
    padding: 20px;
}

.hero-content p {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 600;
    animation: fadeIn 1s ease-in-out;
}

/* Futuristic Cube Animation */
.cube-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.1;
}

.cube-animation::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: cube-move 30s infinite linear;
}

.cube-animation::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    animation: cube-move 25s infinite reverse linear;
}

@keyframes cube-move {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100vw, 100vh) rotate(360deg); }
}

/* General Sections */
.section-light {
    background-color: #f4f4f4;
    padding: 60px 0;
    color: black;
}

.section-dark {
    background-color: var(--bg-dark);
    padding: 60px 0;
    color: var(--text-color-light);
}
.aboutt{
 font-family: "Roboto Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "GRAD" 0,
    "XOPQ" 96,
    "XTRA" 468,
    "YOPQ" 79,
    "YTAS" 750,
    "YTDE" -203,
    "YTFI" 738,
    "YTLC" 514,
    "YTUC" 712;
    font-size: 35px;
}
.abouttt{
 font-family: "Roboto Flex", sans-serif;
 color: black;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "GRAD" 0,
    "XOPQ" 96,
    "XTRA" 468,
    "YOPQ" 79,
    "YTAS" 750,
    "YTDE" -203,
    "YTFI" 738,
    "YTLC" 514,
    "YTUC" 712;
    font-size: 35px;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    color: black;

}


.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.dark-title {
    color: var(--light-color);
}
.dark-title::after {
    background-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #e6b864;
    transform: translateY(-3px);
}

/* Card Grid for Services */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Content Wrappers */
.content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content {
    flex-direction: row-reverse;
}

.text-content, .image-content {
    flex: 1;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.form-box {
    background-image: var(--bg-contact-form);
    padding: 30px;
    border-radius: 8px;
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-box input, .form-box textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-box button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.form-box button:hover {
    background-color: #00509e;
}

.map-box {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.map-box h2 {
    text-align: center;
    margin: 0;
    padding: 20px 0;
    background-color: #fff;
    color: var(--dark-color);
}

.map-embed {
    height: 400px;
}

.contact-info-section {
    background-color: var(--bg-dark);
}
.contact-info {
    text-align: center;
    margin-top: 20px;
}
.contact-info p {
    margin: 5px 0;
}
.contact-info a {
    color: var(--accent-color);
}

/* Training & Galleries Pages */
.image-gallery, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-image, .gallery-item {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        padding: 20px 0;
        z-index: 50;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }

    .text-content, .image-content {
        width: 100%;
    }

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

    .image-gallery, .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* CSS for page-specific hero sections */
.page-hero {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--light-color);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.about-hero {
    background-image: url('Images/1.jpg'); /* Placeholder image */
}
.services-hero {
    background-image: url('Images/services-hero-bg.jpg'); /* Placeholder image */
}
.training-hero {
    background-image: url('Images/training-hero-bg.jpg'); /* Placeholder image */
}
.gallery-hero {
    background-image: url('Images/gallery-hero-bg.jpg'); /* Placeholder image */
}
.contact-hero {
    background-image: url('Images/contact-hero-bg.jpg'); /* Placeholder image */
}

/* Style overrides for light backgrounds on other pages */
.services-page .section-light h2,
.aboutus-page .section-light h2 {
    color: var(--dark-color);
}

.services-page .service-title {
    color: var(--link-color-dark);
    background: none;
    padding: 0;
    margin-bottom: 20px;
}

.services-page .section-light h3,
.aboutus-page .section-light h3 {
    color: var(--link-color-dark);
}

.services-page .service-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.services-page .service-section li {
    margin-bottom: 10px;
}

.training-page .section-light h2,
.training-page .section-light h3 {
    color: var(--link-color-dark);
}

.galleries-page .section-light h2 {
    color: var(--dark-color);
}
