* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c41e3a;
    --primary-light: #d94454;
    --primary-dark: #a01729;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --surface-color: #ffffff;
    --surface-muted: #f8f9fa;
    --surface-elevated: #ffffff;
    --border-color: #ecf0f1;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(196, 30, 58, 0.16);
    --transition: all 0.3s ease;
}

body.dark-mode {
    --text-dark: #f8fafc;
    --text-light: #cbd5e1;
    --bg-white: #0f172a;
    --bg-light: #111827;
    --surface-color: #172033;
    --surface-muted: #1e293b;
    --surface-elevated: #243244;
    --border-color: #334155;
    --shadow-color: rgba(2, 8, 23, 0.45);
    --shadow-strong: rgba(2, 8, 23, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: -14px 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.logo p {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navigation a:hover {
    color: var(--primary-color);
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navigation a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    margin-left: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--surface-color);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

body.dark-mode .header,
body.dark-mode .hero,
body.dark-mode .stats,
body.dark-mode .pricing-section,
body.dark-mode .catalog,
body.dark-mode .about,
body.dark-mode .contact,
body.dark-mode .footer,
body.dark-mode .stat-item,
body.dark-mode .pricing-card,
body.dark-mode .filter-btn,
body.dark-mode .house-card,
body.dark-mode .house-image,
body.dark-mode .footer-section,
body.dark-mode .contact-method,
body.dark-mode .partner-item,
body.dark-mode .catalog-grid .house-card,
body.dark-mode .construction-card,
body.dark-mode .construction-section {
    background-color: var(--surface-color);
    color: var(--text-dark);
}

body.dark-mode .header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px var(--shadow-color);
}

body.dark-mode .header-content {
    background-color: var(--bg-light);
}

body.dark-mode .logo,
body.dark-mode .logo a {
    background: transparent;
}

body.dark-mode .site-logo {
    background-color: var(--bg-light);
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

body.dark-mode .hero {
    background-image: linear-gradient(135deg, rgba(12, 18, 28, 0.6), rgba(12, 18, 28, 0.4)), url('../pocetna%20slika/prva%20slika.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.dark-mode .stat-item,
body.dark-mode .pricing-card,
body.dark-mode .filter-btn,
body.dark-mode .house-card,
body.dark-mode .contact-method,
body.dark-mode .partner-item,
body.dark-mode .construction-card,
body.dark-mode .construction-section {
    background-color: var(--surface-elevated);
    border-color: var(--border-color);
}

body.dark-mode .house-card,
body.dark-mode .catalog-grid .house-card,
body.dark-mode .house-info,
body.dark-mode .house-image,
body.dark-mode .pricing-card {
    background-color: var(--surface-elevated) !important;
    box-shadow: 0 5px 15px var(--shadow-color);
    border-color: var(--border-color);
}

body.dark-mode .pricing-card {
    background: linear-gradient(135deg, var(--surface-elevated) 0%, var(--surface-muted) 100%) !important;
}

body.dark-mode .house-image {
    background: linear-gradient(135deg, var(--surface-muted) 0%, var(--surface-color) 100%) !important;
}

body.dark-mode .house-card {
    border: 1px solid var(--border-color);
    overflow: hidden;
}

body.dark-mode .hero p,
body.dark-mode .section-header p,
body.dark-mode .price-desc,
body.dark-mode .stat-label,
body.dark-mode .house-info,
body.dark-mode .house-name,
body.dark-mode .detail-item .detail-label,
body.dark-mode .footer-section p,
body.dark-mode .footer-section li a,
body.dark-mode .partners h3 {
    color: var(--text-light);
}

body.dark-mode .navigation a,
body.dark-mode .logo p,
body.dark-mode .logo h1,
body.dark-mode .footer-section h4,
body.dark-mode .footer-bottom p,
body.dark-mode .contact-method a {
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 20px;
    text-align: center;
    border-radius: 10px;
    background-image: linear-gradient(135deg, rgba(12, 18, 28, 0.55), rgba(12, 18, 28, 0.35)), url('../pocetna%20slika/prva%20slika.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.12), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Stats Section */
.stats {
    background-color: var(--bg-light);
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--surface-elevated);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 20px;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: linear-gradient(135deg, var(--surface-elevated) 0%, var(--surface-muted) 100%);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.2);
}

.house-card {
    position: relative;
    border: 1px solid transparent;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface-elevated) 0%, var(--surface-muted) 100%);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
}

.house-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
}

.house-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.2);
}

.house-card:hover::after {
    opacity: 1;
}

.price-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.price-range {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Catalog Section */
.catalog {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.house-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: pointer;
}

.house-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--surface-muted) 0%, var(--surface-elevated) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.house-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.construction-time {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.house-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, var(--primary-color) 50%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.house-card:hover .house-image::before {
    opacity: 0.1;
}

.house-info {
    padding: 1.5rem;
}

.house-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.house-category {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.house-details {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.detail-item {
    text-align: center;
    flex: 1;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
}

/* About Section */
.about {
    background-color: white;
    padding: 80px 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-list {
    list-style: none;
}

.about-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.about-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
    background-image: url('../pocetna%20slika/slika%20za%20veliki%20div.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-method {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-method:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.2);
}

.contact-method i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-method h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-method a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Partners */
.partners {
    background-color: var(--bg-light);
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
}

.partners h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    align-items: center;
}

.partner-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.partner-item img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.9;
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Construction Page */
.construction-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.construction-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.construction-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.construction-intro {
    padding: 60px 20px 40px;
    background-color: var(--bg-light);
}

.construction-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
}

.construction-grid-section {
    padding: 20px 20px 60px;
    background-color: var(--bg-light);
}

.construction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.construction-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
}

.construction-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.construction-card-content {
    padding: 1.25rem;
}

.construction-card-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.construction-card-content p {
    color: var(--text-light);
    line-height: 1.7;
}

.construction-details {
    padding: 20px 20px 80px;
    background-color: white;
}

.construction-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.construction-section h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.construction-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
    padding-left: 0;
}

.construction-list li {
    color: var(--text-dark);
    line-height: 1.7;
    padding-left: 1.2rem;
    position: relative;
}

.construction-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    body.dark-mode .navigation {
    background-color: #1a1a2e;
}

    body.dark-mode .navigation a {
        color: #ffffff;
    }

    .navigation.active {
        display: flex;
    }

    .navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navigation a {
        padding: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .construction-hero h1 {
        font-size: 2.2rem;
    }

    .construction-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .logo p {
        font-size: 0.7rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.house-card {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item {
    animation: fadeInUp 0.6s ease forwards;
}



.navigation.active {
    z-index: 1000;
}

body.menu-open {
    overflow: hidden;
}