:root {
    /* Light Mode Colors */
    --primary-color: #007bff; /* A shade of blue for buttons, links */
    --secondary-color: #0F1035; /* A shade of green for accents */
    --text-color: #333;
    --heading-color: #000;
    --background-color: #ffffff;
    --card-background: #f8f9fa;
    --border-color: #e9ecef;
    --gradient-start: #f0f4f8;
    --gradient-end: #e6edf2;
    --hover-effect: rgba(0, 123, 255, 0.1); /* Light blue tint on hover */
    --footer-bg: #343a40;
    --footer-text: #e9ecef;
    --input-bg: #fff;
    --input-border: #ced4da;
    --placeholder-color: #6c757d;
    --hero-tagline-color: #0A1128; /* Deep Navy Blue for visibility on white hero background */
}

:root.dark-mode {
    /* Dark Mode Colors */
    --primary-color: #66b3ff; /* Lighter blue for dark mode */
    --secondary-color: #82e0aa; /* Lighter green for dark mode */
    --text-color: #e0e0e0;
    --heading-color: #f0f0f0;
    --background-color: #212529; /* Dark gray */
    --card-background: #2c3034;
    --border-color: #495057;
    --gradient-start: #2a2e32;
    --gradient-end: #363a3e;
    --hover-effect: rgba(102, 179, 255, 0.1); /* Light blue tint on hover */
    --footer-bg: #1c2024;
    --footer-text: #c2c5c8;
    --input-bg: #34383c;
    --input-border: #495057;
    --placeholder-color: #adb5bd;
    --hero-tagline-color: #0A1128; /* Deep Navy Blue for visibility on white hero background */
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icon-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.icon-button:hover {
    background-color: var(--hover-effect);
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24;
}

/* Header */
.header {
    background-color: var(--card-background);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.header .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.header .logo img {
    height: 40px;
    margin-right: 10px;
    transition: transform 0.5s ease-in-out; /* Add this line */
}

.header .logo img:hover {
    transform: rotate(360deg); /* Add this block */
}

.header .nav-menu a {
    margin-left: 30px;
    color: var(--heading-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.header .nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.header .nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
}

.mobile-nav-menu {
    display: none;
    flex-direction: column;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.mobile-nav-menu.active {
    display: flex;
}

.mobile-nav-menu a {
    color: var(--heading-color);
    padding: 10px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu a:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero-section {
    background-color: #ffffff; /* Always white background */
    padding: 100px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Ensure it takes a good portion of viewport height */
}

.hero-video-logo {
    width: 1440px; /* Made 3x bigger (480px * 3) */
    height: auto;
    max-width: 90%; /* Ensure it's responsive */
    margin-bottom: 20px;
    /* Removed border-radius and box-shadow for a 'pasted directly' look */
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--card-background);
}

.hero-section .tagline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 400;
    color: var(--hero-tagline-color); /* Uses the updated variable */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.bg-light-gradient {
    background-image: linear-gradient(to top left, var(--gradient-start), var(--gradient-end));
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block; /* Ensures padding/margin works consistently */
    transition: transform 0.3s ease-in-out; /* Add animation for icons */
}

.card:hover .icon { /* New: Icon animation on card hover */
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Our Vision Section */
.our-vision-section p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3, .contact-form-container h3 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-info h3::after, .contact-form-container h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-info p .icon-small {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-info a {
    color: var(--footer-text);
    text-decoration: underline;
}

.footer-info a:hover {
    color: var(--secondary-color);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    font-weight: 600;
    color: #fff;
    background-color: #25d366; /* WhatsApp green */
    padding: 10px 20px;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-link:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    text-decoration: none;
}

.whatsapp-icon {
    height: 24px;
    width: 24px;
    margin-right: 10px;
    filter: invert(1); /* Make it white on green background */
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--placeholder-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .primary-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--footer-text);
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section .tagline {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    h2 {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-video-logo {
        width: 100%; /* Adjust for smaller screens to fit within viewport */
        max-width: 480px; /* Keep it from being excessively large on medium screens */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-info h3::after, .contact-form-container h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-info p {
        justify-content: center;
    }

    .whatsapp-link {
        justify-content: center;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .tagline {
        font-size: 1rem;
    }

    .hero-video-logo {
        width: 100%; /* Further adjust for very small screens */
        max-width: 300px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .card {
        padding: 20px;
    }

    .card .icon {
        font-size: 2.5rem;
    }
}