* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: rgb(42, 41, 39);


}

html,
body {
    overflow-x: hidden;
}

#page-fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2927, #1f1e1d);
    z-index: 9999;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 1s ease;

    /* Hafif animasyonlu gradient */
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

/* Fade out sınıfı */
#page-fade.hidden {
    opacity: 0;
    pointer-events: none;
}

h1 {
    font-family: 'Space Grotesk', monospace;
}

h2 {
    font-family: 'Space Grotesk', monospace;
}

@font-face {
    font-family: 'Inter';
    src: url('Inter.woff2') format('woff2');
    font-display: swap;
}

/* Navbar genel ayarları */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    background: transparent;
    /* Başta tamamen transparan */
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
    z-index: 1000;
}

/* Kaydırılınca aktif olacak stil */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.1);
    /* Hafif transparan beyaz */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Canvas */
#navbarCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Logo */
.logo img {
    height: 120px;
    width: auto;
}

/* Linkler */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover efekti */
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: hsl(0, 100%, 50%);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: hsl(0, 100%, 70%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===================== DROPDOWN ===================== */

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Menü */
.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    /* navbar.scrolled stili */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    min-width: 280px;
    padding: 10px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);

    /* Başta görünmez ama alanı korur */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    z-index: 999;
}

/* Menü linkleri */
.dropdown-menu a {
    padding: 12px 20px;
    text-decoration: none;
    color: #fff;
    display: block;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: hsl(0, 100%, 70%);
}

/* Açılma animasyonu */
.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
    /* hemen göster */
}

/* Kaybolma gecikmesi */
.dropdown:not(:hover):not(.active) .dropdown-menu {
    transition-delay: 0.25s;
    /* mouse çekilince 250ms bekle */
}

/* Ok animasyonu */
.dropdown.active .arrow,
.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu a {
    text-decoration: none;
}

.dropdown-menu a:hover {
    text-decoration: none !important;
}


/* === HERO SECTION === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Paralaks efekti */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero.kontrol {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-kontrol-danışmanlık-hizmetler.webp") center/cover no-repeat fixed;
}

.hero.betonarme {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-betonarme-yapı-imalatları-hizmetler.webp") center/cover no-repeat fixed;
}

.hero.guclendirme {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-betonarme-güçlendirme-hizmetler.webp") center/cover no-repeat fixed;
}

.hero.celik {
    background: url("../img/servicesimg/terazi-muhendislik-istanbul-çelik-yapı-imalatları-hizmetler.webp") center/cover no-repeat fixed;
}

.hero.hafriyat {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-hafriyat-kırım-hizmetler.webp") center/cover no-repeat fixed;
}

.hero.kuyu {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-kuyu-temel-imalatları-hizmetler.webp") center/cover no-repeat fixed;
}

.hero.duvar-siva {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-duvar-sıva-imalatları-hizmetler.webp") center/cover no-repeat fixed;
}

.hero.sap {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-kuyu-sap-imalatları-hizmetler.webp") center/cover no-repeat fixed;
}

.hero.epoksi {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-epoksi-boya-zemin-hizmetler.webp") center/cover no-repeat fixed;
}

.hero.cati {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-catı-imalatları-hizmetler.webp") center/cover no-repeat fixed;
}

.hero.havuz {
    background: url("../img/servicesimg/terazi-muhendislik-istanbul-betonarme-havuz-imalatları.webp") center/cover no-repeat fixed;
}

.hero.izolasyon {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-izalasyon-imalatları-hizmetler.webp") center/cover no-repeat fixed;

}

.hero.iskele-mantolama {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-iskele-dış-mantolama-hizmetler.webp") center/cover no-repeat fixed;

}

.hero.beton-kesimi {
    background: url("../img/servicesimg/terazi-mühendislik-istanbul-beton-kesimi-karot-isleri-hizmetler.webp") center/cover no-repeat fixed;

}


/* Görselin üzerine koyu overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* İçerik */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

/* Başlık ve metin */
.hero h1 {
    font-size: 2.7rem;
    color: #ff4d4d;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s ease forwards 0.3s;
}

.hero p {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s ease forwards 0.6s;
}

/* Buton */
.hero-btn {
    display: inline-block;
    background-color: #ff4d4d;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s ease forwards 0.9s;
}

.hero-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75px;
    width: 50px;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transform: skewX(-25deg);
    transition: left 0.4s ease;
}

.hero-btn:hover::after {
    left: 120%;
}

.hero-btn:hover {
    transform: translateY(-3px);
    background-color: #ff6b6b;
}

/* === Scroll Down Ok Animasyonu === */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 25px;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
    animation: scrollAnim 1.5s infinite;
}

/* === Animasyonlar === */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollAnim {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, 15px);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
}

/* === ANA DETAY BÖLÜMÜ === */
.service-detail {
    position: relative;
    /* canvas için container */
    background-color: #1f1e1d;
    color: #fff;
    padding: 100px 20px;
    overflow: hidden;
    /* taşan canvas veya öğeleri gizle */
}

#service-canvas {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; ile aynı */
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* içerik üstte kalacak */
}

.service-detail-container {
    position: relative;
    /* içerik canvas üstünde */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.text-block {
    flex: 1 1 500px;
}

.text-block h2 {
    color: #ff4d4d;
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.text-block p {
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.image-block {
    flex: 1 1 450px;
}

.image-block img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s ease;
}

.image-block img:hover {
    transform: scale(1.05);
}


/* === NEDEN BİZ === */
.trust-section {
    background: #2a2927;
    padding: 100px 20px;
    text-align: center;
}

.trust-section h2 {
    color: #ff4d4d;
    font-size: 2.4rem;
    margin-bottom: 50px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.trust-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 77, 77, 0.1);
}

.trust-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.trust-card p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

#trust-section {
    position: relative;
    overflow: hidden;
}

#trust-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.trust-grid,
.trust-section h2 {
    position: relative;
    z-index: 2;
}

/* === CTA === */
.cta-section {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    padding: 100px 20px;
    background-color: #ff4d4d;
}

/* Üst dalga */
.cta-top-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    /* dalga yüksekliği */
    z-index: 2;
}

.cta-top-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}



#cta-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}


.cta-content h2 {
    margin-top: 2rem;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: glowText 13s ease-in-out infinite alternate;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1.5s forwards 0.5s;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    color: #ff4d4d;
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
    transition: all 0.3s ease;
    animation: pulseBtn 2s infinite;
}

.cta-btn:hover {
    color: #fff;
    background: #1f1e1d;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.8);
}

/* Animations */
@keyframes glowText {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }

    100% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulseBtn {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 77, 77, 0.8);
    }
}

/* === ANİMASYONLAR === */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* geçiş yeri */
.section-transition {
    height: 80px;
    background: linear-gradient(to bottom, #2a2927, #1f1e1d);
}

.section-transition.top-fade {
    height: 80px;
    background: linear-gradient(to top, #2a2927, #1f1e1d);
}



/* galeri */
.gallery-section {
    padding: 120px 20px;
    background: #1f1e1d;

}

#movingLinesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* içerik üstünde olacak */
    pointer-events: none;
}

.gallery-section {
    position: relative;
    overflow: hidden;
}


.section-title {
    font-size: 2rem;
    color: #ff4d4d !important;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase
}

/* Swiper container */
.gallery-swiper {
    position: relative;
    padding: 20px 0
}


/* Slide centering */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 1px;
    /* render için gerekli */
}

/* Grid içinde kartlar */
.gallery-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Kartlar — sabit oran */
.gallery-card {
    flex: 0 0 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

/* İç kapsayıcı resim için oran verir */
.img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    display: block;
}

/* Resim */
/* Galeri kartı hover animasyonu */
.gallery-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* animasyon */
}

.gallery-card img:hover {
    transform: scale(1.05);
    /* %5 büyütme */
    box-shadow: 0 12px 25px rgba(255, 211, 105, 0.3);
    /* hafif sarı glow efekti */
}


.gallery-swiper {
    position: relative;
    padding-bottom: 50px;
    /* pagination için boşluk */
}

.swiper-pagination {
    position: relative !important;
    /* absolute kaldır, akışa dahil et */
    bottom: auto !important;
    margin-top: 20px;
    /* görsellerle arayı aç */
    text-align: center;
    z-index: 2;
}

/* Pagination */
.swiper-pagination-bullet {
    background: #ff4d4d !important;
    opacity: .5;
    width: 12px !important;
    height: 12px !important;
    margin: 0 6px
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
}

body.glightbox-open {
    overflow: hidden;
}

/* GLightbox overlay'in tam ekran kaplaması için */
.goverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    /* arka plan karanlık */
    z-index: 9999 !important;
}

.gslide-image img {
    max-width: 70vw !important;
    /* Ekranın %70 genişliğinde */
    max-height: 70vh !important;
    /* Ekranın %70 yüksekliğinde */
    object-fit: contain !important;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* footer */
.footer {
    background-color: #2a2927;
    color: #fff;
    padding: 50px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-brand,
.footer-services,
.footer-pages,
.footer-socials {
    flex: 1 1 220px;
}

.footer-logo {
    width: 250px;
    margin-bottom: 15px;
}

.footer-brand p {
    margin: 8px 0;
}

.footer-services h3,
.footer-pages h3,
.footer-socials h3 {
    margin-bottom: 10px;
    color: #ff4d4d;
}

.footer-services ul,
.footer-pages ul {
    list-style: none;
    padding: 0;
}

.footer-services li,
.footer-pages li {
    margin: 6px 0;
}

.footer-services a,
.footer-pages a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-services a:hover,
.footer-pages a:hover {
    color: #ff4d4d;
    text-shadow: 0 0 6px #ff4d4d;
}

.footer-socials a {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.footer-socials a i {
    margin-right: 8px;
    font-size: 18px;
}

/* Sosyal medya renkleri */
.footer-socials a.instagram {
    background-color: #E1306C;
}

.footer-socials a.facebook {
    background-color: #1877F2;
}

.footer-socials a.x {
    background-color: #000;
}

.footer-socials a.linkedin {
    background-color: #0A66C2;
}

.footer-socials a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px #ff4d4d;
}



.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    /* Ortaladı */
    display: flex;
    flex-direction: column;
    /* Alt alta getirir */
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* iki yazı arası boşluk */
}

.footer-bottom p {
    margin: 0;
    font-size: 0.95rem;
    color: #ccc;
}

.footer-bottom .made-by {
    font-size: 0.9rem;
    color: #ff4d4d;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* responsive */
/* === HAMBURGER BUTONU === */
.hamburger {
    position: absolute;
    right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.3s ease;
    display: none;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 4px;
    transition: all 0.4s ease;
}


/* Açıldığında X şekline dönüşsün */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === MOBİL MENÜ (TAM EKRAN OVERLAY) === */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(250, 250, 250, 0.97);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* sola hizalı */
    justify-content: flex-start;
    padding: 100px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
    overflow-y: auto;
    /* Menü içi kaydırılabilir */
}

/* Menü aktif olduğunda görünür */
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

/* === LOGO === */
.mobile-logo {
    width: 300px;
    margin: 0 auto 40px auto;
    display: block;
}

/* === MENÜ ELEMANLARI === */
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* ince ayırıcı çizgi */
    padding: 0.9rem 0;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a,
.mobile-dropdown-toggle {
    color: #1f1e1d;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-align: left;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover efekti */
.mobile-menu a:hover,
.mobile-dropdown-toggle:hover {
    color: hsl(0, 100%, 70%);
    transform: translateX(4px);
}

/* Menü görünümü */
.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-left: 15px;
    padding-left: 10px;
    transition:
        max-height 0.6s ease,
        opacity 0.6s ease,
        margin-top 0.6s ease;
}

/* Açıldığında yumuşak animasyonla gelsin */
.mobile-dropdown.open .mobile-dropdown-menu {
    opacity: 1;
    max-height: 500px;
    /* yeterli alan */
    margin-top: 10px;
}



/* === RESPONSIVE === */
@media (max-width: 950px) {

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar .logo img {
        height: 100px;
        /* logo küçülür */
    }
}

/* === RESPONSIVE HERO & SERVICE DETAIL === */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {

    /* Hero */
    .hero.beton-kesimi .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero.beton-kesimi .hero-content p {
        font-size: 1.1rem;
        max-width: 600px;
    }

    .hero-btn.animate-btn {
        padding: 10px 32px;
        font-size: 1rem;
    }

    /* Service Detail Container */
    .service-detail-container {
        flex-direction: column;
        gap: 30px;
    }

    .text-block,
    .image-block {
        width: 100%;
    }

    .text-block h2 {
        font-size: 2rem;
    }

    .text-block p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .trust-section h2 {
        font-size: 2rem;
    }

    .trust-card h3 {
        font-size: 1.2rem;
    }

    .trust-card p {
        font-size: 0.95rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 10px 28px;
        font-size: 1rem;
    }
}

/* Mobil (max 768px) */
@media (max-width: 768px) {
    .hero.beton-kesimi {
        height: 90vh;
    }

    .hero.beton-kesimi .hero-content {
        width: 90%;
        top: 55%;
        padding: 0 10px;
    }

    .hero.beton-kesimi .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero.beton-kesimi .hero-content p {
        font-size: 1rem;
    }

    .hero-btn.animate-btn {
        padding: 10px 28px;
        font-size: 0.95rem;
    }

    .service-detail-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }

    .text-block h2 {
        font-size: 1.6rem;
    }

    .text-block p {
        font-size: 0.95rem;
    }

    .image-block img {
        width: 100%;
        height: auto;
    }

    .trust-section h2 {
        font-size: 1.8rem;
    }

    .trust-card h3 {
        font-size: 1.1rem;
    }

    .trust-card p {
        font-size: 0.9rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 8px 24px;
        font-size: 0.95rem;
    }
}

/* Küçük telefonlar (max 480px) */
@media (max-width: 480px) {
    .hero.beton-kesimi {
        height: 85vh;
    }

    .hero.beton-kesimi .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero.beton-kesimi .hero-content p {
        font-size: 0.9rem;
    }

    .hero-btn.animate-btn {
        padding: 8px 24px;
        font-size: 0.9rem;
    }

    .text-block h2 {
        font-size: 1.4rem;
    }

    .text-block p {
        font-size: 0.85rem;
    }

    .trust-section h2 {
        font-size: 1.5rem;
    }

    .trust-card h3 {
        font-size: 1rem;
    }

    .trust-card p {
        font-size: 0.85rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.85rem;
    }

    .cta-btn {
        padding: 6px 20px;
        font-size: 0.85rem;
    }

    .slide {
        background-size: cover;
        background-position: 30% center;
        /* soldan %30, ortada figür daha net görünür */
    }

}

/* Tablet görünümü (max 1024px) - 3 sütun */
@media (max-width: 1024px) {
    .gallery-card {
        flex: 0 0 calc(33.333% - 0.75rem);
        max-width: calc(33.333% - 0.75rem);
    }
}

/* Mobil görünümü (max 600px) - 2 sütun */
@media (max-width: 600px) {
    .gallery-card {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    .gallery-row {
        gap: 0.5rem;
    }

    .img-wrap {
        aspect-ratio: 4/3;
    }
}

.whatsapp-fab {
    --size: 64px;
    position: fixed;
    left: 20px;
    /* solda */
    bottom: 20px;
    /* altta */
    width: var(--size);
    height: var(--size);
    display: inline-grid;
    place-items: center;
    background: linear-gradient(180deg, #25D366 0%, #1ebe57 100%);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
    will-change: transform;
    outline: none;
}

.whatsapp-fab svg {
    width: 56%;
    height: 56%;
    fill: white;
    display: block;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

/* Shake animasyonu (kısa, dikkat çekici) */
@keyframes whatsapp-shake {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    45% {
        transform: rotate(-8deg);
    }

    60% {
        transform: rotate(6deg);
    }

    75% {
        transform: rotate(-4deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Shake uygulanmış hali (JS ile .shake class'ı eklenir/çıkarılır) */
.whatsapp-fab.shake {
    animation: whatsapp-shake 850ms cubic-bezier(.36, .07, .19, .97);
}

/* Ekran küçüldüğünde boyutu biraz küçült */
@media (max-width: 480px) {
    .whatsapp-fab {
        --size: 56px;
        left: 14px;
        bottom: 14px;
    }
}

/* Tercih edenler için hareketi kapat (erişilebilirlik) */
@media (prefers-reduced-motion: reduce) {

    .whatsapp-fab,
    .whatsapp-fab.shake {
        animation: none !important;
        transition: none !important;
    }
}