/* CSS Variables */
:root {
    /* Colors based on Vidyora Logo Requirements */
    --bg-dark: #070914;
    --bg-surface: rgba(18, 24, 48, 0.4);
    --bg-surface-hover: rgba(28, 40, 78, 0.6);

    --primary: #1a5fce;
    --primary-light: #3d80eb;
    --accent: #e8871e;
    --accent-light: #f69d3c;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glow-primary: rgba(26, 95, 206, 0.3);
    --glow-accent: rgba(232, 135, 30, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
    /* Use custom cursor hover effect */
}

ul {
    list-style-type: none;
}

/* Custom Cursor Glow */
.cursor-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-glow.active {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-accent) 0%, transparent 70%);
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.text-center {
    text-align: center;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Text Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-orange {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(26, 95, 206, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-fast);
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px var(--glow-primary);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-primary);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border-hover);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-fast);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(7, 9, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-container {
    height: 48px;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link:not(.btn-contact):hover {
    color: var(--accent-light);
}

.nav-link:not(.btn-contact)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:not(.btn-contact):hover::after {
    width: 100%;
}

.btn-contact {
    padding: 0.75rem 1.5rem;
    background: rgba(26, 95, 206, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.btn-contact:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--glow-primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(232, 135, 30, 0.1);
    border: 1px solid rgba(232, 135, 30, 0.3);
    border-radius: 50px;
    color: var(--accent-light);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.about-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-style: preserve-3d;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.blue-icon {
    background: rgba(26, 95, 206, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(26, 95, 206, 0.2);
}

.orange-icon {
    background: rgba(232, 135, 30, 0.1);
    color: var(--accent);
    border: 1px solid rgba(232, 135, 30, 0.2);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-muted);
}

/* Solutions Section */
.bg-gradient-subtle {
    background: radial-gradient(circle at right center, rgba(26, 95, 206, 0.05) 0%, transparent 50%),
        radial-gradient(circle at left center, rgba(232, 135, 30, 0.03) 0%, transparent 50%);
}

.solutions-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.solution-card {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(145deg, var(--bg-surface) 0%, rgba(18, 24, 48, 0.1) 100%);
}

.solution-content {
    flex: 1;
    padding: 4rem;
}

.solution-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solution-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.feature-list {
    margin-bottom: 2.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.learned-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.learned-more span {
    transition: transform 0.3s;
}

.learned-more:hover span {
    transform: translateX(5px);
}

.solution-visual {
    flex: 1;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.solution-card.reverse {
    flex-direction: row-reverse;
}

/* Process Section */
.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
    z-index: 0;
}

.process-step {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    box-shadow: 0 0 20px var(--glow-primary);
}

.step-card {
    padding: 2rem;
    flex: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.step-card p {
    color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-slider {
    padding: 1rem;
    overflow: visible;
    /* Adjust for 3D tilt */
}

.testimonial-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-family: serif;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 2rem;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    flex: 1;
}

.testimonial-author {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.testimonial-author strong {
    font-family: var(--font-heading);
    color: var(--primary-light);
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(26, 95, 206, 0.1) 0%, rgba(232, 135, 30, 0.05) 100%);
    border-color: rgba(26, 95, 206, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--primary-light);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Contact Section */
.contact-card {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method .icon {
    width: 40px;
    height: 40px;
    background: rgba(232, 135, 30, 0.1);
    border: 1px solid rgba(232, 135, 30, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
}

.contact-method span {
    font-size: 1.125rem;
    font-weight: 500;
}

.contact-form {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(26, 95, 206, 0.2);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: none;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: #04050a;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.125rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* GSAP Initial States (Hidden) */
.fade-up,
.reveal-text,
.reveal-fade,
.reveal-up,
.card-3d,
.side-reveal-left,
.side-reveal-right {
    visibility: hidden;
}

/* Responsiveness */
@media (max-width: 992px) {
    .solutions-grid {
        gap: 3rem;
    }

    .solution-card,
    .solution-card.reverse {
        flex-direction: column;
    }

    .solution-visual {
        height: 300px;
        width: 100%;
    }

    .contact-card {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(7, 9, 20, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease-in-out;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .solution-content {
        padding: 2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}