/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --dhyas-blue: #0284c7;
    --dhyas-purple: #9333ea;
    --dhyas-pink: #ec4899;
    --dhyas-orange: #f97316;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #ffffff;
    --bg-gray: #f9fafb;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    /*overflow-x: hidden;*/
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.text-center { text-align: center; }

/* ==========================================================================
   Typography & Gradients
   ========================================================================== */
.gradient-text {
    background: linear-gradient(to right, var(--dhyas-blue), var(--dhyas-purple), var(--dhyas-pink), var(--dhyas-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.gradient-text-light {
    color: white;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

h1 { font-size: 3.5rem; margin-bottom: 15px; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 20px; letter-spacing: 1px; line-height: 1.2; }

/* ==========================================================================
   Header & Nav
   ========================================================================== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
#main-logo { height: 50px; }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.nav-links a:hover { color: var(--dhyas-pink); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-dark); transition: var(--transition); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    font-size: 1rem;
}

.btn-gradient {
    background: linear-gradient(to right, var(--dhyas-pink), var(--dhyas-orange));
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* ==========================================================================
   Video Hero Banner
   ========================================================================== */
.video-hero {
    position: relative;
    height: 100vh; /* Full screen height */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: 80px; /* Offset for header */
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover; /* Ensures video covers the whole area without stretching */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(147, 51, 234, 0.4));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* ==========================================================================
   Sections - General
   ========================================================================== */
section { padding: 80px 0; }

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 30px; }
.lead-text { font-size: 1.2rem; color: var(--dhyas-blue); margin-bottom: 20px; }
.about-text p { margin-bottom: 15px; }

.mission-box {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.05), rgba(236, 72, 153, 0.05));
    border-left: 4px solid var(--dhyas-purple);
    padding: 20px; margin-top: 30px; border-radius: 0 8px 8px 0;
}

.about-image { width: 100%; max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section { background-color: var(--bg-gray); }
.section-subtitle { max-width: 700px; margin: 0 auto 40px; color: var(--text-light); font-size: 1.1rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }

.service-card {
    background: white; padding: 40px 30px; border-radius: 12px; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee; transition: var(--transition);
}

.service-card:hover { transform: translateY(-5px); }
.service-card h3 { margin: 15px 0; color: var(--text-dark); }
.service-card p { color: var(--text-light); font-size: 0.9rem; }
.service-icon { font-size: 2.5rem; }

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.why-item { text-align: center; padding: 20px; }

.why-icon {
    width: 80px; height: 80px;
    background: linear-gradient(to bottom right, var(--dhyas-blue), var(--dhyas-purple));
    color: white; font-size: 2rem; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; margin: 0 auto 20px; box-shadow: 0 10px 20px rgba(147, 51, 234, 0.2);
}

.why-item h3 { margin-bottom: 15px; color: var(--text-dark); }

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 50px; }
form { display: flex; flex-direction: column; gap: 15px; }

input, select, textarea {
    padding: 15px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.9rem; width: 100%; background-color: var(--bg-gray);
}

.contact-map { width: 100%; min-height: 300px; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { background-color: #000000; color: white; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-logo { height: 40px; filter: brightness(0) invert(1); margin-bottom: 15px; }
.footer-links ul { list-style: none; }
.footer-links a { color: #ccc; text-decoration: none; line-height: 2; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-contact h3 { color: var(--dhyas-orange); margin-bottom: 20px; font-size: 1.1rem; }
.footer-contact p { color: #ccc; margin-bottom: 10px; }
.footer-contact i { margin-right: 10px; color: white; }
.social-icons { margin-top: 20px; display: flex; gap: 15px; }
.social-icons a { font-size: 1.5rem; transition: transform 0.2s; }
.social-icons a:hover { transform: scale(1.1); }

/* ==========================================================================
   Advanced Scroll Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

/* Starting positions */
.fade-up { transform: translateY(50px); }
.fade-down { transform: translateY(-50px); }
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }
.zoom-in { transform: scale(0.85); }

/* Visible state */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Staggered Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) { h1 { font-size: 3rem; } h2 { font-size: 2.2rem; } }

@media (max-width: 991px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { gap: 30px; }
}

@media (max-width: 768px) {
    /* Remove delays on mobile to prevent sluggish feeling */
    .delay-1, .delay-2, .delay-3, .delay-4, .delay-5, .delay-6 {
        transition-delay: 0s;
    }
}

@media (max-width: 767px) {
    section { padding: 60px 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .about-content-wrapper, .why-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .about-image-container { order: -1; }
    .mission-box { border-radius: 8px; border-left: none; border-top: 4px solid var(--dhyas-purple); }
    .service-card { padding: 30px 20px; }
    .footer-grid { text-align: center; gap: 30px; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .social-icons { justify-content: center; }

    /* Mobile Menu */
    .menu-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; width: 100%; background-color: white;
        position: absolute; top: 80px; left: 0; box-shadow: 0 10px 10px rgba(0,0,0,0.05); padding: 20px 0; z-index: 1000; text-align: center;
    }
    .nav-links.show-menu { display: flex; animation: slideDown 0.3s ease-out; }
    .nav-links li { width: 100%; padding: 10px 0; }
    .nav-links a { font-size: 1.1rem; width: 100%; display: block; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) { h1 { font-size: 2rem; } .services-grid { grid-template-columns: 1fr; } }