:root {
    --primary-blue: #a5d8ff;
    --primary-purple: #9d8df1;
    --dark-purple: #5a4fcf;
    --bg-light: #f8faff;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Preloader Cinematic */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a; /* Dark cinematic background */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 1s ease;
}

.preloader.fade-out {
    transform: translateY(-100%);
    opacity: 0.9;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.preloader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 5px;
    opacity: 0;
    text-align: center;
    animation: cinematicTextReveal 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.preloader-bar {
    width: 150px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #ffffff;
    animation: cinematicLoading 2s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes cinematicTextReveal {
    0% { opacity: 0; filter: blur(10px); transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes cinematicLoading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1s cubic-bezier(0.165, 0.84, 0.44, 1),
                backdrop-filter 0.4s ease;
    border-bottom: none;
}

body.home-page header {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    transform: translateY(-100%);
    box-shadow: none;
}

body.home-page.cinematic-loaded header {
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.2s,
                background 0.4s ease,
                padding 0.4s ease;
}

header.scrolled, body.home-page header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(0) !important;
    transition-delay: 0s !important;
}

header.scrolled .logo-img {
    transform: scale(1.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1001;
    text-decoration: none;
}

.logo-img {
    height: 65px;
    width: auto;
    transition: all 0.4s ease;
    transform: scale(1.35);
    transform-origin: left center;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.preloader-logo-img {
    height: 100px;
    width: auto;
    opacity: 0;
    animation: cinematicTextReveal 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.logo-mark {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-purple);
    letter-spacing: -2.5px;
    line-height: 0.8;
    transition: color 0.4s ease;
}

.logo-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 3px;
    transition: color 0.4s ease;
}

body.home-page header:not(.scrolled) .logo-mark,
body.home-page header:not(.scrolled) .logo-text,
body.home-page header:not(.scrolled) .nav-links a:not(.btn-header) {
    color: white;
}

/* Mobile Menu Button - always dark unless on mobile layout before scroll AND menu is closed */
@media (max-width: 768px) {
    body.home-page header:not(.scrolled) .mobile-menu-btn:not(.active) {
        color: white;
    }
    
    /* Ensure mobile menu button is always visible on non-homepage */
    body:not(.home-page) header .mobile-menu-btn {
        display: block;
        color: var(--dark-purple);
    }
}

body.home-page header:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

body.home-page header:not(.scrolled) .nav-links a::after {
    background: white;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    position: relative;
    padding: 5px 0;
    font-weight: 500;
}

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

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

.nav-links a:hover {
    color: var(--dark-purple);
}

.nav-links a.active {
    color: var(--dark-purple);
    font-weight: 700;
}

.btn-header {
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(90, 79, 207, 0.2);
}

.btn-header::after {
    display: none;
}

.nav-links .btn-header:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 79, 207, 0.4);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--dark-purple);
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Cinematic Background with Gradient and Parallax */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(90, 79, 207, 0.7) 100%), url('../assets/img/banner.png') center/cover no-repeat;
    z-index: -2;
    transform: scale(1.3);
    transition: transform 3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.cinematic-loaded .hero::before {
    transform: scale(1);
    animation: zoomOutCinematic 30s infinite alternate ease-in-out 3s;
}

body:not(.home-page) .hero::before {
    transform: scale(1);
    animation: zoomOutCinematic 30s infinite alternate ease-in-out;
}

@keyframes zoomOutCinematic {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(-0.5deg); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--bg-light), transparent);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 60px 0;
}

.hero-content h1, 
.hero-content p, 
.hero-content .cta-group {
    opacity: 0;
    transform: translateY(30px);
}

body.cinematic-loaded .hero-content h1 {
    animation: cinematicReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s forwards;
}

body.cinematic-loaded .hero-content p {
    animation: cinematicReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.7s forwards;
}

body.cinematic-loaded .hero-content .cta-group {
    animation: cinematicReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 1s forwards;
}

body:not(.home-page) .hero-content {
    animation: floatUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes cinematicReveal {
    0% { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes floatUp {
    0% { opacity: 0; transform: translateY(60px); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
    letter-spacing: -2px;
    font-weight: 800;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 300;
    max-width: 650px;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(90, 79, 207, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90, 79, 207, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--dark-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90, 79, 207, 0.2);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero-content .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-content .btn-secondary:hover {
    background-color: white;
    color: var(--dark-purple);
}

.hero-content .btn-primary {
    background: white;
    color: var(--dark-purple);
}

.hero-content .btn-primary:hover {
    background: var(--bg-light);
    color: var(--primary-purple);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(165, 216, 255, 0.1) 0%, rgba(157, 141, 241, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(90, 79, 207, 0.15);
    border-color: rgba(157, 141, 241, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.service-card ul {
    text-align: left;
    margin-top: 20px;
}

.service-card ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.service-card ul li i {
    font-size: 1rem;
    color: #25d366; /* green check */
    margin-right: 12px;
    margin-top: 4px;
    background: none;
    -webkit-text-fill-color: initial;
    flex-shrink: 0;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(90, 79, 207, 0.1);
}

.testimonial-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-content {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.testimonial-info {
    text-align: left;
}

.testimonial-info h4 {
    margin: 0;
    color: var(--dark-purple);
    font-size: 1.1rem;
}

.testimonial-info small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple)) !important;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
    animation: panBg 30s linear infinite;
}

@keyframes panBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.cta-banner .btn-secondary {
    background: white;
    color: var(--dark-purple);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-banner .btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: #2d3436;
    color: white;
    padding: 80px 0 30px;
}

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

.footer-col .logo-img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-content { padding: 30px; }
    
    .mobile-menu-btn { display: block; }
    
    /* Ensure the mobile menu button icon is sized correctly */
    .mobile-menu-btn i {
        font-size: 1.8rem;
    }
    
    .nav-links { 
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-dark) !important;
    }


    
    .nav-links a::after {
        background: var(--dark-purple) !important;
    }

    .nav-links .btn-header {
        color: white !important;
    }

    .cta-banner h2 { font-size: 2rem; }
    .hero-content .btn { width: 100%; }
}

/* Contact Page Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info-card {
    text-align: left;
    margin-bottom: 30px;
}

.contact-info-card h3 {
    margin-bottom: 25px;
    color: var(--dark-purple);
    font-size: 1.8rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 1.2rem;
    color: var(--dark-purple);
    width: 20px;
    margin-bottom: 0;
    background: none;
    -webkit-text-fill-color: initial;
}

.contact-info-item p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
}

.whatsapp-card {
    background: #e7f3ff;
    border: 1px solid rgba(37, 211, 102, 0.1);
}

.whatsapp-card h4 {
    color: #128c7e;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.contact-form-card {
    padding: 50px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 30px 20px;
    }
    
    .contact-form-row {
        grid-template-columns: 1fr !important;
    }
}
