:root {
    --bg-dark: #f0f6ff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(29, 78, 216, 0.15);
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --secondary: #0ea5e9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --gradient: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

#particles-js {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    background: radial-gradient(circle at center, #dbeafe 0%, #eff6ff 100%);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* Navbar logo — svjetliji plavi gradient za tamnu pozadinu */
.navbar .gradient-text {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 18, 35, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(29, 78, 216, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(29, 78, 216, 0.2);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo-img {
    height: 52px;
    width: auto;
    mix-blend-mode: screen;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4));
}

.navbar-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 14px rgba(96, 165, 250, 0.7));
}

.footer-logo-img {
    height: 90px;
    width: auto;
    margin-bottom: 8px;
    opacity: 0.92;
    transition: opacity 0.3s;
}

.footer-logo-img:hover {
    opacity: 1;
}

.logo .logo-accent {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--card-border);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(29, 78, 216, 0.07);
    border-color: var(--primary);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    background: #0a1628;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 22, 40, 0.75) 0%, rgba(10, 22, 40, 0.2) 100%);
    z-index: 0;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.services {
    padding: 100px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card, .glass-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(29, 78, 216, 0.15);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(29, 78, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Service card images */
.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.glass-card:hover .card-image img {
    transform: scale(1.05);
}

/* Image Showcase Section */
.image-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.image-showcase.single {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s, box-shadow 0.4s;
}

.showcase-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(29, 78, 216, 0.15);
}

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

.showcase-item:hover img {
    transform: scale(1.08);
}

.showcase-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.showcase-item:hover .overlay {
    transform: translateY(0);
}

.showcase-item .overlay span {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.contact {
    padding: 100px 10%;
    display: flex;
    justify-content: center;
}

.contact-wrapper {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.contact-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-wrapper p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.submit-btn {
    font-size: 1.1rem;
    padding: 15px;
}

footer {
    padding: 60px 10% 30px;
    border-top: 1px solid var(--card-border);
    background: rgba(29, 78, 216, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(29, 78, 216, 0.1);
}

.reveal-text {
    animation: reveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero {
        text-align: center;
        padding: 0 5%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .cards-container {
        grid-template-columns: 1fr;
    }
    .image-showcase {
        grid-template-columns: 1fr;
    }
    .card-image {
        height: 140px;
    }
}
