/* ============================================
   MAIN STYLESHEET - Creative 3D Technologies
   ============================================ */

/* Typography */
body, h1, h2, h3, h4, p, a, span, div, button, input, textarea {
    font-family: 'Visby', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Default text color - white for better contrast on black background */
body {
    color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar { 
    width: 6px; 
    height: 6px; 
}
::-webkit-scrollbar-track { 
    background: #0B0C10; 
}
::-webkit-scrollbar-thumb { 
    background: #333; 
    border-radius: 3px; 
}
::-webkit-scrollbar-thumb:hover { 
    background: #FF3D00; 
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Safari fix */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Circuit / Story Line */
.circuit-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 61, 0, 0.1) 10%, rgba(255, 61, 0, 0.1) 90%, transparent);
    z-index: 0;
    pointer-events: none;
}

/* Tab Styles */
.tab-active {
    color: #ffffff !important;
    opacity: 1 !important;
}

.tab-inactive {
    color: rgba(255, 255, 255, 0.15) !important;
    opacity: 0.5;
}

.tab-inactive:hover {
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer;
}

.tab-content {
    grid-area: 1 / 1 / 2 / 2;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.content-hidden {
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    visibility: hidden;
}

/* Navigation Styles */
.nav-link {
    position: relative;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #FF3D00;
    transition: width 0.3s ease;
}

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

/* Text Effects */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 61, 0, 0.4);
}

/* Hero Text Mobile Fix */
.hero-text-mobile {
    color: #ffffff !important;
    background: transparent !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #FF3D00;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* GPU Acceleration */
.transform-gpu {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* HTML Base Styles */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* iOS Safari Viewport Fix */
@supports (-webkit-touch-callout: none) {
    .min-h-screen, .h-screen {
        min-height: -webkit-fill-available;
        height: -webkit-fill-available;
    }
}

/* Touch Targets */
a, button, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 61, 0, 0.2);
}

/* Prevent double-tap zoom on buttons */
button, a {
    touch-action: manipulation;
}

/* Line Clamp Utilities for News/Events Cards */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Page Prose Styling */
.prose {
    color: rgba(255, 255, 255, 0.7);
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose h2 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose a {
    color: #FF3D00;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.prose a:hover {
    color: #FF8A65;
}

.prose ul, .prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.prose blockquote {
    border-left: 4px solid #FF3D00;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   DESKTOP NAVIGATION FIX
   ============================================ */

/* Ensure mobile menu is never shown on desktop */
@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
    
    /* Ensure mobile toggle button is hidden on desktop */
    #mobile-toggle {
        display: none !important;
    }
}
