/* Dextora Frontend Styles */

/* Base Styles */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure full height for Dextora pages */
.dextora-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Add padding to account for fixed navbar */
#page {
    padding-top: 76px; /* Height of navbar */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #page {
        padding-top: 66px; /* Smaller navbar height on mobile */
    }
    
    .navbar {
        background: rgba(0, 0, 0, 0.95) !important;
    }
}

/* Navigation adjustments for Dextora */
.navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999 !important;
}

.navbar-brand {
    font-weight: 700;
    color: #3b82f6 !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #3b82f6 !important;
}

.dropdown-menu {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
}

/* Hide footer on Dextora pages */
.dextora-page + footer {
    display: none;
}

body {
    font-family: 'Manrope', sans-serif;
}

/* Model Viewer Styles */
model-viewer {
    --poster-color: #e2e8f0;
    --progress-bar-color: rgba(30, 41, 59, .5);
    --progress-bar-height: 10px;
}

/* Color Selection Styles */
[data-color]::before {
    content: "";
    display: block;
    position: absolute;
    inset: -5px;
    border: 2px solid transparent;
    border-radius: 999px;
}

[data-color].active::before,
[data-color]:focus::before {
    border-color: white;
}

/* Swiper Customization */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: left;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #3b82f6;
    transform: scale(1.2);
}

/* Hero Section Styles */
.hero-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-item i {
    color: #3b82f6;
    font-size: 1.125rem;
}

/* Learning Path Selection */
.learning-path-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.path-button {
    position: relative;
    width: 40px;
    height: 30px;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--from-color), var(--to-color));
}

.path-button:hover,
.path-button:focus {
    transform: scale(1.1);
}

.path-button.active::before {
    border-color: white;
}

.path-label {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-path-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .path-button {
        width: 50px;
        height: 40px;
    }
}

/* Background Image Styles */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Title Animation */
.title {
    font-size: clamp(200px, 40vh, 500px);
    font-weight: bold;
    color: rgba(15, 23, 42, 0.05);
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.title span {
    margin: 0 5rem;
}

/* Glass Morphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .glass-card {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid #fff;
    }
}

/* Dextora 3D Interactive UI Styles */

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Manrope', sans-serif;
}

/* Ensure the page container takes full height */
#page {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Fallback background */
#page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

/* Model Viewer Styles */
model-viewer {
    --poster-color: #e2e8f0;
    --progress-bar-color: rgba(30, 41, 59, .5);
    --progress-bar-height: 10px;
    z-index: 30;
}

/* Color Selection Buttons */
[data-color]::before {
    content: "";
    display: block;
    position: absolute;
    inset: -5px;
    border: 2px solid transparent;
    border-radius: 999px;
}

[data-color].active::before,
[data-color]:focus::before {
    border-color: white;
}

/* Swiper Styles */
.swiper {
    width: 100%;
    height: 100%;
    z-index: 40;
}

.swiper-slide {
    text-align: left;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

/* Hero Section Styles */
.hero-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.feature-item i {
    color: #60a5fa;
    font-size: 1.1rem;
}

/* Learning Path Buttons */
.learning-path-buttons {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.path-button {
    position: relative;
    border-radius: 50%;
    width: 40px;
    height: 30px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.path-button:hover,
.path-button:focus {
    transform: scale(1.1);
}

.path-label {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-path-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .path-button {
        width: 50px;
        height: 40px;
    }
}

/* Background and Title Styles */
.background-image {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.title {
    font-size: clamp(200px, 40vh, 500px);
    font-weight: bold;
    color: rgba(15, 23, 42, 0.05);
    display: flex;
    white-space: nowrap;
    will-change: transform;
    z-index: 0;
}

/* Glass Morphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid white;
    }
    
    .btn-glass {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid white;
    }
}

/* Dextora Page Specific Styles */
.dextora-page {
    height: 100vh;
    overflow: hidden;
}

.dextora-page footer {
    display: none;
}

/* Navbar Styles for Dextora */
.navbar {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand,
.navbar-nav .nav-link {
    color: white !important;
}

.navbar-nav .nav-link:hover {
    color: #60a5fa !important;
}

/* Ensure content is visible */
#inner-1, #inner-2, #inner-3 {
    z-index: 50;
    position: relative;
}

/* Fallback for when model-viewer fails */
model-viewer:not(:defined) {
    display: none;
}

/* Ensure text is readable */
.text-slate-50 {
    color: rgba(248, 250, 252, 1) !important;
}

.text-slate-900 {
    color: rgba(15, 23, 42, 1) !important;
}

/* Loading screen styles */
#loading {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
}

/* Ensure swiper is visible */
.swiper {
    opacity: 1 !important;
}

/* Debug styles - remove in production */
.debug-info {
    position: fixed;
    top: 80px; /* Below navbar */
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 9998;
}

/* Dextora AI Logo Styles */
.dextora-logo {
    transition: all 0.3s ease;
    border-radius: 6px;
}

.dextora-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive logo sizes */
@media (max-width: 768px) {
    .dextora-logo {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 576px) {
    .dextora-logo {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Logo in navbar */
.navbar-brand .dextora-logo {
    width: 32px;
    height: 32px;
}

/* Logo in footer */
footer .dextora-logo {
    width: 40px;
    height: 40px;
}

/* Logo in application component */
.x-application-logo {
    width: 36px;
    height: 36px;
}

/* Favicon styling */
link[rel="icon"] {
    border-radius: 6px;
}

/* Logo animation for loading states */
@keyframes logoPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.logo-loading {
    animation: logoPulse 2s ease-in-out infinite;
}
