/* Font Face */
@font-face {
    font-family: 'Open Sans Variable';
    src: url('OpenSans-VariableFont_wdth,wght.ttf') format('truetype-variations');
    font-weight: 100 1000;
    font-stretch: 75% 125%;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A3A40;  /* Dark Teal - Primary */
    --secondary-color: #EAE7DF;  /* Sand - Secondary */
    --text-color: #1A1A1A;  /* Almost black for text */
    --light-bg: #f9f7f3;  /* Light gray background */
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans Variable', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin: 0;
    overflow-x: hidden;


    background: 
    /* Noise layer (SVG) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='10' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E"), /* Gradient layer */
    linear-gradient(135deg, #A8DADC, #0A3A40);
    background-blend-mode: multiply; /* Or try 'overlay', 'screen', etc. for different effects */
    background-size: cover, cover; /* Ensures full coverage */
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variation-settings: 'wght' 400;
}

.container {
    max-width: 750px;
    width: 100%;
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 1rem 0 0 0; /* Remove bottom margin */
    box-sizing: border-box;
}

.logo {
    max-width: 250px; /* Increased from 200px */
    margin: 0 auto 1rem;
    width: 75%; /* Slightly larger on mobile */
}

/* Larger logo on desktop */
@media (min-width: 768px) {
    .logo {
        max-width: 340px; /* Increased from 280px */
        margin: 0 auto 1.5rem;
    }
}

.logo img {
    width: 100%;
    height: auto;
}

h1 {
    font-size: 1.3rem; /* Further reduced for compact layout */
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    font-variation-settings: 'wght' 600;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0.5rem 0 0.75rem; /* Tighter margins */
}

.content {
    margin: 0 0;
}

p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem; /* Tighter spacing */
    line-height: 1.5;
}

/* Scroll to courses button (mobile only) */
.scroll-to-courses-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-variation-settings: 'wght' 600;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.scroll-to-courses-btn:hover {
    background-color: #0a2a30;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .scroll-to-courses-btn {
        display: none;
    }
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: 
    /* Noise layer (SVG) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='10' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
    background-color: var(--light-bg);
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem auto 0;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    background-image: url(profile.jpg);
    background-size: contain;
}

.profile-image img {
    width: 100%;
    height: 100%;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.5px;
    font-variation-settings: 'wght' 600;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #555;
    text-align: center;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    body {
        padding: 2rem;
        align-items: center;
    }
    
    .container {
        padding: 2.5rem;
        margin: 1rem 0 0 0;
    }
    
    h1 {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
        margin: 0.5rem 0 1rem;
    }
    
    p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    .contact-card {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: left;
        max-width: 800px;
        margin: 1.5rem auto 0;
        padding: 2rem;
    }
    
    .profile-image {
        margin: 0 3rem 0 0;
        flex-shrink: 0;
    }
    
    .contact-info {
        max-width: 700px;
    }
    
    .contact-info h2 {
        text-align: left;
        margin-top: 0;
    }
    
    .contact-info p {
        text-align: left;
        margin: 1rem 0 0 0;
    }
}

/* Color Swatches */
/* Contact info specific styles */
.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    font-variation-settings: 'wght' 600;
    font-size: 1.5rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.6rem;
    font-weight: 600;
    letter-spacing: 0px;
    font-variation-settings: 'wght' 600;
    font-size: 1.2rem;
}

.contact-info h4 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    font-weight: 600;
    letter-spacing: 0px;
    font-variation-settings: 'wght' 600;
    font-size: 1.1rem;
}

.contact-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0.5rem 0;
    font-size: 1.2em;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

/* VCF Button Styles */
.vcf-container {
    margin-top: 1.5rem;
}

.vcf-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vcf-button:hover {
    background-color: #0a2a30;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vcf-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.vcf-text {
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
}

.vcf-button svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2.5px;
}

.contact-info a:hover {
    color: #0a3a40d0;
    text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ========================================
   EVERSPORTS COURSES SECTION
   ======================================== */

.courses-section {
    max-width: 750px;
    width: 100%;
    margin: 1.5rem 0 2rem 0;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInCourses 0.8s ease-out 0.8s forwards;
}

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

.courses-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    font-variation-settings: 'wght' 600;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Carousel wrapper with arrows */
.courses-carousel-wrapper {
    position: relative;
    max-width: 750px;
    margin: 0;
    padding: 0;
}

/* Carousel container (overflow hidden) */
.courses-carousel-container {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y pinch-zoom;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Carousel track */
.courses-carousel {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
}

/* Each course tile in carousel */
.courses-carousel .course-tile {
    flex: 0 0 calc((100% - 3rem) / 3);
    max-width: calc((100% - 3rem) / 3);
}

@media (max-width: 768px) {
    .courses-carousel .course-tile {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 58, 64, 0.4);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background-color: rgba(10, 58, 64, 0.6);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.carousel-arrow-left {
    left: -60px;
}

.carousel-arrow-right {
    right: -60px;
}

/* Navigation dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background-color: rgba(10, 58, 64, 0.5);
    width: 12px;
    height: 12px;
}

.course-tile {
    background: rgba(10, 58, 64, 0.35); /* Primary color at 35% opacity */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
}

/* Transitions only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .course-tile {
        transition: box-shadow 0.3s ease, background-color 0.3s ease;
    }
}

/* Hover effects only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .course-tile:hover {
        box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.1);
        background: rgba(10, 58, 64, 0.5);
    }

    .course-tile:hover .course-description {
        color: rgba(255, 255, 255, 0.95);
    }

    .course-tile:hover .course-meta {
        color: rgba(255, 255, 255, 0.95);
    }

    .course-tile:hover .course-meta-item svg {
        stroke: rgba(255, 255, 255, 0.95);
    }
}

.course-image {
    display: none; /* Hide image container */
}

.course-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    font-variation-settings: 'wght' 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-description {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    flex: 1;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
    transition: stroke 0.3s ease;
}

.course-price {
    font-size: 1.3rem;
    font-weight: 600;
    font-variation-settings: 'wght' 600;
    color: white;
}

.course-price svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.course-cta {
    display: inline-block;
    background-color: rgba(10, 58, 64, 0.7);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-variation-settings: 'wght' 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.course-cta:hover {
    background-color: rgba(10, 58, 64, 0.9);
    color: white;
    transform: scale(1.02);
}

.loading {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

.error-message {
    text-align: center;
    color: #d32f2f;
    padding: 2rem;
    background: #ffebee;
    border-radius: 8px;
}
