/* 
  YixSolutions - Design System & Styles
  Aesthetic: Premium, Dark, Cyber-Editorial, Glassmorphism
*/

:root {
    /* Color Palette */
    --bg-dark: #05070a;
    --bg-panel: rgba(15, 20, 30, 0.6);
    --bg-card: rgba(20, 26, 40, 0.4);
    
    --primary-teal: #00d4aa;
    --primary-teal-glow: rgba(0, 212, 170, 0.4);
    --accent-gold: #f0a030;
    --accent-gold-glow: rgba(240, 160, 48, 0.3);
    
    --text-main: #f0f4f8;
    --text-muted: #8a9bb3;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 212, 170, 0.2);

    /* Typography */
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-w: 1280px;
    --section-py: 8rem;
    
    /* Effects */
    --glass-blur: blur(16px);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-teal);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-teal-glow);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 212, 170, 0.1);
    border-color: var(--primary-teal);
}

/* Layout Utilities */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-py) 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-teal) 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 24px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    cursor: none; /* Use custom cursor */
    border: 1px solid transparent;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-teal);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-teal-glow);
}

.btn-primary:hover {
    background: #00ebd0;
    box-shadow: 0 0 30px var(--primary-teal-glow);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--primary-teal);
    background: rgba(0, 212, 170, 0.05);
}

.btn-block {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

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

.logo-solutions {
    color: var(--text-muted);
    font-weight: 400;
}

.logo-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-teal);
    border-radius: 50%;
    margin-left: 2px;
    align-self: flex-end;
    margin-bottom: 6px;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 5rem; /* Account for nav */
}

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.glow-orb.primary {
    top: 20%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: var(--primary-teal-glow);
}

.glow-orb.secondary {
    bottom: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--accent-gold-glow);
    animation-delay: -5s;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-teal);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.7);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.metric {
    text-align: center;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-teal);
    border-radius: 2px;
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Capabilities Section */
.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-teal);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.text-link:hover {
    gap: 0.75rem;
}

.card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover .card-glow {
    opacity: 1;
}

/* Feature Showcases */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-showcase.reverse .showcase-grid {
    direction: rtl;
}

.feature-showcase.reverse .showcase-content,
.feature-showcase.reverse .showcase-visual {
    direction: ltr;
}

.showcase-content .section-title {
    text-align: left;
}

.showcase-content .section-desc {
    text-align: left;
    margin-bottom: 2.5rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon-wrapper {
    color: var(--primary-teal);
    font-size: 1.5rem;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 50%;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.visual-wrapper {
    position: relative;
    padding: 1rem;
    border-radius: 32px;
}

.floating-img {
    width: 100%;
    border-radius: 24px;
    animation: float-slow 6s infinite ease-in-out alternate;
}

.visual-accent-1, .visual-accent-2, .visual-accent-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.visual-accent-1 {
    top: -10%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: var(--primary-teal-glow);
}

.visual-accent-2 {
    bottom: -10%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: var(--accent-gold-glow);
}

.visual-accent-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: rgba(240, 160, 48, 0.2);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-box {
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.cta-card {
    padding: 5rem 4rem;
    text-align: center;
    border: 1px solid var(--primary-teal-glow);
    box-shadow: 0 0 50px rgba(0, 212, 170, 0.1);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 1.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--primary-teal);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(138, 155, 179, 0.5);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 2rem;
    background: rgba(5, 7, 10, 0.5);
}

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

.footer-tagline {
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-teal);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.social-links a {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--text-main);
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

@keyframes float-slow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Scroll Reveals */
.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);
}

/* Responsive Design */
@media (max-width: 992px) {
    .showcase-grid,
    .feature-showcase.reverse .showcase-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-showcase.reverse .showcase-visual {
        grid-row: 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-metrics {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .metric-divider {
        width: 40px;
        height: 1px;
    }
    
    .cta-card {
        padding: 3rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cursor-dot, .cursor-outline {
        display: none; /* Disable custom cursor on mobile */
    }
    
    body, a, button {
        cursor: auto;
    }
}
