/* CSS Variables for EasyTheming */
html {
    background-color: #1a1a1a !important;
    /* Prevent any white flash or leak at the very root */
}

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    background-color: #1a1a1a !important;
    /* Global leak preventer - ensures that if any content is short, the rest is black */
    overflow-x: hidden !important;
    position: relative !important;
    color: var(--text-dark);
}

/* Radical Leak Prevention: A fixed black layer behind everything else */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: -9999;
}

/* Main Content Sections */
.section,
main,
article,
.projects-section,
.corporate-grid {
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.light-bg {
    background-color: #f9f9f9 !important;
}

.gray-bg {
    background-color: #f4f4f4 !important;
}

:root {
    --primary-gold: #003366;
    /* Exact from ikranurprefabrik */
    --primary-gold-dark: #002244;
    --primary-blue: #003366;
    /* New blue accent */
    --text-dark: #222222;
    --text-light: #666666;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --bg-dark: #111111;
    --transition-speed: 0.3s;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    /* Removed white background override here to allow global dark background leak prevention */
    overflow-x: hidden;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Gallery Styles */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

@media (max-width: 480px) {
    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-thumbs img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    height: 85px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-thumbs img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-gold);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--primary-gold);
}

.btn-primary:hover {
    background-color: var(--primary-gold-dark);
    border-color: var(--primary-gold-dark);
}

/* Page Components */
.page-title-section {
    background: var(--bg-dark);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    scroll-margin-top: 120px;
}

.page-title-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    background-color: #fff;
    width: 100%;
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header:hover,
.accordion-header.active {
    color: var(--primary-gold);
    background-color: #f9f9f9;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #f9f9f9;
}

.accordion-content p {
    padding-bottom: 20px;
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    border: 2px solid var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline.white {
    color: #fff;
    border-color: #fff;
}

.btn-outline.white:hover {
    background-color: #fff;
    color: var(--text-dark);
}

.section {
    padding: 80px 0;
}

.section-subtitle {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-blue);
}

.center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

/* Top Bar removed */
.top-bar {
    display: none !important;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
    font-weight: 700;
    font-size: 0.9rem;
}

.lang-switcher a {
    color: var(--text-dark);
    opacity: 0.7;
    transition: 0.3s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--primary-gold);
    opacity: 1;
}

.lang-switcher span {
    color: #ccc;
}

/* Header */
.main-header {
    background-color: var(--bg-white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Ensure mega menu positions relative to this */
}

.logo {
    flex-shrink: 0;
    margin-right: 20px;
    /* Add some spacing just in case */
}

.logo-img {
    height: 140px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .logo-img {
        height: 75px;
    }
}

.logo-img:hover {
    transform: scale(1.1);
}

/* 
.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-gold);
} 
*/

.navbar {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    /* gap removed to rely on link padding like target */
}

.nav-links a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 25px 15px;
    /* Slightly reduced padding to center better */
    display: flex;
    align-items: center;
    height: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
    z-index: 10;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-gold);
}

/* Mega Menu Fix */
/* Mega Menu Fix - Reverted to relative for dropdowns */
.nav-links li {
    position: relative;
    /* Changed from static back to relative for dropdown alignment */
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Bridge gap for Mega Menu */
/* Large Invisible Safety Bridge for Main Dropdown - Background Layer */
.nav-links li:hover::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -20px;
    width: calc(100% + 40px);
    height: 80px;
    z-index: -1;
    /* Move behind links */
}

/* Nested Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 4px;
    padding: 10px 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transition-delay: 0.2s;
    /* Aggressive ghosting delay */
}

@media (max-width: 992px) {
    .dropdown-menu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 5px 0 5px 20px !important;
        border: none !important;
        display: none;
        height: auto !important;
        width: 100% !important;
    }

    .active-mobile>.dropdown-menu {
        display: block !important;
    }
}

.nav-links li:hover .dropdown-menu,
.nav-links li.js-hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
    /* Instant open */
}

.dropdown-item {
    position: relative;
    padding: 0;
}

.dropdown-item>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    /* Increased hit-zone */
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    z-index: 10;
    /* Prioritize clickability */
}

.dropdown-item:last-child>a {
    border-bottom: none;
}

.dropdown-item>a:hover {
    background-color: #f9f9f9;
    color: var(--primary-gold);
}

.sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 240px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(0);
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 1001;
    border-radius: 4px;
    padding: 10px 0;
    margin-left: -20px;
    /* Deep overlap for stability */
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transition-delay: 0.2s;
    /* Aggressive ghosting delay */
}

@media (max-width: 992px) {
    .sub-menu {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 5px 0 5px 20px !important;
        border: none !important;
        display: none;
        height: auto !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .active-mobile>.sub-menu {
        display: block !important;
    }
}

.dropdown-item:hover .sub-menu,
.dropdown-item.js-hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition-delay: 0s;
    /* Instant open */
}

/* Large Invisible Safety Bridge for Sub-menus - Background Layer */
.dropdown-item:hover::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -40px;
    width: 60px;
    height: calc(100% + 40px);
    z-index: -1;
    /* Move behind links */
}

.sub-menu li a {
    padding: 12px 25px;
    /* Increased hit-zone */
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: none;
    transition: 0.2s;
    position: relative;
    z-index: 10;
    /* Prioritize clickability */
}

.sub-menu li a:hover {
    color: var(--primary-gold);
    background-color: #f9f9f9;
    padding-left: 25px;
}

/* Appointment Form Styles */
.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.15);
    background-color: #fff;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-image: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-dark));
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.6);
}

/* Premium Contact Form Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.contact-info-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-list i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-form-premium {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.integrated-map {
    margin-top: 30px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.integrated-map:hover {
    transform: scale(1.02);
}

.contact-form-premium h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.form-group-premium {
    margin-bottom: 20px;
}

.form-group-premium label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group-premium input,
.form-group-premium textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fcfcfc;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group-premium input:focus,
.form-group-premium textarea:focus {
    border-color: var(--primary-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
    outline: none;
}

/* Product Grid & Items */

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
}

.product-thumb {
    height: 280px;
    min-height: 280px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    position: relative;
    width: 100%;
}

.product-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    min-width: 0;
}

.product-details h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-weight: 700;
    min-height: 3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-price {
    display: block;
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-meta i {
    color: var(--primary-gold);
}

/* Enhanced Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-gold);
}

.blog-content .excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-weight: 700;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

/* Form Animation */
.appointment-page-container {
    animation: slideUp 0.8s ease-out;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 1001;
}

@media (max-width: 992px) {
    .hamburger-menu {
        display: block;
        z-index: 10001;
    }

    /* Fixed Header on Mobile - FORCED FULL WIDTH */
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #fff !important;
        padding: 10px 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
    }

    .main-header .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 50px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
        z-index: 10000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        gap: 0;
        overflow-y: auto;
        visibility: hidden;
    }

    .navbar.active {
        right: 0;
        visibility: visible;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        height: auto;
        display: block;
        position: relative;
    }

    .nav-links a {
        padding: 15px 0;
        width: 100%;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links a::after {
        display: none;
    }

    .header-right {
        margin-top: 30px;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .lang-switcher {
        margin-bottom: 20px;
    }

    .btn-catalog {
        width: 100%;
    }

    .dropdown-menu,
    .sub-menu {
        position: relative !important;
        /* Force relative to push content */
        top: 0 !important;
        left: 0 !important;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        display: none;
        padding: 10px 0 10px 15px !important;
        background: #f9f9f9 !important;
        /* Slight background for distinction */
        border-left: 2px solid var(--primary-gold);
    }

    .active-mobile>.dropdown-menu,
    .active-mobile>.sub-menu {
        display: block;
    }

    .dropdown-item>a {
        padding: 12px 0;
    }
}

/* Header Right Actions */
.header-right {
    display: flex;
    gap: 10px;
    /* Reduced gap */
    align-items: center;
}

.header-phone {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-catalog {
    background: #003366;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    /* Smaller font */
    padding: 8px 15px;
    /* Smaller padding */
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn-catalog:hover {
    background: #002244;
    color: #fff;
}

/* Hero Slider */
.hero-slider-container {
    position: relative;
    height: 95vh;
    min-height: 600px;
    overflow: hidden;
    color: #fff;
    background-color: #000;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligned to left for cinematic look */
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 40%;
    /* Shows the actual house */
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 6s ease;
    z-index: -1;
}

/* Zoom effect on background when active */
.hero-slide.active .slide-bg {
    transform: scale(1.1);
    transition: transform 8s ease-out;
    /* Slower, more elegant zoom */
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Deeper gradient for better text prominence */
    background: linear-gradient(75deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
}

.hero-content.left-align {
    text-align: left;
    max-width: 800px;
    padding-left: 8%;
    /* More breathing room */
    z-index: 3;
}

.small-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 5px;
    color: #fff;
    /* High contrast white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Better visibility on light backgrounds */
    display: block;
}

.main-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.main-title span {
    font-weight: 300;
    display: block;
    font-size: 4rem;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: var(--primary-gold);
    padding: 18px 35px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline.white {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 18px 35px;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Hero Content Base */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

/* Slide Content Animations */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.hero-slide.active .slide-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

/* Animation Utils (Legacy/Global) */

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Corporate Section */
.corporate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-list {
    margin: 20px 0 30px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature-list i {
    color: var(--primary-blue);
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: #ccc;
    border-radius: 8px;
    background: url('https://images.unsplash.com/photo-1531834685032-c34bf0d84c7c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') no-repeat center center/cover;
}

.btn-text {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Products Section */
.products-section {
    background-color: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-speed);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 250px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

/* Gradients/Images for Categories (Placeholders using gradients to look nice immediately) */
.bg-steel {
    background-image: url('img/celik-konutlar-yeni.webp');
    background-position: center 55%;
    /* Perfect focus on the house architecture */
}

.bg-prefab {
    background-image: url('img/B5411CCE-F9D6-4670-8A35-C2B7D66E0F88.PNG');
    background-position: center 60%;
    /* Perfect focus on the house architecture */
}

.bg-office {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.bg-industrial {
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.card-content a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Projects Section */
.gray-bg {
    background-color: #f5f5f5;
}

.projects-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
}

.projects-slider::-webkit-scrollbar {
    height: 8px;
}

.projects-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary-gold);
    border-radius: 4px;
}

.project-card {
    min-width: 350px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-speed);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 250px;
}

.project-img .img-placeholder {
    height: 100%;
    border-radius: 0;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-info .location {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-info .location i {
    color: var(--primary-blue);
}

.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(58, 123, 213, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(184, 150, 87, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    color: #FFD700;
    /* Vibrant Gold/Yellow */
    margin-bottom: 20px;
    transition: 0.3s;
}

.stat-item:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a !important;
    color: #fff;
    padding-top: 70px;
    position: relative;
    z-index: 10;
    /* Box shadow creates a dark area BELOW the footer */
    box-shadow: 0 500px 0 0 #1a1a1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-phone {
    font-size: 1.5rem;
    color: #fff !important;
    font-weight: 700;
}

.footer-col p {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
}

.footer-col ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.social-links a:hover {
    background-color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    color: #777;
    background-color: #1a1a1a;
    margin-bottom: 0;
}

/* Ensure footer extends to absolute bottom */
.main-footer::after {
    content: '';
    display: block;
    height: 100px;
    background-color: #1a1a1a;
    margin: 0;
    padding: 0;
}

/* Extra protection - body background dark at bottom */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #1a1a1a;
    z-index: -1;
    pointer-events: none;
}

.footer-bottom p {
    margin: 0;
}

/* Floating Btn */
.float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    /* WhatsApp Green */
    color: #fff;
    height: 50px;
    border-radius: 25px;
    /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    gap: 10px;
    transition: transform 0.3s;
    animation: pulse-whatsapp 2s infinite;
}

.float-btn i {
    font-size: 1.4rem;
}

.float-btn:hover {
    transform: scale(1.05);
    background-color: #1daa55;
    /* Slightly darker green */
    animation: none;
    /* Stop pulse on hover */
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* SEO Content Styles */
.light-bg {
    background-color: #f9f9f9;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.process-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.process-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.seo-text-block {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 60px;
}

@media (max-width: 992px) {
    .logo-img {
        height: 65px !important;
    }

    .nav-links a {
        height: auto !important;
        /* Fix 200px gap */
        padding: 12px 15px !important;
    }

    .nav-links li::after {
        display: none !important;
        /* Disable desktop hover bridge on mobile */
    }

    /* Submenu spacing fix */
    .dropdown-menu,
    .sub-menu {
        padding: 5px 0 5px 15px !important;
    }
}

/* Mobile Social Links */
.mobile-social-links {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
        width: 100%;
        overflow: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
        word-wrap: break-word;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 40px 0;
    }

    .two-col-grid,
    .corporate-grid,
    .solutions-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        display: flex;
        flex-direction: column;
    }

    .corporate-image img,
    .solutions-media img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    /* Slider Visibility Fix */
    .hero-slider-container {
        height: auto !important;
        min-height: 500px !important;
    }

    .hero-slider {
        height: 500px !important;
    }

    .hero-slide {
        height: 100% !important;
        display: flex;
        align-items: center;
    }

    .categories-grid {
        grid-template-columns: 1fr !important;
    }

    .category-card {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .img-placeholder {
        height: 250px;
    }
}

@media (max-width: 480px) {

    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul li a {
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
        width: 100%;
        overflow: hidden;
    }

    .main-header .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger-menu {
        display: block;
        z-index: 10001;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 50px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
        z-index: 10000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        gap: 0;
        overflow-y: auto;
        visibility: hidden;
    }

    .navbar.active {
        right: 0;
        visibility: visible;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        height: auto;
        display: block;
        position: relative;
    }

    .nav-links a {
        padding: 15px 0 !important;
        width: 100%;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: auto !important;
    }

    .header-right {
        margin-top: 30px;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .dropdown-menu,
    .sub-menu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        display: block !important;
        max-height: 0;
        overflow: hidden;
        padding: 0 !important;
        background: #fdfdfd !important;
        border-left: 3px solid var(--primary-gold);
        transition: max-height 0.4s ease-out, padding 0.4s ease;
    }

    .active-mobile>.dropdown-menu,
    .active-mobile>.sub-menu {
        max-height: 1000px;
        padding: 10px 0 10px 15px !important;
    }

    .hero h1 {
        font-size: 2.2rem;
        word-wrap: break-word;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 40px 0;
    }

    .two-col-grid,
    .corporate-grid,
    .solutions-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        display: flex;
        flex-direction: column;
    }

    .hero-slider-container {
        height: auto !important;
        min-height: 500px !important;
    }

    .hero-slider {
        height: 500px !important;
    }

    .hero-slide {
        height: 100% !important;
        display: flex;
        align-items: center;
    }

    .categories-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    /* .top-bar hidden globally */


    .main-header {
        padding: 8px 0;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999;
    }

    .logo-img {
        height: 80px !important;
    }

    .hero-slider-container,
    .hero-slider {
        height: auto !important;
        min-height: 600px !important;
    }

    .main-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .main-title span {
        font-size: 2rem !important;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        display: flex;
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.1rem !important;
    }

    .main-title span {
        font-size: 1.8rem !important;
    }

    .hero-content.left-align {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .logo-img {
        height: 70px !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: 0.3s;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-gold);
    background-color: #fff;
    outline: none;
}

.full-width {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================
   Global Animations & Interactive Effects
   ========================================= */

/* Scroll Trigger Base */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* 1. Category Card Hover (Image Zoom) */
.category-card {
    /* Existing styles preserved */
    overflow: hidden;
    /* Ensure zoom stays within bounds */
}

.category-card .card-image {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .card-image {
    transform: scale(1.1);
}

/* 2. Nav Link Hover (Color & Underline) */
.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 3. Button Hover (Lift & Shadow) */
.btn-primary,
.btn-outline {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 169, 16, 0.4);
    /* Theme Glow */
}

/* 4. Page Title Parallaxish Entry */
.page-title-section h1 {
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Solutions Section */
.solutions-section {
    background-color: #fff;
    padding: 100px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

.solutions-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.solutions-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .solutions-buttons {
        justify-content: center;
    }
}

.solutions-buttons .btn-outline {
    border-color: #ccc;
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 15px 30px;
}

.solutions-buttons .btn-outline:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.solutions-buttons i {
    color: var(--primary-gold);
    margin-right: 8px;
}

.solutions-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- ANIMATIONS & INTERACTION --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Hover Effects (Project & Product Cards) */
.product-item,
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover,
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .product-item:hover,
    .project-card:hover {
        transform: none;
    }
}

/* -----------------------------------------------------------
   Product Grid Layout Implementation
   ----------------------------------------------------------- */

/* Sidebar Layout Utility */
.sidebar-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 130px;
    /* Account for fixed header */
    z-index: 10;
}

@media (max-width: 992px) {
    .sidebar-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "products" "sidebar";
        width: 100%;
        overflow: hidden;
    }

    .sidebar-layout .product-list-grid {
        grid-area: products;
    }

    .sidebar-layout .sidebar {
        grid-area: sidebar;
    }
}

.sidebar {
    position: sticky;
    top: 130px;
    z-index: 10;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

@media (max-width: 992px) {
    .sidebar {
        position: static;
        z-index: 1;
        margin-top: 20px;
    }
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-menu a i {
    width: 25px;
    font-size: 0.9rem;
    color: var(--primary-gold);
    opacity: 0.7;
}

.sidebar-menu a:hover {
    background: rgba(0, 51, 102, 0.05);
    color: var(--primary-gold);
}

.sidebar-menu a.active {
    background: #fff;
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-menu .sub-item {
    padding-left: 35px;
    font-size: 0.9rem;
    color: #777;
}

@media (max-width: 992px) {
    .sidebar-menu a,
    .sidebar-menu .sub-item {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
}

.sidebar-menu .sub-item:hover {
    color: var(--primary-gold);
}

/* Grid Container */
.product-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Card Style */
.product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Uniform height */
}

/* Hover Effect */
.product-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(237, 169, 16, 0.3);
    /* Gold tint */
}

/* Image - contain ile çift katlı ev görselleri tam görünsün (çatı kesilmesin) */
.product-thumb {
    width: 100%;
    height: 280px;
    min-height: 280px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    display: block;
    position: relative;
    border-radius: 8px 8px 0 0;
}

@media (max-width: 480px) {
    .product-thumb {
        height: 240px;
        min-height: 240px;
    }

    /* Hero Responsive */
    .main-title {
        font-size: 3rem;
    }

    .small-title {
        font-size: 0.9rem;
    }

    .hero-content.left-align {
        padding-left: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Details Section */
.product-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

/* Title - uzun başlıklar satıra sığsın, taşmasın */
.product-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-dark);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Price */
.product-price {
    font-size: 1.1rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

/* Meta Info (Size, Room count) */
.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-meta i {
    color: var(--primary-gold);
}

/* Button */
.product-details .btn-outline {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.product-details .btn-outline:hover {
    background: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-thumb {
        height: 260px;
        min-height: 260px;
    }
}

@media (max-width: 992px) {
    .sidebar-layout {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .product-item {
        min-width: 0;
        overflow: hidden;
    }
}

/* Mobile Fixes for Product Pages */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .details-content>div[style*='display: grid'] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .specs-box {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product-details h3 {
        font-size: 1.1rem;
    }

    .main-title {
        font-size: 2rem !important;
    }

    .hero-buttons {
        gap: 10px;
    }
}


/* Emergency Fix for Mobile Hero Text Overlap */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 100px !important;
    }

    .hero-slider-container,
    .hero-slider {
        min-height: 100vh !important;
        /* Ensure enough height */
        height: auto !important;
    }
}


/* Mobile Logo Size Adjustment */
@media (max-width: 768px) {
    .logo-img {
        height: 65px !important;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 70px !important;
    }
}


/* Mobile Header Layout - Centered Big Logo */
@media (max-width: 992px) {
    .main-header .container {
        justify-content: center !important;
        position: relative;
        min-height: 110px;
    }

    .logo {
        margin: 0 auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .logo-img {
        height: 95px !important;
        /* Increased size requested */
        max-height: 100%;
        width: auto;
    }

    .hamburger-menu {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        font-size: 1.8rem;
    }

    /* Adjust content padding for taller header */
    .hero-content {
        padding-top: 160px !important;
    }
}


/* Fix Page Title on Mobile - header altında kalmasın, biraz daha aşağıda görünsün */
@media (max-width: 992px) {
    .page-title-section {
        margin-top: 125px !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
        width: 100%;
        min-height: 60px;
    }

    .page-title-section .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }

    .page-title-section h1 {
        font-size: 1.4rem !important;
        line-height: 1.35 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
        color: #fff !important;
        display: block !important;
    }

    .page-title-section .animate-on-scroll,
    .page-title-section h1.animate-on-scroll {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .page-title-section h1 {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 992px) {
    .section {
        padding-top: 30px !important;
        padding-bottom: 40px !important;
    }

    /* Menü açıkken içerik kesinlikle altta kalsın */
    body.nav-open .page-title-section,
    body.nav-open .section,
    body.nav-open .sidebar-layout,
    body.nav-open .product-list-grid,
    body.nav-open .main-footer {
        position: relative;
        z-index: 0;
    }

    body.nav-open .sidebar {
        z-index: 0;
    }

    /* Nav Overlay */
    .nav-overlay {
        z-index: 9998;
        backdrop-filter: blur(5px);
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}