/*
* Digital Marketing Agency Stylesheet
*
* Table of Contents:
* 1.  Global Styles & Variables
* 2.  Preloader & Utility Classes
* 3.  Header & Navigation
* 4.  Footer
* 5.  Hero Section
* 6.  Services Section
* 7.  About / Stats Section
* 8.  Industries Section
* 9.  Testimonials Section
* 10. CTA Section
* 11. Page Headers (for sub-pages)
* 12. Contact Page Styles
* 13. Legal Page Styles
* 14. Animations & Keyframes
* 15. Responsive Design (Media Queries)
*/

/* 1. Global Styles & Variables
--------------------------------------------- */
:root {
    --primary-color: #4A90E2;
    /* A vibrant, trustworthy blue */
    --secondary-color: #50E3C2;
    /* A modern, fresh teal/mint */
    --accent-color: #F5A623;
    /* A warm, inviting orange for highlights */
    --dark-bg: #1A1D24;
    /* A deep, dark background */
    --dark-bg-secondary: #252A34;
    /* Slightly lighter dark for cards */
    --light-text: #EAEAEA;
    --medium-text: #A9A9A9;
    --dark-text: #121212;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
    --container-width: 1200px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--medium-text);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    color: var(--light-text);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* 2. Preloader & Utility Classes
--------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo img {
    width: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-bar {
    width: 150px;
    height: 4px;
    background: var(--dark-bg-secondary);
    border-radius: 2px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.preloader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    animation: preloader-slide 2s infinite ease-in-out;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a82d6;
    border-color: #3a82d6;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border-color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--dark-bg);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.has-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    transition: left 0.8s ease;
}

.has-shine:hover::before {
    left: 150%;
}

/* 3. Header & Navigation
--------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-speed);
}

.header.scrolled {
    background-color: rgba(26, 29, 36, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    transition: all var(--transition-speed);
}


.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    border-radius: 3px;
    transition: all var(--transition-speed);
    position: absolute;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.bar:nth-child(3) {
    bottom: 0;
}

.nav.active+.header-actions .menu-toggle .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.nav.active+.header-actions .menu-toggle .bar:nth-child(2) {
    opacity: 0;
}

.nav.active+.header-actions .menu-toggle .bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* 4. Footer
--------------------------------------------- */
.footer {
    background-color: var(--dark-bg-secondary);
    padding: 60px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--medium-text);
    font-size: 0.9rem;
}

.footer h4 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--medium-text);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--light-text);
    padding-left: 5px;
}

.footer-contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--medium-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-contact-info p i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--medium-text);
}

/* 5. Hero Section
--------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 150px 0 100px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary-color);
    top: 10%;
    left: 15%;
    animation: move-blob-1 20s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background-color: var(--secondary-color);
    bottom: 15%;
    right: 20%;
    animation: move-blob-2 25s infinite alternate;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background-color: var(--accent-color);
    top: 25%;
    right: 10%;
    animation: move-blob-3 15s infinite alternate;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: -webkit-linear-gradient(45deg, var(--secondary-color), #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--light-text);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 6. Services Section
--------------------------------------------- */
.services-section {
    background-color: var(--dark-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--transition-speed);
    transform-style: preserve-3d;
    position: relative;
    min-height: 300px;
}

.service-card:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.card-back {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-text);
    transform: rotateY(180deg);
    border-radius: var(--border-radius);
}

.card-back h3,
.card-back ul li {
    color: var(--dark-bg);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-title {
    margin-bottom: 15px;
    color: var(--light-text);
}

.service-description {
    font-size: 0.95rem;
}

.card-back ul {
    text-align: left;
    margin-bottom: 20px;
    width: 80%;
}

.card-back ul li {
    margin-bottom: 8px;
    font-weight: 500;
}

.card-back .btn {
    background: #fff;
    color: var(--primary-color);
}

.card-back .btn:hover {
    background: var(--dark-bg);
    color: #fff;
}


/* 7. About / Stats Section
--------------------------------------------- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    background: var(--dark-bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--transition-speed);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--medium-text);
    margin-bottom: 0;
}

/* 8. Industries Section
--------------------------------------------- */
.industries-section {
    background: var(--dark-bg-secondary);
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.industry-item {
    background: var(--dark-bg);
    padding: 20px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    transition: all var(--transition-speed);
    cursor: default;
}

.industry-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.industry-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: color var(--transition-speed);
}

.industry-item:hover i {
    color: #fff;
}

/* 9. Testimonials Section
--------------------------------------------- */
.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--light-text);
    max-width: 90%;
}

.author-name {
    font-weight: 600;
    color: var(--light-text);
}

.author-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--dark-bg-secondary);
    color: var(--light-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 10. CTA Section
--------------------------------------------- */
.cta-section {
    padding: 80px 0;
}

.cta-wrapper {
    background: linear-gradient(135deg, var(--primary-color), #2b6cb0);
    padding: 60px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow-dark);
}

.cta-wrapper h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.cta-wrapper p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-wrapper .btn-primary {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.cta-wrapper .btn-primary:hover {
    background: var(--dark-bg);
    color: #fff;
    border-color: var(--dark-bg);
}

/* 11. Page Headers (for sub-pages)
--------------------------------------------- */
.page-header-section {
    padding: 180px 0 100px;
    text-align: center;
    background: var(--dark-bg-secondary);
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1), transparent 70%);
}

.page-header-section h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.page-header-section p {
    font-size: 1.2rem;
    color: var(--medium-text);
    max-width: 600px;
    margin: 0 auto;
}

/* 12. Contact Page Styles
--------------------------------------------- */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--dark-bg-secondary);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info-block h2 {
    margin-bottom: 20px;
}

.contact-details-list {
    margin-top: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-detail-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 40px;
}

.contact-detail-item h3 {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 5px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid #444;
    background: var(--dark-bg);
    color: var(--light-text);
    font-family: var(--font-family);
    transition: all var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.contact-form button {
    width: 100%;
}

/* Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--dark-bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-speed);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--medium-text);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
    color: var(--light-text);
}


/* 13. Legal Page Styles
--------------------------------------------- */
.legal-page-section {
    background: var(--dark-bg);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--dark-bg-secondary);
    padding: 40px 50px;
    border-radius: var(--border-radius);
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    color: var(--light-text);
}

.legal-content p {
    margin-bottom: 1.5rem;
}

/* 14. Animations & Keyframes
--------------------------------------------- */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes preloader-slide {
    0% {
        left: -50%;
        width: 50%;
    }

    50% {
        left: 0;
        width: 100%;
    }

    100% {
        left: 100%;
        width: 50%;
    }
}

@keyframes move-blob-1 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 100px) scale(1.2);
    }
}

@keyframes move-blob-2 {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-80px, 40px) scale(0.8);
    }
}

@keyframes move-blob-3 {
    from {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    to {
        transform: translate(60px, -60px) rotate(180deg) scale(1.1);
    }
}

/* Animate on Scroll Classes */
[data-animation] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animation].fade-in-up {
    transform: translateY(50px);
}

[data-animation].fade-in-right {
    transform: translateX(-50px);
}

[data-animation].fade-in-left {
    transform: translateX(50px);
}

[data-animation].zoom-in {
    transform: scale(0.8);
}

[data-animation].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* 15. Responsive Design (Media Queries)
--------------------------------------------- */
@media (max-width: 1200px) {
    .about-wrapper {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    /* Mobile Nav */
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-bg-secondary);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: left var(--transition-speed);
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
        /* Above nav menu */
    }

    .header .btn-primary {
        display: none;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero {
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 80%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-info p {
        justify-content: center;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .legal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .page-header-section {
        padding: 150px 0 80px;
    }

    .page-header-section h1 {
        font-size: 2.5rem;
    }

    .page-header-section p {
        font-size: 1rem;
    }
}