body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #121212, #2d2d2d);
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #3b3b3b;
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4a017;
}

body.popup-open,
html.popup-open {
    overflow: hidden !important;
    height: 100%;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    min-height: 100vh;
    background: #1a1a1a;
    padding: 20px 0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.7);
    z-index: 10;
    overflow-y: auto;
}

/* Menü container */
.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Menü öğesi */
.nav-item {
    position: relative;
    width: 50px;
    height: 50px;
    background: #000000;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.nav-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    background: #2d2d2d;
}

/* Bağlantı (ikon) */
.nav-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    text-decoration: none;
    position: relative;
}

/* İkon */
.nav-item i {
    font-size: 1.2rem;
    transition: none;
}

/* Global Tooltip */
.global-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    color: #ffeb3b;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 12px;
    white-space: nowrap;
    display: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    border: 1px solid #ffeb3b;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
    box-sizing: border-box;
}

/* Tooltip'in sol tarafına ok ekleme */
.global-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #ffeb3b;
    z-index: 1001;
}

/* Main Wrapper */
.main-wrapper {
    margin-left: 80px;
    width: calc(100% - 80px);
    position: relative;
    transition: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo {
    width: 270px;
    height: auto;
    display: block;
    margin: 1px auto;
    position: sticky;
    z-index: 5;
}

.search-container {
    text-align: center;
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Search ile dropdown arası boşluk */
    align-items: center;
    /* İçeriği ortala */
}

/* Search Bar */
.search-bar {
    width: 50%;
    max-width: 400px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    background: #2d2d2d;
    border: 2px solid #ffeb3b;
    border-radius: 25px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar:focus {
    border-color: #ffeb3b;
}

/* Category Dropdown */
.category-dropdown {
    width: 50%;
    max-width: 400px;
    padding: 10px 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: #2d2d2d;
    border: 2px solid #ffeb3b;
    border-radius: 25px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.category-dropdown:focus {
    border-color: #d4a017;
}

@media (max-width: 768px) {
    .search-bar {
        width: 90%;
    }

    .category-dropdown {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .search-bar {
        width: 80%;
    }

    .category-dropdown {
        width: 80%;
    }
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

/* Card */
.card {
    position: relative;
    width: 22%;
    min-width: 220px;
    height: 270px;
    background: #1a1a1a;
    border-radius: 20px 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #d4a017;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.card:hover img {
    filter: blur(0px);
}

.base-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.card:hover .base-overlay {
    background: rgba(0, 0, 0, 0.0);
}

.text {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(0px);
    padding: 10px 15px;
    border-radius: 15px;
    display: inline-block;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

.card:hover .text h2 {
    transform: scale(1);
    background: rgba(0, 0, 0, 0.80);
}

.view-project-btn {
    background: #ffeb3b;
    color: #000000;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    padding: 5px 15px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.view-project-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.7);
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: flex-start;
    z-index: 2000;
    overflow-y: auto;
    padding-top: 20px;
    box-sizing: border-box;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px 40px 40px;
    width: 930px;
    /* 🔒 ancho fijo desktop */
    max-width: calc(100vw - 40px);
    color: #ffffff;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    /* comportamiento vertical */
    max-height: 90vh;
    overflow-y: auto;
}

.popup-content h2 {
    margin: 0 0 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.popup-content p {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #d4a017;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.virtual-tour-btn {
    display: flex;
    align-items: center;
    background: #ffeb3b;
    color: #000000;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 15px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.virtual-tour-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.virtual-tour-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.7);
}

.whatsapp-share-btn {
    display: flex;
    align-items: center;
    background: #25D366;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 15px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-share-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.whatsapp-share-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.7);
}

.contact-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-box {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.info-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

.info-box h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffeb3b;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #ffffff;
}

.contact-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-right iframe {
    border-radius: 15px;
}

.info-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.info-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.vertical-image {
    background: no-repeat center center;
    background-size: cover;
    width: 170px;
    height: 300px;
    border-radius: 15px;
}

.info-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    max-height: 300px;
    overflow-y: auto;
}

.info-right p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
}

.services-section {
    margin-top: 0 !important;
}

.title-rectangle {
    background: #ffeb3b;
    border-radius: 8px;
    padding: 10px 20px;
    margin-bottom: 20px;
    align-self: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.title-rectangle h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.5px;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.service-box {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 15px;
    width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.service-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.8);
}

.service-box h4 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffeb3b;
}

.service-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #d3d3d3;
    line-height: 1.4;
}

.footer {
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    margin-left: 80px;
    width: calc(100% - 80px);
}

/* Media Queries */
@media (max-width: 940px) and (min-width: 481px) {
    .card {
        width: 24%;
        min-width: 180px;
    }

    .container {
        gap: 10px;
    }
}

@media (max-width: 800px) {
    .popup {
        align-items: flex-start;
        padding-top: 30px;
    }

    .popup-content {
        width: 86 %;
        max-width: none;
        padding: 18px;
        border-radius: 18px;
        max-height: 85vh;
        margin-bottom: 20px;
    }

    .info-layout {
        flex-direction: column;
        align-items: center;
    }

    .vertical-image {
        width: 200px;
        height: 200px;
    }

    .info-right {
        max-height: none;
        overflow-y: visible;
    }

    .service-box {
        width: 160px;
    }
}

@media (max-width: 768px), (pointer: coarse) {
    .sidebar {
        width: 80px;
        transition: none;
        pointer-events: auto;
    }

    .nav-item {
        width: 50px;
        transition: none;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        background: #000000;
        border-radius: 8px;
    }

    .nav-item:hover {
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        background: #2d2d2d;
    }

    .nav-item i {
        transition: none;
    }

    .main-wrapper {
        margin-left: 80px;
        width: calc(100% - 80px);
        transition: none;
    }

    .main-content {
        margin: 0;
    }

    .search-container {
        padding: 15px 0;
        /* Sağ ve sol padding kaldırıldı */
    }

    .search-bar {
        width: 90%;
        max-width: 100%;
    }

    .container {
        padding: 15px 0;
    }

    /* Mobil cihazlarda tooltip ve oku gizle */
    .global-tooltip,
    .global-tooltip::before {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .card {
        width: 80%;
        min-width: unset;
        border-radius: 16px;
    }

    .sidebar {
        width: 55px;
    }

    .main-wrapper {
        margin-left: 50px;
        width: calc(100% - 50px);
    }

    .logo {
        width: 200px;
    }

    .search-bar {
        width: 80%;
    }

    .nav-item {
        width: 45px;
        border-radius: 8px;
    }

    .popup-content {
        width: 90%;
        padding: 20px;
    }

    .info-box {
        padding: 10px;
    }

    .contact-right iframe {
        height: 150px;
    }

    .vertical-image {
        width: 250px;
        height: 150px;
    }

    .service-box {
        width: 100%;
    }

    .title-rectangle {
        padding: 8px 15px;
    }

    .footer {
        margin-left: 50px;
        width: calc(100% - 50px);
        font-size: 0.8rem;
        padding: 8px 0;
    }

    .filter-container {
        text-align: center;
        padding: 10px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* =============================== AUTOCOMPLETE TAG SUGGESTIONS Visual only – safe overrides =============================== */
.autocomplete-container {
    position: relative;
    display: inline-block;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 2px solid #ffeb3b;
    border-top: none;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    z-index: 50;
    overflow: hidden;
    animation: autocompleteFadeIn 0.15s ease-out;
    box-sizing: border-box;
}

.autocomplete-item {
    padding: 10px 16px;
    font-size: 0.95rem;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.autocomplete-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.autocomplete-item:hover {
    background: #ffeb3b;
    color: #000000;
}

/* Small entrance animation */
@keyframes autocompleteFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================== PRO MODE – Search + Autocomplete unified =============================== */
.autocomplete-container.autocomplete-open .search-bar {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.autocomplete-container.autocomplete-open .autocomplete-list {
    top: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

/* Opcional pero recomendado: reduce percepción de línea */
.autocomplete-container.autocomplete-open {
    margin-bottom: -2px;
}

/* =============================== FINAL PRO FIX – eliminate yellow separator =============================== */
/* Cuando autocomplete está activo, el dropdown se acerca visualmente */
.autocomplete-container.autocomplete-open+.category-dropdown {
    margin-top: -8px;
}

/* Suaviza la transición visual */
.autocomplete-container.autocomplete-open+.category-dropdown {
    transition: margin-top 0.15s ease;
}

/* =============================== FINAL REAL FIX – autocomplete empty state =============================== */
.autocomplete-list:empty {
    border: none;
}

.search-bar {
    box-sizing: border-box;
}

.autocomplete-list {
    box-sizing: border-box;
}

/* =============================== FIX DEFINITIVO ANCHO AUTOCOMPLETE =============================== */
/* El contenedor DEBE copiar el ancho del input */
.autocomplete-container {
    width: 50%;
    max-width: 400px;
}

/* Responsive: igual que search-bar */
@media (max-width: 768px) {
    .autocomplete-container {
        width: 90%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .autocomplete-container {
        width: 80%;
    }
}

/* El dropdown ocupa exactamente el contenedor */
.autocomplete-list {
    width: 100%;
}

/* =============================== FIX REAL – UNIFICAR ANCHOS =============================== */
/* El contenedor define el ancho real */
.autocomplete-container {
    width: 50%;
    max-width: 400px;
    box-sizing: border-box;
}

/* El input ocupa TODO el contenedor */
.autocomplete-container .search-bar {
    width: 100% !important;
    max-width: 100% !important;
}

/* El dropdown ocupa EXACTAMENTE lo mismo */
.autocomplete-container .autocomplete-list {
    width: 100%;
}

/* Responsive igual que antes */
@media (max-width: 768px) {
    .autocomplete-container {
        width: 90%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .autocomplete-container {
        width: 80%;
    }
}

/* =============================== ABOUT POPUP – Desktop layout =============================== */
.about-layout {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Imagen */
.about-image {
    flex: 0 0 45%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    max-height: 420px;
    object-fit: cover;
}

/* Texto */
.about-text {
    flex: 0 0 55%;
    text-align: left;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-layout {
        flex-direction: column;
    }

    .about-image,
    .about-text {
        flex: 100%;
        text-align: center;
    }
}

/* =============================== ABOUT POPUP – Desktop fix REAL =============================== */
.popup-content {
    display: flex;
    flex-direction: column;
}

/* Contenedor visual: imagen + texto */
.popup-content>img,
.popup-content>p {
    max-width: 100%;
}

/* Desktop: 2 columnas */
@media (min-width: 1024px) {
    .popup-content {
        flex-direction: column;
    }

}

/* =============================== ABOUT POPUP – MOBILE FIX =============================== */
@media (max-width: 768px) {
    .popup-content .about-row {
        flex-direction: column;
        gap: 20px;
    }

    .popup-content .about-row img {
        width: 100%;
        max-height: 240px;
        object-fit: cover;
        border-radius: 18px;
    }

    .popup-content .about-row p {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        gap: 50x; /* antes era 20px */
    }
}


/* =============================== CONTACT POPUP – sin mapa =============================== */
/* Eliminar columna derecha (mapa) */
.contact-right {
    display: none !important;
}

/* Layout contacto centrado */
.contact-layout {
    justify-content: center;
}

/* Columna única centrada */
.contact-left {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

/* Cajas de info centradas */
.contact-left .info-box {
    text-align: center;
}

/* ========================= */
/* PROJECT SLIDER (POPUP) */
/* ========================= */
.project-slider {
    position: relative;
    width: 850px;
    /* 🔒 ancho fijo */
    height: 450px;
    /* 🔒 alto fijo */
    margin: 30px auto 20px;
    /* centrado + aire arriba */
    overflow: hidden;
    border-radius: 18px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-track img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 18px;
}

/* Botones */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #ffeb3b;
    border: none;
    font-weight: 700;
    line-height: 1;
    font-size: 2.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    pointer-events: auto;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ========================= */
/* SLIDER – MOBILE BOOST */
/* ========================= */
@media (max-width: 768px) {
    .project-slider {
        aspect-ratio: 1 / 1;
        width: 100%;
        max-height: 90vw;
    }

    .slider-track img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .project-slider .slider-btn {
        display: none;
    }

    .slider-track img {
        object-fit: cover;
    }
}

/* ========================= */
/* SLIDER DOTS */
/* ========================= */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 20px;
    position: relative;
    z-index: 50;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
    background: #ffeb3b;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .project-slider .slider-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .project-slider {
        aspect-ratio: 1 / 1;
        max-height: 90vw;
    }

    .slider-track img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 768px) {
    .slider-dots {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .popup-content {
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== FIX REAL: dots siempre visibles ===== */
.project-slider {
    margin-bottom: 8px;
}

.slider-dots {
    margin-top: 8px;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .popup-content {
        width: 930px;
        max-width: 930px;
        max-height: 90vh;
        overflow-y: auto;
        padding-top: 40px;
        /* aire para la X */
        padding-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .project-slider {
        flex-shrink: 0;
        /* 🔒 CLAVE: no se aplasta */
    }
}
/* ==================================================
   FIX DEFINITIVO – MOBILE POPUP + SLIDER
   ================================================== */

@media (max-width: 768px) {

  /* El popup solo centra horizontal, crece hacia abajo */
  .popup {
    align-items: flex-start;
    padding-top: 20px;
  }

  /* El contenido puede crecer y hacer scroll */
  .popup-content {
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* SLIDER CUADRADO */
  .project-slider {
    width: 100%;
    aspect-ratio: 1 / 1;   /* 🔑 CLAVE */
    height: auto;
    max-height: 85vw;

    margin: 20px auto 12px;
    flex-shrink: 0;        /* 🔒 no se aplasta nunca */
  }

  .slider-track {
    height: 100%;
  }

  .slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Botones fuera en móvil */
  .project-slider .slider-btn {
    display: none;
  }

  /* Dots visibles y con aire */
  .slider-dots {
    margin-bottom: 16px;
  }
}
/* =============================== */
/* FIX ESPACIO SUPERIOR POPUP (X) */
/* =============================== */

.popup-content {
    padding-top: 26px; /* antes era 30px */
}

.popup-buttons {
  margin-bottom: 32px;
}
.nav-item:has(a#contact-btn) {
    display: none !important;
}

/* ===============================
   WELCOME OVERLAY
   =============================== */

#welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 1);
    z-index: 3000;
    /* CLAVE: ahora sí scrollea */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
 
    opacity: 1;
    transition: opacity 0.5s ease;
}

#welcome-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    text-align: center;
    color: #ffffff;
}

.welcome-logo {
    max-width: 260px;
    margin: 0 auto 20px;
    display: block;
}

.welcome-content h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.welcome-content p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 28px;
    line-height: 1.55;
}

.welcome-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.welcome-buttons button {
    background: #ffeb3b;
    color: #000;
    border: none;
    padding: 12px 22px;
    border-radius: 16px;
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.welcome-buttons button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 14px rgba(255,235,59,0.6);
}

/* MOBILE */
@media (max-width: 480px) {
    .welcome-content {
        padding: 28px 18px 50px;
    }

    .welcome-content h1 {
        font-size: 1.35rem;
    }

    .welcome-text {
        font-size: 0.88rem;
        margin-bottom: 22px;
    }
}
/* iOS Safari – prevent input zoom */
@supports (-webkit-touch-callout: none) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-text-size-adjust: 100%;
  }
}
/* ===============================
   BOTÓN CERRAR – POPUP SERVICIOS
   =============================== */

.services-close-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);

    padding: 10px 22px;
    border-radius: 16px;

    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;

    cursor: pointer;
    transition: all 0.25s ease;

    margin: 20px auto;
    display: block;
}

.services-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Footer del popup servicios */
.services-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Aire final: equivalente a 2 botones */
.services-bottom-space {
    height: 130px;
}
/* ===============================
   ABOUT POPUP – LAYOUT DEFINITIVO
   =============================== */

/* Desktop y mobile: columna única */
.about-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Imagen centrada */
.about-row img {
    display: block;
    max-width: 100%;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 18px;
}

/* Texto */
.about-row p {
    max-width: 720px;
    text-align: center;
    line-height: 1.6;
}

/* ===============================
   BOTÓN CERRAR SERVICIOS – SUPERIOR
   =============================== */

/* Primer botón cerrar dentro de services */
.services-section > .services-close-btn {
    margin-top: 10px;     /* cerca de la foto */
    margin-bottom: 40px;  /* aire antes de los servicios */
}
/* ===============================
   SERVICES – DESACTIVAR EFECTO BOTÓN
   =============================== */

.service-box {
    cursor: default;              /* no mano */
    transition: none !important;  /* mata animaciones */
}

/* Desktop hover */
.service-box:hover {
    transform: none !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Mobile tap / active */
.service-box:active {
    transform: none !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

/* ABOUT POPUP – ajustar espacio imagen → botón cerrar */
#info-popup .about-row img {
    margin-bottom: 12px; /* antes implícito/auto, ahora controlado */
}
/* Botón cerrar servicios – versión superior */
#info-popup .services-section > .services-close-btn {
    margin-top: 8px;     /* estaba visualmente muy lejos */
    margin-bottom: 24px; /* aire antes de los servicios */
    align-self: center;
}
#info-popup .popup-content h2 {
    margin-bottom: 8px; /* antes 20px */
}

/* ===============================
   PROJECT POPUP – BOTONES ACCIÓN
   =============================== */

.project-popup-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Reutiliza estilo cerrar servicios */
.project-close-btn {
    margin: 0;
    padding: 10px 22px;
}

/* Mobile: botones apilables si no caben */
@media (max-width: 480px) {
    .project-popup-actions {
        flex-direction: column;
        gap: 12px;
    }
}
/* ===============================
   WELCOME VIDEO (iframe)
   =============================== */

.welcome-video {
    width: 00%;
    max-width: 720px;
    margin: 0 auto 28px;

    border-radius: 18px;
    overflow: hidden;

    /* Shadow elegante, no exagerada */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);

    /* Proporción 16:9 real */
    aspect-ratio: 16 / 9;
    background: #000;
}

.welcome-video iframe {
    width: 00%;
    height: 00%;
    border: 0;
    display: block;
}
