/* =========================================
   1. ROOT VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Color Palette */
    --primary-color: #181414;
    /* Deep Charcoal */
    --secondary-color: #231E1E;
    /* Warm Dark Cocoa */
    --accent-color: #E38B76;
    /* Rose Gold Accent */
    --accent-glow: #F2A996;
    /* Soft Rose Glow */
    --highlight-color: #C46DD8;
    /* Soft Luxe Purple Highlight */

    --text-light: #F5F1F0;
    /* Warm Off-White */
    --text-dim: #B8AFAE;
    /* Muted Warm Grey */
    --success-color: #4CCB78;
    /* Soft Natural Green */
    --border-color: #3A3333;
    /* Warm Dark Border */

    /* Typography */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Segoe UI', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-light);
}

h3 {
    font-size: 1.75rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    color: white;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-fast);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px var(--accent-color);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dim);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.1), transparent 40%);
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Animated Background Elements */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 10s infinite alternate;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(56, 189, 248, 0.15);
}

.shape-2 {
    bottom: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.15);
    animation-delay: -5s;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 30px;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.2s;
}

.hero-title {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.4s;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.6s;
}

.hero-btns {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.8s;
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services-section {
    background-color: var(--primary-color);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    group: hover;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-color);
    font-size: 24px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    color: white;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   6. INTERACTIVE CALCULATOR SECTION
   ========================================= */
.calculator-section {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.calc-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    backdrop-filter: blur(10px);
}

.calc-inputs h3 {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    transition: 0.2s;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.range-value {
    color: var(--accent-color);
    font-weight: 700;
}

.calc-results {
    background: var(--primary-color);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.calc-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
}

.result-item {
    text-align: center;
    margin-bottom: 30px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-label {
    display: block;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.result-number.green {
    color: var(--success-color);
}

/* =========================================
   7. SAMPLE REPORT / VISUALIZATION
   ========================================= */
.report-section {
    background-color: var(--primary-color);
    overflow: hidden;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.report-visuals {
    position: relative;
    height: 400px;
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 80%;
    margin-top: 10%;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.bar {
    width: 40px;
    background: linear-gradient(180deg, var(--accent-color), rgba(56, 189, 248, 0.2));
    border-radius: 5px 5px 0 0;
    position: relative;
    height: 0;
    /* JS will animate height */
    transition: height 1.5s ease-out;
}

.bar span {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.5s 1s;
}

.bar.animated span {
    opacity: 1;
}

.report-content ul {
    margin-top: 30px;
}

.report-content li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.check-icon {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials-section {
    background: var(--secondary-color);
}

.testimonial-track {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
}

.testimonial-track::-webkit-scrollbar {
    height: 5px;
}

.testimonial-card {
    min-width: 350px;
    background: var(--primary-color);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    scroll-snap-align: center;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--border-color);
    border-radius: 50%;
    overflow: hidden;
}

.client-details h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.review-text {
    font-style: italic;
    color: var(--text-dim);
}

.stars {
    color: #F59E0B;
    margin-bottom: 15px;
}

/* =========================================
   9. CTA & FOOTER
   ========================================= */
.cta-section {
    text-align: center;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    position: relative;
}

.cta-box {
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

footer {
    background: #020617;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-dim);
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--accent-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* =========================================
   10. PAGE SPECIFIC: CONTACT
   ========================================= */
.contact-hero {
    padding-top: 150px;
    text-align: center;
    padding-bottom: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 100px;
}

.contact-info-box {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.contact-form-box {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* =========================================
   11. PAGE SPECIFIC: LEGAL
   ========================================= */
.legal-content {
    padding-top: 150px;
    padding-bottom: 100px;
}

.legal-box {
    background: var(--secondary-color);
    padding: 50px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.legal-box h1 {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.legal-box h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.legal-box p,
.legal-box li {
    color: var(--text-dim);
    margin-bottom: 15px;
}

.legal-box ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

/* =========================================
   12. ANIMATIONS & KEYFRAMES
   ========================================= */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* Reveal on Scroll Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   13. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .calc-container {
        grid-template-columns: 1fr;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .cta-box {
        padding: 30px;
    }
}