/**
 * Ultra-Modern Core Styles
 * Advanced Visual Effects & Interactions
 */

/* === CUSTOM CURSOR === */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-tooltip);
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-400);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-cursor 2s ease-in-out infinite;
}

@keyframes pulse-cursor {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* === ULTRA-MODERN NAVIGATION === */
.navbar-ultra {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    transition: var(--transition-base);
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.navbar-ultra.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: white;
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    transition: var(--transition-base);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition-base);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--neutral-300);
    text-decoration: none;
    font-weight: var(--font-medium);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: var(--z-dropdown);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--neutral-300);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition-base);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-nav {
        display: none;
    }
}

/* === HERO SECTION === */
.hero-ultra {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

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

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(14, 165, 233, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    z-index: 2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-400);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 8s ease-in-out infinite;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-200px) translateX(-30px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-150px) translateX(70px);
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-20) var(--space-4);
}

.hero-title {
    font-family: var(--font-family-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, white 0%, var(--primary-300) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--neutral-300);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-500);
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-500);
    }
}

/* === GLASSMORPHISM CARDS === */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-2xl);
    padding: var(--space-8);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* === PARALLAX EFFECTS === */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform;
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-smooth);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-smooth);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* === ANIMATED STATISTICS === */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin: var(--space-16) 0;
}

.stat-item {
    text-align: center;
    padding: var(--space-6);
    border-radius: var(--border-radius-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-family-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--primary-400);
    display: block;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-lg);
    color: var(--neutral-300);
    font-weight: var(--font-medium);
}

/* === PARTICLE CLICK EFFECT === */
.click-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-tooltip);
    animation: particle-explode 0.6s ease-out forwards;
}

@keyframes particle-explode {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-100px);
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .hero-content {
        padding: var(--space-16) var(--space-4);
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .glass-card {
        padding: var(--space-6);
    }
    
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--space-4);
    }
}

/* === LOADING STATES === */
.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* === PRINT STYLES === */
@media print {
    .navbar-ultra,
    .hero-particles,
    .custom-cursor {
        display: none !important;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}
