/* 
   Telenest - Colorful, Fun & Corporate Design 
   Main Stylesheet
*/

:root {
    /* Corporate Sleek + Fun Palette */
    --bg-dark: #0a0a12;
    --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);

    /* Vibrant Gradients */
    --primary-gradient: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    --accent-gradient: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    --text-gradient: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);

    /* Colors */
    --primary-color: #4facfe;
    --accent-color: #f5576c;
    --text-main: #ffffff;
    --text-dim: #b8b8d0;
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    /* Parallax-like effect */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a12;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(79, 172, 254, 0.5));
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.1) rotate(-2deg);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--glass-hover);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(10px);
    min-width: 220px;
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Bouncy effect */
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin-bottom: 5px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 0.95rem;
    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(5px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
    background: var(--accent-gradient);
    /* Color shift on hover */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero.page-hero {
    height: 50vh;
    min-height: 400px;
}

.hero.page-hero h1 {
    font-size: 3.5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: contrast(1.2) saturate(1.2);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Split Layout */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    position: relative;
}

.split-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s;
    border: 1px solid var(--glass-border);
}

.split-image:hover img {
    transform: scale(1.02) rotate(1deg);
}

/* Cards & Grid */
.services-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: var(--glass-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    fill: url(#gradient-fill);
    /* Needs SVG defs or color fallback */
    fill: var(--primary-color);
    /* Fallback */
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.4));
}

/* Contact Form Styles (Integrated) */
.contact-form {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.2);
}

.form-group select option {
    background: #1a1a2e;
    color: white;
}

/* Footer */
footer {
    background: #050508;
    padding: 80px 0 30px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Carousel / Marquee */
.logo-marquee {
    overflow: hidden;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    margin: 50px 0;
}

.marquee-content {
    display: flex;
    gap: 50px;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.marquee-item {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.marquee-item:hover {
    background: #ffffff;
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    transition: 0.3s transform;
}

.marquee-item:hover img {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu logic needed in JS or simplified CSS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0f0c29;
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .split-layout {
        flex-direction: column;
        gap: 40px;
    }

    .split-layout.reverse {
        flex-direction: column;
    }

    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }
}

/* Live Stats Section - Premium Design */
.live-stats {
    padding: 80px 0;
    position: relative;
    background: radial-gradient(circle at center, rgba(16, 20, 40, 0.95) 0%, rgba(5, 5, 10, 0.98) 100%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    border-top: 1px solid rgba(79, 172, 254, 0.2);
    border-bottom: 1px solid rgba(79, 172, 254, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) inset;
    overflow: hidden;
}

/* Decorate background with grid lines */
.live-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.live-stats .container {
    position: relative;
    z-index: 1;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 59, 48, 0.15);
    color: #ff4d4d;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 59, 48, 0.4);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.2);
    text-transform: uppercase;
}

.pulsing-dot {
    width: 10px;
    height: 10px;
    background-color: #ff3b30;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #ff3b30;
    animation: neon-pulse 1.5s infinite;
}

@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        box-shadow: 0 0 0 15px rgba(255, 59, 48, 0);
        opacity: 1;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 25px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Gradient Border Effect on Hover */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0), rgba(79, 172, 254, 0.5), rgba(240, 147, 251, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.4s;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 172, 254, 0.1);
}

.stat-card:hover::after {
    opacity: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(79, 172, 254, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.4s;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.stat-card:hover .stat-icon-wrapper {
    background: var(--primary-gradient);
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

.stat-icon {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
    transition: 0.4s;
}

.stat-card:hover .stat-icon {
    stroke: #fff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #fff 20%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    transition: 0.3s;
}

.stat-card:hover .stat-label {
    color: #fff;
    opacity: 1;
}