:root {
    /* Color Palette - Default Dark Theme */
    --primary-color: #8A2BE2;       /* Purple */
    --secondary-color: #4A90E2;     /* Blue */
    --accent-color-deep: #2a0a4a;   /* Deep purple for gradients */

    --bg-main: #10101f;             /* Darkest background */
    --bg-content: #1a1a2e;          /* Main content background */
    --bg-card: #2c2c44;             /* Card and elevated element background */

    --text-primary: #ffffff;        /* Primary text (headings, bright text) */
    --text-secondary: #e0e0e0;      /* Secondary text (paragraphs) */
    --text-muted: #a0a0c0;          /* Muted text, subtitles */

    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.4);

    /* Components */
    --header-bg: rgba(26, 26, 46, 0.6); 
    --nav-dropdown-bg: rgba(44, 44, 68, 0.85);
    --btn-primary-shadow: rgba(138, 43, 226, 0.4);
    --btn-secondary-border: var(--secondary-color);
    --input-bg: rgba(44, 44, 68, 0.5); 
    --input-border: var(--border-color);
    --placeholder-text: #888;

    /* Theme Switcher */
    --switcher-bg: #2c2c44; 
    --switcher-icon-color: var(--primary-color);
    --switcher-shadow: rgba(0, 0, 0, 0.2);

    /* Font */
    --font-family: 'Poppins', sans-serif;

    /* Testimonial Carousel Variables */
    --testimonial-item-width: 320px; 
    --testimonial-gap: 20px;
    --testimonial-animation-duration: 40s; 
}

body.light-theme {
    /* Light Theme Overrides */
    --primary-color: #7A1BD9;       
    --secondary-color: #3A80D2;     
    --accent-color-deep: #D1C4E9;  

    --bg-main: #f4f6f8;
    --bg-content: #ffffff;
    --bg-card: #ffffff;

    --text-primary: #222222;
    --text-secondary: #555555;
    --text-muted: #777777;

    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* === UPDATED TRANSPARENCY VALUES === */
    /* Tweak this alpha value (e.g., 0.5) to change glassmorphism transparency. Lower is more transparent. */
    --header-bg: rgba(255, 255, 255, 0.5); 
    --nav-dropdown-bg: rgba(245, 245, 245, 0.8);
    --btn-primary-shadow: rgba(122, 27, 217, 0.3);
    /* Tweak this alpha value to change input field transparency. */
    --input-bg: rgba(240, 240, 240, 0.6); 
    --input-border: #cccccc;
    --placeholder-text: #999;

    --switcher-bg: #ffffff;
    --switcher-shadow: rgba(0, 0, 0, 0.15);
}


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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

h1, h2, h3 { color: var(--text-primary); margin-bottom: 0.8em; }
h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1.5em; }
p { margin-bottom: 1em; font-size: 1.1rem; }
a { color: var(--secondary-color); text-decoration: none; }
.text-primary { color: var(--primary-color); }

/* === Header & Navigation === */
.header {
    position: fixed; left: 0; top: 0; width: 100%; z-index: 1000;
    padding: 15px 0;
    background: var(--header-bg); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); 
    transition: background-color 0.3s ease;
}
.header-main { display: flex; align-items: center; justify-content: space-between; position: relative; }
.logo-link { 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    display: inline-block;
    line-height: 0;
} 
.logo-link .logo-image {
    vertical-align: middle;
}

/* Logo Theming */
.logo-link .logo-light { display: none; }
.logo-link .logo-dark { display: inline; }
body.light-theme .logo-link .logo-light { display: inline; }
body.light-theme .logo-link .logo-dark { display: none; }
/* Logo Theming - END */

.nav-toggler {
    height: 34px; width: 40px; border: none; background-color: transparent;
    display: none; cursor: pointer; z-index: 1001; margin-left: auto;
}
.nav-toggler span {
    display: block; height: 2px; width: 24px;
    background-color: var(--text-primary); 
    margin: auto; position: relative; transition: background-color 0.3s ease;
}
.nav-toggler.active span { background-color: transparent; }
.nav-toggler span::before, .nav-toggler span::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 100%;
    background-color: var(--text-primary); 
    transition: top 0.2s ease 0.2s, transform 0.2s ease;
}
.nav-toggler span::before { top: -7px; }
.nav-toggler span::after { top: 7px; }
.nav-toggler.active span::before { top: 0; transform: rotate(45deg); transition-delay: 0s, 0.2s; }
.nav-toggler.active span::after { top: 0; transform: rotate(-45deg); transition-delay: 0s, 0.2s; }

.nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
.nav li { margin-left: 25px; }
.nav a {
    color: var(--text-secondary); 
    font-weight: 500; transition: color 0.3s ease;
    display: block; padding: 10px 0; position: relative;
}
.nav a::before { 
    content: ''; height: 2px; width: 0; position: absolute;
    left: 0; bottom: -2px; background-color: var(--primary-color); 
    transition: width 0.3s ease;
}
.nav a:hover, .nav a.active-link { color: var(--primary-color); } 
.nav a:hover::before, .nav a.active-link::before { width: 100%; }

@media (max-width: 991px) {
    .nav-toggler { display: block; }
    .nav ul { /* This targets the <ul> inside .nav for mobile dropdown styling */
        flex-direction: column; width: 100%;
        background-color: var(--nav-dropdown-bg); 
        backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        border-radius: 0 0 10px 10px; box-shadow: 0 5px 15px var(--shadow-color); 
        overflow: hidden;
        position: absolute; right: 0; top: 100%; 
        margin-top: 12px; max-width: 300px; 
        visibility: hidden; opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s ease 0.3s;
    }
    .nav.active ul { /* Show dropdown when nav container itself is active */
        visibility: visible; opacity: 1; transform: translateY(0);
        transition-delay: 0s;
    }
    .nav li {
        margin-left: 0; text-align: left;
        border-bottom: 1px solid var(--border-color); 
        /* Animation for items appearing in dropdown */
        transform: translateY(20px); 
        opacity: 0;
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: calc(0.05s * var(--item)); /* From inline style in HTML */
    }
    .nav.active li { opacity: 1; transform: translateY(0); }
    .nav li:last-child { border-bottom: none; }
    .nav a { padding: 15px 25px; }
    .nav a::before { display: none; } /* Hide desktop underline on mobile */
}

/* Hero Section */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 120px 20px 60px; position: relative;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-content) 70%, var(--accent-color-deep) 100%); 
    overflow: hidden;
}
.hero-highlight { 
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
}
.hero-content p { font-size: 1.3rem; max-width: 700px; margin: 0 auto 1.5em; color: var(--text-secondary); } 
.btn {
    padding: 12px 28px; border-radius: 50px; font-weight: 600;
    transition: all 0.3s ease; display: inline-block;
    border: none; cursor: pointer; font-size: 1rem; margin: 0.5em;
}
.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); 
    color: #ffffff; 
    box-shadow: 0 4px 15px var(--btn-primary-shadow); 
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--btn-primary-shadow); } 
.btn-secondary {
    background-color: transparent; color: var(--text-primary); 
    border: 2px solid var(--btn-secondary-border); 
}
.btn-secondary:hover { background-color: var(--secondary-color); color: var(--bg-main); } 
.hero-background-graphics { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.1; }
.hero-background-graphics::before { content: ''; position: absolute; bottom: 10%; left: 10%; width: 200px; height: 200px; background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%); filter: blur(50px); } 
.hero-background-graphics::after { content: ''; position: absolute; top: 15%; right: 15%; width: 150px; height: 150px; background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%); filter: blur(40px); } 

/* General Content Section Styling */
.content-section { padding: 80px 0; background-color: var(--bg-content); position: relative; } 
.content-section:nth-of-type(even) { background-color: var(--bg-main); } 
.section-subtitle { text-align: center; font-size: 1.2rem; color: var(--text-muted); margin-bottom: 3em; } 

/* Section with Canvas (for About Us meteors) */
.section-with-canvas {
    position: relative; 
    overflow: hidden; /* Important to contain canvas and prevent scrollbars from slide animations */
}
#about-meteor-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    pointer-events: none;
}
.section-with-canvas > .container {
    position: relative; 
    z-index: 1;
}

/* About Us Section - Text Fade Effects */
.about-section .section-intro-text {
    text-align: center;
    margin-bottom: 3em; 
    opacity: 0; 
    transition: opacity 0.6s ease-out; 
}
.about-section .section-intro-text.is-visible {
    opacity: 1;
}
.about-section .section-headline,
.about-section .section-subheadline {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}
.about-section .section-intro-text.is-visible .section-headline,
.about-section .section-intro-text.is-visible .section-subheadline {
    opacity: 1;
    transform: translateY(0);
}
.about-section .section-headline { 
    margin-bottom: 0.5em;
}
.about-section .section-subheadline.about-intro-p {
    font-size: 1.3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

/* About Us Content - Slide In/Out Animations */
.about-content { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
    align-items: center; 
}
.about-text, .about-image-placeholder {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out; /* Slightly faster transition */
}
.about-text.slide-in-left {
    transform: translateX(-50px); /* Less extreme initial offset */
}
.about-image-placeholder.slide-in-right {
    transform: translateX(50px); /* Less extreme initial offset */
}
/* When .is-visible is added by JS */
.about-text.animate-on-scroll.is-visible, 
.about-image-placeholder.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateX(0);
}
/* When .is-visible is removed by JS (for slide-out) */
.about-text.animate-on-scroll:not(.is-visible) {
    opacity: 0;
    transform: translateX(-50px);
}
.about-image-placeholder.animate-on-scroll:not(.is-visible) {
    opacity: 0;
    transform: translateX(50px);
}


.about-text { flex: 1; min-width: 300px; }
.about-text p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.5em; } 
.about-image-placeholder { flex: 1; min-width: 300px; text-align: center; }

/* === STYLES FOR THEMED ABOUT US IMAGE === */
.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 1.5px solid var(--text-secondary);
    vertical-align: middle; /* Ensures proper alignment */
}
.about-image-light {
    display: none; /* Hidden by default (in dark theme) */
}
.about-image-dark {
    display: inline; /* Shown by default (in dark theme) */
}
body.light-theme .about-image-light {
    display: inline; /* Show in light theme */
}
body.light-theme .about-image-dark {
    display: none; /* Hide in light theme */
}
/* === END THEMED IMAGE STYLES === */

/* Services Section */
.services-section { padding: 80px 0; background-color: var(--bg-main); } 
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-item {
    background-color: var(--bg-card); padding: 30px; border-radius: 10px; 
    text-align: left; border: 1px solid var(--border-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 5px 15px var(--shadow-color); 
}
.service-item:hover { transform: translateY(-10px); box-shadow: 0 10px 25px var(--shadow-color); } 
.service-icon { font-size: 2.5rem; margin-bottom: 0.5em; background: -webkit-linear-gradient(var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } 
.service-item h3 { font-size: 1.5rem; color: var(--text-primary); } 

/* Why Choose Us Section */
.why-us-section { background-color: var(--bg-content); } 
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-item {
    background-color: var(--bg-card); padding: 25px; border-radius: 8px; 
    border: 1px solid var(--border-color); text-align: left; 
}
.feature-icon { font-size: 2rem; margin-bottom: 0.5em; background: -webkit-linear-gradient(var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; } 
.feature-item h3 { font-size: 1.3rem; margin-bottom: 0.5em; color: var(--text-primary); } 
.feature-item p { font-size: 0.95rem; color: var(--text-secondary); } 

/* Our Process Section */
.process-section { background-color: var(--bg-main); padding: 80px 0; } 
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 2em; }
.process-step {
    background-color: var(--bg-card); padding: 30px; border-radius: 8px; 
    border-left: 0px solid var(--primary-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 5px 15px var(--shadow-color); 
}
.process-step:hover { transform: translateY(-5px); box-shadow: 0 8px 25px var(--shadow-color); } 
.step-number { font-size: 1.8rem; font-weight: 700; color: var(--secondary-color); margin-bottom: 0.3em; } 
.process-step h3 { font-size: 1.4rem; margin-bottom: 0.5em; color: var(--text-primary); } 
.process-step p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; } 

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-main);
    padding: 80px 0;
    position: relative; 
}
.testimonial-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 2em;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.testimonial-carousel-track {
    display: flex;
    width: calc((var(--testimonial-item-width) + var(--testimonial-gap)) * 12); 
    animation: scroll-testimonials var(--testimonial-animation-duration) linear infinite;
}
.testimonial-carousel-wrapper:hover .testimonial-carousel-track {
    animation-play-state: paused; 
}
.testimonial-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 1.5px solid var(--secondary-color);
    text-align: center;
    flex-shrink: 0; 
    width: var(--testimonial-item-width);
    margin-right: var(--testimonial-gap); 
    box-shadow: 0 5px 15px var(--shadow-color);
    min-height: 220px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.testimonial-item p {
    font-style: italic;
    font-size: 1.05rem; 
    margin-bottom: 1.5em; 
    color: var(--text-secondary);
    flex-grow: 1; 
}
.testimonial-author { 
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-top: auto; 
}

@keyframes scroll-testimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc((var(--testimonial-item-width) + var(--testimonial-gap)) * -6)); }
}

/* CTA Section */
.cta-section { padding: 100px 0; text-align: center; background-color: var(--bg-content); } 
.cta-section h2 { font-size: 2.8rem; }
.cta-section p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2em; }

/* === NEW: Enhanced Form & Glassmorphism Styles === */
/* General styles for all form inputs for a cohesive look */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px var(--btn-primary-shadow), inset 0 1px 2px rgba(0,0,0,0.1);
    background-color: var(--bg-card);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='%23a0a0c0'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

body.light-theme select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='%23555555'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Container for the simple contact form on the main page */
.contact-form-placeholder {
    max-width: 700px;
    margin: 2em auto 0;
    display: grid;
    gap: 15px;
}
.contact-form-placeholder button {
    justify-self: start;
}

/* Glassmorphism effect for content containers */
/* For this effect to be visible, the parent section (e.g., .contact-page-section) 
   should have a background image, or be placed over other content. */

/* Footer */
footer {
    background-color: var(--bg-main); color: var(--text-muted); 
    text-align: center; padding: 30px 0; border-top: 1px solid var(--border-color); 
}

/* Theme Switcher Button */
.theme-switcher {
    position: fixed; bottom: 25px; right: 25px;
    width: 50px; height: 50px; border-radius: 50%;
    background-color: var(--switcher-bg); 
    color: var(--switcher-icon-color);   
    border: none; box-shadow: 0 4px 12px var(--switcher-shadow); 
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    z-index: 1001; 
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    overflow: hidden; font-size: 1.5rem; 
}
.theme-switcher:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px var(--switcher-shadow); 
}
.theme-switcher .icon-moon,
.theme-switcher .icon-sun {
    position: absolute; 
    transition: opacity 0.3s ease, transform 0.3s ease;
}
body:not(.light-theme) .theme-switcher .icon-moon { opacity: 0; transform: scale(0); } 
body:not(.light-theme) .theme-switcher .icon-sun { opacity: 1; transform: scale(1); } 
body.light-theme .theme-switcher .icon-moon { opacity: 1; transform: scale(1); } 
body.light-theme .theme-switcher .icon-sun { opacity: 0; transform: scale(0); } 


/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }
    .about-content { flex-direction: column; }
    .about-text.slide-in-left, 
    .about-image-placeholder.slide-in-right { /* Reset transform for stacked layout */
        transform: translateX(0); 
    }
    .about-text.animate-on-scroll:not(.is-visible),
    .about-image-placeholder.animate-on-scroll:not(.is-visible) {
         transform: translateY(30px); /* Fade up instead of side slide on mobile */
    }
    .about-text.animate-on-scroll.is-visible, 
    .about-image-placeholder.animate-on-scroll.is-visible {
        transform: translateY(0);
    }


    .about-image-placeholder { margin-top: 20px; }
    .process-steps, .features-grid { grid-template-columns: 1fr; } 
    .contact-form-placeholder button { width: 100%; }
    .theme-switcher { width: 45px; height: 45px; font-size: 1.3rem; bottom: 20px; right: 20px; }

    :root {
        --testimonial-item-width: 280px; 
        --testimonial-animation-duration: 35s;
    }
    .testimonial-item { min-height: 200px; }
     .testimonial-carousel-wrapper {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }
}
@media (max-width: 480px) {
     :root {
        --testimonial-item-width: calc(100vw - 80px); 
        --testimonial-animation-duration: 30s;
    }
    .testimonial-carousel-wrapper {
        -webkit-mask-image: none; 
        mask-image: none;
    }
}
