/* 
 * ==========================================
 * Evolving Media Services - Core Stylesheet
 * Theme: Cosmic Digital Lab
 * ==========================================
 */

:root {
    /* Color Palette */
    --primary-color: #0b0e14;
    /* Deep Space Background */
    --secondary-color: #151a25;
    /* Panel Background */
    --accent-color: #00f0ff;
    /* Neon Cyan */
    --accent-glow: rgba(0, 240, 255, 0.4);
    --tertiary-color: #7000ff;
    /* Electric Purple */
    --tertiary-glow: rgba(112, 0, 255, 0.4);
    --text-main: #ffffff;
    --text-muted: #a0a8b8;
    --success: #00ff9d;
    --warning: #ffb800;
    --danger: #ff0055;

    /* Gradients */
    --grad-main: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --grad-accent: linear-gradient(45deg, var(--accent-color), var(--tertiary-color));
    --grad-text: linear-gradient(to right, #fff, #a0a8b8);

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --glass-bg: rgba(21, 26, 37, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --neon-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
 * Reset & Base Styles
 * ==========================================
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--primary-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Grid Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(11, 14, 20, 0.9), rgba(11, 14, 20, 0.9)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    z-index: -2;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--section-padding);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border-radius: 4px;
    gap: 10px;
}

.btn-primary {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 5px var(--accent-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--tertiary-color);
    border-color: var(--tertiary-color);
    box-shadow: 0 0 15px var(--tertiary-glow);
}

/* ==========================================
 * Header & Navigation
 * ==========================================
 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    background: rgba(11, 14, 20, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px;
    filter: brightness(0) invert(1);
    /* Ensure white logo if original is dark */
}

.nav-menu {
    position: relative;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    box-shadow: 0 0 5px var(--accent-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================
 * Hero Section
 * ==========================================
 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    padding: 5px 15px;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.hero-title {
    font-size: 4rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    color: var(--tertiary-color);
    -webkit-text-stroke: 1px var(--tertiary-color);
    text-shadow: 0 0 10px var(--tertiary-glow);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    z-index: 0;
    opacity: 0.6;
}

/* 3D Floating Element Animation */
.floating-cube {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-color);
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
    right: 15%;
    top: 30%;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ==========================================
 * Services Section
 * ==========================================
 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.service-features {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: var(--success);
    font-size: 0.8rem;
}

/* ==========================================
 * ROI Calculator Section
 * ==========================================
 */
.roi-section {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    position: relative;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 0.9rem;
}

.range-wrap {
    position: relative;
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: #2a3142;
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-value {
    position: absolute;
    top: -30px;
    right: 0;
    color: var(--text-main);
    font-weight: 700;
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--tertiary-color);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.1);
}

.result-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 10px solid var(--tertiary-color);
    border-top-color: var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: spinBorder 5s linear infinite reverse;
    position: relative;
}

.result-content {
    animation: spinBorder 5s linear infinite;
    /* Counteract rotation */
}

@keyframes spinBorder {
    to {
        transform: rotate(360deg);
    }
}

.roi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.roi-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==========================================
 * Industry Section
 * ==========================================
 */
.industries-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.industry-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.industry-tag:hover {
    background: var(--tertiary-color);
    border-color: var(--tertiary-color);
    transform: scale(1.05);
}

/* ==========================================
 * Stats Section
 * ==========================================
 */
.stats-section {
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBWMEgwdi41eiIgZmlsbD0iIzZmZmZmZiIgZmlsbC1vcGFjaXR5PSIwLjAzIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+');
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* ==========================================
 * Legal & Content Pages Styles
 * ==========================================
 */
.page-header-section {
    padding: 150px 0 80px;
    background: linear-gradient(180deg, rgba(11, 14, 20, 0) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: center;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.legal-content-wrapper {
    background: var(--secondary-color);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.legal-content h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 20px;
    color: #cbd5e1;
}

/* ==========================================
 * Contact Page Styles
 * ==========================================
 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--tertiary-color), #4a00e0);
    padding: 40px;
    border-radius: 15px;
    color: white;
    box-shadow: var(--neon-shadow);
}

.contact-details-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-form-wrapper {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--primary-color);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    outline: none;
}

.btn-full {
    width: 100%;
}

/* ==========================================
 * Footer
 * ==========================================
 */
.footer {
    background: #05070a;
    padding-top: 80px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(112, 0, 255, 0.1), transparent 50%);
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
    padding-bottom: 50px;
}

.footer-about-text {
    font-size: 0.9rem;
    margin-top: 20px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-muted);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.footer-col-title {
    color: var(--text-main);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* ==========================================
 * Responsive
 * ==========================================
 */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--secondary-color);
        padding: 80px 40px;
        transition: var(--transition);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .nav-toggle,
    .nav-close {
        display: block;
    }

    .nav-close {
        position: absolute;
        top: 25px;
        right: 30px;
    }

    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .legal-content-wrapper {
        padding: 25px;
    }
}

/* Animations Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.popup.active {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(0.8);
    transition: var(--transition);
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}