/* ================================================================
   MİL ALÜMİNYUM CEPHE SİSTEMLERİ
   ================================================================
    * Designer          : ONR6NKOC
    * Module            : Design & Web Tasarım  PHP / CSS/ ASP
    * Version           : 2.3.0 (Beyaz Modal Güncellemesi)
    * Contact           : onr6nkoc@gmail.com / +90 546 914 60 79 
    * Description       : Mil Alüminyum Cephe Sistemleri Kurumsal CSS
   ================================================================ */

:root {
    --primary-color: #0f172a;
    --secondary-color: #334155;
    --accent-color: #38bdf8;
    --line-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0f1720;
    color: #ffffff;
    overflow-x: hidden;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 23, 32, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    user-select: none;
    flex-shrink: 0;
}

.logo-container img {
    height: 70px;
    width: auto;
    display: block;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

/* MENU */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    user-select: none;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    transition: var(--transition);
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

nav ul li ul {
    position: absolute;
    top: 35px;
    left: 0;
    background: var(--primary-color);
    display: none;
    flex-direction: column;
    min-width: 200px;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 5px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

nav ul li:hover ul {
    display: flex;
}

nav ul li ul li a {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav ul li ul li:last-child a {
    border-bottom: none;
}

/* --- Hamburger Menü Butonu --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
    flex-shrink: 0;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Mobil Menü --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    padding: 90px 25px 40px 25px;
    box-sizing: border-box;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #ffffff;
}

/* Mobil Dropdown */
.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 500;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
}

.mobile-dropdown-toggle .arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #94a3b8;
}

.mobile-dropdown-toggle .arrow.open {
    transform: rotate(180deg);
}

.mobile-sub-menu {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    width: 100%;
}

.mobile-sub-menu.open {
    display: flex;
}

.mobile-sub-menu a {
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: none;
    color: #94a3b8;
}

.mobile-sub-menu a:hover {
    color: #ffffff;
}

/* Mobil menü overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

body.no-scroll {
    overflow: hidden !important;
}

/* HERO SLIDER */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.hero:active {
    cursor: grabbing;
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.4s ease-out;
}

.slide {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    flex-shrink: 0;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-text {
    position: absolute;
    bottom: 120px;
    left: 60px;
    z-index: 2;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 42px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-text p {
    margin-top: 12px;
    color: #cfd8dc;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* SUB-HERO */
.sub-hero {
    height: 45vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}

.sub-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 32, 0.65);
}

.sub-hero-text {
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

/* CARDS */
.section {
    padding: 80px 40px;
    background: #0b1118;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #121c28;
    border: 1px solid #1f2d3a;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card .content {
    padding: 15px;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 12px;
}

.card p {
    font-size: 13px;
    color: #b0bec5;
}

/* ================================================================
   FOOTER - SİYAH ARKA PLAN
   ================================================================ */
footer {
    background: #070b10;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #1f2d3a;
    position: relative;
    color: #78909c;
}

footer p {
    color: #78909c;
    font-size: 13px;
    margin: 0 0 10px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #78909c;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-signature-container {
    position: relative;
    display: inline-block;
    margin-top: 5px;
    user-select: none;
}

.footer-signature {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
    background: none;
    border: none;
    font-family: inherit;
}

.footer-signature:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* ================================================================
   DESIGNER MODAL - BEYAZ (Tüm Sayfalarda Aynı)
   ================================================================ */
.designer-modal {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    user-select: none;
}

.designer-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.designer-modal-content {
    background: #ffffff !important;
    width: 300px;
    padding: 25px 20px;
    border-radius: 8px;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
    position: relative;
    text-align: center;
    box-sizing: border-box;
}

.designer-modal-content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #ffffff transparent;
    display: block;
    width: 0;
}

.designer-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: var(--transition);
}

.designer-modal-close:hover {
    color: var(--primary-color);
}

.designer-modal-content h3 {
    font-size: 1.2rem;
    color: #0f172a !important;
    margin: 0 0 2px 0;
    font-weight: 700;
}

.designer-modal-content .designer-label {
    font-size: 0.75rem;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 15px;
}

.designer-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.designer-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.designer-info-item:hover {
    border-color: #38bdf8 !important;
    background: #ffffff !important;
}

.designer-info-item label {
    font-size: 0.7rem;
    color: #64748b !important;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
    cursor: pointer;
}

.designer-info-item .d-value {
    font-size: 0.85rem;
    color: #1e293b !important;
    font-weight: 600;
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox:target {
    display: flex;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    nav {
        display: none !important;
    }
    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }

    .logo-container img {
        height: 55px;
        padding: 4px 10px;
    }

    nav ul {
        display: none;
    }

    .hero-text {
        left: 20px;
        right: 20px;
        bottom: 80px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .section {
        padding: 60px 20px;
    }

    .mobile-menu {
        padding: 80px 20px 30px 20px;
    }

    .mobile-menu a {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .mobile-dropdown-toggle {
        font-size: 1.1rem;
        padding: 12px 0;
    }

    .mobile-sub-menu a {
        font-size: 0.95rem;
        padding: 8px 0;
    }

    .designer-modal-content {
        width: 280px;
        padding: 20px 16px;
    }

    .footer-links {
        gap: 14px;
    }
    .footer-links a {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 15px;
    }

    .logo-container img {
        height: 45px;
        padding: 3px 8px;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .section {
        padding: 40px 15px;
    }

    .card img {
        height: 120px;
    }

    .card .content {
        padding: 10px;
    }

    .card h3 {
        font-size: 11px;
    }

    .card p {
        font-size: 11px;
    }

    .mobile-menu {
        padding: 75px 18px 25px 18px;
    }

    .mobile-menu a {
        font-size: 1rem;
        padding: 10px 0;
    }

    .mobile-dropdown-toggle {
        font-size: 1rem;
        padding: 10px 0;
    }

    .mobile-sub-menu a {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .designer-modal-content {
        width: 260px;
        padding: 18px 14px;
    }

    .designer-modal-content h3 {
        font-size: 1rem;
    }

    .designer-info-item .d-value {
        font-size: 0.75rem;
    }
}