/* İZ GALVANİZ Website Styles */
:root {
    --primary-color: #DC2626;
    --secondary-color: #991B1B;
    --accent-color: #EF4444;
    --light-red: #FEE2E2;
    --light-gray: #f3f4f6;
    --medium-gray: #6b7280;
    --dark-gray: #1f2937;
    --white: #ffffff;

    /* Bootstrap CSS Variables Override */
    --bs-primary: #DC2626;
    --bs-primary-rgb: 220, 38, 38;
    --bs-success: #6B7280;
    --bs-success-rgb: 107, 114, 128;
    --bs-info: #3B82F6;
    --bs-info-rgb: 59, 130, 246;
    --bs-warning: #FBBF24;
    --bs-warning-rgb: 251, 191, 36;
    --bs-danger: #DC2626;
    --bs-danger-rgb: 220, 38, 38;
}

/* Bootstrap Override */
.mt-5 {
    margin-top: 0 !important;
}

/* Font Setup */
* {
    font-family: 'Montserrat', sans-serif;
}

/* Global Styles */
body {
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden; /* Yatay scroll'u önle */
}

/* Container ve row'ları mobilde düzelt */
.container,
.container-fluid {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Col'ları düzelt */
    [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Responsive images - Editörden eklenen resimler dahil */
img {
    max-width: 100%;
    height: auto;
}

/* Position relative container'ları düzelt */
.position-relative {
    overflow: hidden; /* İçerik taşmasını önle */
}

/* Position absolute elementleri mobilde düzelt */
@media (max-width: 768px) {
    /* Proje detay hero alanı mobilde düzelt */
    .position-relative img {
        height: 40vh !important; /* Mobilde daha kısa */
        min-height: 250px !important;
    }

    .position-absolute.bottom-0 {
        position: relative !important; /* Mobilde relative yap */
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
    }

    /* İçindeki container'ı düzelt */
    .position-absolute .container {
        padding: 1rem 15px;
        max-width: 100%;
    }

    /* d-flex yapısını mobilde column yap */
    .position-absolute .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Icon container'ı küçült */
    .position-absolute .bg-primary.rounded-circle {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }

    .position-absolute .bg-primary.rounded-circle i {
        font-size: 1.5rem !important;
    }

    /* Başlık boyutunu küçült */
    .position-absolute .display-6 {
        font-size: 1.5rem !important;
    }

    /* Badge'leri wrap yap */
    .position-absolute .d-flex.align-items-center {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* İçerik alanlarında responsive resimler */
.card-body img,
.content img,
article img,
.page-content img,
main img {
    max-width: 100% !important;
    height: auto !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--secondary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.btn-success:hover {
    background-color: #4B5563;
    border-color: #4B5563;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-success {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.btn-outline-success:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Top Bar Styles */
.top-bar {
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    background-color: var(--white) !important;
    z-index: 1030;
    overflow: visible;
}

.navbar .container {
    overflow: visible;
}

.navbar.sticky-top {
    z-index: 1030;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 0.5rem;
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1050 !important;
    position: absolute !important;
    min-width: max-content;
    width: auto;
    overflow: visible;
    white-space: nowrap;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    overflow: visible;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Carousel Section */
#heroCarousel {
    height: calc(100vh - 80px);
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
    width: 100%;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}

/* Slide Backgrounds */
.carousel-slide {
    height: calc(100vh - 80px);
    min-height: 550px;
    max-height: 800px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-1 {
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3)),
                url('../img/projeler/modern_led_street_light_urban_park.jpg') center/cover;
}

.slide-2 {
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3)),
                url('../img/projeler/solar_panels_wind_turbines_renewable_energy_desert.jpg') center/cover;
}

.slide-3 {
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3)),
                url('../img/projeler/industrial_steel_hot_dip_galvanizing_factory_process.jpg') center/cover;
}

.slide-4 {
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3)),
                url('../img/projeler/power-transmission-pole-types-dead-end-tangent-angle.jpg') center/cover;
}

.slide-content {
    position: relative;
    z-index: 2;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    background-size: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    transition: all 0.3s;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    transition: transform 0.3s ease-in-out;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.product-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-card {
    transition: all 0.3s ease-in-out;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* About Section */
.about-image .bg-primary {
    transition: transform 0.3s ease-in-out;
}

.about-image:hover .bg-primary {
    transform: scale(1.05);
}

.stat-item {
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Form Styles */
.quote-form .form-control {
    border: 1px solid #d1d5db;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.quote-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.quote-form .form-select {
    border: 1px solid #d1d5db;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.quote-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.quote-form .form-label {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--dark-gray) !important;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    transition: color 0.2s ease-in-out;
}

.footer a:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .display-4 {
        font-size: 2.5rem !important;
    }

    .display-5 {
        font-size: 2rem !important;
    }

    .display-6 {
        font-size: 1.75rem !important;
    }

    /* Mobil Logo Küçültme */
    .navbar-brand img {
        height: 35px !important;
        max-height: 35px !important;
    }

    .navbar-nav {
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }

    /* Mobil menüde dropdown'ları düzelt */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        background-color: transparent !important;
        display: none; /* Varsayılan olarak gizli */
    }

    .navbar-nav .dropdown-menu.show {
        display: block !important; /* show class'ı olunca görünür */
    }

    .navbar-nav .dropdown-item {
        color: var(--dark-gray) !important;
        padding: 0.5rem 1rem;
    }

    .navbar-nav .dropdown-item:hover {
        background-color: rgba(220, 38, 38, 0.1);
        color: var(--primary-color) !important;
    }

    /* Dropdown toggle için ok işareti */
    .navbar-nav .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }

    .service-card,
    .product-card {
        margin-bottom: 1rem;
    }

    #heroCarousel,
    .carousel-item,
    .carousel-slide {
        min-height: 70vh;
        height: auto;
        max-height: none;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content .lead {
        font-size: 1rem;
    }

    .slide-content .d-flex {
        flex-direction: column;
    }

    .slide-content .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 40px;
        height: 40px;
    }

    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
        min-height: 60vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .top-bar .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }

    /* Mobilde telefon/email alt alta, sosyal medya yan yana */
    .top-bar .col-md-6:first-child .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    /* Sosyal medya ikonları "Bizi Takip Edin" ile aynı satırda */
    .top-bar .col-md-6:last-child .d-flex {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }

    .top-bar .col-md-6:last-child .d-flex span {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .top-bar .col-md-6:last-child .d-flex a {
        flex-shrink: 0;
    }

    #heroCarousel,
    .carousel-item,
    .carousel-slide {
        min-height: 60vh;
    }

    .slide-content h1 {
        font-size: 1.75rem;
    }

    .slide-content .lead {
        font-size: 0.95rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 35px;
        height: 35px;
        background-size: 16px;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional Professional Touches */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    margin: 3rem 0;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer Logo White Filter */
.filter-white {
    filter: brightness(0) invert(1);
}

/* Reference Cards */
.reference-card {
    transition: all 0.3s ease-in-out;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* References Carousel - Mobilde tek kart */
@media (max-width: 768px) {
    /* Her carousel item'da sadece ilk kartı göster */
    #referencesCarousel .carousel-item {
        overflow: hidden;
        height: auto !important; /* Yüksekliği içeriğe göre ayarla */
        min-height: auto !important;
    }

    #referencesCarousel .carousel-item .row {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        height: auto !important;
    }

    #referencesCarousel .carousel-item .col-lg-3,
    #referencesCarousel .carousel-item .col-md-6 {
        display: none; /* Tüm kartları gizle */
        height: 0 !important; /* Yüksekliği 0 yap */
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    #referencesCarousel .carousel-item .col-lg-3:first-child,
    #referencesCarousel .carousel-item .col-md-6:first-child {
        display: block !important; /* Sadece ilk kartı göster */
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 15px !important;
        height: auto !important; /* İlk kartın yüksekliği otomatik */
        margin: 0 !important;
    }

    /* Kartı ortala ve tam genişlik yap */
    #referencesCarousel .reference-card {
        width: 100%;
        max-width: none;
        height: auto;
    }

    /* Carousel inner'ın yüksekliği */
    #referencesCarousel .carousel-inner {
        height: auto !important;
    }
}

/* Dynamic Page Content Styles */
.dynamic-content {
    font-family: 'Montserrat', sans-serif;
}

.dynamic-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
    line-height: 1.2;
}

.dynamic-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #212529;
    line-height: 1.3;
}

.dynamic-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #212529;
    line-height: 1.4;
}

.dynamic-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #495057;
}

.dynamic-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.dynamic-content a:hover {
    color: var(--secondary-color);
}

.dynamic-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Page Specific Styles */
.contact-info-card {
    transition: all 0.3s ease-in-out;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.map-container {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Projects Page Styles */
.project-card {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.project-card img {
    transition: transform 0.3s ease-in-out;
}

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

/* Product Detail Styles */
.product-detail-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-specs {
    list-style: none;
    padding: 0;
}

.product-specs li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.product-specs li:last-child {
    border-bottom: none;
}

/* Badge Color Overrides */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-success {
    background-color: var(--secondary-color) !important;
}

.badge.bg-warning {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.badge.bg-info {
    background-color: #3B82F6 !important;
}

.badge.bg-danger {
    background-color: #EF4444 !important;
}

.badge.bg-secondary {
    background-color: var(--medium-gray) !important;
}

/* Bootstrap Color Overrides */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--secondary-color) !important;
}

.text-info {
    color: #3B82F6 !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}

.bg-info {
    background-color: #3B82F6 !important;
}

/* Link Color Overrides */
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.text-light):not(.text-white) {
    color: var(--primary-color);
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.text-light):not(.text-white):hover {
    color: #B91C1C;
    text-decoration: underline;
}

/* Progress Bar Color Overrides */
.progress-bar.bg-success {
    background-color: var(--secondary-color) !important;
}

.progress-bar.bg-primary {
    background-color: var(--primary-color) !important;
}

.progress-bar.bg-info {
    background-color: #3B82F6 !important;
}

/* Icon Color Overrides */
.bi.text-primary {
    color: var(--primary-color) !important;
}

.bi.text-success {
    color: var(--secondary-color) !important;
}

.bi.text-info {
    color: #3B82F6 !important;
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    outline: none;
}

.btn-back-to-top:hover {
    background-color: #B91C1C !important;
    color: var(--white) !important;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.4);
}

.btn-back-to-top:focus {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-back-to-top.show {
    display: flex !important;
}

.btn-back-to-top i {
    line-height: 1;
    color: var(--white) !important;
}

/* ============================================
   MODERN ANASAYFA STİLLERİ - İZ GALVANİZ
   ============================================ */


/* Modern Service Cards */
.service-card-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #DC2626, #EF4444);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.15);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-card-modern:hover .service-icon-wrapper {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    transform: scale(1.1);
}

.service-icon-wrapper i {
    font-size: 2rem;
    color: #DC2626;
    transition: all 0.4s ease;
}

.service-card-modern:hover .service-icon-wrapper i {
    color: white;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #DC2626;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    color: #B91C1C;
}

/* Modern Product Cards */
.product-card-modern {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.product-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.product-image-area {
    height: 160px;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, white, transparent);
}

.product-image-area i {
    font-size: 4rem;
    color: #DC2626;
    z-index: 1;
    transition: transform 0.4s ease;
}

.product-card-modern:hover .product-image-area i {
    transform: scale(1.15) rotate(5deg);
}

.product-content {
    padding: 1.5rem;
    text-align: center;
}

.product-category {
    display: inline-block;
    padding: 6px 14px;
    background: #FEE2E2;
    color: #DC2626;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-product {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #DC2626;
    color: #DC2626;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-product:hover {
    background: #DC2626;
    color: white;
}

/* Modern About Section */
.about-section-modern {
    position: relative;
    overflow: hidden;
}

.about-image-stack {
    position: relative;
    padding: 2rem;
}

.about-image-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 85%;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    border-radius: 24px;
    z-index: -1;
}

.about-main-image {
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.floating-stat {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-stat.stat-top {
    top: 10%;
    right: -10px;
    animation-delay: 0s;
}

.floating-stat.stat-bottom {
    bottom: 15%;
    left: -10px;
    animation-delay: 1.5s;
}

.floating-stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #DC2626, #991B1B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.feature-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #FEF2F2;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.feature-item-modern:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
    transform: translateX(10px);
    border-left-color: #DC2626;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 1.1rem;
}

/* Counter Animation */
.stat-counter {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #DC2626, #991B1B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern References Section */
.reference-card-modern {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.reference-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.reference-logo-container {
    width: 100%;
    height: 100px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.reference-card-modern:hover .reference-logo-container {
    background: #FEE2E2;
}

.reference-logo-container img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 14px;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Section Headers Modern */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title-modern {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-title-modern .text-highlight {
    color: #DC2626;
}

/* Decorative Elements */
.decorative-icon {
    position: absolute;
    opacity: 0.05;
    color: #DC2626;
    z-index: 0;
}

/* Scroll Animations - Always visible by default */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Fade In Directions - Default visible, animate on scroll */
.fade-in-left {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stats Grid Modern */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .floating-stat {
        display: none;
    }

    .about-image-stack::before {
        width: 100%;
        height: 100%;
    }

}

@media (max-width: 768px) {
    .service-card-modern,
    .product-card-modern {
        margin-bottom: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .feature-item-modern {
        padding: 0.875rem 1rem;
    }
}

