/* 
    Project: Digital Marketing Agency Redesign
    Theme: Modern Tech (Deep Blue / Neon Cyan / White)
    Author: AI Assistant
*/

/* =========================================
   1. ROOT VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Color Palette */
    --primary-color: #0b0c10;
    --secondary-color: #1f2833;
    --accent-color: #66fcf1;
    --accent-dark: #45a29e;
    --text-light: #ffffff;
    --text-dim: #c5c6c7;
    --text-dark: #0b0c10;
    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #1f2833 0%, #0b0c10 100%);
    --gradient-accent: linear-gradient(45deg, #45a29e 0%, #66fcf1 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    --container-width: 1200px;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 10px rgba(102, 252, 241, 0.5), 0 0 20px rgba(102, 252, 241, 0.3);
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-dim);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-accent {
    color: var(--accent-color);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   3. BUTTONS & UI ELEMENTS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.8);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* =========================================
   4. HEADER STYLES (STRICT CONSISTENCY)
   ========================================= */
.header {
    background-color: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure contrast on dark bg */
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-color);
    overflow: hidden;
    margin-top: -80px;
    /* Offset header */
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(69, 162, 158, 0.1) 0%, transparent 60%);
}

/* 3D Grid Effect */
.hero-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    bottom: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(102, 252, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 252, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    animation: fadeInLeft 1s ease-out 0.2s backwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInLeft 1s ease-out 0.4s backwards;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* 3D Floating Elements */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 60%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube {
    width: 100px;
    height: 100px;
    background: rgba(102, 252, 241, 0.1);
    border: 2px solid var(--accent-color);
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.cube:nth-child(1) {
    top: 20%;
    left: 20%;
    width: 80px;
    height: 80px;
    animation-duration: 15s;
}

.cube:nth-child(2) {
    top: 60%;
    right: 20%;
    width: 120px;
    height: 120px;
    animation-direction: reverse;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services-section {
    background-color: var(--secondary-color);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--primary-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(102, 252, 241, 0.05);
    transition: height 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-neon);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
}

/* =========================================
   7. CALCULATOR SECTION (Interactive)
   ========================================= */
.calculator-section {
    background: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-container {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.calc-form h3 {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border: 1px solid #333;
    color: var(--text-light);
    border-radius: 5px;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: var(--accent-color);
}

.calc-results {
    background: var(--gradient-main);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--accent-dark);
}

.result-box {
    margin: 20px 0;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: var(--font-heading);
    display: block;
}

.result-label {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* =========================================
   8. PROCESS & STATS SECTION
   ========================================= */
.process-section {
    background-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.process-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.9);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    margin-top: 50px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    position: relative;
    z-index: 2;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.process-step:last-child::after {
    display: none;
}

/* Stats */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    margin: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    display: block;
}

.stat-label {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   9. TESTIMONIALS SECTION
   ========================================= */
.testimonials-section {
    background-color: var(--secondary-color);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.client-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-dim);
}

.client-rating {
    color: var(--warning);
    margin-bottom: 10px;
}

.client-name {
    color: var(--text-light);
    font-weight: 700;
}

.client-role {
    color: var(--accent-dark);
    font-size: 0.9rem;
}

/* =========================================
   10. CONTACT PAGE STYLES
   ========================================= */
.page-header {
    background: var(--gradient-main);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    height: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

textarea {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border: 1px solid #333;
    color: var(--text-light);
    border-radius: 5px;
    resize: vertical;
    outline: none;
    font-family: var(--font-body);
}

textarea:focus {
    border-color: var(--accent-color);
}

/* =========================================
   11. LEGAL PAGE STYLES
   ========================================= */
.legal-content {
    background: var(--secondary-color);
    color: var(--text-dim);
    line-height: 1.8;
}

.legal-content-wrapper {
    background: var(--primary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content h2 {
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* =========================================
   12. FOOTER STYLES (STRICT CONSISTENCY)
   ========================================= */
.footer {
    background-color: #050608;
    padding: 80px 0 20px;
    border-top: 3px solid var(--accent-dark);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-dim);
    position: relative;
    padding-left: 0;
    transition: padding 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.footer-links a::before {
    content: '>';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s;
    color: var(--accent-color);
}

.footer-links a:hover::before {
    left: -5px;
    opacity: 1;
}

.footer-contact li {
    display: flex;
    margin-bottom: 15px;
    color: var(--text-dim);
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 20px;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

/* =========================================
   13. ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* =========================================
   14. RESPONSIVE STYLES
   ========================================= */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-step::after {
        display: none;
    }

    /* Remove connecting lines on mobile */

    .hero-visual {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        padding: 40px 0;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .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);
    }

    .header-actions .btn {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-legal a {
        margin: 0 10px;
    }
}