/* =========================================
   1. ROOT VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Color Palette - Cyber/Modern Digital Marketing */
    --color-bg-dark: #0a0f1c;
    --color-bg-secondary: #111827;
    --color-bg-tertiary: #1f2937;

    --color-primary: #3b82f6;
    /* Electric Blue */
    --color-primary-dark: #2563eb;
    --color-accent: #8b5cf6;
    /* Violet */
    --color-accent-glow: rgba(139, 92, 246, 0.5);

    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-dark: #1f2937;

    --color-border: #374151;
    --color-success: #10b981;
    --color-danger: #ef4444;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --gradient-dark: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(10, 15, 28, 1) 100%);
    --gradient-text: linear-gradient(to right, #60a5fa, #c084fc);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-spacing: 100px;

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Shadows */
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--color-accent-glow);
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Typography Utilities */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(10, 15, 28, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrapper img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

#canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    padding: 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    color: var(--color-primary);
    margin-bottom: 25px;
    font-size: 0.9rem;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.7;
}

/* =========================================
   5. SERVICES SECTION (Grid & 3D Tilt)
   ========================================= */
.services-section {
    padding: var(--section-spacing) 0;
    background-color: var(--color-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-bg-tertiary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    group: hover;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    gap: 10px;
}

/* =========================================
   6. INTERACTIVE CALCULATOR
   ========================================= */
.calculator-section {
    padding: var(--section-spacing) 0;
    background: radial-gradient(circle at center, #1e293b 0%, #0a0f1c 100%);
}

.calc-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-inputs,
.calc-results {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.result-box {
    background: var(--gradient-main);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result-value {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 10px 0;
}

.range-slider {
    width: 100%;
    height: 6px;
    background: var(--color-bg-tertiary);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* =========================================
   7. INDUSTRY SECTORS & TABS
   ========================================= */
.industry-section {
    padding: var(--section-spacing) 0;
}

.industry-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border-left: 4px solid var(--color-primary);
}

.tab-content.active {
    display: block;
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials-section {
    padding: var(--section-spacing) 0;
    overflow: hidden;
}

.testimonial-track-container {
    width: 100%;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.testimonial-card {
    background: var(--color-bg-secondary);
    padding: 30px;
    border-radius: 15px;
    min-width: 350px;
    border: 1px solid var(--color-border);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-border);
}

/* =========================================
   9. SAMPLE REPORT / STATS
   ========================================= */
.stats-section {
    background: url('https://via.placeholder.com/1920x600/0a0f1c/0a0f1c') fixed no-repeat center;
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--color-primary);
    font-weight: 800;
}

/* =========================================
   10. CONTACT FORM & PAGE STYLES
   ========================================= */
.contact-page-section {
    padding-top: 150px;
    padding-bottom: 100px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-box {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* =========================================
   11. LEGAL PAGES STYLES
   ========================================= */
.legal-content {
    padding-top: 150px;
    padding-bottom: 100px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: white;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

/* =========================================
   12. FOOTER
   ========================================= */
.main-footer {
    background: #05080f;
    padding: 80px 0 30px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =========================================
   13. ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================
   14. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .calc-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}