/* --- CSS Variables and Basic Setup --- */
:root {
    --royal-blue: #0052cc;
    --bg-primary: #ffffff;
    --bg-secondary: #f4f7fa;
    --bg-dark-nav: #0c1b33;
    --text-primary: #212529;
    --text-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --header-height: 70px;
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-primary: #0c1b33;
    --bg-secondary: #1a1a1a;
    --text-primary: #f8f9fa;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

/* --- Typography and Utility Classes --- */
h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; }

p { margin-bottom: 1rem; }
a { color: var(--royal-blue); text-decoration: none; }

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

.text-center { text-align: center; }

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--royal-blue);
    color: var(--white);
    border: 2px solid var(--royal-blue);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--royal-blue);
}

.btn-large { font-size: 1.2rem; padding: 15px 35px; }

/* --- Header and Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

body.dark-mode .main-header {
    background-color: rgba(12, 27, 51, 0.8);
}

.main-nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    background-color: transparent;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--text-primary);
    padding-bottom: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--royal-blue);
    transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-extras { display: flex; align-items: center; }

/* --- NEW: Theme Toggle Slider Styles --- */
.theme-slider {
    position: relative;
    display: flex;
    align-items: center;
    width: 55px;
    height: 28px;
    background-color: var(--bg-secondary);
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.dark-mode .theme-slider {
    background-color: var(--bg-primary);
}

.theme-slider input {
    display: none;
}

.slider-round {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background-color: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-slider input:checked + .slider-round {
    transform: translateX(27px);
}

.slider-round .sun-icon, 
.slider-round .moon-icon {
    font-size: 14px;
    color: var(--royal-blue);
    position: absolute;
    transition: opacity 0.3s ease;
}

.slider-round .moon-icon {
    opacity: 0;
}

.theme-slider input:checked + .slider-round .moon-icon {
    opacity: 1;
}

.theme-slider input:checked + .slider-round .sun-icon {
    opacity: 0;
}

.hamburger { display: none; font-size: 1.5rem; background: none; border: none; color: var(--text-primary); cursor: pointer;}

/* --- Section Styling --- */
.content-section { padding: 80px 0; background-color: var(--bg-primary); }
.content-section-dark { padding: 80px 0; background-color: var(--bg-secondary); }

/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}
.hero-content h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-container { display: flex; align-items: center; gap: 3rem; }
.about-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--royal-blue);
    box-shadow: var(--shadow);
}
.about-text { flex: 1; }

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Videos Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    box-shadow: var(--shadow);
    border-radius: 5px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Services Accordion */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item {
    border-bottom: 1px solid var(--royal-blue);
}
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}
.accordion-header:hover { background-color: rgba(0, 82, 204, 0.1); }
.accordion-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    transition: transform 0.3s;
}
.accordion-header.active::after { transform: rotate(180deg); }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--bg-primary);
    padding: 0 1rem;
}
.accordion-content p {
    padding-bottom: 1.5rem;
    margin: 0;
}
.accordion-header.active + .accordion-content {
    padding-top: 1rem;
}

/* Contact Section */
#contact p { max-width: 600px; margin: 0 auto 2rem auto; }

/* --- Footer --- */
.main-footer {
    background-color: var(--bg-dark-nav);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}
.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.social-links-footer a {
    color: var(--text-light);
    margin: 0 10px;
    font-size: 1.3rem;
    transition: color 0.3s;
}
.social-links-footer a:hover { color: var(--royal-blue); }

/* --- Back to Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--royal-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    transform: scale(1.1);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-container { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--bg-primary);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    .nav-links a { font-size: 1.5rem; }
    
    .hamburger { display: block; }

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