/* WCAG Accessibility improvements */
.lang-btn:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

.cta-button:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.nav-links a:focus {
    outline: 2px solid var(--light-gold);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast for all text */
p, li {
    line-height: 1.6;
}

/* Color variables for WCAG compliance */
:root {
    --primary-gold: #b8860b; /* Darker gold for better contrast on light backgrounds */
    --light-gold: #ffd700; /* Light gold for dark backgrounds */
    --accent-gold: #ffed4e; /* Light accent gold */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--light-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--light-gold);
}

/* Language toggle styles - moved to navigation */
.language-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    padding: 8px 12px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.7;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.lang-btn.active {
    opacity: 1;
    border: 2px solid var(--light-gold);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), 
                linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.1) 0%, transparent 30%);
    background-size: 400px 400px, 300px 300px, 200px 200px;
    opacity: 0.8;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1600px; /* 4x larger than before */
    height: 1600px; /* 4x larger than before */
    background-image: url('https://images.squarespace-cdn.com/content/v1/64be584ef353714531853e0a/4b593e84-3d78-482a-b3ec-9b44105886d5/Tigers+logo+sort+bakgrunn+stor.png?format=1500w');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05; /* More toned down due to larger size */
    pointer-events: none;
    z-index: 1;
    animation: logoFloat 8s ease-in-out infinite;
}

/* Hero Background Logo */
.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.03);
    text-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
    pointer-events: none;
    z-index: 1;
    animation: logoFloat 8s ease-in-out infinite;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.2em;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    margin-bottom: 2rem;
}

.hero-subtitle p {
    font-size: 1.5rem;
    margin-bottom: 0;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: black;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.6);
}

/* Main Content */
main {
    background: white;
    margin-top: 0;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.section-title span {
    color: var(--primary-gold); /* Darker gold for better contrast on light backgrounds */
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Coaches Section */
.coaches {
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,0,0,0.8));
    color: white;
}

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.coach-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.coach-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.coach-card-content {
    position: relative;
    z-index: 1;
}

.coach-tagline {
    color: var(--light-gold);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.coach-tagline::first-letter {
    font-size: 0.9em;
    margin-right: 0.2em;
}

.coach-h3 {
    font-size: 1.5rem;
    color: var(--light-gold);
    margin: 1rem 0 0.5rem 0;
    text-align: center;
}

.coach-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #000;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex-shrink: 0;
    margin: 1rem auto;
}

.coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 50%;
}

/* Individual coach photo positioning */
.coach-photo.snorre img {
    object-position: center 0;
}

.coach-photo.andrea img {
    object-position: center 25%;
}

.coach-photo.victoria img {
    object-position: center 5%;
}

/*
.coach-photo.daniel img {
    object-position: center 25%;
}

.coach-photo.martin img {
    object-position: center 30%;
}

*/

.coach-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.coach-card p {
    text-align: left;
    margin-bottom: 0.8rem;
}

.coach-card p:first-of-type {
    text-align: center;
    font-weight: 600;
}

.coach-specialties {
    margin-bottom: 1.5rem;
}

.coach-specialties h4 {
    color: var(--light-gold);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.coach-specialties p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.coach-contact {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid var(--primary-gold);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
    text-align: left;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-brand p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-brand strong {
    color: #ffd700;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* New coaches contact grid */
.coaches-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.coach-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.coach-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.coach-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 0.5rem;
}

.coach-emoji {
    font-size: 1.2rem;
    display: inline-block;
    width: 24px;
    text-align: center;
}

.coach-name {
    color: #ffd700;
    font-size: 0.95rem;
    font-weight: 600;
}

.coach-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.coach-contact .contact-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.2rem 0;
}

.coach-contact .contact-link i {
    width: 14px;
    color: #ffd700 !important;
    font-size: 0.8rem;
}

.coach-contact .contact-link:hover,
.coach-contact .contact-link:focus {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.1) !important;
    border-radius: 4px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    outline: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Floating Navigation Arrows */
.floating-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-arrow:hover {
    background: #ffd700;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.nav-arrow .arrow-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.nav-arrow:hover .arrow-icon {
    transform: scale(1.1);
}

.nav-arrow-up:hover .arrow-icon {
    transform: translateY(-1px) scale(1.1);
}

.nav-arrow-down:hover .arrow-icon {
    transform: translateY(1px) scale(1.1);
}

/* Mobile adjustments for floating nav */
@media (max-width: 768px) {
    .floating-nav {
        right: 1rem;
        gap: 0.8rem;
    }
    
    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .floating-nav {
        right: 0.5rem;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .hero::after {
        width: 800px; /* Even smaller for very small screens */
        height: 800px;
        opacity: 0.02;
    }
    
    .title-word {
        font-size: 2.2rem; /* Even smaller for very small screens */
        margin: 0 0.02rem;
        text-shadow: 
            0 0 6px rgba(255, 215, 0, 0.8),
            0 0 12px rgba(255, 215, 0, 0.6),
            0 0 15px rgba(255, 215, 0, 0.4),
            1px 1px 0px #000,
            3px 3px 0px rgba(0, 0, 0, 0.5);
    }
    
    .sparkle {
        font-size: 1.2rem;
    }
    
    .hero-subtitle p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Mobile responsiveness improvements */
@media (max-width: 1024px) and (min-width: 769px) {
    .coaches-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin: 3rem auto 0;
    }
}

@media (max-width: 768px) {
    .hero::after {
        width: 1000px; /* Smaller for mobile */
        height: 1000px;
        opacity: 0.03;
    }
    
    .title-word {
        font-size: 3rem; /* Smaller for mobile */
        margin: 0 0.05rem;
        text-shadow: 
            0 0 8px rgba(255, 215, 0, 0.8),
            0 0 15px rgba(255, 215, 0, 0.6),
            0 0 20px rgba(255, 215, 0, 0.4),
            2px 2px 0px #000,
            4px 4px 0px rgba(0, 0, 0, 0.5);
    }
    
    .sparkle {
        font-size: 1.5rem;
    }
    
    .hero-subtitle p {
        font-size: 1.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .language-toggle {
        gap: 5px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 1.2rem;
    }

    .coaches-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem auto 0;
    }

    .coach-card {
        min-width: 280px;
        margin: 0 auto;
        max-width: 450px;
        padding: 2rem;
    }

    .carousel-controls {
        display: none; /* Hide carousel controls */
    }

    .carousel-btn {
        display: none; /* Hide carousel buttons */
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .coaches-contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .coach-item {
        padding: 0.8rem;
    }
    
    .coach-header {
        margin-bottom: 0.6rem;
    }
    
    .coach-name {
        font-size: 0.9rem;
    }
    
    .coach-contact .contact-link {
        font-size: 0.8rem !important;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Large screens - 3 coaches per row */
@media (min-width: 1200px) {
    .coaches-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        max-width: 1200px;
        margin: 3rem auto 0;
        gap: 2.5rem;
    }
}

/* Extra large screens - ensure good spacing */
@media (min-width: 1400px) {
    .coaches-grid {
        max-width: 1400px;
        gap: 3rem;
    }
}

/* Hide elements based on language */
.lang-en { display: none; }
.lang-no { display: block; }

body.english .lang-en { display: block; }
body.english .lang-no { display: none; }

/* Language buttons - always show both flags */
.lang-btn[data-lang="en"] { display: block; }
.lang-btn[data-lang="no"] { display: block; }

/* Flashy Title Styles - Cheer Style */
.flashy-title {
    position: relative;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.title-line-1, .title-line-2 {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.title-line-1 {
    margin-bottom: -0.2rem; /* Tighter spacing */
}

.title-word {
    display: inline-block;
    font-size: 5rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    margin: 0 0.1rem;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        3px 3px 0px #000,
        6px 6px 0px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ffd700 0%, #ffffff 25%, #ffed4e 50%, #ffffff 75%, #ffd700 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    transform-origin: center bottom;
}

.word-elite .title-word:nth-child(1) { animation-delay: 0s; }
.word-elite .title-word:nth-child(2) { animation-delay: 0.1s; }
.word-elite .title-word:nth-child(3) { animation-delay: 0.2s; }
.word-elite .title-word:nth-child(4) { animation-delay: 0.3s; }
.word-elite .title-word:nth-child(5) { animation-delay: 0.4s; }

.title-line-1 .title-word:nth-child(1) { animation-delay: 0s; }
.title-line-1 .title-word:nth-child(2) { animation-delay: 0.1s; }
.title-line-1 .title-word:nth-child(3) { animation-delay: 0.2s; }
.title-line-1 .title-word:nth-child(4) { animation-delay: 0.3s; }
.title-line-1 .title-word:nth-child(5) { animation-delay: 0.4s; }

.title-line-2 .title-word:nth-child(1) { animation-delay: 0.5s; }
.title-line-2 .title-word:nth-child(2) { animation-delay: 0.6s; }
.title-line-2 .title-word:nth-child(3) { animation-delay: 0.7s; }
.title-line-2 .title-word:nth-child(4) { animation-delay: 0.8s; }
.title-line-2 .title-word:nth-child(5) { animation-delay: 0.9s; }
.title-line-2 .title-word:nth-child(6) { animation-delay: 1.0s; }
.title-line-2 .title-word:nth-child(7) { animation-delay: 1.1s; }
.title-line-2 .title-word:nth-child(8) { animation-delay: 1.2s; }

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

/* Removed bounce animation - keeping only shimmer */

/* Sparkles Animation */
.title-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.sparkle-1 { 
    top: 10%; 
    left: 15%; 
}
.sparkle-2 { 
    top: 20%; 
    right: 20%; 
}
.sparkle-3 { 
    bottom: 30%; 
    left: 10%; 
}
.sparkle-4 { 
    bottom: 20%; 
    right: 15%; 
}
.sparkle-5 { 
    top: 50%; 
    left: 5%; 
}
.sparkle-6 { 
    top: 60%; 
    right: 10%; 
}

/* Removed sparkleFloat animation - sparkles are now static */
