/* 
====================================================================
   DIGITAL MARKETING AGENCY THEME - VERSION 2 (Modern Corporate)
   Author: AI Assistant
   Description: A clean, high-performance agency styling suite.
==================================================================== 
*/

/* -----------------------------------------------------------------
   1. CORE VARIABLES & CONFIGURATION
----------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --color-primary: #0f172a;
    /* Deep Navy */
    --color-primary-light: #1e293b;
    --color-secondary: #f97316;
    /* Vibrant Orange */
    --color-secondary-hover: #ea580c;
    --color-accent: #3b82f6;
    /* Bright Blue */

    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-light: #f8fafc;
    --bg-off-white: #f1f5f9;
    --bg-dark: #0f172a;

    /* Typography */
    --color-text-heading: #0f172a;
    --color-text-body: #475569;
    --color-text-light: #94a3b8;
    --color-white: #ffffff;

    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;

    /* Spacing & Layout */
    --container-width: 1300px;
    --header-height: 90px;
    --section-spacing: 120px;

    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 40px -5px rgba(15, 23, 42, 0.1);
    --shadow-float: 0 30px 60px -10px rgba(15, 23, 42, 0.15);

    /* Animation Timing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* -----------------------------------------------------------------
   2. RESET & GLOBAL STYLES
----------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--color-text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    letter-spacing: -1.5px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -----------------------------------------------------------------
   3. UTILITY CLASSES
----------------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.grid {
    display: grid;
    gap: 40px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-secondary);
}

.text-light {
    color: var(--color-text-light);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--color-white);
}

.section-padding {
    padding: var(--section-spacing) 0;
}

/* -----------------------------------------------------------------
   4. BUTTONS & UI COMPONENTS
----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-secondary-hover);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover::after {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-5px);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* -----------------------------------------------------------------
   5. HEADER & NAVIGATION
----------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-item {
    font-weight: 500;
    color: var(--color-text-heading);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-item:hover {
    color: var(--color-secondary);
}

.nav-item:hover::before {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* -----------------------------------------------------------------
   6. HERO SECTION
   ================================================================= */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    background-color: var(--bg-body);
    overflow: hidden;
}

/* Abstract Background Shapes */
.hero-shape {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -100px;
    animation: pulse 10s infinite alternate;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: 0;
    left: -100px;
    animation: pulse 12s infinite alternate-reverse;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-body);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img-main {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-img-main:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Floating Stats Cards in Hero */
.hero-stat-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 6s infinite ease-in-out;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-info h5 {
    margin: 0;
    font-size: 1.1rem;
}

.stat-info span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.card-1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    right: -30px;
    animation-delay: 2s;
}

/* -----------------------------------------------------------------
   7. SERVICES SECTION
----------------------------------------------------------------- */
.services-section {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.service-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-off-white);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

/* Hover stripe effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-off-white);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.service-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-off-white);
}

.service-list li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-body);
}

.service-list li i {
    color: var(--color-secondary);
    font-size: 0.8rem;
}

/* -----------------------------------------------------------------
   8. PROCESS / METHODOLOGY
----------------------------------------------------------------- */
.process-section {
    background: var(--bg-dark);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.process-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-primary-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.process-step {
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -30px;
    left: 0;
    z-index: -1;
}

.process-step h4 {
    color: var(--color-white);
    margin-top: 20px;
}

.process-step p {
    color: rgba(255, 255, 255, 0.7);
}

/* -----------------------------------------------------------------
   9. ROI CALCULATOR
----------------------------------------------------------------- */
.calc-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--color-white) 100%);
}

.calc-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.calc-controls label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.range-wrap {
    margin-bottom: 40px;
}

input[type=range] {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--color-secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.2);
    transition: 0.2s;
}

.calc-results {
    background: var(--color-primary);
    color: white;
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-results::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.result-box {
    position: relative;
    z-index: 2;
}

.result-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 10px 0;
    color: var(--color-secondary);
}

/* -----------------------------------------------------------------
   10. TESTIMONIALS
----------------------------------------------------------------- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.review-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--color-secondary);
}

.stars {
    color: #facc15;
    margin-bottom: 15px;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.client-img {
    width: 50px;
    height: 50px;
    background: #cbd5e1;
    border-radius: 50%;
}

/* -----------------------------------------------------------------
   11. FOOTER
----------------------------------------------------------------- */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-logo img {
    height: 35px;
    filter: brightness(0) invert(1);
    /* Ensure white logo */
    margin-bottom: 20px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* -----------------------------------------------------------------
   12. ANIMATIONS (Keyframes)
----------------------------------------------------------------- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Reveal on Scroll Class */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------------------------------------
   13. LEGAL & CONTACT PAGE STYLES
----------------------------------------------------------------- */
.page-header {
    background: var(--bg-dark);
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: white;
    margin-bottom: 20px;
}

.legal-body {
    background: white;
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-body h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-top: 40px;
}

.legal-body ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-body li {
    margin-bottom: 10px;
}

/* Contact Form Specifics */
.contact-wrapper {
    box-shadow: var(--shadow-card);
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: -60px;
    /* Overlap header */
    position: relative;
    z-index: 10;
}

.form-side {
    padding: 60px;
}

.info-side {
    background: var(--color-primary);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-primary);
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
}

/* -----------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES
----------------------------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .hero-image-wrapper {
        width: 80%;
        margin: 0 auto;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
        align-items: center;
        transition: 0.4s ease;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-cols {
        grid-template-columns: 1fr;
    }

    .hero-stat-card {
        display: none;
    }

    /* Hide floating cards on mobile */
    .section-padding {
        padding: 80px 0;
    }
}