/* ========================================
   Voxlight Global Style Library
   Version: 2.0.0
   Last Updated: 2026-06-12
   ======================================== */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
    --color-primary: #1A1D29;
    --color-secondary: #333645;
    --color-accent: #00D4FF;
    --color-dark: #1A1D29;
    --color-light: #FFFFFF;
    --color-white: #FFFFFF;
    --color-silver: #E0E4E8;
    --color-lightSilver: #F5F7FA;
    --color-techBlue: #00D4FF;
    --color-techPurple: #7B61FF;
    --color-techPink: #FF6B6B;
    --color-techGreen: #00FFA3;
    --color-techTeal: #00FFCC;
    --color-techCyan: #00F0FF;
    --color-techSilver: #C0C6D0;

    --font-poppins: 'Poppins', sans-serif;
    --font-inter: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-tech: 0 0 40px rgba(0, 210, 255, 0.3);
}

/* ========================================
   Base Styles
   ======================================== */
body {
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,249,250,1) 50%, rgba(255,255,255,1) 100%);
    color: #4B5563;
    font-family: var(--font-poppins);
}

/* ========================================
   Utility Classes
   ======================================== */
.content-auto {
    content-visibility: auto;
}

/* Scroll margin for anchor navigation (prevents fixed nav from covering target) */
#contact {
    scroll-margin-top: 100px;
}

@media (max-width: 767px) {
    #contact {
        scroll-margin-top: 72px;
    }
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--tw-gradient-stops));
}

/* ========================================
   Card Styles
   ======================================== */
.card-hover {
    transition: all var(--transition-normal);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.glass-card {
    background: #FFFFFF;
    border: 1px solid #F3F4F6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.glass-card img {
    border-radius: 12px;
}

/* ========================================
   Service Icon Styles
   ======================================== */
.service-icon {
    background: linear-gradient(135deg, #0088CC, #0066AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 136, 204, 0.4));
    transition: all var(--transition-normal);
}

.feature-item:hover .service-icon {
    filter: drop-shadow(0 0 15px rgba(0, 136, 204, 0.6)) brightness(1.2);
}

/* ========================================
   Glass Button Styles
   ======================================== */
.glass-button {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 163, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(0, 163, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.glass-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 163, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: borderBeam 3s linear infinite;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.2), inset 0 0 10px rgba(0, 163, 255, 0.3);
}

.glass-button span {
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.glass-button:hover span {
    letter-spacing: 1px;
}

.glass-button svg {
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.glass-button:hover svg {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* ========================================
   Contact Console Styles
   ======================================== */
.contact-console {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-console:hover {
    box-shadow: 0 20px 80px rgba(0, 210, 255, 0.2), 0 0 40px rgba(0, 210, 255, 0.1);
}

.contact-column {
    position: relative;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all var(--transition-normal);
}

.contact-column:hover {
    background: rgba(0, 210, 255, 0.05);
}

.contact-column:hover .contact-icon-container {
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.9);
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.8));
}

/* ========================================
   Border Beam Effect
   ======================================== */
.border-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.border-beam::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 210, 255, 0.4), rgba(0, 163, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: borderBeam 4s linear infinite;
}

/* ========================================
   CTA Glow Effect
   ======================================== */
.cta-glow {
    position: relative;
    overflow: hidden;
}

.cta-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(6, 182, 212, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-glow:hover::before {
    width: 300%;
    height: 300%;
    opacity: 0.5;
}

/* ========================================
   Data Gradient Text
   ======================================== */
.data-gradient {
    background: linear-gradient(135deg, #06B6D4 0%, #00D4FF 50%, #22D3EE 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

/* ========================================
   Animations
   ======================================== */
@keyframes borderBeam {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

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

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

@keyframes floatX {
    0%, 100% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(20px);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollIndicator {
    0% {
        transform: translateY(-8px);
        opacity: 0;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
    100% {
        transform: translateY(16px);
        opacity: 0;
    }
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes glow {
    0% {
        transform: rotate(45deg) translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: rotate(45deg) translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   Animation Utility Classes
   ======================================== */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-x {
    animation: floatX 6s ease-in-out infinite;
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-scroll-indicator {
    animation: scrollIndicator 2s ease-in-out infinite;
}

/* ========================================
   Mobile Responsive - Max 767px
   ======================================== */
@media (max-width: 767px) {
    /* Base */
    body {
        font-size: 14px;
    }

    /* Disable heavy hover effects on mobile */
    .glass-card:hover {
        transform: none;
    }

    .card-hover:hover {
        transform: none;
    }

    .glass-button::before {
        display: none;
    }

    .glass-card-mega:hover,
    .glass-card-wide:hover,
    .glass-card-mini:hover {
        transform: none;
        animation: none;
    }

    /* Hero Section - sub-pages */
    #hero {
        min-height: auto !important;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    #hero .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Hero title sizing */
    .hero-gradient-text {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }

    /* Service cards grid - single column on mobile */
    .grid.grid-cols-1.lg\:grid-cols-2,
    .grid.grid-cols-1.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Metrics/capability grid - force single column on mobile */
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    /* Delivery/process grid - force single column on mobile */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Reduce padding in capability metric cards on mobile */
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 > div {
        padding: 1.25rem !important;
    }

    /* Reduce icon size in capability cards on mobile */
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 .w-\[5\.5rem\] {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }

    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 .w-11.h-11 {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }

    /* Reduce padding in delivery cards on mobile */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 > div {
        padding: 1.25rem !important;
    }

    /* Reduce tracking on mobile for section labels */
    .tracking-\[0\.3em\] {
        letter-spacing: 0.15em !important;
    }

    /* Panorama cards */
    .panorama-card {
        min-height: 280px !important;
    }

    /* Metrics / capability matrix */
    .grid.grid-cols-2.gap-x-12,
    .grid.grid-cols-2.gap-6 {
        grid-template-columns: 1fr !important;
    }

    /* Contact form section */
    #contact .flex-col.lg\:flex-row {
        flex-direction: column !important;
    }

    #contact .lg\:w-\[38\%\] {
        width: 100% !important;
    }

    /* Contact form input sizing */
    #contact input,
    #contact select,
    #contact textarea,
    #contact button[type="submit"] {
        font-size: 16px !important; /* Prevent iOS zoom */
    }

    /* Contact bottom 3 cards */
    #contact .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Footer mobile layout */
    footer .flex.flex-col.lg\:flex-row {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    footer .lg\:w-\[35\%\] {
        width: 100% !important;
    }

    footer .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap-x: 1rem !important;
    }

    footer .grid.grid-cols-2 ul {
        grid-template-columns: 1fr !important;
    }

    /* Sub-page CTA section */
    section .py-40 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }

    section .text-4xl.md\:text-5xl {
        font-size: 1.75rem !important;
    }

    section .text-lg.md\:text-xl {
        font-size: 1rem !important;
    }

    section .px-12.py-5 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        font-size: 1rem !important;
    }

    /* Portfolio grid - single column on mobile */
    #portfolio .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3,
    #portfolio .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* News page */
    .news-item {
        padding: 1rem !important;
    }

    /* Pagination buttons */
    .pagination-btn {
        min-width: 36px !important;
        height: 36px !important;
        font-size: 0.875rem !important;
    }

    /* Section padding reduction */
    section.py-24,
    section.py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    section.py-12 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Section headers */
    section .mb-16 {
        margin-bottom: 2rem !important;
    }

    section .text-4xl,
    section .text-3xl {
        font-size: 1.5rem !important;
    }

    section .text-5xl {
        font-size: 1.75rem !important;
    }

    section .text-6xl {
        font-size: 2rem !important;
    }

    /* Marquee data metrics - smaller on mobile */
    .data-gradient {
        font-size: 1.5rem !important;
    }

    /* Client logo grid */
    .grid.grid-cols-2.sm\:grid-cols-4.md\:grid-cols-6.lg\:grid-cols-8 {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.75rem !important;
    }

    .grid.grid-cols-2.sm\:grid-cols-4.md\:grid-cols-6.lg\:grid-cols-8 img {
        width: 100% !important;
        height: auto !important;
        max-height: 2.5rem !important;
        object-fit: contain !important;
    }

    /* Audio cards */
    .audio-card,
    [class*="audio"] .rounded-2xl {
        padding: 1rem !important;
    }

    /* Video cards */
    .aspect-video {
        aspect-ratio: 16 / 9;
    }

    /* Tags */
    .card-tag {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.5rem !important;
    }

    /* Timeline */
    .timeline-item,
    [class*="timeline"] {
        padding-left: 1.5rem !important;
    }

    /* Prevent horizontal overflow */
    * {
        max-width: 100vw;
    }

    /* Index.html specific nav bar (non-header.js) */
    nav .h-24 {
        height: 4rem !important;
    }

    nav img.h-24 {
        height: 3rem !important;
    }

    /* Index.html bento grid cards */
    .glass-card-mega,
    .glass-card-wide,
    .glass-card-mini {
        min-height: 300px !important;
    }

    .auto-rows-\[400px\] {
        grid-auto-rows: auto !important;
    }

    .glass-card-mega .p-8.md\:p-12,
    .glass-card-wide .p-8.md\:p-12 {
        padding: 1.25rem !important;
    }

    .glass-card-mega h3,
    .glass-card-wide h3 {
        font-size: 1.5rem !important;
    }

    .glass-card-mega p,
    .glass-card-wide p {
        font-size: 0.875rem !important;
    }

    .glass-card-mini .p-6 {
        padding: 1rem !important;
    }

    .glass-card-mini h3 {
        font-size: 1.25rem !important;
    }

    /* Feature tags in bento cards */
    .glass-card-mega .flex.flex-wrap.gap-3,
    .glass-card-wide .flex.flex-wrap.gap-2 {
        gap: 0.5rem !important;
    }

    .glass-card-mega .px-4.py-2,
    .glass-card-wide .px-3.py-1\.5 {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem !important;
    }

    /* News section on index */
    .flex.animate-scroll-right {
        animation-duration: 15s !important;
    }

    /* Index.html contact section */
    #contact .rounded-2xl.p-8.lg\:p-10 {
        padding: 1.25rem !important;
    }

    /* Bottom bar in footer */
    footer .flex.flex-col.md\:flex-row {
        flex-direction: column !important;
        text-align: center;
        gap: 0.5rem !important;
    }

    /* Sub-page hero scroll indicator */
    #hero .animate-bounce {
        display: none;
    }

    /* Sub-page bottom gradient mask */
    #hero .absolute.bottom-0 {
        height: 6rem !important;
    }

    /* Hero whitespace-nowrap override (ai-product-game) */
    #hero .whitespace-nowrap {
        white-space: normal !important;
    }

    /* CTA decorative spheres - reduce size on mobile */
    #sub-page-footer-container > section::before {
        width: 250px !important;
        height: 250px !important;
    }

    #sub-page-footer-container > section::after {
        width: 200px !important;
        height: 200px !important;
    }

    /* sm:grid-cols-2 lg:grid-cols-3 delivery grid padding */
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 > div {
        padding: 1.25rem !important;
    }

    /* Audio card play button - reduce size on mobile */
    .play-btn-pulse.w-16 {
        width: 2.75rem !important;
        height: 2.75rem !important;
    }

    .play-btn-pulse.w-16 svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    /* Portfolio filter tabs - smaller on mobile */
    .portfolio-tab {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0.375rem !important;
        padding-bottom: 0.375rem !important;
        font-size: 0.75rem !important;
    }
}

/* ========================================
   Pad Responsive - 768px to 1024px
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Navigation - reduce spacing to fit one row */
    nav .space-x-8 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0.375rem !important;
    }

    nav .space-x-8 > a,
    nav .space-x-8 > div > button,
    nav .space-x-8 > div.relative > button {
        padding-left: 0.375rem !important;
        padding-right: 0.375rem !important;
        font-size: 0.75rem !important;
    }

    /* Hero section */
    #hero {
        min-height: auto !important;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    /* Bento grid - 2 columns on pad */
    .grid.grid-cols-1.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .auto-rows-\[400px\] {
        grid-auto-rows: 350px !important;
    }

    /* Glass cards on pad */
    .glass-card-mega {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }

    .glass-card-wide {
        grid-column: span 2 !important;
    }

    .glass-card-mini {
        grid-column: span 1 !important;
    }

    /* Sub-page service/panorama cards grid - 2 columns on pad */
    .grid.grid-cols-1.lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Metrics/capability grid - 2 columns on pad */
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Metrics card icon size on pad */
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 .w-\[5\.5rem\] {
        width: 4rem !important;
        height: 4rem !important;
    }

    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 .w-11.h-11 {
        width: 2rem !important;
        height: 2rem !important;
    }

    /* Metrics card padding on pad */
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 > div {
        padding: 1.5rem !important;
    }

    /* Delivery grid - keep 2 columns on pad */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Delivery card padding on pad */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 > div {
        padding: 1.5rem !important;
    }

    /* sm:grid-cols-2 lg:grid-cols-3 delivery grid */
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 > div {
        padding: 1.5rem !important;
    }

    /* Footer on pad */
    footer .grid.grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Portfolio grid - 2 columns on pad */
    #portfolio .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #portfolio .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Contact section */
    #contact .flex-col.lg\:flex-row {
        flex-direction: row !important;
    }

    /* Contact bottom 3 cards - 3 columns on pad */
    #contact .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Client logo grid */
    .grid.grid-cols-2.sm\:grid-cols-4.md\:grid-cols-6.lg\:grid-cols-8 {
        grid-template-columns: repeat(6, 1fr) !important;
    }

    /* Section padding */
    section.py-24,
    section.py-20 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    section.py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    section.py-12 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Section headers */
    section .mb-16 {
        margin-bottom: 3rem !important;
    }

    /* Sub-page CTA section */
    section .py-40 {
        padding-top: 8rem !important;
        padding-bottom: 8rem !important;
    }

    /* CTA decorative spheres - moderate size on pad */
    #sub-page-footer-container > section::before {
        width: 350px !important;
        height: 350px !important;
    }

    #sub-page-footer-container > section::after {
        width: 280px !important;
        height: 280px !important;
    }

    /* Metrics on pad */
    .grid.grid-cols-2.gap-x-12 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Panorama cards min-height on pad */
    .panorama-card {
        min-height: 320px !important;
    }

    /* Hero gradient text size on pad */
    .hero-gradient-text {
        font-size: clamp(3rem, 8vw, 5rem) !important;
    }

    /* Footer brand area alignment on pad */
    footer .flex.flex-col.lg\:flex-row {
        flex-direction: row !important;
    }

    footer .lg\:w-\[35\%\] {
        width: 35% !important;
    }
}

/* ========================================
   Showcase Language Tab Styles
   ======================================== */

/* Tab button base */
.showcase-tab-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    outline: none;
}

.showcase-tab-active {
    background-color: #06B6D4;
    color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(6,182,212,0.3);
}

.showcase-tab-inactive {
    background-color: #FFFFFF;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

.showcase-tab-inactive:hover {
    background-color: #F9FAFB;
}

/* Mobile: horizontal scroll with hidden scrollbar */
.showcase-tab-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.showcase-tab-scroll::-webkit-scrollbar {
    display: none;
}

/* Fade hints for mobile scroll */
.showcase-tab-fade-left,
.showcase-tab-fade-right {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.showcase-tab-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(248,249,250,1) 0%, rgba(248,249,250,0) 100%);
}

.showcase-tab-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(248,249,250,1) 0%, rgba(248,249,250,0) 100%);
}

/* Mobile only: show right fade hint by default */
@media (max-width: 767px) {
    .showcase-tab-fade-right {
        display: block;
    }
}

/* Desktop/Tablet: wrap into multiple rows */
@media (min-width: 768px) {
    .showcase-tab-wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        max-width: 1200px;
        margin: 0 auto;
        overflow: visible;
        padding: 0;
    }

    .showcase-tab-wrap .showcase-tab-fade-left,
    .showcase-tab-wrap .showcase-tab-fade-right {
        display: none !important;
    }
}

/* Video poster fallback - when poster image fails to load */
.poster-failed {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-failed::after {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
}

/* English sub-pages: reveal the original canvas grid into the portfolio transition. */
html[lang="en"] #grid-wrapper > div[class*="h-[60px]"][style*="linear-gradient(to bottom"] {
    background: linear-gradient(to bottom, transparent 0%, rgba(248,249,250,0.45) 62%, #f8f9fa 100%) !important;
    overflow: hidden;
}

html[lang="en"] #grid-wrapper > div[class*="h-[60px]"][style*="linear-gradient(to bottom"] > div.absolute.inset-0 {
    display: none !important;
}

html[lang="en"] #portfolio {
    background-color: transparent !important;
    background-image: linear-gradient(to bottom, rgba(248,249,250,0) 0, rgba(248,249,250,0.55) 90px, rgba(248,249,250,0.96) 180px, #f8f9fa 260px) !important;
    background-size: auto !important;
    background-position: 0 0 !important;
    background-repeat: no-repeat !important;
}

/* ========================================
   Existing Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .glass-card:hover {
        transform: translateY(-2px);
    }

    .card-hover:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* ========================================
   Dark Mode Support (Future)
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --color-light: #1A1D29;
        --color-dark: #FFFFFF;
    }
}

/* ========================================
   English Language Font Size Adjustments
   ======================================== */
html[lang="en"] .tracking-\[0\.3em\] {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

html[lang="en"] h2 {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    html[lang="en"] h2 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    html[lang="en"] h2 {
        font-size: 2.25rem;
    }
}

html[lang="en"] .text-3xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

html[lang="en"] .text-4xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

html[lang="en"] .text-5xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

@media (min-width: 768px) {
    html[lang="en"] .md\:text-4xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    html[lang="en"] .md\:text-5xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

@media (min-width: 1024px) {
    html[lang="en"] .lg\:text-5xl {
        font-size: 2.5rem;
        line-height: 1;
    }
}

/* ========================================
   English Hero Title Adjustments
   ======================================== */
/* Sub-page Hero - base rules for English */
html[lang="en"] #hero .hero-text {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Main title: allow wrapping for long titles, sufficient line-height */
html[lang="en"] #hero .hero-text.font-bold {
    white-space: normal !important;
    line-height: 1.2;
    padding: 0.1em 0;
}

/* Length-based font sizing for English hero titles */
/* Short titles (≤20 chars): large, impressive */
html[lang="en"] #hero .hero-text.font-bold.hero-title-short {
    font-size: clamp(2.8rem, 7vw, 5.5rem) !important;
}

/* Medium titles (21-35 chars): moderate */
html[lang="en"] #hero .hero-text.font-bold.hero-title-medium {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem) !important;
}

/* Long titles (>35 chars): smaller but still title-like */
html[lang="en"] #hero .hero-text.font-bold.hero-title-long {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem) !important;
}

/* Subtitle - allow wrapping, control width, clearly smaller than title */
html[lang="en"] #hero .hero-text:not(.font-bold) {
    font-size: clamp(1rem, 2.2vw, 1.5rem) !important;
    white-space: normal !important;
    line-height: 1.4;
    max-width: 860px;
    margin-top: 0.5rem;
}

/* Hero description - control width for English, smallest level */
html[lang="en"] #hero .max-w-2xl {
    max-width: 740px !important;
    font-size: 0.9rem !important;
    line-height: 1.75 !important;
    margin-top: 1.25rem;
}

/* Mobile English Hero */
@media (max-width: 767px) {
    html[lang="en"] #hero .hero-text.font-bold.hero-title-short {
        font-size: clamp(2rem, 10vw, 3.5rem) !important;
    }
    html[lang="en"] #hero .hero-text.font-bold.hero-title-medium {
        font-size: clamp(1.7rem, 8vw, 2.8rem) !important;
    }
    html[lang="en"] #hero .hero-text.font-bold.hero-title-long {
        font-size: clamp(1.4rem, 6.5vw, 2.3rem) !important;
    }
    html[lang="en"] #hero .hero-text:not(.font-bold) {
        font-size: clamp(0.9rem, 3.8vw, 1.2rem) !important;
    }
    html[lang="en"] #hero .max-w-2xl {
        font-size: 0.85rem !important;
    }
}

/* Pad English Hero */
@media (min-width: 768px) and (max-width: 1024px) {
    html[lang="en"] #hero .hero-text.font-bold.hero-title-short {
        font-size: clamp(2.5rem, 7vw, 4.5rem) !important;
    }
    html[lang="en"] #hero .hero-text.font-bold.hero-title-medium {
        font-size: clamp(2rem, 5vw, 3.5rem) !important;
    }
    html[lang="en"] #hero .hero-text.font-bold.hero-title-long {
        font-size: clamp(1.6rem, 4vw, 2.8rem) !important;
    }
    html[lang="en"] #hero .hero-text:not(.font-bold) {
        font-size: clamp(1rem, 2.2vw, 1.35rem) !important;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .glass-button::before,
    .border-beam::before,
    .cta-glow::before {
        display: none;
    }

    .card-hover:hover,
    .glass-card:hover {
        transform: none;
        box-shadow: none;
    }
}
