﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.container {
    height: auto;
    max-height: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    max-width: 100%;
}

/* Container responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }
}

@media (max-width: 414px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.sigla-hoop {
    width: auto;
    height: 10vh;
    max-height: 80px;
    object-fit: contain;
    display: block;
}
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

/* Ensure smooth navigation and proper page positioning */
body {
    scroll-behavior: smooth;
}

/* Smooth scroll to top when navigating to home page */
html, body {
    scroll-behavior: smooth;
}

/* Ensure proper page positioning on load */
@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply fade-in animation to main content */
.container {
    animation: fadeInFromTop 0.5s ease-out;
}

body {
    padding: 100px;
    background-size: auto;
    animation: gradientShift 15s ease infinite;
    background-size: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /*background-color: rgba(0, 0, 0, 0.4);*/
    transition: opacity 0.4s ease;
}

/* Mobile responsive padding */
@media (max-width: 768px) {
    body {
        padding: 60px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 50px 15px 15px 15px;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.custom-navbar-bg {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    height: auto;
    max-height: 80px;
    width: auto !important;
    display: flex;
    align-items: center;
    background-color: #0b0d08 !important;
    padding: 0.25rem 0;
    height: 80px;
}

/* Mobile navbar optimizations */
@media (max-width: 768px) {
    .custom-navbar-bg {
        height: 70px;
        padding: 0.2rem 0;
    }
    
    .sigla-hoop {
        height: 8vh;
        max-height: 60px;
    }
    
    .navbar-nav {
        font-size: 0.9rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
    }
    
    /* Mobile menu toggle button styling */
    .navbar-toggler {
        border: 2px solid white;
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        background-color: rgba(245, 178, 1, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(245, 178, 1, 0.5);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.5em;
        height: 1.5em;
    }
    
    /* Collapsed menu styling */
    .navbar-collapse {
        background-color: rgba(11, 13, 8, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(245, 178, 1, 0.3);
    }
    
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-collapse .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-collapse .nav-link {
        color: white !important;
        font-size: 1.1rem;
        font-weight: bold;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: center;
        border: 1px solid transparent;
    }
    
    .navbar-collapse .nav-link:hover {
        background-color: rgba(245, 178, 1, 0.3);
        border-color: rgba(245, 178, 1, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(245, 178, 1, 0.3);
    }
}

@media (max-width: 576px) {
    .custom-navbar-bg {
        height: 65px;
        padding: 0.15rem 0;
    }
    
    .sigla-hoop {
        height: 7vh;
        max-height: 55px;
    }
    
    .navbar-nav {
        font-size: 0.85rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
    }
    
    .instagram-link {
        font-size: 1.1rem !important;
    }
    
    /* Enhanced mobile menu toggle for smaller screens */
    .navbar-toggler {
        padding: 0.4rem 0.6rem;
        border-width: 2px;
    }
    
    .navbar-toggler-icon {
        width: 1.4em;
        height: 1.4em;
    }
    
    .navbar-collapse .nav-link {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-link:hover {
    color: #f5b201;
    background-color: rgba(245, 178, 1, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.navbar-nav {
    display: flex;
    margin-left: auto;
    text-align: center;
    font-family: 'Playfair Display', serif; 
    font-weight: bold;
}

.nav-link {
    transition: color 1s ease, transform 0.5s ease;
}

    .nav-link:hover {
        color: #d27c00 !important;
        transform: scale(1.1);
        /*   transition: color 0.3s ease;*/
    }

.text-white {
    color: white;
}

h1, h2 {
    /*font-family: 'Edwardian Script ITC', 'Bickham Script Pro', 'Great Vibes', cursive;*/
    font-family: 'Baloo 2', cursive;
}

.hero-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    background: linear-gradient(135deg, #f5f1e8, #e8dcc0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
}

/* Hero section responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 90vh;
        margin-top: -20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 85vh;
        margin-top: -15px;
    }
}

.animated-basketball-cover {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f1e8;
    object-fit: cover;
    margin-top: -290px;
}

/* Basketball Hoop */
.basketball-hoop {
    position: absolute;
    left: 15%;
    top: 20%;
    z-index: 2;
}

.backboard {
    width: 80px;
    height: 60px;
    border: 4px solid #8B4513;
    border-radius: 8px;
    position: relative;
    background: transparent;
}

.backboard-inner {
    width: 60px;
    height: 40px;
    border: 3px solid #8B4513;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rim {
    width: 60px;
    height: 4px;
    background: #FF8C00;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.net {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* ajustează top ca să pornească imediat sub inel */
    top: calc(var(--rim-top, 54px)); /* pune aici valoarea ta – sau folosește px direct */
    width: 84px;
    height: 60px;
    z-index: 2; /* sub inel, peste fundal */
    /* două “plase” încrucișate */
    background: repeating-linear-gradient(60deg, transparent 0 6px, rgba(255, 165, 0,.95) 6px 8px), repeating-linear-gradient(-60deg, transparent 0 6px, rgba(255,255,255,.95) 6px 8px);
    /* îngustează în jos ca un con */
    clip-path: polygon(6% 0, 94% 0, 78% 100%, 22% 100%);
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
    /* mic efect de legănare */
    transform-origin: 50% 0%;
    animation: net-sway 3.2s ease-in-out infinite;
}

    /* “șnururi” de prindere la inel (opțional) */
    .net::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 6px;
        background: radial-gradient(circle at 15% 50%, rgba(255,255,255,.9) 0 2px, transparent 3px), radial-gradient(circle at 35% 50%, rgba(255,255,255,.9) 0 2px, transparent 3px), radial-gradient(circle at 55% 50%, rgba(255,255,255,.9) 0 2px, transparent 3px), radial-gradient(circle at 75% 50%, rgba(255,255,255,.9) 0 2px, transparent 3px), radial-gradient(circle at 90% 50%, rgba(255,255,255,.9) 0 2px, transparent 3px);
        opacity: .9;
    }

/* animația plasei */
@keyframes net-sway {
    0%,100% {
        transform: translateX(-50%) rotate(0deg);
    }

    50% {
        transform: translateX(-50%) rotate(2.2deg);
    }
}

.pole {
    width: 6px;
    height: 200px;
    background: #8B4513;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}

/* Basketball */

.basketball-seam:nth-child(1) {
    transform: translateY(-50%) rotate(0deg);
}

.basketball-seam:nth-child(2) {
    transform: translateY(-50%) rotate(60deg);
}

.basketball-seam:nth-child(3) {
    transform: translateY(-50%) rotate(-60deg);
}

/* Court Lines */
.court-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

.court-line {
    position: absolute;
    height: 3px;
    background: #FF8C00;
    border-radius: 2px;
}

.court-line-1 {
    bottom: 20px;
    left: 10%;
    width: 30%;
    transform: rotate(-15deg);
    animation: courtGlow 4s ease-in-out infinite;
}

.court-line-2 {
    bottom: 20px;
    right: 10%;
    width: 25%;
    transform: rotate(15deg);
    animation: courtGlow 4s ease-in-out infinite 2s;
}

/* Motto Text */
.motto-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 0;
    font-family: 'Playfair Display', serif;
    color: #8B4513;
}

.motto-line {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: bold;
    line-height: 1.1;
    margin: 0;
    opacity: 0;
    animation: textFadeIn 2s ease-out forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile motto text improvements */
@media (max-width: 768px) {
    .motto-line {
        font-size: clamp(1.8rem, 10vw, 4rem);
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
        letter-spacing: 1px;
    }
}

@media (max-width: 576px) {
    .motto-line {
        font-size: clamp(1.6rem, 12vw, 3.5rem);
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
        letter-spacing: 1.5px;
    }
}

@media (max-width: 414px) {
    .motto-line {
        font-size: clamp(1.4rem, 14vw, 3rem);
        text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.7);
        letter-spacing: 2px;
    }
}

@media (max-width: 375px) {
    .motto-line {
        font-size: clamp(1.2rem, 16vw, 2.8rem);
        text-shadow: 6px 6px 12px rgba(0, 0, 0, 0.8);
        letter-spacing: 2.5px;
    }
}

.motto-line:nth-child(1) { animation-delay: 0.5s; }
.motto-line:nth-child(2) { animation-delay: 1s; }
.motto-line:nth-child(3) { animation-delay: 1.5s; }

/* Animations */
@keyframes basketballBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes netSway {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) rotate(5deg);
    }
}

@keyframes courtGlow {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive hover effects for the animated cover */
.animated-basketball-cover:hover .basketball {
    animation-duration: 1s;
    transform: scale(1.1);
}

.animated-basketball-cover:hover .net-line {
    animation-duration: 1.5s;
}

.animated-basketball-cover:hover .court-line {
    animation-duration: 2s;
}

/* Additional interactive elements */
.basketball-hoop:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.motto-text:hover .motto-line {
    color: #f5b201;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* Sparkle effect for kids */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 30%; right: 25%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 1s; }
.sparkle:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 1.5s; }

/* Responsive Design */
@media (max-width: 768px) {
    .basketball-hoop {
        left: 8%;
        top: 12%;
        transform: scale(1.1);
    }
    
    .backboard {
        width: 70px;
        height: 52px;
    }
    
    .backboard-inner {
        width: 52px;
        height: 35px;
    }
    
    .rim {
        width: 52px;
    }
    
    .net {
        width: 52px;
    }
    
    .pole {
        height: 180px;
    }
    
    .basketball {
        right: 12%;
        bottom: 18%;
        width: 55px;
        height: 55px;
    }
    
    .motto-text {
        padding: 0 2rem;
    }
}

@media (max-width: 576px) {
    .basketball-hoop {
        left: 6%;
        top: 8%;
        transform: scale(1.2);
    }
    
    .backboard {
        width: 65px;
        height: 48px;
    }
    
    .backboard-inner {
        width: 48px;
        height: 32px;
    }
    
    .rim {
        width: 48px;
    }
    
    .net {
        width: 48px;
    }
    
    .pole {
        height: 160px;
    }
    
    .basketball {
        right: 8%;
        bottom: 12%;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 414px) {
    .basketball-hoop {
        left: 4%;
        top: 6%;
        transform: scale(1.3);
    }
    
    .backboard {
        width: 60px;
        height: 45px;
    }
    
    .backboard-inner {
        width: 45px;
        height: 30px;
    }
    
    .rim {
        width: 45px;
    }
    
    .net {
        width: 45px;
    }
    
    .pole {
        height: 140px;
    }
    
    .basketball {
        right: 6%;
        bottom: 10%;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 375px) {
    .basketball-hoop {
        left: 3%;
        top: 5%;
        transform: scale(1.4);
    }
    
    .backboard {
        width: 55px;
        height: 42px;
    }
    
    .backboard-inner {
        width: 42px;
        height: 28px;
    }
    
    .rim {
        width: 42px;
    }
    
    .net {
        width: 42px;
    }
    
    .pole {
        height: 120px;
    }
    
    .basketball {
        right: 5%;
        bottom: 8%;
        width: 42px;
        height: 42px;
    }
}

/*About us*/
.our-story {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 100vh;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
}

@media (min-width: 480px) {
    .our-story {
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .our-story {
        gap: 4rem;
        flex-wrap: nowrap;
    }
}

@media (min-width: 1200px) {
    .our-story {
        gap: 6rem;
    }
}

.circle-link {
    width: 10vw;
    height: 10vw;
    min-width: 60px;
    min-height: 60px;
    max-width: 120px;
    max-height: 120px;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #f5b201;
    border: 2px solid #f5b201;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}
    .circle-link:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(245, 178, 1, 0.4);
    }

/* Overlay stays hidden */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1000;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    z-index: 4;
    width: 100%;
    max-width: 100vw;
    max-height: 90vh;
    justify-items: center;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem;
        max-width: 90vw;
    }
}

@media (min-width: 1200px) {
    .modal-grid {
        max-width: 80vw;
        gap: 3rem;
        padding: 3rem;
    }
}

/* Ensure proper spacing on very large screens */
@media (min-width: 1600px) {
    .modal-grid {
        max-width: 70vw;
        gap: 4rem;
        padding: 4rem;
    }
}

.modal-grid a {
    transition: opacity 0.3s ease;
    display: block;
}

.modal-grid a:hover {
    opacity: 0.9;
}

.coach {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    transition: opacity 0.3s ease;
    display: block;
}

/* Mobile: Stack vertically, full width */
@media (max-width: 767px) {
    .coach {
        max-width: 90vw;
        max-height: 40vh;
        width: 100%;
    }
}

/* Tablet: Side by side, medium size */
@media (min-width: 768px) and (max-width: 1199px) {
    .coach {
        max-width: 100%;
        max-height: 50vh;
        width: 100%;
    }
}

/* Desktop: Side by side, larger size */
@media (min-width: 1200px) {
    .coach {
        max-width: 100%;
        max-height: 60vh;
        width: 100%;
    }
}

.our-story .coach {
    opacity: 0;
}

.our-story:hover .coach {
    opacity: 1;
}

.navbar-brand,
.navbar-nav,
.navbar-toggler {
    display: flex;
    align-items: center;
    color: white;
}

/* Instagram Link Styling */
.instagram-link {
    color: #f5b201 !important;
    font-size: 1.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.instagram-link:hover {
    color: #ff8c00 !important;
    transform: scale(1.1);
    text-decoration: none;
}

.instagram-link i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .instagram-link {
        font-size: 1.25rem;
        padding: 0.25rem 0.5rem !important;
    }
    
    .instagram-link i {
        font-size: 1.25rem;
    }
}

/*#alex {
    max-width: 946px;
    max-height: 1356px;
}

#matei{
    max-width: 946px;
}*/

.hover-grow {
    transition: transform 0.3s ease;
}

    .hover-grow:hover {
        transform: scale(1.03);
    }

#age-groups .card-img-top {
    object-fit: cover;
    height: 250px;
}

.age-group-image {
    height: 350px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.1) brightness(1.05);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.age-group-image:hover {
    transform: scale(1.02);
    filter: blur(0px) contrast(1.2) brightness(1.1);
}

/* Enhanced Age Group Card Hover Effects */
.hover-grow {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.hover-grow:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 30px rgba(245, 178, 1, 0.2);
    border: 3px solid #f5b201;
}

.hover-grow:hover .age-group-image {
    transform: scale(1.08);
    filter: brightness(1.15) contrast(1.1);
}

/* Touch device detection and always-visible overlay */
@media (hover: none) and (pointer: coarse) {
    .hover-grow {
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border: 2px solid #f5b201;
    }
    
    .card-hover-overlay {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.4) 70%, rgba(0,0,0,.1));
    }
    
    .card-overlay {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .age-group-image {
        transform: scale(1.03);
        filter: brightness(1.1) contrast(1.05);
    }
}

.card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4) 60%, transparent);
    color: white;
    backdrop-filter: blur(2px);
    margin-top: 300px;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
    transform: translateY(0);
}

.card-hover-overlay {
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    z-index: 3; /* above .card-overlay */
    opacity: 0;
    transform: translateY(20px);
    background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.5) 70%, rgba(0,0,0,.2) 90%, transparent);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    backdrop-filter: blur(3px);
}

.hover-grow:hover .card-overlay {
    opacity: 0;
    transform: translateY(30px);
}

.hover-grow:hover .card-hover-overlay {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.age-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f5b201, #ff8c00);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(245, 178, 1, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(245, 178, 1, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(245, 178, 1, 0.6);
    }
}

.age-range {
    font-weight: bold;
    font-size: 0.95rem;
    color: #0b0d08;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.card-hover-overlay h5 {
    color: #f5b201;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.card-hover-overlay p {
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.card-hover-overlay strong {
    color: #f5b201;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    font-weight: bold;
    font-size: 1rem;
}

.card-hover-overlay .age-badge {
    background: linear-gradient(135deg, #f5b201, #ff8c00);
    box-shadow: 0 6px 20px rgba(245, 178, 1, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Age Group Images */
.age-group-image-container {
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0.375rem 0.375rem 0 0;
    overflow: hidden;
    position: relative;
}

.age-group-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.age-group-image-container:hover .age-group-image {
    transform: scale(1.05);
}

/* Responsive Age Group Cards */
@media (max-width: 1200px) {
    .age-group-image-container {
        height: 350px;
    }
    
    .card-overlay {
        margin-top: 250px;
    }
}

@media (max-width: 992px) {
    .age-group-image-container {
        height: 320px;
    }
    
    .card-overlay {
        margin-top: 220px;
        padding: 1.5rem;
    }
    
    .card-hover-overlay {
        padding: 1.5rem;
    }
    
    .card-hover-overlay h5 {
        font-size: 1.2rem;
    }
    
    .card-hover-overlay p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .age-group-image-container {
        height: 280px;
    }
    
    .card-overlay {
        margin-top: 180px;
        padding: 1rem;
    }
    
    .card-hover-overlay {
        padding: 1rem;
    }
    
    .card-hover-overlay h5 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .card-hover-overlay p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .age-badge {
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .age-range {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .age-group-image-container {
        height: 250px;
    }
    
    .card-overlay {
        margin-top: 150px;
        padding: 0.8rem;
    }
    
    .card-hover-overlay {
        padding: 0.8rem;
    }
    
    .card-hover-overlay h5 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .card-hover-overlay p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .age-badge {
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .age-range {
        font-size: 0.75rem;
    }
}

/* iPhone specific optimizations */
@media (max-width: 414px) {
    .age-group-image-container {
        height: 220px;
    }
    
    .card-overlay {
        margin-top: 120px;
        padding: 0.6rem;
    }
    
    .card-hover-overlay {
        padding: 0.6rem;
    }
    
    .card-hover-overlay h5 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .card-hover-overlay p {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }
    
    .age-badge {
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .age-range {
        font-size: 0.7rem;
    }
}

@media (max-width: 375px) {
    .age-group-image-container {
        height: 200px;
    }
    
    .card-overlay {
        margin-top: 100px;
        padding: 0.5rem;
    }
    
    .card-hover-overlay {
        padding: 0.5rem;
    }
    
    .card-hover-overlay h5 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .card-hover-overlay p {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
        line-height: 1.1;
    }
    
    .age-badge {
        padding: 0.2rem 0.4rem;
        margin-bottom: 0.4rem;
    }
    
    .age-range {
        font-size: 0.65rem;
    }
}

.blurred-bg {
    background: rgba(255, 255, 255, 0); /* semi-transparent white */
    backdrop-filter: blur(10px); /* actual blur effect */
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    border-radius: 16px; /* optional: make it look softer */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* optional: gives a frosted glass effect */
}
.basketball-icon-link {
    font-size: 2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #f5b201;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    min-width: 60px;
}

@media (min-width: 480px) {
    .basketball-icon-link {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .basketball-icon-link {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .basketball-icon-link {
        font-size: 3.5rem;
    }
}
.bouncing-ball {
    animation: bounceIn 1.2s ease-out forwards;
    transform: translateY(0);
    top: 20px;
    margin-top: 0 !important;
    font-size: 1.5rem;
    z-index: 1;
}

/* Mobile adjustments for basketball balls in Despre noi section */
@media (max-width: 768px) {
    .bouncing-ball {
        top: 40px;
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .bouncing-ball {
        top: 50px;
        font-size: 2rem;
    }
}

@media (max-width: 414px) {
    .bouncing-ball {
        top: 60px;
        font-size: 2.2rem;
    }
}

@media (max-width: 375px) {
    .bouncing-ball {
        top: 70px;
        font-size: 2.4rem;
    }
}

@media (min-width: 480px) {
    .bouncing-ball {
        font-size: 2rem;
        top: 25px;
    }
}

@media (min-width: 768px) {
    .bouncing-ball {
        font-size: 2.5rem;
        top: 30px;
    }
}

@media (min-width: 1200px) {
    .bouncing-ball {
        font-size: 3rem;
        top: 40px;
    }
}

.basketball-icon-link:hover {
    animation: jump 0.4s ease;
    color: #ffaa00;
}
@keyframes bounceIn {
    0% {
        transform: translateY(-150px) scale(0.5);
        opacity: 0;
    }

    60% {
        transform: translateY(20px) scale(1.1);
        opacity: 1;
    }

    80% {
        transform: translateY(-5px) scale(0.98);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* 🕴 Keyframes for hover jump */
@keyframes jump {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-3px);
    }
}
.basketball-wrapper {
    height: auto;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    z-index: 2;
    flex-wrap: wrap;
    padding: 1rem;
}

@media (min-width: 480px) {
    .basketball-wrapper {
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .basketball-wrapper {
        gap: 4rem;
        flex-wrap: nowrap; 
    }
}

@media (min-width: 1200px) {
    .basketball-wrapper {
        gap: 6rem;
    }
}

@media (min-width: 1600px) {
    .basketball-wrapper {
        gap: 8rem;
    }
}

.label-on-ball {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: bold;
  color: black;
  background-color: rgba(245, 178, 1, 0.9);
  padding: 2px 6px;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}
.curved-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    pointer-events: visiblePainted;
    z-index: 2;
}

/* Mobile adjustments for curved text to ensure visibility above basketball balls */
@media (max-width: 768px) {
    .curved-text {
        top: -20px;
        height: 90%;
    }
}

@media (max-width: 576px) {
    .curved-text {
        top: -30px;
        height: 95%;
    }
}

@media (max-width: 414px) {
    .curved-text {
        top: -40px;
        height: 100%;
    }
}

@media (max-width: 375px) {
    .curved-text {
        top: -50px;
        height: 100%;
    }
}

.brighter-logo {
    filter: brightness(1.5) contrast(1.2);
    /*box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);  adds a glow effect*/ 
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
}
.custom-negative-margin {
    margin-top: -1rem;
}

.card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0)); /* fade de jos în sus */
    color: white;
    backdrop-filter: blur(1px);
    margin-top: 380px;
    z-index: 2;
}

.card img {
    display: block;
    width: 100%;
    height: auto;
}

/* Age Groups Section Responsive */
#age-groups {
    padding: 2rem 0;
}

#age-groups .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    #age-groups {
        padding: 1.5rem 0;
    }
    
    #age-groups .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    #age-groups .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    #age-groups .col-md-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    #age-groups {
        padding: 1rem 0;
    }
    
    #age-groups .container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    #age-groups .col-md-6 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        margin-bottom: 0.8rem;
    }
}

/* Contact Section */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.contact-card {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .contact-card {
        flex: 1;
        min-width: 200px;
        max-width: 250px;
    }
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #f5b201;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h5 {
    color: #0b0d08;
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-link {
    color: #f5b201;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    color: #ff8c00;
    text-decoration: none;
    transform: scale(1.05);
}

/* Terms and Conditions Popup */
.terms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.terms-popup-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.terms-popup-header {
    background: linear-gradient(135deg, #0b0d08, #1a1a1a);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terms-popup-header h3 {
    margin: 0;
    color: #f5b201;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.terms-popup-body {
    padding: 2rem;
}

.terms-popup-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

.terms-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #f5b201;
}

.terms-summary h5 {
    color: #0b0d08;
    margin-bottom: 1rem;
    font-weight: bold;
}

.terms-summary ul {
    margin: 0;
    padding-left: 1.5rem;
}

.terms-summary li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #555;
}

.terms-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.accept-btn {
    background: linear-gradient(135deg, #f5b201, #ff8c00);
    color: #0b0d08;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 178, 1, 0.4);
}

.read-full-btn {
    background: transparent;
    color: #f5b201;
    border: 2px solid #f5b201;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

.read-full-btn:hover {
    background: #f5b201;
    color: #0b0d08;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design for Popup */
@media (max-width: 768px) {
    .terms-popup-content {
        width: 95%;
        margin: 1rem;
    }
    
    .terms-popup-body {
        padding: 1.5rem;
    }
    
    .terms-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .accept-btn,
    .read-full-btn {
        width: 100%;
        max-width: 300px;
    }
}