/* =========================================
   1. ROOT VARIABLES & THEME CONFIGURATION
   ========================================= */
:root {
    /* Color Palette - Solar Dusk */
    --primary-color: #f97316;
    /* Burnt Orange */
    --primary-dark: #c2410c;
    /* Deep Copper */
    --secondary-color: #eab308;
    /* Golden Sand */
    --accent-color: #fb7185;
    /* Rose */

    /* Backgrounds */
    --bg-body: #0a0604;
    /* Warm near-black */
    --bg-dark: #050302;
    --bg-card: #17100c;
    /* Coffee brown */
    --bg-light: #fff7ed;

    /* Text Colors */
    --text-main: #fff7ed;
    --text-muted: #d6d3d1;
    --text-dark: #1c1917;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    --gradient-hover: linear-gradient(135deg, #c2410c 0%, #ca8a04 100%);
    --gradient-text: linear-gradient(to right, #fdba74, #fde68a);

    /* Spacing & Layout */
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius: 18px;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 6px rgb(0 0 0 / 0.35);
    --shadow-md: 0 16px 32px -6px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 36px 80px -20px rgb(0 0 0 / 0.85);
    --shadow-neon: 0 0 26px rgba(249, 115, 22, 0.45);

    /* Transitions */
    --transition-fast: all 0.25s ease;
    --transition-medium: all 0.45s ease-in-out;
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}




/* =========================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-neon);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--bg-dark);
    transition: var(--transition-fast);
    z-index: -1;
    opacity: 0.2;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
}

.section-padding {
    padding: 100px 0;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

header.scrolled {
    background: rgba(2, 6, 23, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-box img {
    height: 50px;
    /* Placeholder size */
    width: auto;
    filter: brightness(100%);
    /* Ensure white logo pops */
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* =========================================
   4. HERO SECTION (ANIMATED)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Background animated blobs */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    animation: blobFloat 10s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    animation: blobFloat 10s infinite alternate-reverse;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.7s;
}

.hero-btns {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.9s;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.card-3d {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: floatCard 6s ease-in-out infinite;
}

.hero-visual:hover .card-3d {
    transform: rotateY(0deg) rotateX(0deg);
}

.stat-floating {
    position: absolute;
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-1 {
    top: -20px;
    right: -20px;
    animation: floatIcon 4s infinite ease-in-out;
}

.stat-2 {
    bottom: -20px;
    left: -20px;
    animation: floatIcon 5s infinite ease-in-out reverse;
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services {
    background: var(--bg-body);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    background: rgba(236, 72, 153, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--secondary-color);
    color: white;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-list {
    margin-top: 20px;
    padding-left: 20px;
}

.service-list li {
    margin-bottom: 8px;
    position: relative;
    color: var(--text-muted);
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: var(--primary-color);
}

/* =========================================
   6. CALCULATOR SECTION
   ========================================= */
.calculator-section {
    background: var(--bg-dark);
    position: relative;
}

.calc-wrapper {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-controls label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.range-slider {
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.calc-value {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
    float: right;
}

.calc-results {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    padding: 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.result-box h4 {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.result-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

/* =========================================
   7. INDUSTRIES & TESTIMONIALS
   ========================================= */
.industries {
    background: var(--bg-body);
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.tag {
    padding: 10px 25px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: default;
}

.tag:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.testimonials {
    background: linear-gradient(to bottom, var(--bg-body), var(--bg-dark));
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.review-card::before {
    content: '“';
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background: #020617;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: white;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    border-radius: 6px 0 0 6px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form button {
    border-radius: 0 6px 6px 0;
    padding: 0 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 20px;
}

/* =========================================
   9. LEGAL PAGES STYLING
   ========================================= */
.legal-page-header {
    height: 40vh;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
}

.legal-content {
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    margin-top: -50px;
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow-lg);
    margin-bottom: 80px;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 30px;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 20px;
    color: #cbd5e1;
}

.legal-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

/* =========================================
   10. CONTACT PAGE SPECIFICS
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
}

.contact-info {
    background: var(--gradient-main);
    padding: 60px;
    color: white;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
}

.info-item {
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form-box {
    padding: 60px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: var(--bg-body);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
    background: var(--bg-body);
    padding: 0 5px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-color: var(--primary-color);
}

.form-group input:focus~label,
.form-group textarea:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* =========================================
   11. ANIMATION KEYFRAMES
   ========================================= */
@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -50px) scale(1.1);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: rotateY(-10deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: rotateY(-5deg) rotateX(2deg) translateY(-20px);
    }
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Scroll Animation Classes */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   12. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .legal-content {
        padding: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}