/* --- GLOBAL STYLES & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Poppins:wght@400;600;700&display=swap');

:root {
    --bg-dark: #121212;
    --bg-medium: #1c1c1c;
    --text-light: #f0f0f0;
    --text-medium: #a0a0a0;
    --accent-gold: #FFD700;
    --accent-blue: #00A3FF;
    --shadow: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

.container { max-width: 1200px; margin: auto; padding: 6rem 2rem; }
h1, h2, h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; line-height: 1.2; }
h2 { font-size: _3.5rem_; text-align: center; margin-bottom: 3rem; color: var(--text-light); }
h3 { font-size: 1.5rem; }
p { color: var(--text-medium); margin-bottom: 1rem; }
a { text-decoration: none; color: var(--accent-gold); transition: color 0.3s ease; }
a:hover { color: var(--text-light); }
section { overflow: hidden; } /* Prevents animation overflows */

/* --- HEADER & NAVIGATION --- */
#navbar {
    position: fixed; top: 0; left: 0; width: 100%; display: flex;
    justify-content: space-between; align-items: center;
    padding: 1rem 2rem; background: transparent; z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
}
.logo { font-size: 2rem; font-weight: 700; color: var(--accent-gold); }
.nav-links a { color: var(--text-light); margin: 0 1.5rem; font-weight: 600; position: relative; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background-color: var(--accent-gold);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.menu-btn { display: none; background: none; border: none; color: var(--text-light); font-size: 2rem; cursor: pointer; }

/* --- HERO SECTION --- */
#hero {
    position: relative; height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center;
}
.hero-bg-slider.swiper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg-slider .swiper-slide {
    background-size: cover; background-position: center;
    transform: scale(1.1); transition: transform 8s ease-out;
}
.hero-bg-slider .swiper-slide-active { transform: scale(1); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: -1; }
.hero-content { max-width: 900px; padding: 1rem; }
.hero-content h1 { font-size: 4rem; color: var(--text-light); margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2.5rem; }
.cta-button {
    display: inline-block; background-color: var(--accent-gold); color: var(--bg-dark);
    padding: 15px 35px; border-radius: 50px; font-weight: 700; text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.cta-button:hover { transform: scale(1.05); background-color: var(--text-light); }

/* --- ABOUT SECTION --- */
#about { background-color: var(--bg-medium); }
.about-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 4rem; 
    align-items: center; 
}

/* --- FIX & REFINEMENT --- */
.about-text {
    /* This ensures the text column has space and aligns content nicely */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text p {
    /* Improves readability by limiting line length */
    /* max-width: 60ch; */
}
/* --- END FIX --- */

.about-carousel.swiper { width: 100%; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 30px var(--shadow); }
.about-carousel img { width: 100%; height: auto; object-fit: contain; }
.about-carousel .swiper-pagination-bullet-active { background-color: var(--accent-gold); }

/* (The rest of the CSS remains unchanged) */

#principles { text-align: center; background: url('https://www.transparenttextures.com/patterns/dark-matter.png'); }
#principles blockquote { font-size: 3rem; font-style: italic; font-family: 'Poppins', sans-serif; max-width: 900px; margin: auto; }
#services { background-color: var(--bg-medium); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--bg-dark); padding: 2rem; text-align: center; border-radius: 15px;
    border: 1px solid #2a2a2a; transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--accent-blue); }
.service-card i { font-size: 3rem; color: var(--accent-blue); margin-bottom: 1rem; }
.featured-carousel.swiper { padding: 1rem 0 3rem; }
.featured-carousel .swiper-slide {
    width: 300px; height: auto; border-radius: 15px; overflow: hidden;
    transition: transform 0.4s ease;
}
.featured-carousel .swiper-slide:hover { transform: scale(1.05); }
.swiper-button-next, .swiper-button-prev { color: var(--accent-gold); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; margin-top: 4rem; }
.portfolio-item { position: relative; cursor: pointer; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 25px var(--shadow); }
.portfolio-item img { width: 100%; display: block; transition: transform 0.4s ease; }
/* .portfolio-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5);
    color: white; font-size: 4rem; opacity: 0; transition: all 0.4s ease;
} */
.portfolio-item:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.portfolio-item:hover img { transform: scale(1.1); filter: brightness(0.4); }
#achievements { position: relative; padding: 8rem 2rem; text-align: center; }
.achievements-bg {
    background: url(https://images.pexels.com/photos/1763075/pexels-photo-1763075.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2) no-repeat center center/cover;
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; filter: grayscale(1) brightness(0.3);
}
.achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3rem; }
.achievement-card {
    background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    padding: 2.5rem; border-radius: 15px; border: 1px solid #333;
}
.achievement-card i { font-size: 3.5rem; color: var(--accent-gold); margin-bottom: 1rem; }
.achievement-card h3 { font-size: 3rem; }
#partners { background-color: var(--bg-medium); }
.logo-carousel.swiper { padding: 2rem 0; }
.logo-carousel .swiper-slide { display: flex; justify-content: center; align-items: center; }
.logo-carousel img { height: 5rem; width: auto; filter: grayscale(1); opacity: 0.7; transition: all 0.3s ease; }
.logo-carousel img:hover { filter: none; opacity: 1; }
.contact-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; margin-bottom: 1.5rem; border: 1px solid #333;
    border-radius: 5px; font-family: inherit; font-size: 1rem;
    background-color: var(--bg-medium); color: var(--text-light);
}
.social-links { margin-top: 1.5rem; }
.social-links a { font-size: 1.5rem; margin-right: 1.5rem; color: var(--text-medium); }
.social-links a:hover { color: var(--accent-blue); }
footer { background: #000; padding: 3rem 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-links a { margin-left: 2rem; }
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.5s ease;
}
.modal-content {
    position: relative; margin: 5% auto; padding: 20px; width: 90%; max-width: 900px;
    background: var(--bg-dark); border-radius: 10px; animation: slideIn 0.5s ease;
}
.close-modal { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.modal-video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-bottom: 1rem; }
.modal-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#modal-title { color: var(--accent-gold); }
#modal-type { color: var(--text-medium); font-style: italic; }
.animate-on-scroll { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* @media (max-width: 768px) {
    h2 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 3rem; }
    .container { padding: 4rem 1rem; }
    .about-grid, .contact-wrapper, .achievements-grid { grid-template-columns: 1fr; }
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--bg-dark); flex-direction: column;
        justify-content: center; align-items: center;
        transform: translateX(-100%); transition: transform 0.4s ease;
    }
    .nav-links.active { transform: translateX(0); z-index: 999; }
    .menu-btn { display: block; z-index: 1001; }
    .footer-content { flex-direction: column; gap: 1.5rem; }
} */
 @media (max-width: 768px) {
    h2 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 3rem; }
    .container { padding: 4rem 1rem; }

    /* Stack grids */
    .about-grid, .contact-wrapper, .achievements-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile nav */
    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links a {
        font-size: 1.8rem;
        margin: 1.5rem 0;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-btn {
        display: block;
        z-index: 1001;
        position: relative;
    }

    /* Footer stacking */
    /* .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    } */

    /* Footer fixes for mobile */
.footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    margin: 0; /* remove side margin */
    font-size: 1.1rem;
}

}

/* Tablet screens (2-column grid) */
@media (max-width: 1024px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .achievement-card h3 {
        font-size: 2.2rem;
    }
}

/* Mobile screens (1-column stack) */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .achievement-card {
        padding: 2rem;
    }

    .achievement-card h3 {
        font-size: 2rem;
    }
}
