/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    /* Colors extracted from your logo */
    --bg-color: #1a1a2e; /* A very dark background to make colors pop */
    --primary-color: #5d4ae8; /* Deep Indigo from logo */
    --accent-yellow: #fddb3a; /* Bright Yellow from logo */
    --accent-orange: #f28b2a; /* Vibrant Orange from logo */
    --secondary-bg: #2b2b40; /* Slightly lighter dark for cards/sections */
    --text-color: #e0e0e0; /* Light gray text */
    --text-color-dark: #a0a0b0; /* Darker light gray for subtitles */
    --border-color: #40405b;
    --hover-glow: rgba(93, 74, 232, 0.5); /* Indigo glow */
    --shadow-color: rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* --- HEADER & NAVIGATION --- */
#main-header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#main-header.scrolled {
    background-color: rgba(26, 26, 46, 0.9); /* Darker, slightly transparent */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px var(--shadow-color);
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo-container { height: 40px; display: flex; align-items: center; } /* Adjust height as needed */
.logo-img { height: 100%; width: auto; }

.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
    color: var(--text-color); text-decoration: none; font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.nav-links a:hover {
    color: var(--accent-yellow);
    text-shadow: 0 0 8px rgba(253, 219, 58, 0.5);
}
.cta-button {
    background-color: var(--primary-color); color: #fff;
    padding: 0.75rem 1.8rem; border-radius: 50px; border: none;
    text-decoration: none; font-weight: 500; cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px var(--hover-glow);
    background-color: #6c5be8; /* Slightly lighter indigo */
}

/* --- HERO SECTION --- */
.hero { position: relative; height: 100vh; display: flex; align-items: center; text-align: center; overflow: hidden; }
#particle-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 4.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; line-height: 1.1; }
.typewriter-text {
    color: var(--accent-yellow); /* Yellow from logo */
    border-right: 4px solid var(--accent-orange); /* Orange from logo for cursor */
    animation: blink 0.75s infinite; padding-right: 0.2em;
    text-shadow: 0 0 10px rgba(253, 219, 58, 0.7);
}
.subtitle { font-size: 1.25rem; color: var(--text-color-dark); max-width: 650px; margin: 0 auto 2.5rem; }
.hero-cta { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* --- SECTIONS GENERAL --- */
.section-title { font-size: 2.8rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; text-align: left; }
.section-subtitle { font-size: 1.1rem; color: var(--text-color-dark); max-width: 600px; margin-bottom: 2rem; }
.about-section, .services-section, .testimonials-section, .service-details-section { padding: 8rem 0; }

/* --- ABOUT US SECTION --- */
.about-container { display: flex; align-items: center; gap: 4rem; }
.about-content { flex: 1; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 10px; object-fit: cover; box-shadow: 0 10px 30px var(--shadow-color); }
.values-list { list-style: none; margin-top: 2rem; }
.values-list li { margin-bottom: 1rem; font-size: 1.1rem; font-weight: 500; display: flex; align-items: flex-start; }
.values-list li span { color: var(--accent-orange); font-weight: 700; margin-right: 0.75rem; font-size: 1.2rem; display: inline-block; width: 25px; } /* Ensures icon alignment */
.values-list li span .fas { font-size: 1.2rem; }

/* --- SERVICES SECTION --- */
.services-section { background-color: var(--secondary-bg); }
.services-section .section-title { text-align: center; margin-bottom: 4rem; }
.service-category { margin-bottom: 4rem; }
.category-title {
    font-size: 1.8rem; font-weight: 600; color: var(--accent-yellow); /* Yellow for category titles */
    margin-bottom: 2rem; padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color); display: inline-block;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-item {
    background: var(--bg-color);
    padding: 1.5rem; border-radius: 8px;
    border: 1px solid var(--border-color);
    font-weight: 500; font-size: 1.05rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    text-decoration: none; /* For the <a> tags */
    color: var(--text-color); /* For the <a> tags */
    display: flex; /* To make the whole card clickable */
    align-items: center;
    justify-content: center;
    text-align: center;
}
.service-item:hover {
    background-color: var(--secondary-bg);
    border-color: var(--accent-yellow);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section .section-title { text-align: center; margin-bottom: 4rem; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.testimonial-card {
    background-color: var(--secondary-bg); padding: 2.5rem; border-radius: 10px;
    border-left: 4px solid var(--accent-yellow); /* Yellow accent for testimonials */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.testimonial-card blockquote { font-style: italic; font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-color); }
.testimonial-card cite { font-style: normal; font-weight: 600; color: var(--accent-yellow); } /* Yellow for client names */

/* --- FINAL CTA SECTION --- */
.final-cta { text-align: center; background: linear-gradient(45deg, var(--primary-color), var(--accent-orange)); padding: 6rem 0; } /* Gradient with logo colors */
.final-cta h2 { font-size: 2.8rem; color: #fff; }
.final-cta p { color: rgba(255, 255, 255, 0.9); margin: 1rem 0 2rem; font-size: 1.1rem; }
.final-cta-btn { background-color: #fff; color: var(--primary-color); font-weight: 600;} /* White button, indigo text */

/* --- FOOTER --- */
.main-footer { background-color: #000; text-align: center; padding: 2.5rem 0; color: var(--text-color-dark); }


/* --- POPUP FORM STYLES --- */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; justify-content: center; align-items: center;
    visibility: hidden; opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}
.popup-overlay.active {
    visibility: visible; opacity: 1;
}
.popup-content {
    background-color: var(--secondary-bg); color: var(--text-color);
    padding: 3rem; border-radius: 10px;
    position: relative; max-width: 500px; width: 90%;
    box-shadow: 0 10px 30px var(--shadow-color);
    transform: translateY(20px); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid var(--border-color);
}
.popup-overlay.active .popup-content {
    transform: translateY(0); opacity: 1;
}
.close-popup {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.5rem;
    color: var(--text-color-dark); cursor: pointer;
    transition: color 0.2s ease;
}
.close-popup:hover {
    color: var(--accent-orange);
}
.popup-title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 0.8rem; }
.popup-subtitle { font-size: 1.05rem; color: var(--text-color-dark); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; font-size: 0.95rem; font-weight: 500;
    color: var(--text-color-dark); margin-bottom: 0.6rem;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 0.8rem 1rem;
    background-color: var(--bg-color); border: 1px solid var(--border-color);
    border-radius: 5px; color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif; font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 74, 232, 0.3);
}
.submit-button {
    width: 100%; background-color: var(--accent-orange); color: #fff;
    padding: 1rem; border-radius: 5px; border: none;
    font-size: 1.1rem; font-weight: 600; cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.submit-button:hover {
    background-color: #e57c1d; /* Slightly darker orange */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 139, 42, 0.4);
}
.form-message {
    margin-top: 1.5rem; text-align: center; font-weight: 500;
    color: var(--accent-yellow); /* default success color */
}


/* --- SERVICE DETAILS PAGE SPECIFIC STYLES --- */
.service-details-hero {
    height: 60vh; /* Shorter hero for internal pages */
    background-size: cover;
    background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center;
    position: relative;
}
.service-details-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 46, 0.7); /* Dark overlay */
    z-index: 1;
}
.service-details-hero-content {
    position: relative; z-index: 2;
    max-width: 800px;
}
.service-details-hero-content h1 {
    font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem;
    color: var(--accent-yellow);
}
.service-details-hero-content p {
    font-size: 1.2rem; color: var(--text-color);
}
.service-content-main {
    padding: 4rem 0;
}
.service-content-main h2 {
    font-size: 2rem; font-weight: 600; color: #fff; margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color); padding-bottom: 0.5rem;
    display: inline-block;
}
.service-content-main p {
    margin-bottom: 1.5rem; color: var(--text-color); font-size: 1rem;
}
.service-content-main ul {
    list-style: none; margin-bottom: 1.5rem;
}
.service-content-main ul li {
    background-color: var(--secondary-bg);
    padding: 0.8rem 1.2rem; margin-bottom: 0.7rem;
    border-left: 3px solid var(--accent-orange);
    border-radius: 5px;
    font-weight: 500;
    color: var(--text-color);
}
.back-to-services {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}
.back-to-services:hover {
    color: #fff;
    transform: translateX(-5px);
}


/* --- ANIMATIONS & RESPONSIVENESS --- */
@keyframes blink { 50% { border-color: transparent; } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    .about-container { flex-direction: column; }
    .about-image { order: -1; margin-bottom: 2rem; } /* Image on top on mobile */
    .hero h1 { font-size: 3.5rem; }
    .section-title { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .subtitle { font-size: 1.1rem; }
    .section-title { font-size: 1.8rem; text-align: center; }
    .about-content .section-title, .about-content .section-subtitle { text-align: center; }
    .values-list { text-align: left; padding-left: 20px;}
    .testimonial-grid { grid-template-columns: 1fr; }
    .popup-content { padding: 2rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-cta { padding: 0.8rem 1.8rem; font-size: 1rem; }
    .popup-content { padding: 1.5rem; }
}