/* --- Modern CSS Variables --- */
:root {
    --primary-color: #f59e0b; /* Solar Yellow/Orange */
    --primary-hover: #fbbf24;
    --secondary-color: #10b981; /* Eco Green */
    --dark-bg: #060913; /* Deep Modern Tech Dark */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-light: #94a3b8;
    --white: #ffffff;
    --font-family: 'Outfit', sans-serif;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Ambient Animated Background --- */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    overflow: hidden;
    z-index: -1;
    background: linear-gradient(rgba(6, 9, 19, 0.85), rgba(6, 9, 19, 0.95)), url('https://images.unsplash.com/photo-1509391366360-2e959784a276?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat fixed;
}
.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.5;
    border-radius: 50%;
    animation: blob-float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.color-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: var(--primary-color);
}
.color-2 {
    bottom: -10%; right: -10%; width: 60vw; height: 60vw;
    background: var(--secondary-color);
    animation-delay: -10s;
    animation-duration: 25s;
}
@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30%, 20%) scale(1.3); }
}

/* --- Navigation (Glassmorphism) --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
    border-bottom: 1px solid transparent;
}
header.scrolled {
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}
.logo span {
    color: var(--primary-color);
}
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-weight: 400; font-size: 1.1rem; transition: color 0.3s ease, transform 0.3s ease; }
.nav-links a:hover { color: var(--primary-color); transform: translateY(-2px); }
.btn-cta {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}
.btn-cta:hover { background: var(--primary-color); color: var(--dark-bg) !important; box-shadow: 0 0 25px rgba(245, 158, 11, 0.5); }

/* --- Buttons & Text Utilities --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}
.text-gradient {
    background: linear-gradient(to right, #f59e0b, #10b981, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% auto;
    animation: textShine 5s linear infinite;
}
@keyframes textShine { to { background-position: 300% center; } }

/* --- Layout & Sections --- */
.section { padding: 8rem 2rem 5rem; max-width: 1200px; margin: 0 auto; position: relative; }
.section-title {
    text-align: center; font-size: 3rem; color: var(--white); margin-bottom: 4rem; font-weight: 800;
}
.section-title::after {
    content: ''; width: 60px; height: 4px; background: var(--primary-color);
    position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); padding: 0 2rem;
    position: relative;
}
.hero-content { max-width: 900px; z-index: 2; }
.hero h1 { font-size: 4.5rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1; letter-spacing: -1px; }
.hero p { font-size: 1.3rem; margin-bottom: 2.5rem; color: var(--text-light); font-weight: 300; }

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); border: 1px solid var(--glass-border); }
.about-text h3 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--white); }
.about-text p { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text-light); }
.about-text ul li { color: var(--white); font-weight: 300; display: flex; align-items: center; gap: 10px; padding: 5px 0; }

/* --- Services (Glassmorphic Cards with Mouse Glow) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; perspective: 1000px; }
.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 40%);
    z-index: 0; opacity: 0; transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-10px); border-color: rgba(245, 158, 11, 0.3); }
.service-card > * { position: relative; z-index: 1; }
.service-icon { font-size: 4rem; margin-bottom: 1.5rem; display: inline-block; transition: transform 0.5s ease; }
.service-card:hover .service-icon { transform: scale(1.2) rotateY(180deg); }
.service-card h3 { margin-bottom: 1rem; color: var(--white); font-size: 1.6rem; }
.service-card p { color: var(--text-light); }

/* --- Stats Section --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; text-align: center; padding: 4rem 2rem; background: var(--glass-bg); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); backdrop-filter: blur(10px); margin: 4rem 0; }
.stat-item h3 { font-size: 4rem; color: var(--primary-color); font-weight: 800; line-height: 1; margin-bottom: 0.5rem; text-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
.stat-item p { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); }

/* --- Testimonials Section --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    position: relative;
    transition: transform 0.4s ease;
}
.testimonial-card:hover { transform: translateY(-10px) scale(1.02); background: rgba(255, 255, 255, 0.05); }
.testimonial-card::before {
    content: '\201C'; font-size: 8rem; color: var(--primary-color); position: absolute; top: -30px; left: 20px; opacity: 0.1; font-family: serif; line-height: 1;
}
.testimonial-card p { font-style: italic; color: var(--text-main); font-size: 1.1rem; position: relative; z-index: 1; }
.client-name { margin-top: 2rem; font-weight: 600; color: var(--primary-color); display: flex; align-items: center; gap: 15px; }
.client-name::before { content: ''; width: 40px; height: 1px; background-color: var(--primary-color); display: inline-block; }

/* --- Footer --- */
footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 2rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}
.footer-content h2 { font-size: 2.5rem; color: var(--white); margin-bottom: 1rem; font-weight: 800; }
.footer-content h2 span { color: var(--primary-color); }
.footer-content p { color: var(--text-light); margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 3rem; padding-top: 2rem; color: var(--text-light); font-size: 0.9rem; }

/* --- Global Animations --- */
.hidden {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(50px) scale(0.95);
    transition: all 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
.floating { animation: float 6s ease-in-out infinite; }

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-text { order: -1; }
}
@media (max-width: 768px) {
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(6, 9, 19, 0.95); backdrop-filter: blur(15px);
        flex-direction: column; padding: 2rem; gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        display: none; /* Mobile menu toggle logic needed */
    }
    .btn-cta { width: 100%; text-align: center; }
    .hero p { font-size: 1.1rem; }
    .section { padding: 5rem 1.5rem 3rem; }
    .section-title { font-size: 2.2rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2.5rem; }
    .service-card, .testimonial-card { padding: 2rem 1.5rem; }
    .stat-item h3 { font-size: 3rem; }
}