/* 
    Project: Digital Marketing Agency Redesign
    Theme: Cyber/Tech Professional
    Author: AI Assistant
*/

/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Colors */
    --color-bg: #050505;
    --color-bg-secondary: #0a0b10;
    --color-text-main: #e0e0e0;
    --color-text-muted: #a0a0a0;

    /* Brand Colors */
    --primary-color: #00f0ff;
    /* Cyan Neon */
    --primary-dark: #00bfcc;
    --secondary-color: #7000ff;
    /* Electric Purple */
    --secondary-light: #9d4dff;
    --accent-color: #ff0055;
    /* Alert/Hot */

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    --gradient-dark: linear-gradient(135deg, #0f0f15, #1a1a25);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Borders & Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-thin: 1px solid rgba(255, 255, 255, 0.1);
    --border-glow: 1px solid rgba(0, 240, 255, 0.3);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 15px rgba(0, 240, 255, 0.3);
    --shadow-purple: 0 0 15px rgba(112, 0, 255, 0.3);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* =========================================
   3. UTILITIES & BACKGROUNDS
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.08) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   4. PRELOADER
   ========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-logo-container {
    position: relative;
    margin-bottom: 20px;
}

.preloader-logo {
    height: 80px;
    filter: invert(1);
    animation: pulse 2s infinite;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: #1a1a25;
    position: relative;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: var(--primary-color);
    animation: loading 1.5s infinite ease-in-out;
}

.preloader-text {
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--primary-color);
}

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--secondary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    z-index: 1002;
}

.nav-logo {
    height: 60px;
    width: auto;
    filter: invert(1) drop-shadow(0 0 5px var(--primary-color));
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-primary:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.hero-3d-element {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    background: rgba(0, 240, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2) inset;
}

.cube-face:nth-child(1) {
    transform: rotateY(0deg) translateZ(100px);
}

.cube-face:nth-child(2) {
    transform: rotateY(90deg) translateZ(100px);
}

.cube-face:nth-child(3) {
    transform: rotateY(180deg) translateZ(100px);
}

.cube-face:nth-child(4) {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-face:nth-child(5) {
    transform: rotateX(90deg) translateZ(100px);
}

.cube-face:nth-child(6) {
    transform: rotateX(-90deg) translateZ(100px);
}

/* =========================================
   7. SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--gradient-dark);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-md);
    border: var(--border-thin);
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.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: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-purple);
    border-color: var(--secondary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-list {
    margin-top: 1.5rem;
    list-style: none;
}

.service-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.service-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* =========================================
   8. CALCULATOR SECTION
   ========================================= */
.calculator-wrapper {
    background: #0f0f12;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--secondary-color);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.1);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calc-input-group label {
    display: block;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 12px;
    color: white;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-result {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.roi-display {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    display: block;
    margin: 10px 0;
}

/* =========================================
   9. TESTIMONIALS (Success Signals)
   ========================================= */
.testimonials-slider {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    scroll-snap-align: center;
    border-left: 3px solid var(--primary-color);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-weight: bold;
}

/* =========================================
   10. CONTACT PAGE STYLES
   ========================================= */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(112, 0, 255, 0.15), transparent 70%);
}

.page-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-md);
    transition: 0.3s;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-color);
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-form {
    background: var(--gradient-dark);
    padding: 3rem;
    border-radius: var(--border-radius-md);
    border: var(--border-thin);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 4px;
    color: white;
    font-family: var(--font-body);
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    outline: none;
}

.btn-full-width {
    width: 100%;
}

/* =========================================
   11. LEGAL PAGES
   ========================================= */
.legal-content {
    background: #08080a;
}

.legal-container {
    max-width: 900px;
}

.content-wrapper h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.breadcrumbs {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-color);
}

/* =========================================
   12. FOOTER
   ========================================= */
.footer {
    background: #020202;
    border-top: 1px solid #1a1a1a;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    filter: invert(1);
    margin-bottom: 1.5rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: black;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

/* =========================================
   13. ANIMATIONS & MEDIA QUERIES
   ========================================= */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes loading {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

@keyframes rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #050505;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        border-left: 1px solid var(--primary-color);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .header-actions .btn {
        display: none;
        /* Hide Quote button on mobile header to save space */
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
    }

    .hero-3d-element {
        position: relative;
        right: 0;
        width: 100%;
        height: 300px;
        margin-top: 2rem;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

/* Chat Bubble */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    z-index: 990;
    transition: 0.3s;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup.show {
    display: flex;
}

.popup-content {
    background: #1a1a25;
    padding: 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--primary-color);
    text-align: center;
    max-width: 400px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

.popup-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}