/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette - Theme: "Sunset Ember" */
    --primary-color: #f97316;
    /* Orange 500 */
    --secondary-color: #ef4444;
    /* Red 500 */
    --accent-color: #fbbf24;
    /* Amber 400 */

    --dark-bg: #0b0b10;
    /* Deep charcoal */
    --card-bg: #14141d;
    /* Dark slate card */

    --text-light: #f8fafc;
    --text-muted: #a1a1aa;

    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 55px;
    filter: invert(1);
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: var(--transition-fast);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15), transparent 50%);
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract Shapes Animation */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    right: 20%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    z-index: 3;
    animation: slideInRight 1s ease forwards;
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services {
    padding: var(--section-padding);
    background-color: #0b1120;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   6. INTERACTIVE CALCULATOR (ROI)
   ========================================= */
.calculator-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--dark-bg), #111827);
}

.calc-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-inputs,
.calc-results {
    flex: 1;
    min-width: 300px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-results {
    background: var(--gradient-main);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.result-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.result-box .big-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* =========================================
   7. SAMPLE REPORT / ANALYTICS
   ========================================= */
.analytics-section {
    padding: var(--section-padding);
}

.report-mockup {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #334155;
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #334155;
    padding-bottom: 15px;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    padding-top: 20px;
}

.bar-wrap {
    text-align: center;
    width: 10%;
    position: relative;
}

.bar-visual {
    background: var(--primary-color);
    width: 100%;
    border-radius: 5px 5px 0 0;
    transition: height 1s ease;
    height: 0;
    /* JS will fill this */
    position: relative;
}

.bar-visual:hover {
    background: var(--accent-color);
}

.bar-wrap span {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   8. INDUSTRIES & TESTIMONIALS
   ========================================= */
.industries {
    padding: var(--section-padding);
    background: #0b1120;
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.tag {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.testimonials {
    padding: var(--section-padding);
}

.testimonial-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    margin: 20px 0;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: #334155;
    border-radius: 50%;
    margin-right: 15px;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: #020617;
    padding: 80px 0 30px;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.9rem;
}

.legal-links a {
    margin: 0 10px;
    color: #64748b;
}

.legal-links a:hover {
    color: #fff;
}

/* =========================================
   10. LEGAL & CONTACT PAGES
   ========================================= */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, var(--dark-bg), #1e293b);
}

.legal-content,
.contact-wrapper {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.legal-content h2 {
    color: var(--text-light);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
}

textarea {
    width: 100%;
    padding: 15px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
}

/* =========================================
   11. ANIMATIONS (Keyframes)
   ========================================= */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   12. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .calc-container {
        padding: 20px;
    }
}