/* ============================================
   GOM Player - Main Stylesheet
   ============================================ */

/* ============================================
   GOM Player Brand Colors
   ============================================ */

:root {
    --gom-primary: #FF6B35;      /* GOM Orange Primary */
    --gom-primary-dark: #E65100; /* Dark Orange */
    --gom-primary-light: #FFB74D; /* Light Orange */
    --gom-secondary: #FF5722;    /* Red Orange */
    --gom-secondary-dark: #D84315; /* Dark Red Orange */
    --gom-accent: #FF9800;       /* Bright Orange */
    --gom-accent-light: #FFE0B2; /* Very Light Orange */
    --gom-dark: #BF360C;         /* Dark Red */
    --gom-text-dark: #1A0000;    /* Very Dark for text */
}

/* Override Tailwind colors with GOM colors */
.bg-gom-primary {
    background-color: var(--gom-primary);
}

.bg-gom-primary-dark {
    background-color: var(--gom-primary-dark);
}

.text-gom-primary {
    color: var(--gom-primary);
}

.text-gom-primary-dark {
    color: var(--gom-primary-dark);
}

.border-gom-primary {
    border-color: var(--gom-primary);
}

/* ============================================
   Animations & Transitions
   ============================================ */

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

/* ============================================
   Hero Visual Section Styles
   ============================================ */

.head-visual {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background: no-repeat center;
    background-size: cover;
}

.visual-gomplayer {
    background-image: url('images/gomplayer_visual.png');
}

.contents-head {
    padding: 0 24px;
    box-sizing: border-box;
}

/* Hero heights are now controlled inline, but we ensure proper responsive behavior */
@media (max-width: 640px) {
    .head-visual {
        height: 80vh !important;
        min-height: 550px !important;
        max-height: 700px !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .head-visual {
        height: 85vh !important;
        min-height: 600px !important;
        max-height: 800px !important;
    }
}

@media (min-width: 1025px) {
    .head-visual {
        height: 85vh !important;
        min-height: 650px !important;
        max-height: 850px !important;
    }
}

/* ============================================
   Feature Cards
   ============================================ */

.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 87, 34, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ============================================
   Stats Counter
   ============================================ */

.stat-counter {
    transition: transform 0.3s ease;
}

.stat-counter:hover {
    transform: scale(1.05);
}

/* ============================================
   Tabs Navigation
   ============================================ */

.tabs-container {
    position: relative;
}

.tabs-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.tabs-nav::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.tabs-nav::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 2px;
}

.tab-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.tab-button:hover {
    color: #2563eb;
    background: #eff6ff;
}

.tab-button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #eff6ff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

.tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    background: #2563eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px 3px 0 0;
}

/* ============================================
   Accordion Styles
   ============================================ */

.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #f9fafb;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 0 1.5rem 1.25rem 1.5rem;
}

/* ============================================
   Smooth Scroll Behavior
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   Loading Animations
   ============================================ */

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================
   Intersection Observer Animations
   ============================================ */

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right-on-scroll {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in-on-scroll {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in-on-scroll.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Mobile Menu Animation
   ============================================ */

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

/* ============================================
   Button Hover Effects
   ============================================ */

.btn-hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-hover-scale {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   Image Hover Effects
   ============================================ */

.img-hover-zoom {
    overflow: hidden;
    position: relative;
}

.img-hover-zoom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.img-hover-zoom:hover::after {
    opacity: 1;
}

.img-hover-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.img-hover-zoom:hover img {
    transform: scale(1.08);
}

/* ============================================
   Progress Bar (for tabs)
   ============================================ */

.progress-bar {
    height: 3px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* ============================================
   Main Features Section Enhancements
   ============================================ */

#main-features .feature-card {
    background: white;
}

#main-features .feature-card:nth-child(odd) {
    animation-delay: 0.1s;
}

#main-features .feature-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Gradient text effect */
.bg-gradient-to-r.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .tabs-nav {
        gap: 0.5rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .back-to-top {
        width: 2.5rem;
        height: 2.5rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    #main-features .feature-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    #main-features h2 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    #main-features .feature-card {
        border-radius: 1.5rem;
    }
}

/* ============================================
   Language Switcher
   ============================================ */

.language-switcher {
    position: relative;
}

#language-menu {
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

#language-menu a {
    transition: all 0.2s ease;
}

#language-menu a:hover {
    background-color: #fff7ed; /* orange-50 */
    color: var(--gom-primary);
}

#language-toggle {
    min-width: 80px;
}

#current-lang {
    min-width: 24px;
    text-align: center;
}

/* ============================================
   Skip to Main Content Link (Accessibility)
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .back-to-top,
    .tabs-nav,
    .accordion-header,
    .language-switcher {
        display: none !important;
    }
    
    .tab-content {
        display: block !important;
    }
}

