:root {
    --primary-color: #64ffda;
    --secondary-color: #7c3aed;
    --tertiary-color: #f59e0b;
    --background-color: #0a0a0a;
    --card-bg: rgba(26, 26, 46, 0.5);
    --border-color: rgba(100, 255, 218, 0.1);
}

/* FIX: The most reliable way to prevent horizontal scroll and use flexbox for the footer */
html {
    height: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-color);
    color: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow-x: hidden;
}

/* NEW: This class will be applied to the body to disable scrolling during preloading */
.preloading {
    overflow: hidden;
}


/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* FIX: Ensuring the preloader content is perfectly centered */
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.spinner-orbit {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-orbit:nth-child(1) {
    width: 60px;
    height: 60px;
    border-top: 2px solid var(--primary-color);
    animation-delay: 0s;
}

.spinner-orbit:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
    border-right: 2px solid var(--secondary-color);
    animation-delay: -0.6s;
}

.spinner-orbit:nth-child(3) {
    width: 20px;
    height: 20px;
    top: 20px;
    left: 20px;
    border-bottom: 2px solid var(--tertiary-color);
    animation-delay: -1.2s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.8;
}


/* Chrono-Glow Background */
.chrono-glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0a0a0a 75%, #16213e 100%);
    background-size: 200% 200%;
    transition: background-position 1s ease;
}

/* Main Content Wrapper */
.main-wrapper {
    position: relative;
    z-index: 1;
    /* NEW: This will now grow to fill the remaining space */
    flex-grow: 1;
}

/* Sections */
.section-padding {
    padding: 8rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

/* --- FIX --- */
/* Initially hide the content and make it un-clickable */
.hero-content {
    opacity: 0;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.company-name {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    white-space: nowrap; /* Forces text onto a single line */
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.7));
    }
    to {
        filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.8));
    }
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: #b0b0b0;
    margin-bottom: 3rem;
}

.hero-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.4);
}

/* General Section Styles */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    color: #b0b0b0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

/* What We Do Section */
.feature-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #ffffff;
}

.feature-text {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.8;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Testimonials Section */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.445);
}

.testimonial-card {
    background: rgba(0, 0, 0, 0.425);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 1rem;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.blockquote-footer {
    background: #00000000;
    opacity: 0.7;
}

/* Service Provided Section Styles */
.service-provided-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    color: #b0b0b0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    padding: 1.5rem;
}

.service-provided-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-provided-card .card-body {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.service-provided-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.service-provided-card .card-title {
    margin-bottom: 0.25rem;
}

/* Call to Action Section */
.cta-section {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

.cta-btn {
    background: var(--tertiary-color);
    border-color: var(--tertiary-color);
    font-weight: 600;
    color: #0a0a0a;
}

.cta-btn:hover {
    background: #e68a00;
    border-color: #e68a00;
}

/* === Footer === */
footer {
  background: #000;
  color: #aaa;
  z-index: 1;
}

footer p {
  margin: 0;
  font-size: medium;
}

footer .socials a {
  color: #aaa;
  font-size: medium;
  transition: color 0.3s ease;
}

footer .socials a:hover {
  color: #00ffe7;
}

/* --- NEW MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .preloader-content {
        transform: scale(0.8);
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .company-name {
        white-space: normal; /* Allow company name to wrap on mobile */
    }

    .hero-tagline {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    .section-padding {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.5rem;
    }
    
    .feature-text {
        font-size: 1rem;
    }
}