/* --- ROOT VARIABLES & THEME CONFIGURATION --- */
:root {
    /* Colors */
    --primary-color: #4361ee;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --dark-bg: #0b0c10;
    --card-bg: #1f2833;
    --text-light: #c5c6c7;
    --text-white: #ffffff;
    --neon-glow: 0 0 10px rgba(67, 97, 238, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

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;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* --- HEADER SECTION (STRICT CONSISTENCY) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s ease;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper img {
    height: 80px;
    /* Adjusted for visibility */
    filter: brightness(0) invert(1);
    /* Ensures logo is white on dark bg */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--text-white);
}

/* Dropdown */
.dropdown-trigger {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Header Buttons */
.cta-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(114, 9, 183, 0.5);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
}

.blob-2 {
    bottom: 0%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-3d-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(5deg);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@keyframes float {
    0% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(0px);
    }

    50% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(-20px);
    }

    100% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(0px);
    }
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: var(--section-padding);
    background: #0f1115;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03));
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.read-more {
    margin-top: 20px;
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- ROI CALCULATOR --- */
.calculator-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--dark-bg), #13151a);
}

.calc-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-inputs h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-color);
}

.range-value {
    display: block;
    text-align: right;
    margin-top: 5px;
    font-weight: bold;
    color: white;
}

.calc-results {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.result-box {
    margin-bottom: 30px;
}

.result-box h4 {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
    padding: var(--section-padding);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #14161b;
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* --- CONTACT PAGE --- */
.contact-page main {
    padding-top: 150px;
    padding-bottom: 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 50px;
    color: white;
}

.contact-method {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.method-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-wrapper {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0f1115;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

/* --- LEGAL PAGES --- */
.legal-page main {
    padding-top: 150px;
    padding-bottom: 100px;
}

.legal-content {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
    font-size: 1.5rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 15px;
    color: var(--text-light);
}

.legal-content ul {
    padding-left: 20px;
    list-style: disc;
}

/* --- FOOTER (STRICT CONSISTENCY) --- */
.site-footer {
    background: #050608;
    border-top: 1px solid var(--glass-border);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #888;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #020203;
    padding: 20px 0;
    border-top: 1px solid #1a1a1a;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.legal-links a {
    margin-left: 20px;
    color: #666;
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* --- ANIMATIONS & UTILS --- */
[data-animate] {
    opacity: 0;
    transition: all 0.8s ease-out;
}

[data-animate="slide-up"] {
    transform: translateY(30px);
}

[data-animate="fade-in"] {
    opacity: 0;
}

[data-animate].active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    overflow: hidden;
    transition: height 0.3s ease;
}

.mobile-nav-overlay.active {
    height: calc(100vh - 80px);
}

.mobile-links {
    padding: 40px;
    text-align: center;
}

.mobile-links li {
    margin-bottom: 25px;
}

.mobile-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}