/* 
====================================================================
   DIGITAL MARKETING AGENCY - CORE STYLESHEET
   Version: 2.0
   Theme: Midnight Blue & Neon Gradient
   Author: AI Developer
====================================================================
*/

/* -----------------------------------------------------------------
   1. VARIABLES & THEME SETUP
----------------------------------------------------------------- */
:root {
    /* Color Palette */
    --color-bg-primary: #050505;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #111111;
    --color-bg-card: #161b22;

    --color-primary: #3b82f6;
    /* Electric Blue */
    --color-primary-dark: #2563eb;
    --color-secondary: #8b5cf6;
    /* Vibrant Purple */
    --color-accent: #06b6d4;
    /* Cyan */

    --color-text-main: #ffffff;
    --color-text-muted: #9ca3af;
    --color-text-dark: #1f2937;

    --color-border: #30363d;
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-text: linear-gradient(to right, #60a5fa, #c084fc);
    --gradient-glow: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* -----------------------------------------------------------------
   2. RESET & BASE STYLES
----------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input,
textarea,
select,
button {
    font-family: inherit;
    border: none;
    outline: none;
}

/* -----------------------------------------------------------------
   3. UTILITY CLASSES
----------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

.section-padding {
    padding: 100px 0;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* -----------------------------------------------------------------
   4. BUTTONS & UI ELEMENTS
----------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-glow);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--color-secondary);
}

/* -----------------------------------------------------------------
   5. HEADER & NAVIGATION
----------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: transparent;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: 70px;
}

.nav-container {
    display: grid;
    /* Left: logo, Center: nav links, Right: mobile toggle (hidden on desktop) */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

.nav-container nav {
    display: flex;
    justify-content: center;
    justify-self: center;
}

.logo-container {
    justify-self: start;
}

.mobile-toggle {
    justify-self: end;
}

.logo-container img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure white logo */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* -----------------------------------------------------------------
   6. HERO SECTION
----------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
}

/* Floating shapes animation for hero */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatShape 10s infinite alternate;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    animation-delay: -5s;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* -----------------------------------------------------------------
   7. SERVICES SECTION
----------------------------------------------------------------- */
.services-section {
    background-color: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 1rem;
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 1rem;
}

.service-link span {
    margin-left: 0.5rem;
    transition: var(--transition-fast);
}

.service-link:hover span {
    margin-left: 1rem;
}

/* -----------------------------------------------------------------
   8. CALCULATOR SECTION (Interactive)
----------------------------------------------------------------- */
.calculator-section {
    position: relative;
    background: var(--color-bg-tertiary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.calc-wrapper {
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    padding: 1rem;
    color: white;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}

.input-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.result-box {
    background: var(--gradient-main);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: white;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.range-slider {
    width: 100%;
    margin-top: 0.5rem;
    cursor: pointer;
}

/* -----------------------------------------------------------------
   9. SAMPLE REPORT / TIMELINE SECTION
----------------------------------------------------------------- */
.timeline-section {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-content {
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--color-secondary);
    transform: scale(1.02);
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    top: 50%;
    z-index: 3;
    box-shadow: 0 0 10px var(--color-primary);
}

.left .timeline-dot {
    right: -50px;
}

.right .timeline-dot {
    left: -50px;
}

/* -----------------------------------------------------------------
   10. CONTACT FORM STYLES
----------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.contact-form-wrapper {
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    padding: 1rem;
    color: white;
    border-radius: var(--border-radius-md);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* -----------------------------------------------------------------
   11. FOOTER
----------------------------------------------------------------- */
.site-footer {
    background-color: #000;
    border-top: 1px solid var(--color-border);
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
}

/* -----------------------------------------------------------------
   12. LEGAL PAGES SPECIFIC
----------------------------------------------------------------- */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-bg-card);
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
}

.legal-content h2 {
    margin-top: 2rem;
    color: var(--color-primary);
    font-size: 1.8rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* -----------------------------------------------------------------
   13. ANIMATIONS
----------------------------------------------------------------- */
@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(10deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES
----------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --container-width: 90%;
    }

    h1 {
        font-size: 3rem;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .left .timeline-dot,
    .right .timeline-dot {
        left: 22px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 1rem;
    }

    .mobile-toggle {
        display: block;
        color: white;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--color-bg-secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 2rem;
    }
}