/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1a2238; /* tamno plava */
    --secondary: #e3b448; /* zlatna */
    --accent: #ff6a3d; /* narandžasta za akcente */
    --background: #f7f6f2; /* svetlo bež */
    --card-bg: #fffbe6; /* zlatno-bež za kartice */
    --text: #22223b; /* tamno siva/plava za tekst */
    --success: #4bb543; /* zelena za uspeh */
    --danger: #d7263d; /* crvena za greške */
    --gold: #e3b448; /* zlatna */
    --navy: #1a2238; /* tamno plava */
    --beige: #f7f6f2; /* bež */
    --gold-dark: #b8962e;
    --gold-light: #fff8e1;
    --bg-dark: #111;
    --text-light: #f5f5f5;
    --separator: #333;
}

/* ===== GLOBAL STYLES ===== */
body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #222;
    margin: 0;
    padding: 0;
}

main {
    padding-top: 80px; /* Adjust based on header height */
}

/* ===== ANIMATIONS ===== */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(40, 167, 69, 1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(40, 167, 69, 0.7);
    }
}

/* ===== HEADER & NAVIGATION ===== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.sticky-header.hidden {
    transform: translateY(-100%);
}

/* Top navbar styles */
.navbar-top {
    background-color: #23272b !important; /* Bootstrap bg-dark, ali nijansa svetlija od crne */
    color: #fff !important;
    border-bottom: none !important;
    font-size: 1rem;
}

.navbar-top a.prigovori-link {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 500;
    padding: 0.7rem 1rem;
    transition: color 0.2s;
}

.navbar-top a.prigovori-link:hover,
.navbar-top a.prigovori-link:focus {
    color: #e3b448 !important;
}

/* Main navbar styles */
.navbar {
    background-color: #fff !important;
    border-bottom: 2px solid var(--gold);
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.navbar-nav .nav-link {
    color: var(--navy) !important;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 0.5rem;
    border-radius: 0;
    background: none;
    padding: 0.7rem 1rem;
    font-family: 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link:focus {
    color: var(--gold) !important;
    background: none;
}

/* Logo styling */
.navbar .navbar-brand span {
    color: #111 !important;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: none;
    padding-left: 10px;
}

.navbar .navbar-brand span:hover,
.navbar .navbar-brand span:focus {
    color: #111 !important;
}

/* ===== HERO SECTION ===== */
.hero-full {
    width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
    background-color: #fffbe6;
}

.hero-bg {
    background: linear-gradient(to bottom, #fffbe6 0%, #f7f6f2 60%, #fff 100%);
    overflow: hidden;
    position: relative;
    background-color: #fffbe6;
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100%;
    z-index: 0;
    pointer-events: none;
    background: none;
}

.hero-bg .hero-art {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg .hero-art svg {
    width: 100vw;
    height: 100%;
    display: block;
}

.hero-bg .hero-art .currency {
    position: absolute;
    font-size: 2.2rem;
    font-weight: bold;
    color: #e3b448;
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
}

.hero-bg .row, 
.hero-bg .card {
    position: relative;
    z-index: 1;
}

.hero-bg > * {
    position: relative;
    z-index: 1;
}

.hero-bg .card {
    background: rgba(255,255,255,0.10);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 2;
    margin-left: 50%;
    transform: translateX(-50%);
    width: 520px;
    max-width: 95vw;
}

/* Hero image and circles */
.hero-circle-wrap {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 0;
    margin: 0;
}

.no-shadow {
    box-shadow: none !important;
}

.hero-img-container {
    padding: 0;
    margin: 0;
}

/* Zlatni prsten sa gradientom */
.gold-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    z-index: 1;
    animation: spin 8s linear infinite;
    background: conic-gradient(
        from 0deg,
        #e3b448 0deg 40deg,
        transparent 40deg 180deg,
        #f7e7a0 180deg 220deg,
        transparent 220deg 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    opacity: 0.95;
}

.gold-ring.ring2 {
    width: 460px;
    height: 460px;
    animation: spin 14s linear infinite reverse;
    background: conic-gradient(
        from 90deg,
        #f7e7a0 0deg 20deg,
        transparent 20deg 200deg,
        #e3b448 200deg 240deg,
        transparent 240deg 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent 80%, black 81%);
    mask: radial-gradient(farthest-side, transparent 80%, black 81%);
    opacity: 0.7;
}

/* Hero typography */
.hero-title {
    font-size: 2.3rem;
    letter-spacing: -1px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-title-black {
    color: #222;
    font-weight: bold;
}

.hero-title-gold {
    color: #e3b448;
    font-weight: bold;
}

.hero-typewriter-row {
    gap: 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.hero-typewriter-label {
    font-size: 1.15rem;
    color: #555;
    font-weight: 500;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.hero-typewriter {
    font-size: 1.25rem;
    color: #e3b448;
    font-weight: bold;
    min-width: 120px;
    font-family: 'Segoe UI', Arial, sans-serif;
    opacity: 0;
    transition: opacity 0.2s;
}

.hero-divider {
    width: 100vw;
    height: 60px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    z-index: 2;
    background: transparent;
    pointer-events: none;
}

.hero-divider svg {
    display: block;
    width: 100vw;
    height: 60px;
}

/* ===== CALCULATOR & SPECIAL OFFERS ===== */
.special-offer-animated {
    background: linear-gradient(
        270deg, 
        #e3b448 0%, 
        #ffda7a 30%, 
        #f7f6f2 50%, 
        #e3b448 70%, 
        #ffecd2 100%
        );
    background-size: 800% 800%;
    animation: gradientBG 12s ease infinite;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border: none;
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.special-offer-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: -1px;
    margin-bottom: 0.3rem;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.special-offer-rate {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.special-offer-eur {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.15rem;
}

/* ===== CARDS & TRANSFER SECTIONS ===== */
.card.shadow-sm {
    border: none !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10) !important;
}

.currency-card {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: none;
    margin-bottom: 18px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.currency-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}

.currency-card .card-body {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.currency-card .card-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0;
}

.currency-card .text-right {
    text-align: right;
}

.currency-card .font-weight-bold.text-success {
    color: #4bb543 !important;
}

.currency-card .font-weight-bold.text-danger {
    color: #d7263d !important;
}

/* Transfer cards */
.card-transfers {
    width: 180px;
    height: 180px;
    border-radius: 1rem;
    border: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.card-transfers .card-title {
    font-size: 1.3rem;
    height: 2.6rem;
    line-height: 1.3rem;
}

.card-transfers img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain;
    margin: 0 auto 6px auto !important;
    padding: 6px !important;
    display: block;
    background: none;
    transition: all 0.3s ease;
}

.card-transfers:hover {
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 1rem 2rem rgba(0,0,0,.18) !important;
}

.card-body {
    padding: 0.3rem !important;
}

/* Transfer section background */
.transfer-section {
    background: 
        url("img/patern.jpg") repeat,
        linear-gradient(300deg, #e3b448 0%, #f7f6f2 100%);
    background-blend-mode: soft-light;
    background-size: auto, cover;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: gradientMove 15s ease infinite;
}

/* ===== FLIP CARDS ===== */
.zastoSekcija {
    padding-top: 40px;
}

.flip-card {
    background-color: transparent;
    width: 300px;
    height: 300px;
    perspective: 1000px;
    position: relative;
    z-index: 10;
    margin-top: -100px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #e3b448;
    border-radius: 12px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-color: #111;
    color: #fff;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
}

.flip-front {
    z-index: 2;
}

.flip-back {
    transform: rotateY(180deg);
}

.flip-icon {
    font-size: 3rem;
    color: #e3b448;
    margin-bottom: 15px;
}

.flip-front h3 {
    font-size: 1.4rem;
    color: #e3b448;
}

.flip-back p {
    font-size: 1rem;
    color: #ddd;
    text-align: center;
}

/* ===== GOLD LUXURY BANNER ===== */
.gold-luxury-banner {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

.gold-luxury-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 215, 0, 0.05),
        rgba(255, 215, 0, 0.05) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 0;
    transform: rotate(5deg);
}

.gold-luxury-banner .container {
    position: relative;
    z-index: 1;
}

.gold-luxury-banner .btn-outline-warning {
    border-width: 2px;
    transition: all 0.3s ease;
}

.gold-luxury-banner .btn-outline-warning:hover {
    background-color: #e3b448;
    color: #000;
    border-color: #e3b448;
    transform: scale(1.05);
}

/* ===== BUTTONS ===== */
.btn-gold {
    border: 2px solid #e3b448;
    color: #e3b448;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #e3b448;
    color: #000;
}

/* ===== STEP NUMBERS ===== */
.step-number {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    font-size: 16px !important;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1rem !important;
    flex-shrink: 0 !important;
    border: none !important;
}

/* Western Union - Yellow/Gold */
.step-number.wu {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3) !important;
}

/* Ria Money Transfer - Orange/Red */
.step-number.ria {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%) !important;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3) !important;
}

/* MoneyGram - Red */
.step-number.mg {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3) !important;
}

/* KwikPay - Blue */
.step-number.kwik {
    background: linear-gradient(135deg, #004085 0%, #003366 100%) !important;
    box-shadow: 0 3px 10px rgba(0, 64, 133, 0.3) !important;
}

/* Korona Pay - Red */
.step-number.korona {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3) !important;
}

/* Alta Brzi Kes - Dark Red */
.step-number.alta {
    background: #c82333 !important;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.3) !important;
}

.pulse-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 18px;
    text-decoration: none;
    animation: pulse 2s infinite;
    transition: background-color 0.3s ease;
}

.pulse-button:hover {
    background-color: #218838;
    text-decoration: none;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.85);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* ===== UTILITY CLASSES ===== */
.white-bg-section {
    background: #fff;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    min-height: 1px;
}

.red-section {
    background: linear-gradient(140deg, #ff0000 0%, #f7f6f2 100%);
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
    z-index: 1;
}

.text-gold {
    color: #e3b448;
}

.gold-text {
    color: #e3b448;
    letter-spacing: 1px;
}

.zastoKarica {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer h5, .footer h6 {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .socials a {
    color: var(--gold);
    font-size: 1.2rem;
}

.footer .btn {
    background-color: var(--gold);
    color: var(--bg-dark);
    font-weight: 700;
}

.footer .separator {
    border-color: var(--separator);
    margin: 50px 0;
}

.footer .contact i {
    color: var(--gold);
    margin-right: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    main {
        padding-top: 80px;
    }

    .flip-card {
        margin-top: 0 !important;
        margin-bottom: 20px;
        width: 100% !important;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    table thead th:first-child,
    table tbody td:first-child {
        display: none;
    }

    .kurir-section,
    .loto-section {
        position: relative;
        overflow: hidden;
        margin-bottom: -24px;
    }

    .kurir-section::before,
    .loto-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('img/kurir.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.3;
        z-index: 1;
    }

    .loto-section::before {
        background-image: url('img/loto.png');
    }

    .kurir-section > .row,
    .loto-section > .row {
        position: relative;
        z-index: 2;
    }

    .kurir-section .main-img,
    .loto-section .main-img {
        display: none;
    }
}

@media (max-width: 400px) {
    .card-transfers {
        max-width: 150px;
        height: 150px;
    }

    .card-transfers .card-img-top {
        max-width: 90px;
        max-height: 90px;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .card-transfers .card-title {
        font-size: 1.3rem;
        height: 2.6rem;
        line-height: 1.3rem;
    }
}

/* ===== CURRENCY NOTE STYLES ===== */
.currency-important-note {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #d63384 !important;
    background: linear-gradient(45deg, #fff3cd, #f8d7da);
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #f5c6cb;
    display: block;
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.15);
    margin-top: 0px;
    margin-bottom: 8px;
    width: 100%;
    line-height: 1.5;
    text-align: center;
}

.currency-timestamp {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 8px;
}

.currency-update-info {
    margin-bottom: 15px;
}

@keyframes subtle-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(214, 51, 132, 0.15);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(214, 51, 132, 0.25);
    }
}

@media (max-width: 768px) {
    .currency-important-note {
        font-size: 0.85rem !important;
        padding: 6px 10px;
        line-height: 1.4;
    }
}

