/* Atlasya İnşaat - Premium Global Styles */
:root {
    --primary: #0f1c2e;        
    --accent: #c5a059;         
    --accent-hover: #a38242;   
    --surface-light: #f8fafc;  
    --text-dark: #1e293b;      
    --text-muted: #64748b;     
    --white: #ffffff;
    --border: #e2e8f0;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 8px rgba(15, 28, 46, 0.05);
    --shadow-md: 0 12px 30px -10px rgba(15, 28, 46, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--text-dark); background-color: var(--white); line-height: 1.65; overflow-x: hidden; }
h1, h2, h3, h4, .font-luxury { font-family: 'Cinzel', serif; letter-spacing: 1px; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
img { max-width: 100%; height: auto; display: block; }

/* Top Bar */
.top-bar { background-color: var(--primary); color: rgba(255, 255, 255, 0.65); font-size: 12px; letter-spacing: 1.5px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); text-transform: uppercase; }
.top-bar-flex { display: flex; justify-content: space-between; align-items: center; }
.top-bar-info span { margin-right: 25px; }

/* Premium Header Placeholder Fixes */
.premium-header { background-color: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 9999; border-bottom: 1px solid rgba(15, 28, 46, 0.04); box-shadow: var(--shadow-sm); transition: var(--transition); }
.navbar-container { display: flex; justify-content: space-between; align-items: center; height: 100px; }

.brand-logo { font-size: 28px; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: 2px; display: flex; align-items: center; }
.brand-logo span { color: var(--accent); font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; border-left: 1px solid #cbd5e1; padding-left: 12px; margin-left: 12px; margin-top: 6px; }

.main-nav { display: flex; align-items: center; gap: 40px; list-style: none; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-dark); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; transition: var(--transition); display: flex; align-items: center; gap: 6px; padding: 10px 0; }
.nav-link svg { transition: var(--transition); fill: currentcolor; }
.nav-link:hover, .nav-item:hover .nav-link { color: var(--accent); }

/* Dropdown Menu */
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px); background-color: var(--white); min-width: 280px; box-shadow: var(--shadow-md); border-top: 3px solid var(--accent); opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); list-style: none; border-radius: 0 0 4px 4px; padding: 15px 0; }
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 12px 30px; color: #475569; text-decoration: none; font-size: 13px; font-weight: 500; transition: var(--transition); }
.dropdown-menu a:hover { background-color: var(--surface-light); color: var(--accent); padding-left: 38px; }

/* Flags & Buttons */
.header-actions { display: flex; align-items: center; gap: 25px; }
.lang-flags { display: flex; gap: 10px; align-items: center; }
.lang-flags img { width: 28px; height: 20px; object-fit: cover; border-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); cursor: pointer; transition: transform 0.3s; }
.lang-flags img:hover { transform: translateY(-3px); }

.btn-header { background-color: var(--primary); color: var(--white); padding: 15px 30px; text-decoration: none; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; transition: var(--transition); border: 1px solid var(--primary); border-radius: 2px; }
.btn-header:hover { background-color: transparent; color: var(--primary); }

/* Mobile Menu Button */
.mobile-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 10001; }
.mobile-toggle span { display: block; width: 35px; height: 3px; background-color: var(--primary); transition: var(--transition); border-radius: 3px; }
.mobile-actions { display: none; }

/* Subpage Page Banner Styling */
.page-banner { position: relative; padding: 100px 0; background: linear-gradient(rgba(15, 28, 46, 0.48), rgba(15, 28, 46, 0.48)), url('https://images.unsplash.com/photo-1541888086925-0c13d4318995?auto=format&fit=crop&w=1920&q=80') center/cover; color: var(--white); text-align: center; }
.page-banner h1 { text-shadow:0 3px 18px rgba(0,0,0,.45); font-size: 42px; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.page-banner p { text-shadow:0 2px 14px rgba(0,0,0,.4); font-size: 16px; color: #cbd5e1; font-weight: 300; letter-spacing: 1px; }

/* Hero Section */
.hero { position: relative; height: 85vh; min-height: 650px; display: flex; align-items: center; background: linear-gradient(to right, rgba(15, 28, 46, 0.58), rgba(15, 28, 46, 0.18)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; color: var(--white); }
.hero-content { max-width: 850px; }
.hero-subtitle { font-size: 13px; text-transform: uppercase; letter-spacing: 5px; color: var(--accent); margin-bottom: 20px; font-weight: 600; display: block; }
.hero h1 { text-shadow:0 4px 22px rgba(0,0,0,.48); font-size: 54px; line-height: 1.15; margin-bottom: 25px; font-weight: 700; }
.hero p { text-shadow:0 2px 16px rgba(0,0,0,.42); font-size: 18px; font-weight: 300; color: #cbd5e1; margin-bottom: 45px; max-width: 650px; }

/* Content Blocks */
.experience-section { padding: 110px 0; background-color: var(--surface-light); }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.exp-left h2 { font-size: 38px; color: var(--primary); line-height: 1.2; margin-bottom: 25px; }
.exp-left h2 span { color: var(--accent); }
.exp-right p { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; text-align: justify; }

/* Contact Specific Custom Classes */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 80px 0; }
.contact-info-block h2, .contact-form-block h2 { font-size: 32px; color: var(--primary); margin-bottom: 30px; position: relative; padding-bottom: 15px; }
.contact-info-block h2::after, .contact-form-block h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background-color: var(--accent); }
.contact-method-item { margin-bottom: 25px; display: flex; gap: 15px; }
.contact-icon { font-size: 24px; color: var(--accent); }
.contact-text h4 { font-size: 16px; color: var(--primary); margin-bottom: 5px; text-transform: uppercase; }
.contact-text p { color: var(--text-muted); font-size: 15px; }

/* Professional Form Controls */
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 15px; border: 1px solid #cbd5e1; background: var(--surface-light); border-radius: 3px; font-family: inherit; font-size: 14px; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--accent); background: var(--white); }
.btn-submit { background-color: var(--primary); color: var(--white); padding: 16px 35px; border: none; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: var(--transition); border-radius: 2px; }
.btn-submit:hover { background-color: var(--accent); }

/* Map Box Layout */
.map-wrap { width: 100%; height: 400px; background-color: #e2e8f0; border: 1px solid #cbd5e1; display: flex; align-items: center; justify-content: center; color: var(--text-muted); border-radius: 4px; margin-bottom: 8px; font-weight: 500; }

/* Services Section */
.services-section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 42px; color: var(--primary); position: relative; display: inline-block; padding-bottom: 20px; }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 2px; background-color: var(--accent); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.service-card { background: var(--white); padding: 46px 28px; border: 1px solid #e2e8f0; transition: var(--transition); position: relative; overflow: hidden; border-radius: 4px; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--primary); transition: var(--transition); z-index: 0; }
.service-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { height: 100%; }
.service-card > * { position: relative; z-index: 1; transition: var(--transition); }
.service-card:hover h3, .service-card:hover p { color: var(--white); }
.service-icon { font-size: 45px; color: var(--accent); margin-bottom: 30px; display: block; text-align: center; }
.service-card h3 { font-size: 24px; margin-bottom: 20px; color: var(--primary); font-weight: 600; text-align: center; }
.service-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; text-align: center; }

/* Portfolio Section */
.portfolio-section { padding-bottom: 60px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.portfolio-item { position: relative; height: 450px; overflow: hidden; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 28, 46, 0.95) 15%, rgba(15, 28, 46, 0.4) 60%, transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 35px; opacity: 0; transition: var(--transition); }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-cat { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 8px; font-weight: 600; }
.portfolio-title { color: var(--white); font-size: 22px; font-weight: 600; }

/* Footer */
footer { background-color: var(--primary); padding: 90px 0 35px; color: rgba(255, 255, 255, 0.55); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 70px; }
.footer-logo { font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 25px; display: block; text-decoration: none; letter-spacing: 2px; }
.footer-logo span { color: var(--accent); }
.footer-about-text { font-size: 14px; line-height: 1.7; padding-right: 30px; }
.footer-heading { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 14px; }
.footer-links a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: var(--transition); font-size: 14px; }
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-contact-list { list-style: none; font-size: 14px; }
.footer-contact-list li { margin-bottom: 14px; display: flex; align-items: flex-start; gap: 10px; }
.copyright { text-align: center; padding-top: 35px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; letter-spacing: 0.5px; }

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
    .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 992px) {
    .top-bar { display: none; }
    .desktop-actions { display: none; }
    .mobile-toggle { display: flex; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .main-nav {
        position: fixed; top: 0; left: -100%; width: 320px; max-width: 80%; height: 100vh;
        background-color: var(--white); flex-direction: column; align-items: flex-start;
        padding: 100px 30px 40px; box-shadow: 20px 0 50px rgba(0,0,0,0.1); z-index: 10000; overflow-y: auto;
    }
    .main-nav.active { left: 0; }
    .nav-item { height: auto; width: 100%; border-bottom: 1px solid #f1f5f9; }
    .nav-link { justify-content: space-between; padding: 18px 0; width: 100%; }
    
    .dropdown-menu { position: static; box-shadow: none; opacity: 1; visibility: visible; display: none; transform: none; padding: 0 0 15px 15px; border-top: none; }
    .nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu { display: block; }
    
    .mobile-actions { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; width: 100%; }
    .mobile-actions .lang-flags { justify-content: flex-start; margin-bottom: 10px; }
    .mobile-actions .btn-header { text-align: center; padding: 15px; }

    .mobile-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .experience-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 40px; }
}

@media (max-width: 768px) {
    .container { padding: 0 18px; }
    .hero h1 { font-size: 32px; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; }
}
.btn-gold{background:var(--accent);color:#fff;padding:16px 34px;text-decoration:none;display:inline-block;text-transform:uppercase;letter-spacing:2px;font-weight:700;border-radius:2px}.content-section{padding:80px 0;background:#fff}.content-box{max-width:1000px}.content-box .lead{font-size:20px;color:var(--primary);font-weight:500;margin-bottom:25px}.content-box p,.content-box li{color:var(--text-muted);font-size:16px;line-height:1.8}.content-box h2,.content-box h3{color:var(--primary);margin:28px 0 14px}.project-list-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px}.project-card{background:#fff;text-decoration:none;border:1px solid #e2e8f0;box-shadow:0 15px 40px rgba(15,28,46,.08);transition:.3s;display:block}.project-card:hover{transform:translateY(-8px)}.project-card img{width:100%;height:260px;object-fit:cover;display:block}.project-card div{padding:26px}.project-card span{color:var(--accent);font-size:12px;letter-spacing:2px;text-transform:uppercase;font-weight:700}.project-card h3{color:var(--primary);font-size:22px;margin:10px 0}.project-card p{color:var(--text-muted);font-size:14px}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:25px}.gallery-grid img{width:100%;height:260px;object-fit:cover;border-radius:4px;box-shadow:0 12px 35px rgba(15,28,46,.12)}.section-header.small{margin:55px 0 20px}.section-header.small h2{font-size:30px}@media(max-width:992px){.project-list-grid,.gallery-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.project-list-grid,.gallery-grid{grid-template-columns:1fr}.gallery-grid img{height:220px}}


/* Project Lightbox Gallery - Atlasya İnşaat style */
.gallery-lightbox-item {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 12px 35px rgba(15,28,46,.12);
}
.gallery-lightbox-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: none;
    transition: transform .45s ease, filter .45s ease;
}
.gallery-lightbox-item:hover img { transform: scale(1.045); filter: brightness(.92); }
.atlasya-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 12, 22, .92);
    padding: 34px 86px;
    opacity: 0;
    transition: opacity .2s ease;
}
.atlasya-lightbox.active { display: flex; opacity: 1; }
.atlasya-lightbox__stage {
    position: relative;
    width: min(1180px, 100%);
    height: min(78vh, 780px);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}
.atlasya-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 22px 70px rgba(0,0,0,.45);
    user-select: none;
}
.atlasya-lightbox__btn {
    position: absolute;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(15,28,46,.52);
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
    backdrop-filter: blur(10px);
}
.atlasya-lightbox__btn:hover { background: var(--accent); transform: scale(1.05); border-color: var(--accent); }
.atlasya-lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.atlasya-lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.atlasya-lightbox__prev:hover { transform: translateY(-50%) scale(1.05); }
.atlasya-lightbox__next:hover { transform: translateY(-50%) scale(1.05); }
.atlasya-lightbox__close { top: 22px; right: 22px; font-size: 30px; }
.atlasya-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    color: rgba(255,255,255,.82);
    font-size: 13px;
    letter-spacing: 1.4px;
    background: rgba(15,28,46,.58);
    border: 1px solid rgba(255,255,255,.14);
    padding: 8px 14px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}
body.lightbox-open { overflow: hidden; }
@media(max-width:768px){
    .atlasya-lightbox { padding: 24px 14px 56px; }
    .atlasya-lightbox__stage { height: 74vh; }
    .atlasya-lightbox__btn { width: 44px; height: 44px; font-size: 28px; }
    .atlasya-lightbox__prev { left: 10px; }
    .atlasya-lightbox__next { right: 10px; }
    .atlasya-lightbox__close { top: 12px; right: 12px; }
    .atlasya-lightbox__counter { bottom: 14px; }
    .gallery-lightbox-item img { height: 220px; }
}

/* Shared project gallery include */
.project-detail-page .project-gallery-title { margin-top: 60px; }
.project-lightbox-gallery .empty-gallery-message { grid-column: 1 / -1; color: var(--text-muted); }
.gallery-lightbox-item:focus-visible,
.atlasya-lightbox__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


/* Home grid fix: desktop 4 columns, mobile 2 + 2 */
@media (min-width: 1201px) {
    .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .services-section { padding: 70px 0; }
    .section-header { margin-bottom: 42px; }
    .section-header h2 { font-size: 28px; }
    .service-card { padding: 30px 14px; }
    .service-icon { font-size: 34px; margin-bottom: 18px; }
    .service-card h3 { font-size: 17px; margin-bottom: 12px; }
    .service-card p { font-size: 13px; line-height: 1.55; }
    .portfolio-item { height: 260px; }
    .portfolio-overlay { opacity: 1; padding: 18px 14px; background: linear-gradient(to top, rgba(15, 28, 46, 0.88) 8%, rgba(15, 28, 46, 0.25) 62%, transparent); }
    .portfolio-cat { font-size: 9px; letter-spacing: 1.5px; }
    .portfolio-title { font-size: 15px; line-height: 1.25; }
}
@media (max-width: 420px) {
    .portfolio-item { height: 220px; }
}

/* Header/menu/logo/language updates */
.navbar-container { gap: 24px; }
.brand-logo { flex: 0 0 auto; min-width: 190px; }
.brand-logo img { width: auto; max-width: 230px; max-height: 72px; object-fit: contain; }
.main-nav { margin-left: auto; gap: 32px; justify-content: flex-end; }
.header-actions { margin-left: 12px; }
.lang-flags a { display: inline-flex; line-height: 0; border-radius: 3px; }
.lang-flags img { width: 30px; height: 21px; }
.footer-logo img { width: auto; max-width: 220px; max-height: 78px; object-fit: contain; }

@media (max-width: 1200px) {
    .main-nav { gap: 24px; }
    .brand-logo { min-width: 170px; }
    .brand-logo img { max-width: 200px; }
}

@media (max-width: 992px) {
    .navbar-container { height: 86px; }
    .brand-logo { min-width: 0; }
    .brand-logo img { max-width: 180px; max-height: 62px; }
    .main-nav { margin-left: 0; gap: 0; }
    .mobile-actions .lang-flags { display: flex; gap: 12px; }
}

/* Logo size fix - keeps uploaded logos from overflowing the navigation */
.brand-logo {
    width: 300px;
    max-width: 300px;
    height: 80px;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 300px !important;
    max-height: 80px !important;
    object-fit: contain;
}

.footer-logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 260px !important;
    max-height: 90px !important;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .brand-logo {
        width: 240px;
        max-width: 240px;
        height: 74px;
        max-height: 74px;
    }

    .brand-logo img {
        max-width: 240px !important;
        max-height: 74px !important;
    }
}

@media (max-width: 992px) {
    .brand-logo {
        width: 210px;
        max-width: 210px;
        height: 64px;
        max-height: 64px;
    }

    .brand-logo img {
        max-width: 210px !important;
        max-height: 64px !important;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 180px;
        max-width: 180px;
        height: 58px;
        max-height: 58px;
    }

    .brand-logo img {
        max-width: 180px !important;
        max-height: 58px !important;
    }
}
