/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #E0E0E0;
    background-color: #121212;
    overflow-x: hidden;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #121212, #1E1E1E);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

.loading-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #3aa478;
    margin-bottom: 2rem;
    animation: loadingFade 2s ease-in-out infinite;
}

@keyframes loadingFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(58, 164, 120, 0.2);
    border-top: 4px solid #3aa478;
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
}

@keyframes loadingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page Content */
.page-transition {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-transition.loaded {
    opacity: 1;
    visibility: visible;
}

/* Ensure body doesn't show content until loaded */
body:not(.loaded) .page-transition {
    opacity: 0;
    visibility: hidden;
}

/* Fallback: Show content after 4 seconds regardless */
@keyframes forceShow {
    0% { opacity: 0; visibility: hidden; }
    100% { opacity: 1; visibility: visible; }
}

.page-transition {
    animation: forceShow 0.5s ease 4s forwards;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #3aa478;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3aa478, #f69c37);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(58, 164, 120, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-main {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #3aa478;
}

.nav-logo-sub {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: #B0B0B0;
    margin-top: -2px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-main {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #3aa478;
}

.footer-logo-sub {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: #888;
    margin-top: -2px;
}

.nav-logo-img, .footer-logo-img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    object-fit: cover;
}

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

.nav-link {
    text-decoration: none;
    color: #E0E0E0;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: #3aa478;
    background: rgba(58, 164, 120, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3aa478;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-menu li {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu li:hover {
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #3aa478;
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Page Section Spacing */
.page-section {
    padding: 120px 0 80px;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.7), rgba(58, 164, 120, 0.5));
}

.hero-carousel {
    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: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slide.loaded {
    animation: slideZoom 20s ease-in-out infinite;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

@keyframes slideZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Ensure first slide is immediately visible */
.hero-slide:first-child {
    opacity: 1;
    z-index: 2;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}

/* Animated Title */
.animated-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3em;
}

.animated-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    animation: wordReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.word-1 { animation-delay: 0.2s; }
.word-2 { animation-delay: 0.4s; }
.word-3 { animation-delay: 0.6s; }
.word-4 { animation-delay: 0.8s; }

@keyframes wordReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg);
    }
    50% {
        opacity: 0.5;
        transform: translateY(0) rotateX(45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.title-orange {
    color: #f69c37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(246, 156, 55, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #3aa478, #f69c37);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 164, 120, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 164, 120, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Wave Separator */
.wave-separator {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -1px;
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    transform: rotateX(180deg);
}

.wave-separator path {
    fill: #1E1E1E;
}

/* Training Types Section */
.training-types {
    background: #1E1E1E;
    padding: 80px 0;
}

/* Page Hero Sections */
.page-hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 70px;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.7), rgba(58, 164, 120, 0.5));
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #f69c37;
}

/* Adjust section spacing for pages with hero */
.about, .kids, .workouts, .contact {
    padding: 80px 0;
}

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

.training-type-card {
    background: #2A2A2A;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 164, 120, 0.1);
}

.training-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(58, 164, 120, 0.3);
}

.training-type-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, #3aa478, #f69c37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.training-type-card h3 {
    color: #3aa478;
    margin-bottom: 1rem;
}

.training-type-card p {
    color: #B0B0B0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.training-type-card .card-cta {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #3aa478, #f69c37);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.training-type-card .card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 164, 120, 0.3);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }

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

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

.about-description {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #B0B0B0;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-member {
    background: #2A2A2A;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 164, 120, 0.1);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(58, 164, 120, 0.3);
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #3aa478;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: #3aa478;
    margin-bottom: 0.5rem;
}

.team-member h4 {
    color: #3aa478;
    margin-bottom: 0.5rem;
}

.member-position {
    color: #f69c37;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: #B0B0B0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: #2A2A2A;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 164, 120, 0.1);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(58, 164, 120, 0.3);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, #3aa478, #f69c37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.value-item h3 {
    color: #3aa478;
    margin-bottom: 1rem;
}

.value-item p {
    color: #B0B0B0;
    line-height: 1.6;
}

/* Center Gallery */
.center-gallery {
    margin: 4rem 0;
}

.center-gallery h3 {
    color: #3aa478;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 164, 120, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(58, 164, 120, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Team Title Styling */
.team-title {
    margin-bottom: 3rem;
    margin-top: 2rem;
}

/* Kids Section */
.kids {
    background: #1E1E1E;
}

.kids-description {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #B0B0B0;
    line-height: 1.8;
}

/* Birthday Party Section */
.birthday-party-section {
    background: #2A2A2A;
    padding: 3rem;
    border-radius: 20px;
    margin: 4rem 0;
    border: 2px solid rgba(58, 164, 120, 0.2);
}

.birthday-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.birthday-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.7), rgba(58, 164, 120, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.birthday-hero-overlay h3 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.birthday-party-section h3 {
    color: #3aa478;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.birthday-info {
    text-align: center;
}

.birthday-info p {
    color: #B0B0B0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.birthday-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.birthday-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(58, 164, 120, 0.1);
    padding: 1rem;
    border-radius: 10px;
}

.birthday-feature i {
    color: #f69c37;
    font-size: 1.5rem;
    width: 30px;
}

.birthday-feature span {
    color: #E0E0E0;
    font-weight: 500;
}

.birthday-cta {
    background: linear-gradient(45deg, #3aa478, #f69c37);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.birthday-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 164, 120, 0.4);
}

/* Contact Info Section for Kids Page */
.contact-info-section {
    background: #2A2A2A;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid rgba(58, 164, 120, 0.2);
}

.contact-info-section h4 {
    color: #3aa478;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-person strong {
    color: #f69c37;
    font-size: 1.1rem;
}

#damir-phone-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.phone-number {
    background: linear-gradient(45deg, #3aa478, #f69c37);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(58, 164, 120, 0.3);
}

.kids-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.kids-program-card {
    background: #2A2A2A;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 164, 120, 0.1);
}

.kids-program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(58, 164, 120, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, #3aa478, #f69c37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.kids-program-card h3 {
    color: #3aa478;
    margin-bottom: 1rem;
    text-align: center;
}

.kids-program-card p {
    color: #B0B0B0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.program-features {
    list-style: none;
    margin-bottom: 2rem;
}

.program-features li {
    color: #B0B0B0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(58, 164, 120, 0.1);
}

.program-cta {
    background: linear-gradient(45deg, #3aa478, #f69c37);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.program-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 164, 120, 0.3);
}

.kids-benefits {
    text-align: center;
}

.kids-benefits h3 {
    color: #3aa478;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
}

.benefit-item i {
    font-size: 2.5rem;
    color: #3aa478;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: #B0B0B0;
    font-size: 0.9rem;
}

/* Workouts Section */
.workouts {
    background: #121212;
}

.workouts-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #B0B0B0;
    line-height: 1.8;
}

/* Training Filters */
.training-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #2A2A2A;
    color: #E0E0E0;
    border: 2px solid rgba(58, 164, 120, 0.2);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: #3aa478;
    color: #3aa478;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(45deg, #3aa478, #f69c37);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(58, 164, 120, 0.3);
}

.training-pillars {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transition: all 0.3s ease;
}

.training-pillar {
    background: #1E1E1E;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(58, 164, 120, 0.2);
    transition: all 0.3s ease;
}

/* Different colors for different training types */
.kondicijska-pillar {
    border-color: rgba(255, 193, 7, 0.3);
}

.kondicijska-pillar .pillar-icon {
    background: linear-gradient(45deg, #ffc107, #ff9800);
}

.fitness-pillar {
    border-color: rgba(58, 164, 120, 0.3);
}

.fitness-pillar .pillar-icon {
    background: linear-gradient(45deg, #3aa478, #4caf50);
}

.rehabilitacija-pillar {
    border-color: rgba(244, 67, 54, 0.3);
}

.rehabilitacija-pillar .pillar-icon {
    background: linear-gradient(45deg, #f44336, #e91e63);
}

.pillar-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(58, 164, 120, 0.3);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3aa478, #f69c37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.pillar-header h3 {
    color: #3aa478;
    font-size: 1.5rem;
}

.pillar-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Image loading optimization styles */
img[loading="lazy"] {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Skeleton loading for images */
.image-skeleton {
    background: linear-gradient(90deg, #2A2A2A 25%, #3A3A3A 50%, #2A2A2A 75%);
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s infinite;
}

@keyframes loading-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Optimized hover effects */
.gallery-item,
.team-member,
.testimonial-card,
.program-card {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-slide {
        animation: none !important;
    }
}

/* Performance optimizations */
.hero-carousel,
.hero-slide {
    contain: layout style paint;
    will-change: opacity, transform;
}

/* Optimize images */
img {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

/* Optimize animations */
@media (prefers-reduced-motion: no-preference) {
    .footer,
    .footer-content,
    .footer-logo,
    .social-links,
    .footer-bottom {
        animation-play-state: running;
    }
}

/* Critical CSS optimizations */
.container {
    contain: layout style;
}

.section-title {
    contain: layout style;
}

/* Lazy loading optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Improve font loading */
@font-face {
    font-family: 'Poppins';
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    font-display: swap;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1E1E1E;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3aa478, #f69c37);
    border-radius: 6px;
    border: 2px solid #1E1E1E;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4caf50, #ff9800);
    box-shadow: 0 0 10px rgba(58, 164, 120, 0.3);
}

::-webkit-scrollbar-corner {
    background: #1E1E1E;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #3aa478 #1E1E1E;
}
/* Image rotation fixes */
.program-card {
    background: #2A2A2A;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 164, 120, 0.1);
    position: relative;
}

.program-card.featured {
    border-color: #3aa478;
    box-shadow: 0 5px 25px rgba(58, 164, 120, 0.2);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(45deg, #3aa478, #f69c37);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(58, 164, 120, 0.3);
}

.program-card h4 {
    color: #3aa478;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.program-details {
    margin-bottom: 1rem;
}

.program-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-tier {
    background: rgba(58, 164, 120, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #f69c37;
    font-weight: 600;
    font-size: 0.9rem;
}

.program-frequency,
.program-schedule,
.program-duration {
    color: #B0B0B0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.program-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option {
    background: rgba(58, 164, 120, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #f69c37;
    font-size: 0.9rem;
}

.program-description {
    color: #B0B0B0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.program-features {
    margin-bottom: 2rem;
}

.program-features h5 {
    color: #3aa478;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.program-features ul {
    list-style: none;
}

.program-features li {
    color: #B0B0B0;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.program-features i {
    color: #3aa478;
    width: 16px;
}

.program-focus {
    margin-bottom: 1.5rem;
}

.program-focus h5 {
    color: #3aa478;
    margin-bottom: 1rem;
}

.focus-areas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(58, 164, 120, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #f69c37;
    font-size: 0.9rem;
}

.focus-item i {
    color: #3aa478;
}

/* Testimonials Section */
.testimonials {
    background: #1E1E1E;
    padding-bottom: 120px;
}

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

.testimonial-card {
    background: #2A2A2A;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 164, 120, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(58, 164, 120, 0.3);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid #3aa478;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stars {
    text-align: center;
    margin-bottom: 1rem;
    color: #FFD700;
}

.testimonial-content {
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    color: #B0B0B0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-content h4 {
    color: #3aa478;
    margin-bottom: 0.5rem;
}

.testimonial-content span {
    color: #f69c37;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: #121212;
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #B0B0B0;
    line-height: 1.8;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.contact-details {
    background: #1E1E1E;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(58, 164, 120, 0.2);
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #3aa478, #f69c37);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: #3aa478;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #B0B0B0;
}

#phone-section {
    margin-top: 1rem;
}

.cf-turnstile {
    margin: 1rem 0;
}

.contact-cta {
    background: #1E1E1E;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(58, 164, 120, 0.2);
}

.contact-cta h3 {
    color: #3aa478;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact-cta p {
    color: #B0B0B0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
    min-width: 200px;
    text-align: center;
    display: inline-block;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #0D0D0D;
    color: #E0E0E0;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(58, 164, 120, 0.2);
    position: relative;
    overflow: hidden;
    animation: footerSlideUp 0.8s ease-out;
}

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

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3aa478, #f69c37, transparent);
    animation: footerGlow 4s ease-in-out infinite;
}

@keyframes footerGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.footer-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

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

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    animation: socialSlideIn 1s ease-out 0.5s both;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(58, 164, 120, 0.1);
    color: #3aa478;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(58, 164, 120, 0.2);
    position: relative;
    overflow: hidden;
    animation: socialBounce 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.social-links a:nth-child(1) { --i: 0; }
.social-links a:nth-child(2) { --i: 1; }
.social-links a:nth-child(3) { --i: 2; }

@keyframes socialBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(58, 164, 120, 0.3), transparent);
    transition: left 0.6s ease;
}

.social-links a:hover {
    background: #3aa478;
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(58, 164, 120, 0.4);
    animation-play-state: paused;
}

.social-links a:hover::before {
    left: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(58, 164, 120, 0.1);
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.footer-credits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    animation: creditsGlow 2s ease-in-out infinite alternate;
}

@keyframes creditsGlow {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.footer-credits a {
    color: #3aa478;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.footer-credits a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3aa478;
    transition: width 0.4s ease;
}

.footer-credits a:hover {
    color: #f69c37;
    transform: translateY(-2px) scale(1.05);
}

.footer-credits a:hover::after {
    width: 100%;
    background: #f69c37;
}

/* Why Choose Section */
.why-choose-section {
    margin-top: 4rem;
}

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

.why-choose-item {
    background: #2A2A2A;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 164, 120, 0.1);
}

.why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(58, 164, 120, 0.3);
}

.why-choose-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, #3aa478, #f69c37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.why-choose-item h4 {
    color: #3aa478;
    margin-bottom: 1rem;
}

.why-choose-item p {
    color: #B0B0B0;
    line-height: 1.6;
}

/* Functional Benefits Section */
.functional-benefits-section {
    background: #1E1E1E;
    padding: 4rem 0;
    margin-top: 4rem;
    border-radius: 20px;
}

.functional-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #B0B0B0;
    line-height: 1.8;
}

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

.functional-benefit {
    background: #2A2A2A;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(58, 164, 120, 0.1);
}

.functional-benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(58, 164, 120, 0.3);
}

.functional-benefit .benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, #3aa478, #f69c37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.functional-benefit h4 {
    color: #3aa478;
    margin-bottom: 1rem;
}

.functional-benefit p {
    color: #B0B0B0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

/* Responsive Design */
/* Training Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1E1E1E;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(58, 164, 120, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    opacity: 0;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    background: linear-gradient(45deg, #3aa478, #f69c37);
    padding: 3rem 2rem;
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    min-height: 120px;
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.training-form {
    padding: 2rem;
}

.service-info-section {
    background: #2A2A2A;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(58, 164, 120, 0.2);
    text-align: center;
}

.service-info {
    display: none;
    background: linear-gradient(135deg, #3aa478, #f69c37);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(58, 164, 120, 0.3);
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.training-form .form-group:not(.form-row .form-group) {
    margin-bottom: 0.8rem;
}

.training-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #3aa478;
    font-weight: 600;
    font-size: 0.9rem;
}

.training-form .form-group input,
.training-form .form-group textarea,
.training-form .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #2A2A2A;
    color: #E0E0E0;
}

.training-form .form-group input:focus,
.training-form .form-group textarea:focus,
.training-form .form-group select:focus {
    outline: none;
    border-color: #3aa478;
    box-shadow: 0 0 0 3px rgba(58, 164, 120, 0.1);
}

.training-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.training-form .form-group select {
    cursor: pointer;
}

.training-form .error-message {
    color: #f44336;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
    min-height: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(58, 164, 120, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #3aa478, #f69c37);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 164, 120, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #B0B0B0;
    border: 2px solid #333;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    border-color: #3aa478;
    color: #3aa478;
    transform: translateY(-2px);
}

/* Custom Success/Error Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #1E1E1E;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(58, 164, 120, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
}

.popup-header {
    padding: 2rem;
    text-align: center;
    position: relative;
    border-radius: 13px 13px 0 0;
}

.success-header {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
}

.error-header {
    background: linear-gradient(135deg, #f44336, #e57373);
    color: white;
}

.popup-header h3 {
    margin: 10px 0 0 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.success-icon, .error-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 2rem;
    color: #E0E0E0;
}

.success-message, .error-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.success-message strong {
    color: #4CAF50;
}

.contact-details {
    background: #2A2A2A;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #4CAF50;
}

.contact-methods {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(58, 164, 120, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #4CAF50;
    font-weight: 500;
}

.contact-method i {
    color: #4CAF50;
}

.next-steps {
    background: #2A2A2A;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border-left: 4px solid #f69c37;
}

.next-steps strong {
    color: #f69c37;
}

.next-steps ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 0.5rem;
    color: #B0B0B0;
}

.popup-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(58, 164, 120, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.error-popup .contact-details {
    border-left-color: #f44336;
}

.error-popup .contact-method {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.error-popup .contact-method i {
    color: #f44336;
}

/* Responsive popup design */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 1rem;
    }
    
    .popup-header, .popup-body {
        padding: 1.5rem;
    }
    
    .popup-footer {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-method {
        width: 100%;
        justify-content: center;
    }
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .training-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(18, 18, 18, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        border-top: 1px solid rgba(58, 164, 120, 0.2);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        opacity: 0;
        transform: translateX(-50px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) scale(1.1);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) scale(1.1);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .animated-title {
        flex-direction: column;
        align-items: center;
        gap: 0.1em;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-credits {
        flex-direction: column;
        gap: 1rem;
    }
    
    .team-grid,
    .values-grid,
    .kids-programs-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pillar-programs {
        grid-template-columns: 1fr;
    }
    
    .pillar-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .pillar-icon {
        margin-right: 0;
    }
    
    .nav-logo-img, .footer-logo-img {
        width: 50px;
        height: 50px;
    }
    
    .nav-logo-sub, .footer-logo-sub {
        font-size: 0.6rem;
    }
    
    .training-types-grid {
        grid-template-columns: 1fr;
    }
    
    .birthday-features {
        grid-template-columns: 1fr;
    }
    
    .birthday-hero-overlay h3 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .training-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .why-choose-grid,
    .functional-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .animated-title span {
        font-size: 0.9em;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .page-section {
        padding: 100px 0 60px;
    }
    
    .team-member,
    .value-item,
    .kids-program-card,
    .testimonial-card,
    .program-card {
        padding: 1.5rem;
    }
    
    .training-pillar {
        padding: 1.5rem;
    }
    
    .focus-areas {
        flex-direction: column;
    }
    
    .program-options {
        flex-direction: column;
    }
    
    .nav-logo-img, .footer-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .nav-logo-main, .footer-logo-main {
        font-size: 1.2rem;
    }
    
    .nav-logo-sub, .footer-logo-sub {
        font-size: 0.55rem;
    }
    
    .birthday-party-section {
        padding: 2rem;
    }
    
    .birthday-party-section h3 {
        font-size: 1.5rem;
    }
}