:root {
    --orange: #3d2705;
    --light-orange: #ffcf00;
    --dark-orange: #2a1a04;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --white: #ffffff;
    --off-white: #f8f9fa;
}

body {
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--orange) 100%);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Kanit', serif;
    font-weight: 700;
}

.navbar {
    background-color: rgba(61, 39, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 70px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.btn-join {
    background-color: var(--light-orange);
    color: var(--orange);
    border: none;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-join:hover {
    background-color: var(--white);
    color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.hero-section {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
    }
}

.lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--light-orange);
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}

.video-container iframe,
.video-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.3s ease;
}

.video-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.video-container .play-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.2);
    animation: none;
}

.contact-about-section {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 3rem;
    margin: 4rem 0;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.contact-image {
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
}

.contact-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--light-orange);
    color: var(--white);
    box-shadow: 0 0 0 0.25rem rgba(255, 207, 0, 0.25);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-send {
    background-color: var(--light-orange);
    color: var(--orange);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-send:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-send:active {
    transform: translateY(0);
}

footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

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

.social-icon {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--orange);
    background: var(--white);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.extrasmall {
    font-size: 0.8rem;
    opacity: 0.8;
}

.technique-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.technique-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--light-orange);
    transition: transform 0.3s ease;
}

.technique-card:hover .technique-icon {
    transform: scale(1.2) rotate(5deg);
}

.modal-content {
    background-color: var(--dark-gray);
    color: var(--white);
    border-radius: 12px;
    border: none;
    backdrop-filter: blur(10px);
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-close {
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.5);
    color: #d4edda;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
    color: #f8d7da;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 4rem 0;
    border: none;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--light-orange);
    color: var(--orange);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

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

.back-to-top:hover {
    background: var(--white);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--light-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white);
    opacity: 0.8;
}

.footer-newsletter {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.footer-newsletter h3 {
    color: var(--light-orange);
    margin-bottom: 1rem;
}

.footer-newsletter p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Loading animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive improvements */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .contact-about-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .footer-newsletter {
        padding: 1.5rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        margin: 0 0.25rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .footer-newsletter,
    .btn-join {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        background: white !important;
        color: black !important;
        border: 1px solid #ddd !important;
    }
}

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

/* Focus styles for better accessibility */
.btn-join:focus,
.btn-send:focus,
.form-control:focus,
.social-icon:focus {
    outline: 2px solid var(--light-orange);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --orange: #000000;
        --light-orange: #ffff00;
        --white: #ffffff;
    }
    
    .card {
        border: 2px solid var(--white);
    }
}