:root {
    --tirkizna: #38B6FF;
    --zelena: #7ED957;
    --tamna: #0a0a0a;
    --bijela: #ffffff;
}

html { scroll-behavior: smooth; }
body { background-color: var(--tamna); color: var(--bijela); font-family: 'Inter', sans-serif; margin: 0; padding: 0; overflow-x: hidden; }

/* NAVBAR & BURGER */
.navbar { position: fixed; top: 0; width: 100%; z-index: 5000; background: rgba(0,0,0,0.95); backdrop-filter: blur(15px); padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { height: 40px; z-index: 6001; }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a { text-decoration: none; color: #fff; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; transition: 0.3s; }

.burger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; z-index: 9999; padding: 10px; position: relative; }
.burger span { width: 28px; height: 2px; background: #fff; transition: 0.3s; display: block; }

/* X Animacija */
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--tirkizna); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--tirkizna); }

.btn-primary-small {
    background: linear-gradient(135deg, var(--tirkizna), #2b91d4);
    color: #000 !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(56, 182, 255, 0.3);
    transition: 0.3s ease;
    display: inline-block;
    border: none;
}

/* --- HERO SEKCIJA --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('swim.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.hero-tagline { color: var(--tirkizna); font-weight: 900; letter-spacing: 5px; font-size: 0.9rem; margin-bottom: 15px; text-transform: uppercase; }
.main-title { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 0.9; margin-bottom: 20px; }
.text-gradient { background: linear-gradient(90deg, var(--tirkizna), var(--zelena)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.6rem); color: #ccc; margin-bottom: 50px; line-height: 1.5; }

/* TALAS NA DNU HERO-a */
.hero-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 15;
}

.hero-divider svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 120px;
}

.hero-divider .shape-fill {
    fill: var(--tamna);
}

/* --- HERO DUGMAD (ANIMIRANA) --- */
.hero-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

.btn-primary {
    position: relative;
    background: linear-gradient(135deg, var(--tirkizna), var(--zelena));
    color: #000 !important;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border: none;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(126, 217, 87, 0.3);
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(56, 182, 255, 0.5);
}

/* Sweep animacija (bljesak) */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-outline {
    background: transparent;
    color: #fff !important;
    padding: 14px 45px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    border: 3px solid #fff;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: #fff;
    color: #000 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* --- LAYOUT SEKCIJA (ASIMETRIJA) --- */
.section-padding { padding: 120px 20px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.text-left-container { display: flex; flex-direction: column; justify-content: center; }
.title-heavy { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1; text-transform: uppercase; margin: 20px 0; letter-spacing: -1px; }
.label-tirkizna { color: var(--tirkizna); font-weight: 800; letter-spacing: 3px; font-size: 0.75rem; text-transform: uppercase; }
.desc-text { color: #888; line-height: 1.7; max-width: 400px; }

/* --- KARTICE (RACE DETAILS) --- */
.card-box { padding: 45px 35px; background: rgba(255,255,255,0.02); border-radius: 24px; border: 1px solid rgba(255,255,255,0.05); text-align: center; }
.card-box h3 { font-size: 4rem; font-weight: 900; margin: 0; }
.card-box small { font-size: 1.2rem; color: var(--tirkizna); }
.highlight-border { border: 2px solid var(--tirkizna); background: rgba(56, 182, 255, 0.02); }
.line-tirkizna { width: 40px; height: 4px; background: var(--tirkizna); margin: 20px auto; }

/* --- PROJEKTI --- */
.flex-column-gap { display: flex; flex-direction: column; gap: 40px; width: 100%; }
.project-card { width: 100%; padding: 70px 40px; background: rgba(255,255,255,0.02); border-radius: 30px; border: 1px solid rgba(255,255,255,0.05); text-align: center; display: flex; flex-direction: column; align-items: center; }

.project-title-silver { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.1; margin: 20px 0; }
.project-title-silver span { background: linear-gradient(90deg, var(--tirkizna), var(--zelena)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.project-title-green { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.1; margin: 20px 0; }
.project-title-green span { background: linear-gradient(90deg, #38B6FF, #FF66C4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.btn-beast-style { background: var(--zelena); color: #000; padding: 15px 35px; border-radius: 50px; font-weight: 900; letter-spacing: 2px; font-size: 0.9rem; margin-top: 10px; text-transform: uppercase; }
.btn-legacy-beast { background: #fff; color: #000; padding: 15px 35px; border-radius: 50px; font-weight: 900; letter-spacing: 2px; font-size: 0.9rem; text-decoration: none; transition: 0.3s; display: inline-block; margin-top: 10px; text-transform: uppercase; }
.btn-legacy-beast:hover { background: var(--tirkizna); transform: scale(1.05); }

/* --- ORGANIZATOR & PARTNERI --- */
.club-link-box { display: flex; align-items: center; gap: 15px; padding: 15px 25px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; text-decoration: none; color: var(--bijela); font-weight: 700; transition: 0.3s; width: fit-content; }
.club-logo-small { height: 40px; width: auto; }

.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px; align-items: center; }
.partner-item { display: flex; justify-content: center; align-items: center; height: 100px; background: rgba(255, 255, 255, 0.02); border-radius: 16px; padding: 20px; transition: 0.4s ease; border: 1px solid transparent; }
.partner-item img { max-height: 50px; max-width: 100%; filter: grayscale(1) brightness(0.7); transition: 0.4s ease; }
.partner-item:hover img { filter: grayscale(0) brightness(1); transform: scale(1.05); }

/* --- FOOTER REDIZAJN --- */
.footer-main { 
    background: #000; 
    padding: 80px 20px; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}

.footer-grid { 
    display: flex; 
    justify-content: space-between; 
    max-width: 1200px; 
    margin: 0 auto; 
    align-items: flex-start; 
}

.footer-brand { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.footer-logo { 
    height: 50px; 
    width: auto; 
    object-fit: contain; 
}

.social-icons { display: flex; gap: 20px; }
.social-icons a { color: #fff; font-size: 1.5rem; transition: 0.3s; }
.social-icons a:hover { color: var(--tirkizna); }

.footer-contact { text-align: right; }

.footer-contact h4 { 
    color: #fff; 
    font-weight: 900; 
    letter-spacing: 2px; 
    margin-bottom: 15px; 
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer-contact p { 
    color: rgba(255,255,255,0.8); 
    font-size: 1rem; 
    margin-bottom: 8px; 
}

.snj-link { 
    display: inline-block;
    margin-top: 10px;
    color: var(--zelena); 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.snj-link:hover { color: var(--bijela); }

/* --- MOBILNI POPRAVCI --- */
@media (max-width: 1024px) {
    .burger { display: flex; }
    .hide-mobile { display: none !important; }

    .nav-menu { 
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; 
        background: #000; flex-direction: column; justify-content: center; 
        align-items: center; transition: 0.4s; z-index: 9000; 
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 1.8rem; margin: 15px 0; font-weight: 900; }

    .hero-buttons { flex-direction: column; gap: 15px; align-items: center; }
    .btn-primary, .btn-outline { width: 100%; max-width: 280px; margin-left: 0 !important; }
    
    .hero-divider svg { height: 60px; }
    
    .btn-nav-mobile-inside { display: block !important; background: var(--tirkizna); color: #000; padding: 15px 40px; border-radius: 10px; font-weight: 900; margin-top: 25px; text-transform: uppercase; text-decoration: none; }

    .text-left-container { text-align: center; align-items: center; margin-bottom: 40px; }
    .desc-text { margin: 0 auto; }
    .club-link-box { margin: 0 auto; }
    .partners-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
    
    .footer-grid { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 50px; 
    }
    .footer-contact { text-align: center; }
    .social-icons { justify-content: center; }
}

.text-tirkizna { color: var(--tirkizna); }
.text-zelena { color: var(--zelena); }
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 55px; height: 55px; background: var(--tirkizna); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 4000; border: none; color: #000; cursor: pointer; }
.back-to-top.show { opacity: 1; visibility: visible; }