/* Custom CSS for Bootstrap 5 Website */


:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Global Styles */
body {
    font-family: 'Titillium Web', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Full-screen Hero Section */
.hero-section-fullscreen {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}
.hero-slide:nth-child(1) {
    animation: kenBurnsSlide1 5s ease-in-out forwards;
}

/* Ken Burns Effect Variations - Simplified */
/* Slide 1: Zoom in while sliding right */
@keyframes kenBurnsSlide1 {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(2%, 1%);
    }
}

/* Slide 2: Zoom in while sliding left */
.hero-slide:nth-child(2) {
    animation: kenBurnsSlide2 5s ease-in-out forwards;
}

@keyframes kenBurnsSlide2 {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-2%, -1%);
    }
}

/* Slide 3: Zoom in while sliding up */
.hero-slide:nth-child(3) {
    animation: kenBurnsSlide3 5s ease-in-out forwards;
}

@keyframes kenBurnsSlide3 {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.12) translate(1%, -2%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.6)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* animation: fadeInUp 1s ease-out; - Disabled */
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    /* animation: fadeInUp 1s ease-out 0.3s both; - Disabled */
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    /* animation: fadeInUp 1s ease-out 0.6s both; - Disabled */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: white;
    /* animation: fadeInUp 1s ease-out 1s both; - Disabled */
    width: fit-content;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-arrow span {
    display: block;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -8px auto;
    animation: scrollArrow 2s infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

.scroll-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

@keyframes scrollArrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(0, 0);
    }
}

/* Navigation - Hidden by default */
.navbar-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.navbar-visible {
    transform: translateY(0);
}

.navbar {
    transition: all 0.3s ease-in-out;
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    /* Scroll indicator mobile adjustments */
    .scroll-indicator {
        left: calc(50% - 50px);
        transform: none;
        bottom: 20px;
        width: 100px;
        text-align: center;
    }

    /* Disable Ken Burns effect on mobile for better performance */
    .hero-slide.active,
    .hero-slide:nth-child(2),
    .hero-slide:nth-child(3) {
        animation: none !important;
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .hero-content {
        padding: 1rem;
    }

    /* Simple centered positioning for mobile */
    .scroll-indicator {
        left: calc(50% - 50px);
        transform: none;
        bottom: 15px;
        width: 100px;
        text-align: center;
    }

    .scroll-arrow {
        margin: 0 auto 5px;
        width: 30px;
        height: 50px;
    }
}

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

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease-in-out;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

/* Form Controls */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }

    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
}

/* Animations - Disabled to prevent movement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    /* animation: fadeInUp 0.6s ease-out; - Disabled */
    opacity: 1; /* Ensure visibility without animation */
}

/* Bootstrap Icons (if using local icons) */
.bi {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentcolor;
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
}

/* Sponsor Section */
.sponsor-logo {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    min-width: 200px;
}

.sponsor-logo:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom Competition Button Styles */
.btn-enter-online {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-enter-online:hover {
    background-color: white;
    border-color: var(--success-color);
    color: var(--success-color) !important;
}

.btn-competition-outline {
    background-color: transparent;
    border: 2px solid var(--success-color);
    color: var(--success-color);
    transition: all 0.3s ease;
}

.btn-competition-outline:hover {
    background-color: var(--success-color);
    border: 2px solid var(--success-color);
    color: white !important;
}

/* Button border styles */
.btn-border-right {
    border-right: 1px solid white !important;
}

.btn-border-bottom {
    border-bottom: 3px solid white !important;
}

.btn-border-right.btn-competition-outline:hover {
    border-right: 1px solid var(--success-color) !important;
}

.btn-border-bottom.btn-competition-outline:hover {
    border-bottom: 3px solid var(--success-color) !important;
}

/* History Section Styles */
.hero-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--warning-color), var(--primary-color));
    border: none;
    border-radius: 2px;
}

/* Timeline Styles */
.history-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--warning-color), var(--success-color), var(--info-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    flex-direction: row;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    flex-direction: row-reverse;
    text-align: left;
}

.timeline-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 900px;
    gap: 2rem;
}

.timeline-year {
    min-width: 120px;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    position: relative;
    z-index: 2;
}

.timeline-body {
    flex: 1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.timeline-body:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.timeline-body h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.4rem;
}

.timeline-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.timeline-body p:last-child {
    margin-bottom: 0;
}

.timeline-body em {
    color: var(--warning-color);
    font-style: italic;
    font-weight: 500;
}

/* Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(0); /* Disabled movement */
}

.fade-in-up.visible {
    transform: translateY(0);
}

.slide-in-left {
    transform: translateX(-100px);
}

.slide-in-left.visible {
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(100px);
}

.slide-in-right.visible {
    transform: translateX(0);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .history-timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        flex-direction: column;
        text-align: center;
        margin-left: 60px;
    }

    .timeline-year {
        min-width: 100px;
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .timeline-body {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .timeline-body h3 {
        font-size: 1.2rem;
    }

    .slide-in-left,
    .slide-in-right {
        transform: translateY(50px);
    }

    .slide-in-left.visible,
    .slide-in-right.visible {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .timeline-content {
        margin-left: 20px;
    }

    .timeline-year {
        min-width: 80px;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .timeline-body {
        padding: 1rem;
    }
}
