/* =========================================
   ECD VoIP - Modern Landing Page Styles
   ========================================= */

/* Variables & Theming */
:root {
    /* Brand Colors based on the logo's vibrant blue */
    --primary: #0056D2; /* Vibrant Blue */
    --primary-light: #3b82f6;
    --primary-dark: #0043a4;
    
    /* Neutral & Background Colors */
    --bg-main: #f8fafc;
    --bg-dark: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-bg-dark: rgba(30, 41, 59, 0.7);
    
    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    /* Accents */
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-yellow: #eab308;
    
    /* Layout & Effects */
    --max-width: 1200px;
    --nav-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 86, 210, 0.3);
    
    /* Glassmorphism */
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-blur: blur(16px);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.bg-dark p {
    color: #94a3b8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem;
    border: none;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Glassmorphism Card Base */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.fallback-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.fallback-logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.fallback-logo .accent {
    color: var(--primary);
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-links .btn {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: calc(var(--nav-height) + 80px) 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-light);
    top: -200px;
    right: -100px;
    animation: float 10s infinite alternate ease-in-out;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -100px;
    left: -100px;
    animation: float 8s infinite alternate-reverse ease-in-out;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 86, 210, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 86, 210, 0.2);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero UI Mockups */
.hero-image {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.dashboard-preview {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotateY(-15deg);
    width: 110%;
    height: 400px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid white;
    transition: transform 0.5s ease;
}

.dashboard-preview:hover {
    transform: translateY(-50%) rotateY(0);
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.dots .red { background: var(--accent-red); }
.dots .yellow { background: var(--accent-yellow); }
.dots .green { background: var(--accent-green); }

.dash-title {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.dash-body {
    display: flex;
    flex: 1;
    margin-top: 1rem;
    gap: 1rem;
}

.dash-sidebar {
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.side-item {
    height: 20px;
    background: #e2e8f0;
    border-radius: 4px;
}

.side-item.active {
    background: var(--primary-light);
    width: 80%;
}

.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-top-widgets {
    display: flex;
    gap: 1rem;
}

.dash-widget {
    flex: 1;
    height: 60px;
    background: #f1f5f9;
    border-radius: 8px;
}

.dash-chart {
    flex: 1;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    gap: 1rem;
}

.chart-line {
    flex: 1;
    background: var(--primary-light);
    border-radius: 4px 4px 0 0;
    animation: growUp 2s ease-out forwards;
    transform-origin: bottom;
}
.chart-line:nth-child(1) { height: 40%; }
.chart-line:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.chart-line:nth-child(3) { height: 100%; animation-delay: 0.4s; }

.floating-card {
    position: absolute;
    bottom: 20px;
    left: -50px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.caller-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.caller-info {
    display: flex;
    flex-direction: column;
}

.caller-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.call-actions {
    display: flex;
    gap: 0.5rem;
}

.call-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.call-actions button:hover {
    transform: scale(1.1);
}

.call-actions .decline { background: var(--accent-red); }
.call-actions .accept { background: var(--accent-green); }

/* Trusted By */
.trusted-by {
    padding: 3rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.trusted-by p {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.partner-logo {
    font-size: 2.5rem;
    color: #94a3b8;
    transition: color 0.3s;
}

.partner-logo:hover {
    color: var(--text-main);
}

/* Features Section */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 86, 210, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* How It Works (Solutions) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefit-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-list i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.benefit-list p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* App Mockup Dark */
.app-mockup {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: white;
}

.mockup-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.call-log {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.call-log:hover {
    background: rgba(255, 255, 255, 0.1);
}

.call-log .avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log-info {
    flex: 1;
}

.log-info .name {
    font-weight: 600;
    color: white;
}

.log-info .time {
    font-size: 0.8rem;
    color: #94a3b8;
}

.call-log .duration {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.bg-red { background: rgba(239, 68, 68, 0.2) !important; color: #ef4444 !important; }
.text-red { color: #ef4444 !important; }

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-glow);
}

.cta-box h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.demo-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    background: white;
    padding: 0.5rem;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}

.input-group input {
    flex: 1;
    border: none;
    padding: 0 1.5rem;
    font-size: 1rem;
    border-radius: 999px;
    outline: none;
    font-family: inherit;
}

/* Footer */
.footer {
    background: #020617;
    color: white;
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #94a3b8;
    margin: 1.5rem 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.footer-contact i {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Animations */
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

@keyframes growUp {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.pulse-anim {
    animation: shadowPulse 2s infinite;
}

@keyframes shadowPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.appear {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-cta, .hero-stats {
        justify-content: center;
    }
    .dashboard-preview {
        position: relative;
        transform: none;
        width: 100%;
        margin-top: 2rem;
    }
    .dashboard-preview:hover {
        transform: translateY(-10px);
    }
    .floating-card {
        bottom: -20px;
        left: 20px;
    }
    .split-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    h1 {
        font-size: 2.5rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    .input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 1rem;
    }
    .input-group input {
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }
    .input-group .btn {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
