/*
--- AETHERIAL BLUE THEME - DIGITAL MARKETING ---
Version: 2.0

TABLE OF CONTENTS
1.  :root & Global Styles
2.  Utility & Animation Classes
3.  Header & Navigation (Glassmorphism)
4.  Mobile Navigation
5.  Hero Section & 3D Visuals
6.  Services Section (Flipping Cards)
7.  About (Why Us) Section
8.  Stats Section (Counter)
9.  ROI Calculator Section
10. Testimonials Section
11. CTA Section
12. Footer
13. Page-Specific Styles (Contact, Legal)
14. Forms
15. Particle Canvas Background
16. Media Queries (Responsiveness)
    - Laptops & Small Desktops (<= 1200px)
    - Tablets (<= 992px)
    - Mobile (<= 768px)

*/

/* 1. :root & Global Styles */
:root {
    --bg-dark-navy: #0f172a;
    --bg-light-navy: #1e293b;
    --bg-accent: #334155;
    --primary-brand: #4f46e5;
    --secondary-brand: #3b82f6;
    --accent-cyan: #67e8f9;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-color: rgba(79, 70, 229, 0.2);
    --font-family: 'Inter', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
    --transition-speed: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark-navy);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. Utility & Animation Classes */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-brand), var(--secondary-brand));
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--primary-brand);
    border-color: var(--primary-brand);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

[data-animation] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animation="fade-in-up"] {
    transform: translateY(40px);
}

[data-animation="zoom-in"] {
    transform: scale(0.9);
}

[data-animation="slide-in-left"] {
    transform: translateX(-40px);
}

[data-animation="slide-in-right"] {
    transform: translateX(40px);
}

.animate-on-load,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    transition-delay: var(--delay, 0.2s);
}

/* 3. Header & Navigation (Glassmorphism) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    border-bottom-color: var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 55px;
    filter: invert(1);
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger-menu .line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active .line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 4. Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-light-navy);
    z-index: 999;
    padding: 120px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    text-align: center;
}

.mobile-nav a {
    display: block;
    padding: 15px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
}

.mobile-nav a:hover {
    background-color: var(--bg-accent);
    color: var(--text-primary);
}

/* 5. Hero Section & 3D Visuals */
.hero-section {
    padding: calc(var(--header-height) + 120px) 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    background: -webkit-linear-gradient(45deg, var(--accent-cyan), var(--secondary-brand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual {
    perspective: 1200px;
}

.sphere-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: spin 30s linear infinite;
}

.sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-cyan), var(--primary-brand) 70%);
    box-shadow: 0 0 50px var(--primary-brand), inset 0 0 30px rgba(255, 255, 255, 0.2);
    transform: rotateX(70deg);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    margin-top: -75%;
    margin-left: -75%;
    border: 1px dashed rgba(103, 232, 249, 0.2);
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: spin var(--d) linear infinite reverse;
    transform: rotateX(70deg) rotateZ(calc(var(--i) * 60deg));
}

.icon-orb {
    position: absolute;
    top: -20px;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    background: var(--bg-light-navy);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(103, 232, 249, 0.5);
    animation: counter-rotate var(--d) linear infinite;
}

.icon-orb svg {
    width: 20px;
    height: 20px;
}

@keyframes spin {
    from {
        transform: rotateY(0) rotateX(70deg);
    }

    to {
        transform: rotateY(360deg) rotateX(70deg);
    }
}

@keyframes counter-rotate {
    from {
        transform: rotateY(0) rotateX(-70deg);
    }

    to {
        transform: rotateY(-360deg) rotateX(-70deg);
    }
}

/* 6. Services Section (Flipping Cards) */
.services-section {
    background-color: var(--bg-dark-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.service-card {
    position: relative;
    width: 100%;
    min-height: 320px;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
}

.service-card:hover {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    background: var(--bg-light-navy);
    border: 1px solid var(--border-color);
}

.service-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-brand), var(--secondary-brand));
}

.service-card-back h3 {
    color: var(--text-primary);
}

.service-card-back p {
    color: #e0e7ff;
}

.service-card-back a {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--bg-accent);
    color: var(--accent-cyan);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

/* 7. About (Why Us) Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: var(--bg-light-navy);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-speed);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-brand);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-brand), var(--secondary-brand));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
}

.about-icon svg {
    width: 28px;
    height: 28px;
}

/* 8. Stats Section (Counter) */
.stats-section {
    background: var(--bg-light-navy);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* 9. ROI Calculator Section */
.roi-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.roi-form-container {
    background: var(--bg-light-navy);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.roi-results {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.roi-results h4 {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.roi-results span {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* 10. Testimonials Section */
.testimonials-section {
    background: var(--bg-dark-navy);
}

.testimonial-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light-navy);
    padding: 40px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-brand);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
}

.author-name {
    color: var(--text-primary);
}

.author-title {
    display: block;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

/* 11. CTA Section */
.cta-section {
    text-align: center;
}

.cta-content {
    background: linear-gradient(135deg, var(--primary-brand), var(--secondary-brand));
    padding: 80px 40px;
    border-radius: var(--border-radius);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #e0e7ff;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-content .btn-primary {
    background: var(--text-primary);
    color: var(--primary-brand);
    box-shadow: none;
}

.cta-content .btn-primary:hover {
    background: var(--bg-dark-navy);
    color: var(--text-primary);
}

/* 12. Footer */
.site-footer {
    background-color: var(--bg-light-navy);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .footer-logo img {
    height: 60px;
    filter: invert(1);
    margin-bottom: 15px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* 13. Page-Specific Styles (Contact, Legal) */
.page-header {
    padding: calc(var(--header-height) + 80px) 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
}

.page-header p {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.contact-page-section,
.legal-content-section {
    padding-bottom: 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    background: var(--bg-light-navy);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info-item {
    margin-bottom: 30px;
}

.contact-info-item h3 {
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h2 {
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-container ul {
    list-style-type: disc;
    padding-left: 20px;
}

.legal-container ul li {
    margin-bottom: 0.5rem;
}

/* 14. Forms */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--bg-dark-navy);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-brand);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

textarea {
    resize: vertical;
}

/* 15. Particle Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

/* 16. Media Queries (Responsiveness) */
@media (max-width: 1200px) {
    h1 {
        font-size: 3.2rem;
    }

    .hero-title {
        font-size: 3.8rem;
    }

    .hero-visual {
        transform: scale(0.85);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 80px 0;
    }

    .main-nav {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin: -50px 0 30px;
        transform: scale(0.75);
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roi-content,
    .testimonial-container {
        grid-template-columns: 1fr;
    }

    .roi-text {
        text-align: center;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-about .footer-logo {
        display: block;
        margin: 0 auto 15px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .stats-grid,
    .testimonial-container {
        grid-template-columns: 1fr;
    }

    .stat-item {
        margin-bottom: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
}