/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-color: #4A91E2;
    --white-color: #FFFFFF;
    --dark-bg: #1a1a1a;
    --light-gray: #f4f4f4;
    --text-color: #333;
    --subtle-text: #666;
    --font-family: 'Poppins', sans-serif;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%; /* Make html element full height */
}

body {
     margin: 0; 
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    
    /* --- STICKY FOOTER FIX --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Make body at least the full viewport height */
}

main {
    flex: 1 0 auto; /* This makes the main content grow to fill available space */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--subtle-text);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

ul { list-style: none; }

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 100px 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 1;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
    opacity: 1;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.section-with-nav-padding {
    padding-top: var(--nav-height); /* 80px */
}


/* --- HEADER & NAVIGATION --- */
.header {
    background-color: var(--white-color);
    height: var(--nav-height);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- MOBILE NAVIGATION --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.close-btn {
    cursor: pointer;
    font-size: 2rem;
    color: var(--white-color);
}

.mobile-nav ul li {
    margin-bottom: 1.5rem;
}

.mobile-nav .nav-link {
    color: var(--white-color);
    font-size: 1.5rem;
}
.mobile-nav .nav-link:hover::after {
    background-color: var(--white-color);
}

.mobile-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mobile-actions .btn {
    width: 100%;
    text-align: center;
}
.mobile-actions .btn-secondary {
    background-color: var(--white-color);
}


/* --- HERO SECTION --- */
.hero-section {
    padding-top: 60px;
    padding-bottom: 60px;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-text h1 {
    color: var(--text-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blurred-img {
    /*filter: blur(2px) saturate(1.2);*/
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    max-width: 450px;
}


/* --- EXPERIENCE SECTION --- */
.experience-section {
    background-color: var(--light-gray);
}
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: center;
    gap: 2.5rem;
}
.experience-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.experience-support {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
}
.experience-support p {
    font-size: 0.9rem;
}


/* --- TESTIMONIAL / VIDEO SECTION --- */
.testimonial-section {
    position: relative;
    color: var(--white-color);
    text-align: center;
    background-image: url('https://images.pexels.com/photos/6129507/pexels-photo-6129507.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(26, 26, 26, 0.7);
    z-index: 1;
}
.video-content {
    position: relative;
    z-index: 2;
}
.video-content h2 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.video-content p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}
.play-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--white-color);
    font-weight: 600;
}
.play-button .fa-play {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
.play-button:hover .fa-play {
    background-color: var(--primary-color);
}
.play-button .duration {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}


/* --- PARTNERS SECTION --- */
.partners-section .container {
    text-align: center;
}
.partners-header {
    max-width: 600px;
    margin: 0 auto 4rem auto; /* Added more bottom margin */
}
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem; 
}

.partner-logo-item {
    max-width: 160px; 
    height: 60px;    
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 120%;
    transition: all 0.3s ease-in-out;
}

.partner-logo-item img:hover {
    filter: grayscale(0%) opacity(1); 
    transform: scale(1.1); 
}

.partner-logos i {
    font-size: 3rem;
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.partner-logos i:hover {
    color: var(--text-color);
}

.values-section {
    background-color: var(--white-color);
}

/* Reusable section header style */
.section-header {
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-color);
}
.section-header .subtitle {
    font-size: 1.1rem;
    color: var(--subtle-text);
    max-width: 600px;
    margin: 0.5rem auto 0 auto;
}

.values-grid {
    display: grid;
    /* Creates a responsive grid with a minimum item width of 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-item {
    background-color: #f8f9fa; /* A very light grey for the card */
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease-in-out;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1.25rem;
    background-color: var(--white-color);
    border-radius: 50%;
    line-height: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.value-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.value-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--subtle-text);
}

/* --- RESPONSIVE ADJUSTMENTS FOR VALUES SECTION --- */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    .values-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
}

/* --- FOOTER (Updated with Theme Colors) --- */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.85); /* Sets default text color to a slightly off-white */
    padding: 60px 0;
    flex-shrink: 0; /* Part of the sticky footer solution */
}

/* Make all links inside the footer white */
.footer a {
    color: var(--white-color);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.footer a:hover {
    opacity: 0.8;
}

.footer a:hover {
    opacity: 0.8;
}

.footer-top, .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-links, .footer-social, .footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-social i {
    font-size: 1.2rem;
    color: var(--white-color); /* Ensure icons are also white */
}
.footer-divider {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}
.footer .footer-legal span {
    color: rgba(255, 255, 255, 0.85);
}



/* --- CUSTOM ALERT --- */
#custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-bg);
    color: var(--white-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none; /* Initially hidden */
    align-items: center;
    gap: 1.5rem;
    z-index: 9999;
}
#custom-alert.success { background-color: #28a745; }
#custom-alert.error { background-color: #dc3545; }
#custom-alert.info { background-color: var(--primary-color); }

#custom-alert-message {
    margin: 0;
    color: white;
}
#custom-alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}


/* --- RESPONSIVE DESIGN (Media Queries) --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    .experience-text, .experience-support {
        text-align: center;
    }
    .experience-support {
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-left: 0;
        padding-top: 1.5rem;
    }
    .experience-image { order: -1; }
}

@media (max-width: 768px) {
    .nav-menu, .nav-actions {
        display: none;
    }
    .hamburger {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1; /* Move image above text */
        margin-bottom: 2rem;
    }
    .blurred-img {
        max-width: 300px;
    }

   .footer-top, .footer-bottom {
        flex-direction: column; /* Main sections stack vertically */
        text-align: center;
    }

    /* Keep social and nav links in horizontal rows, but centered */
    .footer-social, .footer-links {
        justify-content: center;
        width: 100%; /* Ensure they take full width to center properly */
    }

    /* Use 'order' to move social icons to the top on mobile, matching the screenshot */
    .footer-social {
        order: -1; /* This is the key to reordering */
        margin-bottom: 1.5rem; /* Add space between social icons and nav links */
    }
    
    /* Neatly stack all the items in the bottom section */
    .footer-legal, .footer-contact {
        flex-direction: column;
        gap: 0.75rem; /* Reduce gap for tighter stacking */
    }

    /* Ensure the copyright/legal/email are centered and stacked */
    .footer-bottom {
        gap: 1.5rem;
    }
}