@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/Oxanium-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --accent-color: #f43f5e;
}

body {
    font-family: 'Oxanium', sans-serif;
    background-color: #0f172a; /* Fallback for var(--bg-dark) */
    background-color: var(--bg-dark);
    color: #f8fafc; /* Fallback for var(--text-light) */
    color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oxanium', sans-serif;
    color: rgba(255, 255, 255, 0.4);
}

a {
    text-decoration: none !important;
}

.glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.text-gradient.animate__pulse {
    animation: textGradientPulse 2s infinite;
}

@keyframes textGradientPulse {
    0%, 100% {
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    }
    50% {
        background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    }
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
    color: white;
    animation: glowPulse 1.5s infinite;
}

.btn-primary:hover::before {
    left: 100%;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Logo rotation animation */
.logo-animate {
    animation: rotate-slow 20s linear infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Additional animations for enhanced engagement */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-card {
    transition: all 0.3s ease;
    transform-origin: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: scale(1.05) translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
    animation: glowPulse 2s infinite;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 210, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.feature-card:hover::before {
    animation: shine 1s ease-in-out;
    opacity: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    z-index: 1001 !important;
    position: relative;
}

/* UIKit Offcanvas Overrides */
.uk-offcanvas {
    z-index: 1000 !important;
}

.uk-offcanvas-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 999 !important;
}

/* Mobile Menu Bar */
.mobile-menu-bar {
    width: 300px !important;
    max-width: 85vw !important;
    background: #0f172a !important;
    border: none !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
    height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Mobile Menu Header */
.mobile-menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.mobile-close-btn {
    color: white !important;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-close-btn:hover {
    color: #06b6d4 !important;
}

/* Mobile Menu Content */
.mobile-menu-content {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

/* Mobile Navigation */
.mobile-menu-nav {
    margin-bottom: 2rem;
}

.mobile-nav-item {
    display: block !important;
    color: white;
    text-decoration: none;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 1.125rem;
    font-weight: 500;
    position: relative;
}

.mobile-nav-item ion-icon {
    color: #06b6d4;
    font-size: 1.25rem;
    margin-right: 1rem;
    vertical-align: middle;
}

.mobile-nav-item span {
    vertical-align: middle;
}

.mobile-nav-item:hover {
    color: #06b6d4;
    padding-left: 0.5rem;
    background: rgba(6, 182, 212, 0.05);
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

/* Mobile CTA */
.mobile-menu-cta {
    margin: 2rem 0;
}

.mobile-download-btn {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    position: absolute;
    bottom: 2rem;
    left: 1.5rem;
    right: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: #6b7280;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #06b6d4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-bar {
        width: 280px !important;
    }
    
    .navbar {
        backdrop-filter: blur(10px);
        background: rgba(15, 23, 42, 0.9);
    }
    
    .hero-section {
        padding-top: 6rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu-bar {
        width: 100vw !important;
    }
    
    .mobile-menu-header {
        padding: 1rem;
        height: 70px;
    }
    
    .mobile-menu-content {
        top: 70px;
        padding: 1.5rem 1rem;
    }
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Animation improvements for mobile menu */
.mobile-nav-item ion-icon {
    transition: transform 0.3s ease;
}

.mobile-nav-item:hover ion-icon {
    transform: translateX(3px);
}

/* ==========================================
   VIDEO CAROUSEL STYLES
   ========================================== */

/* Loader Spinner */
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 210, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Carousel Container */
.video-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.video-carousel-container.fade-in {
    opacity: 1;
}

/* Carousel Wrapper */
.video-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
}

/* Carousel Track */
.video-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Video Card */
.video-card {
    flex: 0 0 calc(33.333% - 1rem);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(58, 123, 213, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.video-card:hover::before {
    opacity: 1;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 210, 255, 0.3);
    border-color: rgba(0, 210, 255, 0.5);
}

/* Video Thumbnail */
.video-card-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.video-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .video-card-thumbnail img {
    transform: scale(1.1);
}

/* Overlay */
.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-card-overlay {
    opacity: 1;
}

/* Play Button */
.play-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.4);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .play-button {
    transform: scale(1);
    box-shadow: 0 12px 32px rgba(0, 210, 255, 0.6);
    animation: pulse 1.5s ease infinite;
}

.play-button ion-icon {
    font-size: 32px;
    color: white;
    margin-left: 4px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(0, 210, 255, 0.6);
    }
    50% {
        box-shadow: 0 12px 48px rgba(0, 210, 255, 0.8);
    }
}

/* Video Info */
.video-card-info {
    padding: 1.25rem;
}

.video-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    transition: color 0.3s ease;
}

.video-card:hover .video-card-title {
    color: var(--primary-color);
}

/* Carousel Navigation Buttons */
.carousel-nav {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(58, 123, 213, 0.1));
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.4);
}

.carousel-nav ion-icon {
    font-size: 28px;
    color: white;
}

.carousel-nav:active {
    transform: scale(0.95);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(0, 210, 255, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 32px;
    border-radius: 6px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-modal.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.video-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.video-modal-close ion-icon {
    font-size: 28px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .video-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .video-card {
        flex: 0 0 100%;
    }
    
    .video-card-info {
        padding: 1rem;
    }
    
    .video-card-title {
        font-size: 0.875rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button ion-icon {
        font-size: 28px;
    }
    
    .carousel-nav {
        width: 48px;
        height: 48px;
    }
    
    .carousel-nav ion-icon {
        font-size: 24px;
    }
    
    .video-modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .video-modal-close {
        top: -10px;
        right: -10px;
        width: 40px;
        height: 40px;
    }
    
    .video-modal-close ion-icon {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .carousel-dots {
        gap: 0.5rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dot.active {
        width: 24px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}
