/*
* styles.css
* Redesign for a Digital Marketing Website
*/

/* -------------------
   1. ROOT VARIABLES
------------------- */
:root {
    --primary-color: #4A90E2;
    /* A professional, trustworthy blue */
    --secondary-color: #2D3748;
    /* A very dark, almost black blue for text and backgrounds */
    --accent-color: #50E3C2;
    /* A vibrant teal/mint for accents and CTAs */
    --background-color: #F7FAFC;
    /* A very light gray for body background */
    --dark-bg-color: #1A202C;
    /* Dark background for header/footer */
    --card-bg-color: #FFFFFF;
    --light-text-color: #EDF2F7;
    --dark-text-color: #2D3748;
    --gray-text-color: #718096;
    --border-color: #E2E8F0;
    --shadow-color: rgba(45, 55, 72, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'DM Serif Display', serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;

    --container-width: 1200px;
    --container-padding: 0 20px;
}

/* -------------------
   2. RESET & BASE STYLES
------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--dark-text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    line-height: 1.2;
    font-weight: 400;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* -------------------
   3. UTILITY CLASSES
------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.btn-tertiary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 20px;
}

.btn-tertiary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 15px 35px;
}


.section-header {
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------
   4. PRELOADER
------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-text-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -------------------
   5. HEADER & NAVIGATION
------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--dark-bg-color);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--light-text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle,
.nav-close {
    display: none;
    color: var(--light-text-color);
    font-size: 1.5rem;
}


/* -------------------
   6. HERO SECTION
------------------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg-color));
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%232D3748" fill-opacity="0.4"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm43 9c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zM10 40c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z"/></g></svg>');
    animation: bg-pan 30s linear infinite;
}

@keyframes bg-pan {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons .btn {
    margin: 0 10px;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    position: relative;
}

.mouse span {
    position: absolute;
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}


/* -------------------
   7. SERVICES SECTION
------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card-flip {
    background-color: transparent;
    perspective: 1000px;
    height: 320px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.service-card-front {
    background-color: var(--card-bg-color);
}

.service-card-front i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card-front h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card-back {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: rotateY(180deg);
}

.service-card-back h4 {
    color: white;
    margin-bottom: 15px;
}

.service-card-back ul {
    text-align: left;
    margin-bottom: 20px;
    padding-left: 20px;
}

.service-card-back li {
    list-style-type: disc;
    margin-bottom: 5px;
}


/* -------------------
   8. ABOUT & PROCESS SECTION
------------------- */
.about-section {
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    margin-top: 20px;
    margin-bottom: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.about-features i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.process-timeline {
    position: relative;
    padding-left: 40px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    border: 4px solid var(--background-color);
}

.timeline-content h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 0;
}

/* -------------------
   9. INDUSTRY TABS SECTION
------------------- */
.industry-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-link {
    padding: 15px 25px;
    border-radius: var(--border-radius);
    background-color: var(--card-bg-color);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.tab-link.active {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.tab-content {
    display: none;
    padding: 30px;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* -------------------
   10. TESTIMONIALS SECTION
------------------- */
.testimonials-section {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}

.testimonials-section h2,
.testimonials-section .subtitle {
    color: #fff;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 40px;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--light-text-color);
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-color);
    font-size: 2rem;
    position: absolute;
    opacity: 0.5;
}

.testimonial-text::before {
    top: -20px;
    left: -20px;
}

.testimonial-text::after {
    content: '\f10e';
    bottom: -20px;
    right: -20px;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-info h4 {
    color: #fff;
    margin-bottom: 0;
    font-family: var(--font-primary);
    font-weight: 700;
}

.author-info span {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.slider-nav:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.slider-nav.prev {
    left: -25px;
}

.slider-nav.next {
    right: -25px;
}

/* -------------------
   11. CTA SECTION
------------------- */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(https://via.placeholder.com/1920x500.png?text=Office+Meeting) no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
}

.cta-section h2 {
    color: #fff;
}

.cta-section p {
    color: var(--light-text-color);
    max-width: 600px;
    margin: 20px auto 30px;
}

/* -------------------
   12. FOOTER
------------------- */
.footer {
    background-color: var(--dark-bg-color);
    color: var(--gray-text-color);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 40px;
}

.footer-about-text {
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: var(--gray-text-color);
}

.footer-links ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-contact a {
    color: var(--gray-text-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* -------------------
   13. PAGE-SPECIFIC STYLES (CONTACT, LEGAL)
------------------- */

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg-color));
    color: #fff;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--light-text-color);
    opacity: 0.8;
}

.breadcrumbs {
    margin-top: 20px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--accent-color);
}

.breadcrumbs span,
.breadcrumbs i {
    color: var(--light-text-color);
    margin: 0 8px;
}

/* Legal Pages Content */
.main-content {
    padding: 80px 0;
}

.page-content {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.page-content p:last-child {
    margin-bottom: 0;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: #fff;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px var(--shadow-color);
}

.contact-info-panel h3,
.contact-form-wrapper h3 {
    margin-bottom: 20px;
}

.contact-details-list {
    margin-top: 30px;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-details-list h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 1.1rem;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* -------------------
   14. ANIMATIONS
------------------- */
.animate-in {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.fade-in {
    opacity: 0;
}

.animate-in.fade-in-up {
    transform: translateY(50px);
}

.animate-in.fade-in-left {
    transform: translateX(-50px);
}

.animate-in.fade-in-right {
    transform: translateX(50px);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* -------------------
   15. RESPONSIVENESS
------------------- */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        text-align: center;
    }

    .process-timeline {
        max-width: 500px;
        margin: 40px auto 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--dark-bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed) ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .contactButton {
        display: none;
    }

    .hero {
        height: auto;
        padding: 150px 0 100px;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .service-card-flip {
        height: auto;
        min-height: 280px;
    }

    .service-card-front,
    .service-card-back {
        padding: 30px 20px;
    }

    .industry-tabs {
        flex-wrap: wrap;
    }

    .tab-link {
        flex-grow: 1;
        justify-content: center;
    }

    .tab-link span {
        display: none;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav.prev {
        left: 0px;
    }

    .slider-nav.next {
        right: 0px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-wrapper {
        padding: 30px 20px;
    }
}