﻿.lang-switch #language-dropdown { min-width: auto !important; width: auto !important; padding: 0.25rem !important; }
.lang-switch #language-dropdown button { width: auto !important; padding: 0.25rem 0.5rem !important; }
.lang-switch #language-dropdown .flag-svg { width: 18px; height: 18px; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force uppercase for main section headings */
[data-lang-key="about_title"],
[data-lang-key="mission_title"],
[data-lang-key="vision_title"],
[data-lang-key="services_title"],
[data-lang-key="projects_title"],
[data-lang-key="contact_title"] {
    text-transform: uppercase;
}

/* Hide optional empty third mission paragraph when unused */
[data-lang-key="mission_p3"]:empty { display: none !important; }
/* Hide optional empty third vision paragraph when unused */
[data-lang-key="vision_p3"]:empty { display: none !important; }

/* Anchor offset for sticky header (mobile + desktop) */
#hakkimizda, #faaliyetler, #referanslar, #iletisim, #hizmetler, #projeler { scroll-margin-top: 6rem; }
@media (max-width: 768px) {
    #hakkimizda, #faaliyetler, #referanslar, #iletisim, #hizmetler, #projeler { scroll-margin-top: 5.5rem; }
}

/* Mobile: show label text next to contact icons */
@media (max-width: 768px) {
    .contact-card .bg-red-50 { display: inline-flex !important; align-items: center !important; gap: 0.5rem !important; }
    .contact-card:first-of-type .bg-red-50::after {
        content: 'Ankara Şube';
        color: #374151;
        font-weight: 700;
        font-size: 1rem;
    }
    .contact-card:nth-of-type(2) .bg-red-50::after {
        content: 'Ana Merkez';
        color: #374151;
        font-weight: 700;
        font-size: 1rem;
    }
}

/* Global styles */
html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}
 
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: #faf7f0; /* softer cream white */
    max-width: 100vw;
}

/* Yeni Header - Temiz Tasarım */
.new-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #841D20 0%, #B91C1C 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Desktop: logo left, language switch far right */
@media (min-width: 769px) {
    .header-logo { margin-left: 0; margin-right: 2rem; }
    .lang-switch {
        position: absolute !important;
        top: 50% !important;
        right: 1rem !important;
        transform: translateY(-50%) !important;
        z-index: 1200 !important;
    }
}

.header-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Header Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    padding: 0.5rem;
    background: rgba(139, 28, 28, 0.78); /* themed translucent panel */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    display: none;
    z-index: 1100;
}
.nav-dropdown-menu.show { display: block; }
.nav-dropdown-item {
    display: block;
    padding: 0.6rem 0.75rem;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color .25s ease, transform .2s ease;
}
.nav-dropdown-item:hover {
    background-color: rgba(255,255,255,0.12);
    transform: translateX(2px);
}

/* Match language dropdown to nav dropdown theme */
.lang-switch #language-dropdown {
    background: rgba(139, 28, 28, 0.78) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 12px !important;
}
.lang-switch #language-dropdown button:hover {
    background-color: rgba(255,255,255,0.12) !important;
}

/* Global copy-toast removed; using inline toasts near text */

/* Header copy UX */
.copy-text { cursor: pointer; transition: color .15s ease; }
.header-contact .copy-text:hover { color: #111 !important; }
.copy-wrap { position: relative; }
.copy-inline-toast {
    position: absolute;
    top: 50%;
    left: calc(100% + 6px);
    transform: translateY(-50%);
    background: rgba(17,17,17,0.92);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.copy-inline-toast.show { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* Hover Preview */
.nav-dropdown-preview {
    position: absolute;
    top: 8px;
    right: -200px;
    width: 180px;
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.nav-dropdown-menu.show .nav-dropdown-preview.show { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 768px) {
    .nav-dropdown { display: none; }
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Keep width stable across TR/EN */
    white-space: nowrap;
    min-width: 7.5rem;
    text-align: center;
}

/* Language switch button should be icon-sized, not full nav width */
.lang-switch .nav-link,
#language-dropdown-btn {
    min-width: auto !important;
    padding: 0.125rem 0.25rem !important; /* very compact */
    line-height: 1 !important;
    gap: 0 !important;
}
.lang-switch #current-language .flag-svg { width: auto; height: auto; }

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: #FEF2F2;
    transform: translateY(-2px);
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.contact-phone,
.contact-email {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Header gizlendiğinde */
.new-header.hidden {
    display: none;
}

/* Header görünür olduğunda */
.new-header.visible {
    display: block;
}

/* Mobile Menu Button */
/* Hide the default checkbox */
.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.container {
    display: block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    z-index: 1003;
}

.checkmark {
    position: relative;
    top: 0;
    left: 0;
    height: 1em;
    width: 1em;
}

.checkmark span {
    width: 24px;
    height: 2px;
    background-color: white;
    position: absolute;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
}

.checkmark span:nth-child(1) {
    top: 10%;
}

.checkmark span:nth-child(2) {
    top: 50%;
}

.checkmark span:nth-child(3) {
    top: 90%;
}

.container input:checked + .checkmark span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    -webkit-transform: translateY(-50%) rotate(45deg);
    -moz-transform: translateY(-50%) rotate(45deg);
    -ms-transform: translateY(-50%) rotate(45deg);
    -o-transform: translateY(-50%) rotate(45deg);
}

.container input:checked + .checkmark span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    -webkit-transform: translateY(-50%) rotate(-45deg);
    -moz-transform: translateY(-50%) rotate(-45deg);
    -ms-transform: translateY(-50%) rotate(-45deg);
    -o-transform: translateY(-50%) rotate(-45deg);
}

.container input:checked + .checkmark span:nth-child(3) {
    transform: translateX(-50px);
    -webkit-transform: translateX(-50px);
    -moz-transform: translateX(-50px);
    -ms-transform: translateX(-50px);
    -o-transform: translateX(-50px);
    opacity: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 1002;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #841D20 0%, #B91C1C 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
}

.mobile-menu.show {
    display: block;
}

/* Mobile: make slide-down menu more translucent with subtle blur */
@media (max-width: 768px) {
    .mobile-menu {
        background: linear-gradient(135deg,
            rgba(132, 29, 32, 0.78) 0%,
            rgba(185, 28, 28, 0.78) 100%);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* Contact section mobile sizing: make cards and map comfortably fit */
@media (max-width: 768px) {
    /* Outer paddings tighter */
    #iletisim .w-full { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    /* Cards */
    .contact-card { padding: 1rem !important; border-radius: 12px !important; max-width: 100% !important; }
    .contact-card h4 { font-size: 1.1rem !important; margin-bottom: 0.5rem !important; }
    .contact-card p { font-size: 0.95rem !important; line-height: 1.45 !important; }
    .contact-card .w-16 { width: 3.5rem !important; min-width: 3.5rem !important; }
    .contact-card .copy-text { font-size: 15px !important; color: #374151 !important; margin-left: 0 !important; display: inline-block !important; word-break: break-word !important; }
    /* Keep phone/mail and copy icon on the same line */
    .contact-card .flex.items-center { flex-wrap: nowrap !important; }
    .contact-card .flex { flex-wrap: wrap !important; row-gap: 0.25rem !important; }
    /* Header row → use grid: [icon][title]; safer layout */
    .contact-card .flex.items-start { display: grid !important; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: center !important; }
    .contact-card .bg-red-50 { grid-column: 1; }
    .contact-card .flex.items-start > div { grid-column: 2; min-width: 0; }
    .contact-card h4 { display: inline-block !important; margin: 0 0 .25rem 0 !important; white-space: normal !important; line-height: 1.2 !important; }
    .contact-card h4 + p { margin-top: 0 !important; }
    /* Hide duplicated headings under icons on mobile */
    .contact-card h4 { display: none !important; }
    .contact-card p:first-of-type { margin-top: 0 !important; }
    /* Map container */
    #iletisim .rounded-lg { border-radius: 12px !important; }
    #map-iframe { width: 100% !important; height: 260px !important; }
}

/* Desktop/web: unify phone/mail font size */
.contact-card .copy-text { font-size: 15px; }

/* Mobile: map buttons side-by-side */
@media (max-width: 768px) {
    .map-buttons .rounded-lg { display: flex !important; flex-direction: row !important; gap: 0.5rem !important; }
    .map-buttons button { flex: 1 1 50% !important; min-width: 0 !important; }
}

/* Desktop: place map buttons over the map, centered at the top */
@media (min-width: 769px) {
    .map-buttons {
        position: absolute !important;
        top: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
        margin: 0 !important;
        width: auto !important;
    }
    .map-buttons .rounded-lg { display: flex !important; flex-direction: row !important; gap: 0.5rem !important; }
}

/* Map switcher visual emphasis (all screens) */
.map-buttons .rounded-lg {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 2px solid #991b1b !important; /* stronger red */
    box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
}
.map-buttons button {
    border: 2px solid #991b1b !important;
    background: #ffffff !important;
    color: #991b1b !important;
    font-weight: 700 !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.map-buttons button:hover {
    background: #fee2e2 !important; /* light red */
}

/* Selected state */
.map-buttons button.active {
    background: #991b1b !important;
    color: #ffffff !important;
    border-color: #7f1d1d !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.85) inset, 0 4px 12px rgba(153,27,27,0.35) !important;
}
.map-buttons button.active:hover { background: #991b1b !important; }

.mobile-menu-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.mobile-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1rem;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-contact {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    .logo-img {
        height: 50px;
    }

    #header {
        min-height: 4.5rem;
    }

    /* Keep header fixed on mobile */
    .new-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
    }
}

@media (max-width: 768px) {
    #header {
        min-height: 4.5rem;
    }
}

#header.scrolled {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.footer-anim {
    position: relative;
    height: 120px;
    overflow: hidden;
}

#projector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.footer-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
/* Visually hidden text for accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.flag-svg { width: 20px; height: 20px; display: inline-block; }

/* Make language trigger truly icon-sized on desktop too */
.lang-switch { display: inline-block; }
.lang-switch #language-dropdown-btn { padding: 0.25rem 0.5rem; }

/* Hide check icons in language dropdown */
.lang-switch [data-lucide="check"] { display: none !important; }
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 100px; /* Yeni header height için padding */
}


/* Ensure content stays above animation */
.hero-content {
    position: absolute !important;
    top: 50% !important;
    right: 15% !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    z-index: 20;
    text-align: left;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid transparent;
    max-width: 32%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    overflow: visible;
}

/* Elektrik efekti - Çerçeve animasyonu */
.hero-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.8) 10%,
        rgba(59, 130, 246, 0.9) 25%,
        rgba(147, 51, 234, 0.9) 40%,
        rgba(59, 130, 246, 0.9) 55%,
        rgba(255, 255, 255, 0.8) 70%,
        transparent 100%
    );
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: electric-border 6s linear infinite;
}

@keyframes electric-border {
    0%, 100% {
        background-position: -300% 0;
    }
    50% {
        background-position: 300% 0;
    }
}

/* Elektrik bozulma efekti */
.hero-content {
    animation: electric-glitch 8s infinite;
}

@keyframes electric-glitch {
    0%, 99.5%, 100% {
        filter: brightness(1) drop-shadow(0 0 0 rgba(59, 130, 246, 0));
        transform: translateY(-50%) translateX(0) !important;
    }
    1% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
        transform: translateY(-50%) translateX(2px) !important;
    }
    25% {
        filter: brightness(0.8) drop-shadow(0 0 25px rgba(147, 51, 234, 0.9));
        transform: translateY(-50%) translateX(-2px) !important;
    }
    50% {
        filter: brightness(1.1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.7));
        transform: translateY(-50%) translateX(1px) !important;
    }
    75% {
        filter: brightness(0.9) drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
        transform: translateY(-50%) translateX(-1px) !important;
    }
}



/* Mobil responsive düzenleme */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 2rem 1rem;
        padding-top: 6rem;
        overflow-x: hidden;
    }
    
    .hero-content {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        transform: none !important;
        max-width: 100%;
        width: 100%;
        margin: 0;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        padding: 2rem;
        z-index: 20;
        border-radius: 15px !important;
        text-align: center;
        border: 2px solid rgba(220, 38, 38, 0.3) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
        animation: none !important;
        filter: none !important;
    }
    

    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem 0.5rem;
        padding-top: 5rem;
    }
    
    .hero-content {
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    /* #lightbulb kaldırıldı */
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }

    /* Extra small devices merged */
    .services-grid {
        padding: 0 0.5rem !important;
    }
    
    .contact-info {
        padding: 0 0.5rem !important;
    }
    
    .glass-effect {
        padding: 0.75rem !important;
    }
    
    .glass-effect p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .glass-effect .flex {
        gap: 0.5rem !important;
    }
    
    .glass-effect .w-20 {
        width: 5rem !important;
        min-width: 5rem !important;
        flex-shrink: 0 !important;
    }
    
    .glass-effect .flex.items-center {
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .glass-effect .flex.items-center span:first-child {
        width: 4rem !important;
        min-width: 4rem !important;
        flex-shrink: 0 !important;
        text-align: left !important;
    }
    
    .glass-effect .w-16 {
        width: 4rem !important;
        min-width: 4rem !important;
        flex-shrink: 0 !important;
    }
    
    .map-container {
        padding: 0 0.5rem !important;
    }
    
    .map-buttons {
        padding: 0 0.5rem !important;
    }
    
    .map-buttons button {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
    
    .project-gallery {
        padding: 0 0.5rem !important;
    }
    
    .featured-project {
        padding: 0.5rem !important;
    }
}

/* Glass effect styling */
.glass-effect {
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.glass-effect p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.glass-effect .flex {
    flex-wrap: wrap;
}

.glass-effect .flex-1 {
    min-width: 0;
    flex: 1 1 auto;
}

.glass-effect .flex.items-center {
    align-items: center;
    gap: 0.5rem;
}

.glass-effect .flex.items-center span:first-child {
    width: 4rem;
    min-width: 4rem;
    flex-shrink: 0;
    text-align: left;
}

/* Map buttons styling */
.map-buttons {
    position: relative;
    width: 100%;
    margin: 1rem 0;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.map-buttons .glass-effect {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.map-buttons button {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Container responsive fixes */
.container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Mobile: align hamburger with logo and hide container visuals */
@media (max-width: 768px) {
    /* Place language switcher to the left of hamburger */
    .lang-switch {
        position: absolute !important;
        top: 50% !important;
        right: 4.25rem !important; /* left of hamburger */
        transform: translateY(-50%) !important;
        z-index: 1100 !important;
    }
    .lang-switch #language-dropdown-btn { padding: 0.25rem 0.5rem; font-size: 0.9rem; }
    .lang-switch #language-dropdown { right: 0; }

    label.container.mobile-menu-btn {
        position: absolute !important;
        top: 60% !important;
        right: 0.5rem !important;
        left: auto !important;
        transform: translateY(-50%) !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
        z-index: 1100 !important;
    }
    label.container.mobile-menu-btn .checkmark {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Bulb varyantları kaldırıldı */

/* Gradient text styles - sadece desktop */
@media (min-width: 769px) {
    .gradient-text {
        background: linear-gradient(90deg, #ff6b6b, #ffa500, #ffff00);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transition: all 0.5s ease;
    }
}

/* Mobilde normal renk */
@media (max-width: 768px) {
    .gradient-text {
        color: #ff6b6b !important;
        background: none !important;
        -webkit-text-fill-color: #ff6b6b !important;
    }
}

/* Bulb transformları kaldırıldı */

/* Neon Animasyon Sistemi - EKG Sinyali ve Wifi Dalgası */
.neon-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Neon Çizgiler - Orijinal görsele hizalı */
.neon-line {
    position: absolute;
    background: transparent; /* Arka plandaki çizgiyi gizlemez */
    border-radius: 3px;
}

.horizontal-line {
    width: 75%;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Keep beam visually stable across breakpoints */
@media (min-width: 1024px) {
    .horizontal-line { top: 39.0%; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
    .horizontal-line { top: 39.0%; }
}
@media (max-width: 767.98px) {
    #hero { overflow: visible; }
    .horizontal-line {
      top: 52% !important;                /* Y ekseninde aşağı */
      transform: translate(-50%, -50%) !important; /* Hem X hem Y ortala */
      width: 50px !important;             /* Beam çok kısa */
      left: 62.5% !important;               /* Orta konumda */
    }
    /* Telefonda beam'i hızlandır */
    .pulse-beam { animation: ekg-pulse 2.5s linear infinite !important; will-change: transform; }
    /* Şim dalga - hafif aşağı kaydır */
    .wifi-pulse { 
        top: 30% !important; 
        left: 62.5% !important;
    }

    /* Force alignment overrides to defeat later rules */
    .neon-animation-container .horizontal-line { left: 62.5% !important; transform: translate(-50%, -50%) !important; }
    .neon-animation-container .wifi-pulse     { left: 62.5% !important; transform: translate(-50%, -50%) !important; }
  }



/* Pulse Beam - EKG Sinyali - Orijinal çizgiye hizalı */
.pulse-beam {
    position: absolute;
    width: 75px;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(174, 67, 67, 0.454) 5%, 
        rgba(255, 255, 255, 0.283) 50%, 
        rgba(255, 255, 255, 0.404) 80%, 
        transparent 100%);
    border-radius: 40px;
    box-shadow: 
        0 0 100px rgba(255, 255, 255, 0),
        0 0 50px rgba(255, 255, 255, 0.7),
        0 0 75px rgba(255, 255, 255, 0.5);
    animation: ekg-pulse 5s linear infinite; /* 1 saniye daha yavaş */
}

/* EKG Pulse Animasyonu - Orijinal çizgiye hizalı */
@keyframes ekg-pulse {
    0% {
        transform: translateX(-150px);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    50% {
        transform: translateX(calc(75vw - 150px));
        opacity: 1;
    }
    58% {
        opacity: 0;
    }
    100% {
        transform: translateX(calc(75vw + 150px));
        opacity: 0;
    }
}

/* Neon pulse element (single circle) */
.wifi-pulse {
    position: absolute;
    top: 12%;
    left: 54%;
    transform: translate(-50%, -50%) scale(0.2);
    width: 26px;
    height: 26px;
    border: 1.5px solid rgba(255, 255, 255, 0.95); /* ince neon çerçeve */
    border-radius: 50%;
    box-shadow: none;     /* neon parlamayı kaldır */
    background: transparent;
    opacity: 0;           /* hidden by default */
    animation: none;      /* animation added via class */
    z-index: 3;           /* above beam */
    pointer-events: none;
}

/* When active, grow and fade once */
.wifi-pulse.pulse-active {
    opacity: 1 !important;
    animation: pulse-ring 1.6s ease-in-out forwards !important; /* daha yavaş ve smooth */
    will-change: transform, opacity;
}

/* Pulse ring keyframes (fluid wave expansion) */
@keyframes pulse-ring {
    0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
    99%  { transform: translate(-50%, -50%) scale(3.0); opacity: 1; } /* kabarma yok, opak kalsın */
    100% { transform: translate(-50%, -50%) scale(3.0); opacity: 0; }   /* 3x'e ulaşınca kaybol */
}

/* Disable pseudo usage for pulse (kept for safety) */
.wifi-pulse::before,
.wifi-pulse::after { animation: none; content: none; }

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .hero-content,
    .pulse-beam,
    .wifi-pulse,
    .neon-animation-container *,
    .service-card:hover .service-icon,
    .hex-grid a,
    .gallery-image-container::after,
    .featured-project-card::before {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

/* Mobil Responsive - Orijinal görsele hizalı */
@media (max-width: 768px) {
    .horizontal-line {
        width: 90%;
        height: 6px;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .pulse-beam {
        width: 30px;
    }
    
    .wifi-pulse {
        width: 40px;
        height: 40px;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0; /* Başlangıçta gizli */
        animation: none; /* Animasyonu kaldır */
    }

    /* Mobilde pulse - başlangıç 40px çap, bitiş 130px çap */
    .pulse-ripple { 
        border-width: 0.5px !important;
        width: 20px !important;  /* Başlangıç çapı 40px */
        height: 20px !important;
        animation: pulse-ring-3s-mobile 3s ease-out forwards !important;
    }
    
    /* Mobilde pulse büyürken kalınlık artır */
    @keyframes pulse-ring-3s-mobile {
        0% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
            border-width: 3px;
        }
        50% {
            transform: translate(-50%, -50%) scale(3);
            opacity: 0.7;
            border-width:6px;
        }
        100% {
            transform: translate(-50%, -50%) scale(6);
            opacity: 0;
            border-width: 12px;
        }
    }
    
    /* Mobilde pulse konumu ayarla - ince ayar için değerler */
    .wifi-pulse { 
        top: 30% !important;    /* yukarı/aşağı: 4-12% arası dene */
        left: 50% !important;  /* orta */
        width: 5px !important;  /* Ana konteyner de küçük */
        height: 5px !important;
    }
    
    /* Mobilde merkez çemberleri gizle */
    .wifi-pulse::before,
    .wifi-pulse::after {
        display: none !important;
    }
    
    .wifi-pulse::before {
        display: none !important; /* Merkezdeki küçük çemberi gizle */
    }
    
    .wifi-pulse::after {
        display: none !important; /* Merkezdeki küçük çemberi gizle */
    }
    
    @keyframes ekg-pulse {
        0% {
            transform: translateX(calc(-50vw - 12.5px)); /* Sol dışından başla */
            opacity: 0;
        }
        10% {
            opacity: 1;
        }
        40% {
            opacity: 1;
        }
        50% {
            transform: translateX(calc(50vw - 12.5px)); /* Sağ dışına git */
            opacity: 1;
        }
        60% {
            opacity: 0;
        }
        100% {
            transform: translateX(calc(50vw - 12.5px)); /* Sağ dışında bitir */
            opacity: 0;
        }
    }
}

.fade-in-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
    z-index: 10;
    display: block !important;
    visibility: visible !important;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.glass-effect {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Electric Glow Animation */
@keyframes electric-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6), 0 0 16px rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.9), 0 0 32px rgba(239, 68, 68, 0.6);
  }
}
.service-card:hover .service-icon {
    animation: electric-glow 1.5s infinite ease-in-out;
    background-color: #ef4444;
    color: #ffffff;
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
}
.gallery-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 1.2s ease;
}
.gallery-image-container:hover::after {
    transform: translateX(100%);
}

/* Image Hover Effect */
.image-container img {
    transition: opacity 1.2s ease-in-out;
}

.normal-image {
    opacity: 1;
}

.hover-image {
    opacity: 0;
}

.image-container:hover .normal-image {
    opacity: 0;
}

.image-container:hover .hover-image {
    opacity: 1;
}

/* 2.png için özel desenli background */
.pattern-bg-2 {
    background-image: 
        linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.1) 50%),
        linear-gradient(transparent 50%, rgba(255,255,255,0.1) 50%);
    background-size: 4px 4px, 4px 4px;
    background-position: 0 0, 0 2px;
}

/* 3.png için özel koyu mavi background */
.pattern-bg-3 {
    background-color: #2C3540;
    background-image: none !important;
}

/* Hover durumunda tüm desenleri kaldır */
.image-container:hover {
    background-image: none !important;
}



.services-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 50px 0;
    position: relative;
    z-index: 10;
}

.service-card {
    flex-basis: calc(25% - 30px);
    margin: 0 15px 30px;
    overflow: hidden;
    border-radius: 28px;
    position: relative;
    height: 200px;
}

.service-card-link {
    display: block;
    padding: 30px 20px;
    background-color: #131E26;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: none;
    height: 100%;
}

.service-card-link:hover {
    text-decoration: none;
    color: #FFF;
}

.service-card-bg {
    height: 128px;
    width: 128px;
    background-color: #f9b234;
    z-index: 1;
    position: absolute;
    top: -75px;
    right: -75px;
    border-radius: 50%;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* İlk 4 kart için birleşim noktası efekti */
.service-card:nth-child(1) .service-card-bg {
    top: calc(100% - 53px);
    right: -75px;
    background: rgba(19, 30, 38, 0.8);
    backdrop-filter: none;
    border: none;
    box-shadow: 0 8px 32px rgba(19, 30, 38, 0.2);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card:nth-child(1) .service-card-link {
    background-image: url('assets/elekta.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-card:nth-child(1) .service-card-title {
    color: #ff0000;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 0 0 0 auto;
    font-size: 22px;
    min-height: auto;
    overflow: hidden;
    font-weight: bold;
    transition: all 0.5s ease;
}

.service-card:nth-child(1) .service-card-description {
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin: 30px 0 0 0;
    line-height: 1.4;
    font-size: 14px;
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    transform: translateY(30px);
}


.service-card:nth-child(2) .service-card-bg {
    top: calc(100% - 53px);
    left: -75px;
    background: rgba(19, 30, 38, 0.8);
    backdrop-filter: none;
    border: none;
    box-shadow: 0 8px 32px rgba(19, 30, 38, 0.2);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card:nth-child(2) .service-card-link {
    background-image: url('assets/pro.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}


.service-card:nth-child(2) .service-card-title {
    color: #ff0000;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 0 0 0 auto;
    font-size: 22px;
    min-height: auto;
    overflow: hidden;
    font-weight: bold;
    transition: all 0.5s ease;
}

.service-card:nth-child(2) .service-card-description {
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin: 30px 0 0 0;
    line-height: 1.4;
    font-size: 14px;
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    transform: translateY(30px);
}

.service-card:nth-child(5) .service-card-bg {
    top: -75px;
    right: -75px;
    background: rgba(19, 30, 38, 0.8);
    backdrop-filter: none;
    border: none;
    box-shadow: 0 8px 32px rgba(19, 30, 38, 0.2);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card:nth-child(5) .service-card-link {
    background-image: url('assets/muh.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-card:nth-child(5) .service-card-title {
    color: #ff0000;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 0 0 0 auto;
    font-size: 22px;
    min-height: auto;
    overflow: hidden;
    font-weight: bold;
    transition: all 0.5s ease;
}

.service-card:nth-child(5) .service-card-description {
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin: 30px 0 0 0;
    line-height: 1.4;
    font-size: 14px;
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    transform: translateY(30px);
}

.service-card:nth-child(5) .service-card-link:hover .service-card-title {
    color: #ff0000;
    background: transparent;
    font-size: 22px;
}

.service-card:nth-child(5) .service-card-link:hover .service-card-description {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0px);
}

.service-card:nth-child(5) .service-card-link:hover .service-card-bg {
    background: rgba(19, 30, 38, 0.8);
    transform: scale(10);
}

.service-card:nth-child(5) .service-card-title,
.service-card:nth-child(5) .service-card-description {
    position: relative;
    z-index: 2;
}

.service-card:nth-child(6) .service-card-bg {
    top: -75px;
    left: -75px;
    background: rgba(19, 30, 38, 0.8);
    backdrop-filter: none;
    border: none;
    box-shadow: 0 8px 32px rgba(19, 30, 38, 0.2);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card:nth-child(6) .service-card-link {
    background-image: url('assets/komp.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-card:nth-child(6) .service-card-title {
    color: #ff0000;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 0 0 0 auto;
    font-size: 22px;
    min-height: auto;
    overflow: hidden;
    font-weight: bold;
    transition: all 0.5s ease;
}

.service-card:nth-child(6) .service-card-description {
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin: 30px 0 0 0;
    line-height: 1.4;
    font-size: 14px;
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    transform: translateY(30px);
}

.service-card:nth-child(6) .service-card-link:hover .service-card-title {
    color: #ff0000;
    background: transparent;
    font-size: 22px;
}

.service-card:nth-child(6) .service-card-link:hover .service-card-description {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0px);
}

.service-card:nth-child(6) .service-card-link:hover .service-card-bg {
    background: rgba(19, 30, 38, 0.8);
    transform: scale(10);
}

.service-card:nth-child(6) .service-card-title,
.service-card:nth-child(6) .service-card-description {
    position: relative;
    z-index: 2;
}

/* Son 4 kart için birleşim noktası efekti */
.service-card:nth-child(3) .service-card-bg {
    top: calc(100% - 53px);
    right: -75px;
    background: rgba(19, 30, 38, 0.8);
    backdrop-filter: none;
    border: none;
    box-shadow: 0 8px 32px rgba(19, 30, 38, 0.2);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card:nth-child(3) .service-card-link {
    background-image: url('assets/kuv.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-card:nth-child(3) .service-card-title {
    color: #ff0000;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 0 0 0 auto;
    font-size: 22px;
    min-height: auto;
    overflow: hidden;
    font-weight: bold;
    transition: all 0.5s ease;
}

.service-card:nth-child(3) .service-card-description {
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin: 30px 0 0 0;
    line-height: 1.4;
    font-size: 14px;
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    transform: translateY(30px);
}

.service-card:nth-child(3) .service-card-link:hover .service-card-title {
    color: #ff0000;
    background: transparent;
    font-size: 22px;
}

.service-card:nth-child(3) .service-card-link:hover .service-card-description {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0px);
}

.service-card:nth-child(3) .service-card-link:hover .service-card-bg {
    background: rgba(19, 30, 38, 0.8);
    transform: scale(10);
}

.service-card:nth-child(3) .service-card-title,
.service-card:nth-child(3) .service-card-description {
    position: relative;
    z-index: 2;
}

.service-card:nth-child(4) .service-card-bg {
    top: calc(100% - 53px);
    left: -75px;
    background: rgba(19, 30, 38, 0.8);
    backdrop-filter: none;
    border: none;
    box-shadow: 0 8px 32px rgba(19, 30, 38, 0.2);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card:nth-child(4) .service-card-link {
    background-image: url('assets/zay.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-card:nth-child(4) .service-card-title {
    color: #ff0000;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 0 0 0 auto;
    font-size: 22px;
    min-height: auto;
    overflow: hidden;
    font-weight: bold;
    transition: all 0.5s ease;
}

.service-card:nth-child(4) .service-card-description {
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin: 30px 0 0 0;
    line-height: 1.4;
    font-size: 14px;
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    transform: translateY(30px);
}

.service-card:nth-child(4) .service-card-link:hover .service-card-title {
    color: #ff0000;
    background: transparent;
    font-size: 22px;
}

.service-card:nth-child(4) .service-card-link:hover .service-card-description {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0px);
}

.service-card:nth-child(4) .service-card-link:hover .service-card-bg {
    background: rgba(19, 30, 38, 0.8);
    transform: scale(10);
}

.service-card:nth-child(4) .service-card-title,
.service-card:nth-child(4) .service-card-description {
    position: relative;
    z-index: 2;
}

.service-card:nth-child(7) .service-card-bg {
    top: -75px;
    right: -75px;
    background: rgba(19, 30, 38, 0.8);
    backdrop-filter: none;
    border: none;
    box-shadow: 0 8px 32px rgba(19, 30, 38, 0.2);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card:nth-child(7) .service-card-link {
    background-image: url('assets/test.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-card:nth-child(7) .service-card-title {
    color: #ff0000;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 0 0 0 auto;
    font-size: 22px;
    min-height: auto;
    overflow: hidden;
    font-weight: bold;
    transition: all 0.5s ease;
}

.service-card:nth-child(7) .service-card-description {
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin: 30px 0 0 0;
    line-height: 1.4;
    font-size: 14px;
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    transform: translateY(30px);
}

.service-card:nth-child(7) .service-card-link:hover .service-card-title {
    color: #ff0000;
    background: transparent;
    font-size: 22px;
}

.service-card:nth-child(7) .service-card-link:hover .service-card-description {
    color: #ffffff;
        opacity: 1;
    transform: translateY(0px);
}

.service-card:nth-child(7) .service-card-link:hover .service-card-bg {
    background: rgba(19, 30, 38, 0.8);
    transform: scale(10);
}

.service-card:nth-child(7) .service-card-title,
.service-card:nth-child(7) .service-card-description {
    position: relative;
    z-index: 2;
}

.service-card:nth-child(8) .service-card-bg {
    top: -75px;
    left: -75px;
    background: rgba(19, 30, 38, 0.8);
    backdrop-filter: none;
    border: none;
    box-shadow: 0 8px 32px rgba(19, 30, 38, 0.2);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card:nth-child(8) .service-card-link {
    background-image: url('assets/bak.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-card:nth-child(8) .service-card-title {
    color: #ff0000;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 0 0 0 auto;
    font-size: 22px;
    min-height: auto;
    overflow: hidden;
    font-weight: bold;
    transition: all 0.5s ease;
}

.service-card:nth-child(8) .service-card-description {
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin: 30px 0 0 0;
    line-height: 1.4;
    font-size: 14px;
        opacity: 0;
    transition: all 0.8s ease 0.3s;
    transform: translateY(30px);
}

.service-card:nth-child(8) .service-card-link:hover .service-card-title {
    color: #ff0000;
    background: transparent;
    font-size: 22px;
}

.service-card:nth-child(8) .service-card-link:hover .service-card-description {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0px);
}

.service-card:nth-child(8) .service-card-link:hover .service-card-bg {
    background: rgba(19, 30, 38, 0.8);
    transform: scale(10);
}

.service-card:nth-child(8) .service-card-title,
.service-card:nth-child(8) .service-card-description {
    position: relative;
    z-index: 2;
}

.service-card-link:hover .service-card-bg {
    transform: scale(10);
}

.service-card-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    background-image: url('assets/Logo.png');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-card-link:hover .service-card-logo {
    opacity: 1;
}

.service-card:nth-child(1) .service-card-link:hover .service-card-title {
    color: #ff0000;
    background: transparent;
    font-size: 20px;
}

.service-card:nth-child(1) .service-card-link:hover .service-card-description {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0px);
}

.service-card:nth-child(2) .service-card-link:hover .service-card-title {
    color: #ff0000;
    background: transparent;
    font-size: 22px;
}

.service-card:nth-child(2) .service-card-link:hover .service-card-description {
    color: #ffffff;
    opacity: 1;
    transform: translateY(0px);
}

.service-card:nth-child(2) .service-card-link:hover .service-card-bg {
    background: rgba(19, 30, 38, 0.8);
    transform: scale(10);
}

/* Common service card background styles */
.service-card:nth-child(n) .service-card-bg {
    background: rgba(19, 30, 38, 0.8);
    backdrop-filter: none;
    border: none;
    box-shadow: 0 8px 32px rgba(19, 30, 38, 0.2);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.service-card-title {
    min-height: 60px;
    margin: 0 0 20px;
    overflow: hidden;
    font-weight: bold;
    font-size: 22px;
    color: #ff0000;
    z-index: 2;
    position: relative;
}

.service-card:nth-child(1) .service-card-title {
    min-height: auto;
    margin: 0 0 0 auto;
    font-size: 22px;
    height: auto;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    font-weight: bold;
    overflow: hidden;
}

.service-card-description {
    font-size: 14px;
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin: 0;
    line-height: 1.4;
}

.service-card:nth-child(1) .service-card-description {
    color: #ffffff;
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    transform: translateY(30px);
    font-size: 14px;
    line-height: 1.4;
    margin: 30px 0 0 0;
}

/* Responsive Design */
@media only screen and (max-width: 1200px) {
    .service-card {
        flex-basis: calc(50% - 30px);
    }
    .service-card-title {
        font-size: 18px;
    }
}

@media only screen and (max-width: 639px) {
    .service-card {
        flex-basis: 100%;
    }
    .service-card-title {
        min-height: 50px;
        line-height: 1;
        font-size: 16px;
    }
    .service-card-link {
        padding: 22px 40px;
    }
    .service-card-description {
        font-size: 12px;
    }
}

/* Hex Grid Gallery Styles */
.hex-gallery-container {
    container-type: inline-size;
    margin: 2rem 0;
}

.hex-grid {
    --u: 6em; /* unit column width */
    --s: max(.25rem, 1vmin); /* gap size */
    display: grid;
    /* compute row gap out of column one */
    grid-gap: calc(.5*var(--s)*sqrt(3)) var(--s);
    grid-template-columns: repeat(12, 1fr);
    justify-content: center;
    margin: calc(.5*var(--u)) 0;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hex-grid a {
    display: grid;
    overflow: hidden;
    margin: calc(-25%/sqrt(3)) 0;
    clip-path: 
        polygon(50% 0, 150% 50%, 50% 100%, -50% 50%);
    transition: all 0.3s ease;
}

/* First row: 5 hexes */
.hex-grid a:nth-child(1) { grid-column: 2 / span 2; }
.hex-grid a:nth-child(2) { grid-column: 4 / span 2; }
.hex-grid a:nth-child(3) { grid-column: 6 / span 2; }
.hex-grid a:nth-child(4) { grid-column: 8 / span 2; }
.hex-grid a:nth-child(5) { grid-column: 10 / span 2; }

/* Second row: 5 hexes (offset) */
.hex-grid a:nth-child(6) { grid-column: 1 / span 2; }
.hex-grid a:nth-child(7) { grid-column: 3 / span 2; }
.hex-grid a:nth-child(8) { grid-column: 5 / span 2; }
.hex-grid a:nth-child(9) { grid-column: 7 / span 2; }
.hex-grid a:nth-child(10) { grid-column: 9 / span 2; }

/* Third row: 5 hexes */
.hex-grid a:nth-child(11) { grid-column: 2 / span 2; }
.hex-grid a:nth-child(12) { grid-column: 4 / span 2; }
.hex-grid a:nth-child(13) { grid-column: 6 / span 2; }
.hex-grid a:nth-child(14) { grid-column: 8 / span 2; }
.hex-grid a:nth-child(15) { grid-column: 10 / span 2; }

.hex-grid a:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Responsive Hex Grid */
@media (max-width: 1200px) {
    .hex-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    /* 4-4-4-3 düzeni */
    .hex-grid a:nth-child(1) { grid-column: 2 / span 2; }
    .hex-grid a:nth-child(2) { grid-column: 4 / span 2; }
    .hex-grid a:nth-child(3) { grid-column: 6 / span 2; }
    .hex-grid a:nth-child(4) { grid-column: 8 / span 2; }
    
    .hex-grid a:nth-child(5) { grid-column: 1 / span 2; }
    .hex-grid a:nth-child(6) { grid-column: 3 / span 2; }
    .hex-grid a:nth-child(7) { grid-column: 5 / span 2; }
    .hex-grid a:nth-child(8) { grid-column: 7 / span 2; }
    
    .hex-grid a:nth-child(9) { grid-column: 2 / span 2; }
    .hex-grid a:nth-child(10) { grid-column: 4 / span 2; }
    .hex-grid a:nth-child(11) { grid-column: 6 / span 2; }
    .hex-grid a:nth-child(12) { grid-column: 8 / span 2; }
    
    .hex-grid a:nth-child(13) { grid-column: 3 / span 2; }
    .hex-grid a:nth-child(14) { grid-column: 5 / span 2; }
    .hex-grid a:nth-child(15) { grid-column: 7 / span 2; }
}

@media (max-width: 768px) {
    .hex-grid {
        grid-template-columns: repeat(8, 1fr);
        --u: 4em; /* Daha küçük hex'ler */
    }
    /* 3-3-3-3-3 düzeni */
    .hex-grid a:nth-child(1) { grid-column: 2 / span 2; }
    .hex-grid a:nth-child(2) { grid-column: 4 / span 2; }
    .hex-grid a:nth-child(3) { grid-column: 6 / span 2; }
    
    .hex-grid a:nth-child(4) { grid-column: 1 / span 2; }
    .hex-grid a:nth-child(5) { grid-column: 3 / span 2; }
    .hex-grid a:nth-child(6) { grid-column: 5 / span 2; }
    
    .hex-grid a:nth-child(7) { grid-column: 2 / span 2; }
    .hex-grid a:nth-child(8) { grid-column: 4 / span 2; }
    .hex-grid a:nth-child(9) { grid-column: 6 / span 2; }
    
    .hex-grid a:nth-child(10) { grid-column: 1 / span 2; }
    .hex-grid a:nth-child(11) { grid-column: 3 / span 2; }
    .hex-grid a:nth-child(12) { grid-column: 5 / span 2; }
    
    .hex-grid a:nth-child(13) { grid-column: 2 / span 2; }
    .hex-grid a:nth-child(14) { grid-column: 4 / span 2; }
    .hex-grid a:nth-child(15) { grid-column: 6 / span 2; }
}

@media (max-width: 480px) {
    .hex-grid {
        grid-template-columns: repeat(6, 1fr);
        --u: 3em; /* Çok küçük hex'ler */
    }
    /* 2-2-2-2-2-2-2-1 düzeni */
    .hex-grid a:nth-child(1) { grid-column: 2 / span 2; }
    .hex-grid a:nth-child(2) { grid-column: 4 / span 2; }
    
    .hex-grid a:nth-child(3) { grid-column: 1 / span 2; }
    .hex-grid a:nth-child(4) { grid-column: 3 / span 2; }
    
    .hex-grid a:nth-child(5) { grid-column: 2 / span 2; }
    .hex-grid a:nth-child(6) { grid-column: 4 / span 2; }
    
    .hex-grid a:nth-child(7) { grid-column: 1 / span 2; }
    .hex-grid a:nth-child(8) { grid-column: 3 / span 2; }
    
    .hex-grid a:nth-child(9) { grid-column: 2 / span 2; }
    .hex-grid a:nth-child(10) { grid-column: 4 / span 2; }
    
    .hex-grid a:nth-child(11) { grid-column: 1 / span 2; }
    .hex-grid a:nth-child(12) { grid-column: 3 / span 2; }
    
    .hex-grid a:nth-child(13) { grid-column: 2 / span 2; }
    .hex-grid a:nth-child(14) { grid-column: 4 / span 2; }
    
    /* Place 15th on a fresh row to avoid overlap on small screens */
    .hex-grid a:nth-child(15) { grid-column: 1 / span 2; }
}

.hex-grid img {
    width: 100%;
    aspect-ratio: sqrt(3)/ 2;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.65s ease-out, opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.hex-grid a:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.hex-grid a.auto-hover img,
.hex-grid a.manual-hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
    transition: all 0.65s ease-out;
}

.hex-grid a.auto-hover,
.hex-grid a.manual-hover {
    transform: scale(1.05);
    z-index: 10;
    filter: drop-shadow(0 0 2px #ff0000) 
            drop-shadow(0 0 4px #ff0000) 
            drop-shadow(0 0 6px #ff0000);
    border: 1px solid #ff0000;
}

/* only needed if dividing lengths not supported */
@supports not (scale: calc(100cqh/3lh)) {
    @property --p { /* numerator */
        syntax: '<length-percentage>';
        initial-value: 0px;
        inherits: true
    }

    @property --q { /* denominator */
        syntax: '<length-percentage>';
        initial-value: 0px;
        inherits: true
    }
    
    .hex-grid {
        --f: round(tan(atan2(var(--p), var(--q))), .00001)
    }
}

/* Merkez Ankara Card Styles */
.merkez-ankara-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.merkez-ankara-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 2s;
    z-index: 1;
}

.merkez-ankara-card:hover::before {
    left: 100%;
}

.merkez-ankara-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.merkez-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.merkez-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: all 0.3s ease;
}

.merkez-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease;
}

.merkez-ankara-card:hover .merkez-card-overlay {
    opacity: 1;
}

.merkez-card-hover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.merkez-card-content {
    padding: 1.5rem;
    height: calc(100% - 200px);
    display: flex;
    flex-direction: column;
}

.merkez-card-badge {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.merkez-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.merkez-card-description {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.merkez-card-features {
    margin-bottom: 1rem;
}

.merkez-feature {
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.merkez-feature::before {
    content: "•";
    color: #dc2626;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.merkez-card-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 0;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.merkez-stat {
    text-align: center;
}

.merkez-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 0.25rem;
}

.merkez-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .hex-grid {
        --u: 4em;
        --s: max(.15rem, 0.8vmin);
    }
    
    .merkez-card-image {
        height: 180px;
    }
    
    .merkez-card-content {
        height: calc(100% - 180px);
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hex-grid {
        --u: 3em;
        --s: max(.1rem, 0.6vmin);
    }
    
    .merkez-card-image {
        height: 150px;
    }
    
    .merkez-card-content {
        height: calc(100% - 150px);
        padding: 0.75rem;
    }
    
    .merkez-card-stats {
        flex-direction: column;
        gap: 1rem;
    }
}





/* Modern Projects Section - 2024-2025 Design */
.projects-section {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    display: none;
}
/* (Removed unused Modern Project Cards, Featured Project, Modern Gallery, Projects Grid) */

/* Bold Filled Text - No Outline, No Shadow, No 3D */
.text-3d {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #dc2626;
    text-transform: uppercase;
    text-shadow: none;
    -webkit-text-stroke: none;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.text-3d:hover {
    color: #b91c1c;
}

/* Day/Night Toggle */
.day-night {
    cursor: pointer;
    position: relative;
    opacity: .3;
}

.day-night input {
    display: none;
}

.day-night input + div {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    position: relative;
    box-shadow: inset 8px -8px 0 0 var(--text-color);
    transform: scale(1) rotate(-2deg);
    transition: box-shadow .5s ease 0s, transform .4s ease .1s;
}

.day-night input + div:before {
    content: '';
    width: inherit;
    height: inherit;
    border-radius: inherit;
    position: absolute;
    left: 0;
    top: 0;
    transition: background-color .3s ease;
}

.day-night input + div:after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: -3px 0 0 -3px;
    position: absolute;
    top: 50%;
    left: 50%;
    box-shadow: 0 -23px 0 var(--text-color), 0 23px 0 var(--text-color), 23px 0 0 var(--text-color), -23px 0 0 var(--text-color), 15px 15px 0 var(--text-color), -15px 15px 0 var(--text-color), 15px -15px 0 var(--text-color), -15px -15px 0 var(--text-color);
    transform: scale(0);
    transition: all .3s ease;
}

.day-night input:checked + div {
    box-shadow: inset 20px -20px 0 0 var(--text-color);
    transform: scale(.5) rotate(0deg);
    transition: transform .3s ease .1s, box-shadow .2s ease 0s;
}

.day-night input:checked + div:before {
    background: var(--text-color);
    transition: background-color .3s ease .1s;
}

.day-night input:checked + div:after {
    transform: scale(1);
    transition: transform .5s ease .15s;
}

/* Gallery Modal Styles */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Slider Modal Variables */
:root {
    --color-black: #0a101f;
    --color-light: #ffffff;
    --color-dark: #000000;
    --color-neutral-900: #1a1a1a;
    --container-padding: 2rem;
    --cubic-default: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slider Styles */
.cloneable {
    padding: var(--container-padding);
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    display: flex;
    position: relative;
    font-size: 1.1vw;
}

.overlay {
    z-index: 2;
    background-image: linear-gradient(90deg, var(--color-neutral-900) 85%, #0000);
    justify-content: flex-start;
    align-items: center;
    width: 37.5em;
    height: 100%;
    padding-left: 2em;
    display: flex;
    position: absolute;
    inset: 0% auto 0% 0%;
}

.overlay-inner {
    flex-flow: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 28.125em;
    display: flex;
}

.overlay-count-row {
    grid-column-gap: .2em;
    grid-row-gap: .2em;
    flex-flow: row;
    justify-content: flex-start;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 5.625em;
    font-weight: 700;
    display: flex;
}

.count-column {
    height: 1em;
    overflow: hidden;
}

.count-heading {
    width: 2ch;
    font-size: 1em;
    line-height: 1;
    margin: 0px;
}

.count-row-divider {
    background-color: var(--color-light);
    width: 2px;
    height: .75em;
    transform: rotate(15deg);
}

.overlay-nav-row {
    grid-column-gap: 2em;
    grid-row-gap: 2em;
    display: flex;
}

.button {
    background-color: #0000;
    color: #fff;
    border: 1px solid #fff3;
    border-radius: .4em;
    justify-content: center;
    align-items: center;
    width: 4em;
    height: 4em;
    padding: 0;
    display: flex;
    position: relative;
    font-size: inherit;
}

.button-arrow {
    flex: none;
    width: 1em;
    height: .75em;
}

.button-arrow.next {
    transform: rotate(180deg);
}

.button-overlay {
    z-index: 2;
    position: absolute;
    inset: -1px;
}

.overlay-corner {
    border-top: 1px solid var(--color-light);
    border-left: 1px solid var(--color-light);
    border-top-left-radius: .4em;
    width: 1em;
    height: 1em;
}

.overlay-corner.top-right {
    position: absolute;
    inset: 0% 0% auto auto;
    transform: rotate(90deg);
}

.overlay-corner.bottom-left {
    position: absolute;
    inset: auto auto 0% 0%;
    transform: rotate(-90deg);
}

.overlay-corner.bottom-right {
    position: absolute;
    inset: auto 0% 0% auto;
    transform: rotate(180deg);
}

.button, .button-overlay{ 
    transition: transform 0.475s var(--cubic-default), opacity 0.475s var(--cubic-default);
}

.button:hover .button-overlay{ 
    transform: scale(1.4); 
}

.overlay-nav-row:hover:has(.button:hover) .button{ 
    opacity: 0.4; 
}

.button:hover{ 
    transform: scale(0.85); 
    opacity: 1 !important; 
}

.main {
    z-index: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0%;
    overflow: hidden;
}

.slider-wrap {
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    display: flex;
}

.slider-list {
    /* Basit lightbox görünürlüğü için satır düzenini kapat */
    display: block;
    position: relative;
}

.slider-slide {
    flex: none;
    width: 42.5em;
    height: 28em;
    padding-left: 1.25em;
    padding-right: 1.25em;
    transition: opacity .4s;
    position: relative;
    display: none; /* Yalnızca aktif slaytı göster */
    margin-left: auto;
    margin-right: auto;
}

[data-slider="slide"]{ 
    opacity: 0.2; 
}

[data-slider="slide"].active { 
    opacity: 1; 
    display: block; /* Aktif slaytı görünür yap */
} 

[data-slider="slide"].active .slide-caption{ 
    transition-delay:0.3s;
} 

.slide-inner {
    border-radius: .5em;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-slide img{
    width:100%;
    height:100%;
    object-fit: cover;
}

.slide-caption {
    z-index: 2;
    grid-column-gap: .4em;
    grid-row-gap: .4em;
    background-color: var(--color-light);
    color: var(--color-dark);
    white-space: nowrap;
    border-radius: .25em;
    justify-content: flex-start;
    align-items: center;
    padding: .4em .75em .4em .5em;
    display: flex;
    position: absolute;
    top: 1.25em;
    left: 1.25em;
    overflow: hidden;
}

.caption-dot {
    background-color: var(--color-dark);
    border-radius: 10em;
    flex: none;
    width: .5em;
    height: .5em;
}

.caption {
    font-size: .75em;
    font-family: 'Inter', sans-serif;
    margin: 0px;
}

.slide-caption{ 
    transition: transform 0.525s var(--cubic-default), opacity 0.525s var(--cubic-default); 
    transition-delay:0s; 
}

.slide-caption{ 
    opacity: 0; 
    transform:translate(-25%, 0px); 
}

[data-slider="slide"].active .slide-caption{ 
    opacity: 1; 
    transform:translate(0%, 0px); 
}

/* Basit Lightbox CSS */
.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
}

.lightbox-img.loaded {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Modern 2025-style slide transitions (no blur) */
.slide-in-right { opacity: 0; transform: translate(calc(-50% + 36px), -50%) scale(0.98); }
.slide-in-left  { opacity: 0; transform: translate(calc(-50% - 36px), -50%) scale(0.98); }
.slide-out-left { opacity: 0; transform: translate(calc(-50% - 56px), -50%) scale(1.0); transition: opacity .45s ease, transform .45s ease; }
.slide-out-right{ opacity: 0; transform: translate(calc(-50% + 56px), -50%) scale(1.0); transition: opacity .45s ease, transform .45s ease; }


.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .lightbox-img {
        max-width: 95vw;
        max-height: 70vh;
    }
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Hero specific overrides moved from inline */
#hero {
    /* Arka planı pseudo-element ile yöneteceğiz */
    background: none;
    position: relative;
    overflow: hidden;
    height: 100vh; /* ekran yüksekliğinin tamamı */
    height: 100dvh; /* mobil tarayıcı çubukları için daha doğru */
}

/* Üstten %20 kırpma: görseli %120 yükseklikte yerleştir, -%20 yukarı kaydır */
#hero::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -31%;
    height: 120%;
    background-image: url('assets/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

/* Mobile-specific: move image a bit further up for better composition */
@media (max-width: 767.98px) {
    /* Mobile: zoom out (show more of the image) */
    #hero::before {
        top: -6%;
        height: 100%;
        background-size:cover; /* uzaklaştır: tamamını sığdır */
        background-position: center top;
    }
}

/* Pulse trigger via class - JS will toggle this */
.wifi-pulse.pulse-active { 
    opacity: 0;           /* merkez parlaması olmasın */
    animation: none;
}
.wifi-pulse.pulse-active::before { 
    animation: pulse-ring 0.8s ease-out; /* tek halka */
}
.wifi-pulse.pulse-active::after { 
    animation: none;      /* ikinci halka kapalı */
}

/* Ephemeral ripple element for overlapping pulses */
.pulse-ripple {
    position: absolute;
    top: 50%;
    left: 30%;
    width: 60px;
    height: 60px;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(3.0); /* başlangıç çap ~180px */
    opacity: 0; /* başlangıçta görünmesin */
    pointer-events: none;
    animation: pulse-ring-3s 3s ease-out forwards; /* 3s then auto-remove via JS */
    /* Sadece 100°–210° arası yayı göster (diğerlerini maskele) */
    /* 70–150° ve 240–320° görünür; diğer açılar gizli */
    -webkit-mask-image: conic-gradient(
        transparent 0 70deg,
        #000 70deg 150deg,
        transparent 150deg 240deg,
        #000 240deg 320deg,
        transparent 320deg 360deg
    );
            mask-image: conic-gradient(
        transparent 0 70deg,
        #000 70deg 150deg,
        transparent 150deg 240deg,
        #000 240deg 320deg,
        transparent 320deg 360deg
    );
    border-width: 3.2px; /* was 6.4px; half thickness for desktop */
}

/* 3 saniyelik akışkan ripple (başlangıç görünmez, sonra belirir ve büyür) */
@keyframes pulse-ring-3s {
    0%   { transform: translate(-50%, -50%) scale(3.0); opacity: 0; }
    10%  { transform: translate(-50%, -50%) scale(3.0); opacity: 1; }
    80%  { transform: translate(-50%, -50%) scale(10.0); opacity: 0.35; }
    100% { transform: translate(-50%, -50%) scale(12.0); opacity: 0; }
}


