/* ========================================
   ASTRALOGIC DIGITAL AGENCY - Custom Styles
   Dark Theme with Brand Colors
======================================== */

:root {
    /* Brand Colors — rebrand 2026 (Brand Blue primary, Cyan accent) */
    --astro-cyan: #0EA5E9;          /* Accent Cyan — hover, badges, ikone */
    --astro-blue: #185FA5;          /* Brand Blue — primarna brand boja */
    /* Legacy promenljive repointed na Brand Blue (bez purple/orange) */
    --astro-purple: #185FA5;
    --astro-orange: #0EA5E9;
    --astro-white: #FFFFFF;

    /* Dark Theme Background */
    --astro-bg-primary: #0F172A;    /* Primary Dark */
    --astro-bg-secondary: #1E293B;
    --astro-bg-tertiary: #334155;

    /* Text Colors */
    --astro-text-primary: #F8FAFC;  /* Surface Light za tekst na tamnom */
    --astro-text-secondary: #CBD5E1;
    --astro-text-muted: #94A3B8;    /* Muted Text — posvetljeno radi WCAG AA kontrasta na tamnoj podlozi */

    /* Gradients — Brand Blue ↔ Accent Cyan */
    --astro-gradient-primary: linear-gradient(135deg, var(--astro-blue) 0%, var(--astro-cyan) 100%);
    --astro-gradient-secondary: linear-gradient(135deg, var(--astro-cyan) 0%, var(--astro-blue) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(14, 165, 233, 0.1);
    --shadow-md: 0 4px 16px rgba(14, 165, 233, 0.2);
    --shadow-lg: 0 8px 32px rgba(14, 165, 233, 0.3);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.4);
}

/* ========================================
   Base Styles
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Inter Fallback', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--astro-bg-primary);
    color: var(--astro-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   Typography
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', 'DM Sans Fallback', 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Kod / tehnički tekst — JetBrains Mono */
code, pre, kbd, samp, .mono {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

h1 {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: var(--astro-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--astro-text-primary);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--astro-cyan);
}

p {
    color: var(--astro-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ========================================
   Navigation
======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 5%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--astro-text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--astro-gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--astro-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--astro-cyan);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ========================================
   Buttons
======================================== */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--astro-gradient-primary);
    color: var(--astro-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--astro-cyan);
    border: 2px solid var(--astro-cyan);
}

.btn-secondary:hover {
    background: var(--astro-cyan);
    color: var(--astro-white);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Hero Section
======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(24, 95, 165, 0.1) 0%, transparent 70%);
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, 5%) rotate(5deg); }
    50% { transform: translate(0, 10%) rotate(10deg); }
    75% { transform: translate(-5%, 5%) rotate(5deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--astro-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Hero Slider Styles
======================================== */

.hero-slider {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ken Burns zoom effect keyframes */
@keyframes kenBurns {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 110%;
    }
}

/* Individual slide backgrounds — mobile-first (load -m.webp by default) */
.hero-slide:nth-child(1) { background-image: url('../images/hero1-m.webp'); }
.hero-slide:nth-child(2) { background-image: url('../images/hero2-m.webp'); }
.hero-slide:nth-child(3) { background-image: url('../images/hero3-m.webp'); }

@media (min-width: 768px) {
    .hero-slide:nth-child(1) { background-image: url('../images/hero1.webp'); }
    .hero-slide:nth-child(2) { background-image: url('../images/hero2.webp'); }
    .hero-slide:nth-child(3) { background-image: url('../images/hero3.webp'); }
}

/* Dark overlay for text readability */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(15, 23, 42, 0.75) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: 1;
}

/* Animated gradient overlay */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(14, 165, 233, 0.15) 0%,
        transparent 50%
    );
    z-index: 1;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(10%, 10%) scale(1.1);
    }
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    animation: kenBurns 8s ease-out forwards;
}

.hero-slide .hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-slide .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-slide.active .hero-title {
    animation: fadeInUp 0.8s ease;
}

.hero-slide.active .hero-description {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-slide.active .hero-cta {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Performance (mobile): bez skupe background-size animacije i bez ulazne animacije
   LCP teksta - prvi prikaz je odmah vidljiv. Desktop zadržava efekte. */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
    .hero-slide.active,
    .hero-title,
    .hero-slide.active .hero-title,
    .hero-slide.active .hero-description,
    .hero-slide.active .hero-cta {
        animation: none;
    }
    .hero-slide::after { animation: none; }
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(14, 165, 233, 0.8);
    color: var(--astro-cyan);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-btn:hover {
    background: rgba(14, 165, 233, 0.4);
    border-color: var(--astro-cyan);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.indicator::before {
    content: '';
    position: absolute;
    inset: 6px;
    box-sizing: border-box;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(14, 165, 233, 0.7);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.indicator:hover::before {
    background: rgba(14, 165, 233, 0.6);
    transform: scale(1.2);
}

.indicator.active::before {
    background: var(--astro-cyan);
    border-color: var(--astro-cyan);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
    inset: 6px -6px;
    border-radius: 6px;
}

.indicator.active {
    width: 36px;
}

/* ========================================
   Services Section
======================================== */

.services {
    padding: var(--spacing-xl) 5%;
    background-image: url('../images/services-m.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

@media (min-width: 768px) {
    .services { background-image: url('../images/services.webp'); }
}

/* Dark overlay for services section */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(30, 41, 59, 0.90) 50%,
        rgba(15, 23, 42, 0.92) 100%
    );
    z-index: 1;
}

/* Ensure content appears above overlay */
.services .container {
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    color: var(--astro-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: rgba(15, 23, 42, 0.95);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--astro-gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.25), 0 0 30px rgba(14, 165, 233, 0.15);
    border-color: var(--astro-cyan);
    background: rgba(15, 23, 42, 0.98);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--astro-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--astro-text-secondary);
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--astro-text-secondary);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--astro-cyan);
    font-weight: bold;
}

.service-card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.875rem 2rem;
}

/* ========================================
   About Section
======================================== */

.about {
    padding: var(--spacing-xl) 5%;
    background: var(--astro-bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--astro-bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--astro-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--astro-text-secondary);
    margin-top: 0.5rem;
}

/* ========================================
   Contact Section
======================================== */

.contact {
    padding: var(--spacing-xl) 5%;
    background: var(--astro-bg-secondary);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--astro-bg-primary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--astro-text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--astro-bg-secondary);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-sm);
    color: var(--astro-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--astro-cyan);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.captcha-question {
    color: var(--astro-cyan);
    font-weight: 600;
}

.captcha-input {
    width: 100px !important;
}

/* ========================================
   Footer
======================================== */

.footer {
    position: relative;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.92) 100%),
        url('../images/footer-m.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    padding: 3rem 5% 1rem;
    color: var(--astro-text-primary, #f8fafc);
}

@media (min-width: 768px) {
    .footer {
        background-image:
            linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.92) 100%),
            url('../images/footer.webp');
    }
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(24, 95, 165, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content,
.footer-bottom {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer {
        background-attachment: scroll;
    }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--astro-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--astro-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
    color: var(--astro-text-muted);
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    /* Hero Slider Tablet Adjustments */
    .hero-slide .hero-content {
        max-width: 700px;
    }

    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Disable parallax effect on tablets and mobile */
    .services {
        background-attachment: scroll;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    /* Hero Slider Mobile Adjustments */
    .slider-controls {
        padding: 0 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-indicators {
        bottom: 2rem;
        gap: 0.6rem;
    }

    .indicator.active {
        width: 32px;
    }

    .hero-slide {
        padding: 6rem 5% 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Improve background image visibility on mobile */
    .hero-slide::before {
        background: linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.9) 0%,
            rgba(15, 23, 42, 0.85) 50%,
            rgba(15, 23, 42, 0.9) 100%
        );
    }
}

/* ========================================
   Utility Classes
======================================== */

.text-gradient {
    background: var(--astro-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Current Date & Time Display */

.datetime-display {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(24, 95, 165, 0.15) 100%);
    padding: 1.5rem 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: var(--shadow-md);
}

.datetime-display i {
    color: var(--astro-cyan);
    font-size: 1.5rem;
}

.datetime-display span {
    color: var(--astro-text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* 7-Day Forecast */

.forecast-card {
    background: var(--astro-bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(14, 165, 233, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.forecast-card:hover {
    border-color: var(--astro-cyan);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.forecast-card.today {
    border-color: var(--astro-cyan);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(24, 95, 165, 0.15) 100%);
}

.forecast-date {
    color: var(--astro-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.forecast-card.today .forecast-date {
    color: var(--astro-cyan);
}

.forecast-icon {
    font-size: 2.5rem;
    color: var(--astro-cyan);
    margin: 1rem 0;
}

.forecast-temps {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 0.5rem;
}

.forecast-temp-max {
    color: var(--astro-text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.forecast-temp-min {
    color: var(--astro-text-muted);
    font-size: 1.1rem;
}

.forecast-description {
    color: var(--astro-text-secondary);
    font-size: 0.85rem;
}

.forecast-precipitation {
    color: var(--astro-cyan);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .datetime-display {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 2rem;
    }

    .datetime-display span {
        font-size: 1.1rem;
    }

    .datetime-display i {
        font-size: 1.25rem;
    }

    .forecast-icon {
        font-size: 2rem;
    }

    .forecast-temp-max {
        font-size: 1.1rem;
    }
}

/* ========================================
   FOOTER BRAND COLUMN (logo below text)
======================================== */
.footer-section-brand p {
    margin-bottom: 1rem;
}

.footer-logo {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
    margin-top: 0.5rem;
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.25));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid rgba(24, 95, 165, 0.3);
    color: var(--astro-text-secondary);
    font-size: 1rem;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
    color: #fff;
    border-color: var(--astro-cyan);
    background: var(--astro-cyan);
    transform: translateY(-3px);
}

/* Back-to-top button (rendered site-wide in footer.php) */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--astro-gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

#backToTop.visible { opacity: 1; visibility: visible; }

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

@media (max-width: 768px) {
    #backToTop { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .footer-logo { width: 120px; }
}

/* ========================================
   CTA BANNER (Spremni da Transformišete...)
   Deli istu pozadinu kao footer (background-attachment: fixed)
   pa vizuelno teku kao jedna slika
======================================== */
.cta-banner {
    min-height: 60vh;
    position: relative;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%),
        url('../images/footer-m.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-banner {
        background-image:
            linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%),
            url('../images/footer.webp');
    }
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(24, 95, 165, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.cta-banner .hero-container {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    color: var(--astro-text-primary, #f8fafc) !important;
}

@media (max-width: 768px) {
    .cta-banner {
        background-attachment: scroll;
    }
}

/* ========================================
   LEGAL PAGES (Privacy / Terms / Cookies)
======================================== */
.legal-page {
    min-height: 70vh;
    padding: 8rem 5% 4rem;
    background: var(--astro-bg-primary);
    position: relative;
}

.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 350px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}

.legal-header h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.legal-meta {
    color: var(--astro-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.legal-content {
    background: rgba(30, 41, 59, 0.4);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    line-height: 1.8;
}

.legal-intro {
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(24, 95, 165, 0.06));
    border-left: 3px solid var(--astro-cyan);
    border-radius: 0.5rem;
    margin-bottom: 2.5rem;
    color: var(--astro-text-secondary);
}

.legal-content h2 {
    color: var(--astro-text-primary);
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.15);
}

.legal-content h2:first-of-type { border-top: none; padding-top: 0; }

.legal-content h3 {
    color: var(--astro-cyan);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    color: var(--astro-text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.legal-content ul {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--astro-text-secondary);
}

.legal-content ul li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.legal-content ul li i {
    color: var(--astro-cyan);
    margin-right: 0.4rem;
    width: 1.2em;
}

.legal-content strong {
    color: var(--astro-text-primary);
    font-weight: 600;
}

.legal-content a {
    color: var(--astro-cyan);
    text-decoration: none;
    border-bottom: 1px dotted rgba(14, 165, 233, 0.4);
    transition: all 0.2s ease;
}

.legal-content a:hover {
    color: var(--astro-purple);
    border-bottom-color: var(--astro-purple);
}

.legal-content code {
    background: rgba(14, 165, 233, 0.1);
    color: var(--astro-cyan);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.5rem;
    overflow: hidden;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--astro-text-secondary);
}

.legal-table th {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(24, 95, 165, 0.12));
    color: var(--astro-text-primary);
    font-weight: 600;
}

.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover td { background: rgba(14, 165, 233, 0.04); }

@media (max-width: 768px) {
    .legal-page { padding: 6rem 4% 3rem; }
    .legal-content { padding: 1.5rem; }
    .legal-table { font-size: 0.8rem; }
    .legal-table th, .legal-table td { padding: 0.6rem 0.5rem; }
}

/* ========================================
   FOOTER LEGAL LINKS
======================================== */
.footer-legal-links {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--astro-text-muted);
}

.footer-legal-links a {
    color: var(--astro-text-muted);
    text-decoration: none;
    margin: 0 0.25rem;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--astro-cyan);
}

/* "Cookie settings" control rendered as a link inside the legal row */
.footer-cookie-settings {
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0.25rem;
    font: inherit;
    cursor: pointer;
    color: var(--astro-text-muted);
    transition: color 0.2s ease;
}

.footer-cookie-settings:hover {
    color: var(--astro-cyan);
}

/* ========================================
   COOKIE BANNER
======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 5%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-icon {
    font-size: 1.8rem;
    color: var(--astro-cyan);
    flex-shrink: 0;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    color: var(--astro-text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.cookie-banner-text strong {
    color: var(--astro-text-primary);
}

.cookie-banner-text a {
    color: var(--astro-cyan);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cookie-btn-primary {
    background: var(--astro-gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.cookie-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.45);
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--astro-text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--astro-text-primary);
    border-color: rgba(148, 163, 184, 0.5);
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 1rem 4%;
    }
    .cookie-banner-actions { width: 100%; justify-content: center; }
    .cookie-btn { flex: 1; max-width: 180px; }
}

/* ========================================
   FAQ SECTION
======================================== */
.faq-section {
    padding: var(--spacing-xl) 5%;
    background: var(--astro-bg-secondary);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(24, 95, 165, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.faq-section .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

.faq-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--astro-text-primary);
    font-size: 1.05rem;
    line-height: 1.5;
    list-style: none;
    transition: color 0.2s ease;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '\f067'; /* fa-plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--astro-cyan);
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, content 0.3s ease;
}

.faq-item[open] summary::after {
    content: '\f068'; /* fa-minus */
    transform: rotate(180deg);
}

.faq-item summary:hover {
    color: var(--astro-cyan);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--astro-text-secondary);
    line-height: 1.75;
    border-top: 1px dashed rgba(148, 163, 184, 0.15);
    margin-top: -0.25rem;
    padding-top: 1rem;
    animation: fadeInDown 0.3s ease;
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
}

.faq-answer strong {
    color: var(--astro-text-primary);
}

.faq-answer a {
    color: var(--astro-cyan);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.faq-answer a:hover { color: var(--astro-purple); }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .faq-item summary { font-size: 0.95rem; padding: 1rem 1.1rem; }
    .faq-answer { padding: 0.9rem 1.1rem 1.1rem; }
}

/* ========================================
   UTILITY CLASSES (replace repeated inline styles)
======================================== */
.contact-link {
    color: var(--astro-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-link:hover { color: var(--astro-cyan); }

.service-detail-subtitle {
    color: var(--astro-text-secondary);
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.service-feature-heading {
    color: var(--astro-cyan);
    margin-bottom: 1.5rem;
}

.cta-h2-on-banner {
    color: var(--astro-text-primary);
}

.hero-description-narrow {
    max-width: 700px;
    margin: 0 auto;
}

.about-image-styled {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3);
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonials {
    padding: var(--spacing-xl) 5%;
    background: var(--astro-bg-primary);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(14, 165, 233, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(24, 95, 165, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.testimonials .container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    position: relative;
    background: var(--astro-bg-secondary);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    padding: 2.5rem 2rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--astro-gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 12px 36px rgba(14, 165, 233, 0.18);
}

.testimonial-card:hover::before { transform: scaleX(1); }

.testimonial-quote-mark {
    font-size: 2.5rem;
    color: var(--astro-cyan);
    opacity: 0.3;
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-text {
    color: var(--astro-text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    font-style: italic;
    margin: 0 0 1.75rem;
    border: none;
    padding: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--astro-gradient-primary);
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-name {
    color: var(--astro-text-primary);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.testimonial-role {
    color: var(--astro-text-muted);
    font-size: 0.85rem;
    line-height: 1.3;
}

.testimonial-rating {
    display: flex;
    gap: 0.2rem;
    color: var(--astro-orange);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .testimonial-card { padding: 2rem 1.5rem; }
}

/* ========================================
   TEAM SECTION
======================================== */
.team-section {
    padding: var(--spacing-xl) 5%;
    background: var(--astro-bg-primary);
    position: relative;
}

.team-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--astro-bg-secondary);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--astro-gradient-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 14px 36px rgba(14, 165, 233, 0.2);
}

.team-card:hover::before { transform: scaleX(1); }

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--astro-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
}

.team-name {
    color: var(--astro-text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    background: none;
    -webkit-text-fill-color: var(--astro-text-primary);
}

.team-role {
    color: var(--astro-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-role i {
    margin-right: 0.4rem;
    opacity: 0.85;
}

.team-bio {
    color: var(--astro-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.5rem 0 0;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.15);
}

.team-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
    color: var(--astro-cyan);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.team-socials a:hover {
    background: var(--astro-gradient-primary);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

@media (max-width: 768px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-bio { min-height: auto; }
}

/* Team avatar — slika umesto ikone */
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Veće avatara kad je slika (umesto ikone) */
.team-grid-5 .team-avatar {
    width: 120px;
    height: 120px;
    padding: 0;
    background: var(--astro-gradient-primary);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
    overflow: hidden;
    border: 3px solid rgba(14, 165, 233, 0.3);
}

/* Layout: 5 kartica u jednom redu na desktop-u */
.team-grid-5 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1500px;
    margin: 3rem auto 0;
}

@media (min-width: 600px) {
    .team-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .team-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .team-grid-5 {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
    .team-grid-5 .team-card { padding: 2rem 1.25rem 1.75rem; }
    .team-grid-5 .team-name { font-size: 1.15rem; }
    .team-grid-5 .team-role { font-size: 0.85rem; }
    .team-grid-5 .team-bio { font-size: 0.88rem; line-height: 1.6; }
    .team-grid-5 .team-avatar { width: 100px; height: 100px; }
}

/* ========================================
   Rebrand 2026 — Trust bar (social proof)
======================================== */
.trust-bar {
    padding: 2.5rem 5%;
    background: var(--astro-bg-secondary);
    border-top: 1px solid rgba(24, 95, 165, 0.15);
    border-bottom: 1px solid rgba(24, 95, 165, 0.15);
}

.trust-bar .container { text-align: center; }

.trust-bar-label {
    font-size: 0.95rem;
    color: var(--astro-text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2.5rem;
}

.trust-logo-placeholder {
    font-family: 'DM Sans', 'DM Sans Fallback', 'Inter', 'Inter Fallback', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--astro-text-secondary);
    opacity: 0.6;
    padding: 0.5rem 1.25rem;
    border: 1px dashed rgba(203, 213, 225, 0.3);
    border-radius: var(--radius-sm);
    transition: opacity 0.3s ease, color 0.3s ease;
}

.trust-logo-placeholder:hover { opacity: 1; color: var(--astro-cyan); }

/* Real client logo chips — white background so any logo (dark or light) reads
   on the dark trust bar. */
.trust-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0.55rem 1.25rem;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trust-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.trust-logo img {
    max-height: 40px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    display: block;
}

.trust-clutch {
    font-family: 'DM Sans', 'DM Sans Fallback', 'Inter', 'Inter Fallback', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #17313e;
    text-decoration: none;
    gap: 0.45rem;
}

.trust-clutch i { color: #ff3d2e; }

/* ========================================
   Rebrand 2026 — About image placeholder
   (privremeni geometrijski vizual umesto AI slike)
======================================== */
.about-image-placeholder {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--astro-text-primary);
    background:
        linear-gradient(135deg, rgba(24, 95, 165, 0.18) 0%, rgba(14, 165, 233, 0.10) 100%),
        var(--astro-bg-secondary);
    background-image:
        linear-gradient(rgba(24, 95, 165, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 95, 165, 0.12) 1px, transparent 1px),
        linear-gradient(135deg, rgba(24, 95, 165, 0.18) 0%, rgba(14, 165, 233, 0.10) 100%);
    background-size: 32px 32px, 32px 32px, 100% 100%;
    border: 1px solid rgba(24, 95, 165, 0.25);
    box-shadow: var(--shadow-lg);
}

.about-placeholder-mark {
    font-family: 'DM Sans', 'DM Sans Fallback', 'Inter', 'Inter Fallback', sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 1;
    background: var(--astro-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-placeholder-note {
    font-size: 0.95rem;
    color: var(--astro-text-muted);
    letter-spacing: 0.03em;
}

/* About slika — geometrijski vizual sa brand overlay-om */
.about-image-frame {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(24, 95, 165, 0.25);
    box-shadow: var(--shadow-lg);
}
.about-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24, 95, 165, 0.35) 0%, rgba(14, 165, 233, 0.12) 60%, transparent 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}
.about-image-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Team avatar — inicijali placeholder (privremeno, dok prave fotke ne stignu) */
.team-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', 'DM Sans Fallback', 'Inter', 'Inter Fallback', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--astro-white);
    line-height: 1;
    user-select: none;
}

/* ========================================
   Scene backgrounds — fiksna slika + tamni overlay
   (tekst kliza preko slike, kao sekcije na index-u)
======================================== */
.scene {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.scene::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.93) 0%,
        rgba(30, 41, 59, 0.90) 50%,
        rgba(15, 23, 42, 0.93) 100%);
}
.scene > * { position: relative; z-index: 1; }

.scene-1 { background-image: url('../images/bg-1-m.webp'); }
.scene-2 { background-image: url('../images/bg-2-m.webp'); }
.scene-3 { background-image: url('../images/bg-3-m.webp'); }
.scene-4 { background-image: url('../images/bg-4-m.webp'); }
.scene-5 { background-image: url('../images/bg-5-m.webp'); }
.scene-6 { background-image: url('../images/bg-6-m.webp'); }

@media (min-width: 768px) {
    .scene-1 { background-image: url('../images/bg-1.webp'); }
    .scene-2 { background-image: url('../images/bg-2.webp'); }
    .scene-3 { background-image: url('../images/bg-3.webp'); }
    .scene-4 { background-image: url('../images/bg-4.webp'); }
    .scene-5 { background-image: url('../images/bg-5.webp'); }
    .scene-6 { background-image: url('../images/bg-6.webp'); }
}

/* iOS ne podržava dobro fixed pozadinu — scroll umesto fixed na dodir uređajima */
@media (hover: none) {
    .scene { background-attachment: scroll; }
}

/* ========================================
   Pristupačnost (a11y)
======================================== */
/* Skip-to-content link (vidljiv samo na fokus tastature) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--astro-blue);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
    outline: 3px solid var(--astro-cyan);
    outline-offset: 2px;
}

/* Vidljiv focus indikator za tastaturu na svim interaktivnim elementima */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-link:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--astro-cyan);
    outline-offset: 2px;
}

/* Poštuj korisnikovu želju za manje pokreta */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .scene,
    .services,
    .footer,
    [style*="background-attachment: fixed"],
    [style*="background-attachment:fixed"] {
        background-attachment: scroll !important;
    }
}

/* Tekst samo za čitače ekrana */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
