:root {
    --color-bg: #ffffff;
    /* White */
    --color-bg-darker: #f8fafc;
    /* Slate-50 */
    --color-text: #1e293b;
    /* Slate-900 */
    --color-text-muted: #475569;
    /* Slate-600 */
    --color-primary: #2563eb;
    /* Royal Blue */
    --color-accent: #06b6d4;
    /* Cyan */
    --color-surface: rgba(255, 255, 255, 0.9);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.text-center {
    text-align: center;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary,
.btn-hero,
.btn-submit {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover,
.btn-hero:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background 0.3s;
    background: transparent;
    /* Transparent mainly */
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

header.scrolled .nav-links a:not(.btn-primary) {
    color: var(--color-text);
    /* Black/Dark on white background */
}

header.scrolled .nav-links a.active {
    color: var(--color-primary);
    /* Blue for active link on white background */
    text-shadow: none;
}

/* Apply the same filter logic as hero logo to handle white text in logo image */
header.scrolled .logo img {
    filter: invert(1) hue-rotate(180deg);
    /* Logo size should remain consistent */
}


/* Gallery Section - Minimalist Masonry */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    opacity: 0.9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    /* Ensure size matches previous look or slightly larger */
    transform: translateX(-20%);
    /* Shifted left by 20% */
}

.logo img {
    height: 144px;
    /* Reduced by 10% from 160px */
    width: auto;
    object-fit: contain;
}

.dot {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn-primary),
.dropbtn {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0f172a;
    /* Match scrolled header */
    min-width: 220px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    /* Position below the button */
    left: 0;
    transform: none;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 1rem !important;
    /* Smaller than main nav */
    font-weight: 500 !important;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
}

.nav-links a:not(.btn-primary):hover,
.nav-links a.active,
.dropdown:hover .dropbtn {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Scrolled Header Overrides for Dropdown */
header.scrolled .dropdown-content {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

header.scrolled .dropdown-content a {
    color: var(--color-text);
}

header.scrolled .dropdown-content a:hover {
    background-color: var(--color-bg-darker);
    color: var(--color-primary);
}

header.scrolled .dropbtn {
    color: var(--color-text);
}

header.scrolled .dropdown:hover .dropbtn {
    text-shadow: none;
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 65vh;
    /* Reduced height by ~20% from 80vh */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* padding-top removed to balance top/bottom spacing since flex centers content */
    color: #fff;
    /* White text for hero */
}

/* Subpage Hero Section (Half-height) */
.hero-subpage {
    min-height: 35vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darker overlay */
    z-index: 1;
}

/* Reduced padding specifically for intro section */
/* Reduced padding specifically for intro section */
.section-padding.intro-section {
    padding: 20px 0;
    /* Reduced even further as requested */
}

.hero-content h1 {
    font-size: 5rem;
    /* Reverted to original */
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
    /* Ensure white */
}

.hero-subtitle {
    font-size: 2rem;
    /* Reverted to original */
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
}

.bg-white {
    background-color: #ffffff;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Intro Section Split Layout */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image {
    display: flex;
    justify-content: center;
    /* Center the smaller image in its column */
}

.intro-image img {
    width: 80%;
    /* Reduced size by ~20% */
    border-radius: 20px;
    mix-blend-mode: multiply;
    /* Makes white background transparent on darker bg */
    display: block;
    /* Removes potential inline-block spacing */
}

.intro-content {
    text-align: left;
    /* Left align text */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align button to left */
}

@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .intro-content {
        text-align: center;
        align-items: center;
    }

    .intro-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.nav-socials {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 0.5rem;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white !important;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-shadow: none !important;
}

.social-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
    color: white !important;
}

.social-icon-btn i {
    width: 20px;
    height: 20px;
}

/* Keep Lucide icons their natural size, don't force fill so we keep the true shape */
.social-icon-btn i[data-lucide="facebook"],
.social-icon-btn i[data-lucide="instagram"],
.social-icon-btn svg {
    display: inline-block;
}

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-lg {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.btn-service {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-service:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.info-item svg {
    color: var(--color-primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.info-item a,
.info-item span {
    color: var(--color-text-muted);
}

.contact-form {
    padding: 2.5rem;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

input,
select,
textarea {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px;
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
}

/* Reviews Section */
.reviews-carousel {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.review-card {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    text-align: center;
}

.review-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.review-card.slide-out {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-40px);
    z-index: 1;
}


.stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 1.5rem;
}

.star.filled {
    color: #fbbf24;
    fill: #fbbf24;
    width: 24px;
    height: 24px;
}

.review-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.review-author {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.05rem;
}

.carousel-controls {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot:hover {
    background: rgba(0, 0, 0, 0.3);
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .reviews-carousel {
        padding: 2rem;
    }

    .review-text {
        font-size: 1.1rem;
    }
}

/* Footer */
footer {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.gdpr-link {
    display: inline-block;
    margin-top: 0.5rem;
    text-decoration: underline;
    opacity: 0.7;
}

.gdpr-link:hover {
    opacity: 1;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
        /* Radically reduced padding for mobile */
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .logo {
        transform: translateX(-10px);
    }

    .logo img {
        height: 84px;
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-toggle i,
    .mobile-toggle svg {
        color: #ffffff !important;
    }

    header.scrolled .mobile-toggle i,
    header.scrolled .mobile-toggle svg {
        color: var(--color-text) !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-bg-darker);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        /* Force left alignment of children (fixes icons & contact) */
        padding: 5rem 2rem 2rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        gap: 15px;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links a:not(.btn-primary):not(.social-icon-btn),
    .dropbtn {
        color: var(--color-text) !important;
        text-align: left;
        padding-left: 0;
        /* Ensure no left padding pushes it right */
        width: 100%;
    }

    .nav-links a.active {
        color: var(--color-primary) !important;
    }

    .nav-links .social-icon-btn {
        color: white !important;
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px;
        padding: 0;
    }

    .nav-socials {
        display: flex;
        gap: 10px;
        width: 100%;
        padding-left: 0;
        margin-left: 0;
    }

    .nav-links a.btn-primary {
        background: transparent !important;
        background-image: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        font-size: 1.2rem;
        display: block;
        text-align: left;
    }

    /* Dropdown inside mobile menu */
    .dropdown {
        width: 100%;
        text-align: left;
    }

    .dropdown:hover .dropdown-content {
        display: none !important;
        /* Disable desktop hover behavior on mobile entirely */
    }

    .dropdown:hover .dropdown-content.show {
        display: block !important;
    }

    .dropbtn {
        padding-left: 0;
        /* Remove leading padding on dropdown button */
    }

    /* Keep roletka expanded staticky */
    .dropdown-content {
        position: static;
        display: none;
        /* Default hidden for JS */
        background: transparent;
        box-shadow: none;
        padding: 0;
        /* Align left */
        min-width: 100%;
        border: none !important;
    }

    .dropdown-content.show {
        display: block;
        /* Class for JS toggle */
    }

    .dropdown-content a {
        color: var(--color-text-muted) !important;
        text-align: left;
        padding: 8px 0;
    }

    .dropdown-content a:hover {
        background-color: transparent !important;
        color: var(--color-primary) !important;
    }

    header.scrolled .dropdown-content {
        background-color: transparent;
        border: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    /* Tighter Grids */
    .services-grid,
    .features-grid,
    .contact-wrapper {
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* The exception: Keep Gallery side by side */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .gallery-item {
        aspect-ratio: 1;
    }

    /* Subpage fixes */
    .hero-subpage {
        min-height: 35vh;
    }

    .hero-subpage .hero-content {
        padding-top: 60px;
    }

    .service-row {
        gap: 1.5rem;
        padding: 0 15px;
        /* Stop text touching the borders on subpages */
    }
}