/* -------------------------------------------------------------------
 *  1. VARIABLES & ROOT STYLES
 * ------------------------------------------------------------------- */

:root {
    /* Bright Color Palette */
    --primary-color: #6A11CB; /* Vivid Violet */
    --primary-color-dark: #4D0C9A;
    --secondary-color: #2575FC; /* Bright Blue */
    --accent-color: #FA4B7F; /* Vibrant Pink/Coral */
    --accent-color-hover: #F82A68;

    /* Neutral & Text Colors */
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --light-text-color: #FFFFFF;
    --subtle-text-color: #555555;
    
    /* Background Colors */
    --background-color: #F8F9FA;
    --card-background: #FFFFFF;
    --footer-background: #111418;
    
    /* Fonts */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    /* Spacing & Borders */
    --spacing-unit: 1rem;
    --border-radius: 12px;
    --border-radius-small: 6px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

#page-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content-wrap {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

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

/* Global Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--subtle-text-color);
    font-size: 1.1rem;
}


/* -------------------------------------------------------------------
 *  2. HEADER & NAVIGATION
 * ------------------------------------------------------------------- */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text-color);
    text-transform: uppercase;
}

.site-header.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--light-text-color);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
}

.site-header.scrolled .nav-links a {
    color: var(--heading-color);
}

.site-header.scrolled .nav-links a:hover {
    color: var(--accent-color);
}


.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--light-text-color);
    transition: all 0.3s ease-in-out;
}

.site-header.scrolled .burger-menu span {
    background-color: var(--heading-color);
}


/* -------------------------------------------------------------------
 *  3. GENERAL COMPONENT STYLES
 * ------------------------------------------------------------------- */
 
/* Buttons */
.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-button {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: var(--light-text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--light-text-color);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--heading-color);
    border: 2px solid var(--primary-color);
}

.cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Forms */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius-small);
    background-color: #fdfdfd;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background-color: var(--background-color);
    padding: 0 0.25rem;
}

/* -------------------------------------------------------------------
 *  4. PAGE-SPECIFIC SECTIONS
 * ------------------------------------------------------------------- */

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
    font-size: 4.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Features Section */
#features {
    background-color: var(--card-background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stats-widgets-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    color: var(--light-text-color);
    text-align: center;
}

.stat-widget .stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-widget .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* About Us Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    position: relative;
    z-index: 1;
}

/* Custom Slider / Gallery */
.custom-slider-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

/* Insights Section */
.insights-slider-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.insight-card .card-content {
    text-align: left;
    align-items: flex-start;
}
.insight-meta {
    margin-top: auto; /* Pushes meta to the bottom */
    font-size: 0.9rem;
    color: #888;
}


/* Clientele Section */
#clientele {
    background-color: var(--card-background);
}
.clientele-slider {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.clientele-slider img {
    height: 40px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}
.clientele-slider img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.resource-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: block;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--secondary-color);
}
.resource-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
.resource-card .resource-url {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--card-background);
    border-radius: var(--border-radius-small);
    margin-bottom: 1rem;
    border: 1px solid #eee;
    overflow: hidden;
}
.faq-question {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* remove default marker */
}
.faq-question::-webkit-details-marker { display: none; } /* Chrome/Safari */
.faq-question::marker { display: none; } /* Firefox */
.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #eee;
}

/* -------------------------------------------------------------------
 *  5. OTHER PAGES STYLES
 * ------------------------------------------------------------------- */
.page-content {
    padding-top: 120px; /* Offset for fixed header */
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* About Detailed Page */
.about-detailed-content .text-block {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.about-detailed-content .image-block img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.about-detailed-content ul {
    list-style: none;
    padding-left: 0;
}
.about-detailed-content ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}
.about-detailed-content ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}


/* Contact Full Page */
.contact-page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}
.contact-info-container {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}
.contact-info-container h3, .contact-info-container p {
    color: var(--light-text-color);
}
.contact-info-container a {
    color: var(--light-text-color);
    text-decoration: underline;
}

/* Legal Pages (Privacy/Terms) */
.legal-page {
    padding-bottom: 4rem;
}
.legal-page h3 {
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Success Page */
.success-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
    text-align: center;
    padding: 2rem 0;
}
.success-message-box {
    background-color: var(--card-background);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 600px;
}
.success-message-box h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* -------------------------------------------------------------------
 *  6. FOOTER
 * ------------------------------------------------------------------- */
.site-footer {
    background-color: var(--footer-background);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul a:hover {
    color: var(--light-text-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}


/* -------------------------------------------------------------------
 *  7. ANIMATIONS & RESPONSIVENESS
 * ------------------------------------------------------------------- */

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    .hero-title { font-size: 3.5rem; }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-page-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--card-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links a,
    .site-header.scrolled .nav-links a {
        color: var(--heading-color);
    }
    .burger-menu {
        display: block;
    }
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    .burger-menu.active span {
        background-color: var(--heading-color);
    }

    section {
        padding: 3.5rem 0;
    }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}