/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Focus Styles - Remove default browser focus */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove default focus styles completely */
*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove any browser-specific focus highlighting */
*::-moz-focus-inner {
    border: 0 !important;
}

*:-moz-focusring {
    outline: none !important;
}

/* Chrome/Safari specific */
*:focus {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

/* Remove any blue highlighting on touch devices */
* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Allow text selection for content areas */
p, span, div, h1, h2, h3, h4, h5, h6, input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Apply custom focus styles to interactive elements */
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Remove any blue highlighting from all links */
a {
    color: inherit !important;
    text-decoration: none !important;
}

a:visited {
    color: inherit !important;
}

a:active {
    color: inherit !important;
}

/* Ensure header links specifically never show blue */
.header a,
.header a:visited,
.header a:active,
.header a:focus {
    color: #f9f9f9 !important;
}

.header a:hover,
.header a.active {
    color: #4dabe8 !important;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #475569;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

/* Add top margin for project pages */
body.project-page {
    margin-top: 70px;
}

/* Use maritime-inspired font for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
}

/* Make navigation and buttons extra stylish */
.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-primary, .btn-secondary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Stylish paragraph text */
p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

/* Hero section header with Bandit-style bold font */
.hero h1 {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #172035;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(23, 32, 53, 0.3);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
    margin: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #f9f9f9;
}

.logo i {
    font-size: 2rem;
    color: #4dabe8;
}

.logo span {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo small {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-left: -5px;
}

.logo:focus,
.logo:focus-visible,
.logo a:focus,
.logo a:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #f9f9f9 !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #f9f9f9;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #4dabe8;
}

.nav-link:visited {
    color: #f9f9f9 !important;
}

.nav-link:active {
    color: #a8d8f5 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4dabe8;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:focus,
.nav-link:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #4dabe8 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    touch-action: manipulation;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #f9f9f9;
    transition: 0.3s;
}

.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);
}

.hamburger:focus {
    outline: none;
    outline-offset: 0;
    border-radius: 0;
}

/* FIXED PROJECT LAYOUT SYSTEM */

/* Project Hero Section */
.project-hero {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1F2A44 0%, #172035 100%);
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    flex-wrap: wrap;
}

.project-info {
    flex: 1;
    min-width: 300px;
    color: white;
}

.project-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #f9f9f9;
}

.project-info p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

.project-status {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: #4dabe8;
    color: #172035;
}

.project-status.ongoing {
    background: #4dabe8;
    color: #172035;
}

.project-status.completed {
    background: #27ae60;
    color: white;
}

/* Project Section */
.project-section {
    padding: 80px 0;
    background: white;
}

.project-section:nth-child(even) {
    background: #f9f9f9;
}

.project-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #172035;
    margin-bottom: 3rem;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.1);
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(31, 42, 68, 0.15);
}

.plan-image {
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
}

.plan-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4dabe8 0%, #3a9ad9 100%);
    color: white;
    font-size: 2.5rem;
    gap: 10px;
}

.plan-placeholder span {
    font-size: 1rem;
    font-weight: 600;
}

.plan-details {
    padding: 2rem;
}

.plan-details h3 {
    font-size: 1.3rem;
    color: #172035;
    margin-bottom: 0.5rem;
}

.plan-details p {
    color: #475569;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.plan-details ul {
    list-style: none;
    padding: 0;
}

.plan-details li {
    padding: 8px 0;
    color: #475569;
    padding-left: 20px;
    position: relative;
}

.plan-details li:before {
    content: "•";
    color: #4dabe8;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

/* Interior Grid */
.interior-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.interior-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.1);
    transition: all 0.3s ease;
}

.interior-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(31, 42, 68, 0.15);
}

.interior-image {
    height: 180px;
    overflow: hidden;
}

.interior-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2.5rem;
    gap: 10px;
}

.interior-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
}

.interior-card h3 {
    font-size: 1.2rem;
    color: #172035;
    padding: 1.5rem 1.5rem 0.5rem;
}

.interior-card p {
    color: #475569;
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Exterior Content */
.exterior-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.exterior-features {
    display: grid;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: #4dabe8;
    min-width: 50px;
    text-align: center;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: #172035;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #475569;
    font-size: 0.95rem;
}

.exterior-gallery {
    display: grid;
    gap: 1rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.1);
}

.gallery-placeholder {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 3rem;
    gap: 10px;
}

.gallery-placeholder span {
    font-size: 1rem;
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.1);
}

.feature-category h3 {
    font-size: 1.2rem;
    color: #172035;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #4dabe8;
}

.feature-category ul {
    list-style: none;
    padding: 0;
}

.feature-category li {
    padding: 8px 0;
    color: #475569;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.feature-category li:before {
    content: "✓";
    color: #4dabe8;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Location Content */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-info h3 {
    font-size: 1.5rem;
    color: #172035;
    margin-bottom: 1rem;
}

.location-info p {
    color: #475569;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.location-features {
    display: grid;
    gap: 1rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #4dabe8;
}

.location-item i {
    font-size: 1.5rem;
    color: #4dabe8;
    min-width: 30px;
}

.location-item span {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.location-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: #f9f9f9;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e0e0e0;
    color: #4dabe8;
    font-size: 3rem;
    gap: 10px;
}

.map-placeholder p {
    font-size: 1rem;
    color: #475569;
}

/* Fixed Project Tabs */
.project-tabs-fixed {
    background: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(31, 42, 68, 0.1);
    position: sticky;
    top: 70px;
    z-index: 100;
    margin-top: 0;
    height: 70px;
}

.project-tabs {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    align-items: center;
}

.tab-button {
    background: none;
    border: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    height: 70px;
    display: flex;
    align-items: center;
}

.tab-button:hover {
    color: #4dabe8;
    background: rgba(212, 184, 118, 0.05);
}

.tab-button.active {
    color: #4dabe8;
    border-bottom-color: #4dabe8;
    background: rgba(212, 184, 118, 0.1);
}

/* Fixed Project Content */
.project-content-fixed {
    padding: 0;
    background: #f9f9f9;
    height: calc(100vh - 140px);
    overflow: hidden;
}

.project-content-fixed .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fixed Content Wrapper */
.fixed-content-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.1);
    width: 100%;
    max-width: 1200px;
    height: 500px;
    position: relative;
    overflow: hidden;
}

/* Fixed Content Grid */
.fixed-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    width: 100%;
}

/* Fixed Image Container */
.fixed-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fixed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Make image smaller in Proje Özellikleri section */
#proje-ozellikleri .fixed-image-container {
    padding: 20px;
}

#proje-ozellikleri .fixed-image {
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Fixed Info Container */
.fixed-info-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background: white;
}

/* Fixed Typography */
.fixed-title {
    font-size: 2.5rem;
    color: #172035;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.fixed-description {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.6;
}

.fixed-status {
    background: #4dabe8;
    color: #172035;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    margin-bottom: 20px;
}

/* Fixed Info Grid */
.fixed-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.fixed-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #4dabe8;
}

.fixed-info-item i {
    color: #4dabe8;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.fixed-info-item span {
    color: #172035;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Fixed Slideshow Container */
.fixed-slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fixed-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.fixed-slide.active {
    display: block;
}

/* Fixed Slide Typography */
.fixed-slide-title {
    font-size: 1.8rem;
    color: #172035;
    margin-bottom: 15px;
    font-weight: 700;
}

.fixed-slide-description {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.6;
}

.fixed-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fixed-feature-list li {
    padding: 8px 0;
    color: #475569;
    position: relative;
    padding-left: 20px;
    font-size: 1rem;
}

.fixed-feature-list li:before {
    content: "•";
    color: #4dabe8;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

/* Fixed Slideshow Controls */
.fixed-slideshow-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.fixed-slideshow-controls button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fixed-slideshow-controls button:hover {
    background: #4dabe8;
    color: white;
    transform: scale(1.1);
}

.fixed-slideshow-controls button:focus,
.fixed-slideshow-controls button:focus-visible,
.fixed-slideshow-controls button:active {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
}

.fixed-slideshow-controls button i {
    font-size: 1.2rem;
    pointer-events: none;
}

/* Fixed Slideshow Dots */
.fixed-slideshow-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.fixed-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fixed-dot.active,
.fixed-dot:hover {
    background-color: #4dabe8;
}

/* Tab Content */
.tab-content {
    display: none;
    width: 100%;
    height: 100%;
}

.tab-content.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .project-content-fixed {
        height: calc(100vh - 120px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .project-content-fixed .container {
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    /* When Proje Özellikleri is active, let container grow so the whole screen scrolls as one */
    .project-content-fixed .container:has(#proje-ozellikleri.active) {
        height: auto;
        min-height: 100%;
    }
    
    .fixed-content-wrapper {
        height: 400px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    /* Proje Özellikleri on mobile: no boxes, single scrollable screen */
    #proje-ozellikleri .fixed-content-wrapper {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        height: auto;
        min-height: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    #proje-ozellikleri .fixed-content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: 0;
        gap: 0;
    }
    
    #proje-ozellikleri .fixed-image-container {
        max-height: 240px;
        padding: 16px 20px 8px;
        overflow: visible;
    }
    
    #proje-ozellikleri .fixed-image {
        max-height: 220px;
        width: 100%;
        object-fit: contain;
        box-shadow: none;
    }
    
    #proje-ozellikleri .fixed-info-container {
        padding: 16px 20px 32px;
        max-height: none;
        min-height: 0;
        overflow: visible;
        background: transparent;
        border-radius: 0;
        margin: 0;
    }
    
    #proje-ozellikleri .fixed-info-item {
        background: transparent;
        border-radius: 0;
        border-left: none;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    #proje-ozellikleri .fixed-info-item:last-child {
        border-bottom: none;
    }
    
    #proje-ozellikleri.tab-content.active {
        align-items: flex-start;
        justify-content: flex-start;
        display: block;
        height: auto;
    }
    
    #proje-ozellikleri .fixed-content-wrapper {
        max-width: 100%;
    }
    
    .fixed-content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 200px;
    }
    
    .fixed-info-container {
        padding: 20px;
    }
    
    .fixed-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .fixed-description {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .fixed-slide-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .fixed-slide-description {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .fixed-info-grid {
        gap: 10px;
    }
    
    .fixed-info-item {
        padding: 10px;
    }
    
    /* Slideable nav: tabs side by side, horizontal scroll */
    .project-tabs-fixed .container {
        overflow: hidden;
        padding: 0;
    }
    
    .project-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        height: 70px;
        min-height: 70px;
        padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
        gap: 0;
    }
    
    .project-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-button {
        padding: 15px 20px;
        font-size: 1rem;
        height: 70px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .fixed-slideshow-controls button {
        width: 40px;
        height: 40px;
    }
    
    .fixed-slideshow-controls button i {
        font-size: 1rem;
    }
    
    .fixed-dot {
        height: 10px;
        width: 10px;
    }
}

/* Hero Section */
.hero {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(135deg, #1F2A44 0%, #1F2A44 100%);
    background-image: url('./images/hero-background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 70px; /* Account for fixed header */
    padding-top: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 42, 68, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem 20px;
    width: 100%;
    min-width: 0; /* allow flex child to shrink and prevent overflow */
    box-sizing: border-box;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    max-width: 100%;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #4dabe8;
    color: #172035;
}

.btn-primary:hover {
    background: #7fc4f5;
    transform: translateY(-2px);
}

.btn-primary:active {
    background: #3a9ad9;
    transform: translateY(0);
    border-radius: 50px;
    border: none;
    outline: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: #4dabe8;
    color: #172035;
    transform: translateY(-2px);
}

.btn-secondary:active {
    background: #3a9ad9;
    color: #172035;
    transform: translateY(0);
    border-radius: 50px;
    border: none;
    outline: none;
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-secondary:focus,
.btn-secondary:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

/* Specific anchor tag button overrides */
a.btn-primary {
    text-decoration: none !important;
    border: none !important;
    border-radius: 50px !important;
}

a.btn-secondary {
    text-decoration: none !important;
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50px !important;
}

a.btn-primary:active {
    background: #3a9ad9 !important;
    color: #172035 !important;
    border-radius: 50px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: translateY(0) !important;
}

a.btn-secondary:active {
    background: #4dabe8 !important;
    color: #172035 !important;
    border-radius: 50px !important;
    border: 2px solid #4dabe8 !important;
    outline: none !important;
    box-shadow: none !important;
    transform: translateY(0) !important;
}

a.btn-primary:visited {
    color: #172035 !important;
    text-decoration: none !important;
}

a.btn-secondary:visited {
    color: white !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 2px solid white !important;
}

a.btn-primary:hover {
    border-radius: 50px !important;
    text-decoration: none !important;
}

a.btn-secondary:hover {
    background: #4dabe8 !important;
    color: #172035 !important;
    border: 2px solid #4dabe8 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: #f9f9f9;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #172035;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-10px);
    text-decoration: none;
    color: inherit;
}

.project-card:focus {
    outline: none;
    outline-offset: 0;
    border-radius: 0;
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4dabe8;
    color: #172035;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-status.ongoing {
    background: #7fc4f5;
    color: #172035;
}

.project-status.planning {
    background: #1F2A44;
    color: #f9f9f9;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    color: #172035;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: #475569;
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    color: #172035;
    margin-bottom: 2rem;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4dabe8;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #475569;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #f9f9f9;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #172035;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4dabe8, #3a9ad9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #172035;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #172035;
    margin-bottom: 1rem;
}

.service-card p {
    color: #475569;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #172035;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: #4dabe8;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: #172035;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #475569;
}

.contact-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    outline-offset: 0;
    border-color: #4dabe8;
    border-radius: 10px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 50px;
}

.contact-form .btn-primary:active {
    background: #3a9ad9;
    transform: translateY(0);
    border-radius: 50px;
    border: none;
    outline: none;
}

/* Footer */
.footer {
    background: #172035;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: #4dabe8;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4dabe8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #172035;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4dabe8;
    color: #172035;
    transform: translateY(-2px);
}

.social-links a:focus {
    outline: none;
    outline-offset: 0;
}

.footer-bottom {
    border-top: 1px solid #172035;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
/* Header consistency across pages */
.header .nav-link.active {
    color: #3498db;
}

.header .nav-link.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .header {
        z-index: 10000;
        padding-top: env(safe-area-inset-top);
    }

    /* Keep project tabs and content below mobile nav so menu always appears on top */
    .project-tabs-fixed {
        z-index: 100;
    }

    .project-content-fixed {
        z-index: 0;
    }

    .nav-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .nav-menu {
        position: fixed;
        top: calc(70px + env(safe-area-inset-top));
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px - env(safe-area-inset-top));
        max-height: calc(100dvh - 70px - env(safe-area-inset-top));
        background: #172035;
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%);
        transition: transform 0.3s ease, visibility 0.3s ease;
        visibility: hidden;
        z-index: 2147483647;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        padding: 1rem 0;
        min-height: 44px;
        line-height: 24px;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        top: calc(70px + env(safe-area-inset-top));
        background: rgba(0, 0, 0, 0.5);
        z-index: 2147483646;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-overlay.visible {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 10px;
        z-index: 10001;
        position: relative;
    }

    .hero {
        margin-top: calc(72px + env(safe-area-inset-top, 0px)); /* Clear fixed header + notch on mobile */
        min-height: 350px;
        padding: 1rem 0;
        background-attachment: scroll; /* Better performance on mobile */
        overflow-x: hidden;
    }

    .hero-content {
        padding: 1.5rem max(15px, env(safe-area-inset-left)) 1.5rem max(15px, env(safe-area-inset-right));
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        padding: 0 4px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 4px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
        padding: 0 4px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        box-sizing: border-box;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        margin-top: calc(70px + env(safe-area-inset-top, 0px)); /* Clear fixed header + notch */
        min-height: 320px;
        background-attachment: scroll; /* Better performance on mobile */
        overflow-x: hidden;
    }

    .hero-content {
        padding: 1rem max(10px, env(safe-area-inset-left)) 1rem max(10px, env(safe-area-inset-right));
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin: 0 10px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Page Hero for Sub-pages */
.page-hero {
    height: 30vh;
    background: linear-gradient(135deg, #172035 0%, #172035 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 70px;
    padding-top: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 32, 53, 0.3);
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Company Details Section */
.company-details {
    padding: 80px 0;
    background: #f9f9f9;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4dabe8, #3a9ad9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #172035;
    font-size: 2rem;
}

.detail-card h3 {
    font-size: 1.3rem;
    color: #172035;
    margin-bottom: 1rem;
}

.detail-card p {
    color: #475569;
    line-height: 1.6;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: white;
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #172035;
    margin-bottom: 3rem;
}

.map-placeholder {
    height: 400px;
    background: #f9f9f9;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e5e5e5;
}

.map-content {
    text-align: center;
    color: #475569;
}

.map-content i {
    font-size: 3rem;
    color: #4dabe8;
    margin-bottom: 1rem;
}

.map-content p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.map-content small {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Image Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

.modal-caption {
    display: none;
    margin: auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(31, 42, 68, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(31, 42, 68, 0.8);
}

.close:hover,
.close:focus {
    color: #bbb;
    background: rgba(31, 42, 68, 0.8);
    transform: scale(1.1);
    outline: none;
    outline-offset: 0;
}

.clickable-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.clickable-image:focus {
    outline: none;
    outline-offset: 0;
    border-radius: 0;
}

/* Kat Planları Images - Clickable */
#kat-planlari img {
    cursor: pointer;
    transition: all 0.3s ease;
}

#kat-planlari img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* İç Mekan Images - Clickable */
#ic-mekan img {
    cursor: pointer;
    transition: all 0.3s ease;
}

#ic-mekan img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Divider line between images in ic-mekan */
#ic-mekan .fixed-content-grid {
    gap: 0;
}

#ic-mekan .fixed-image-container:first-child {
    border-right: 4px solid rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .modal-caption {
        width: 90%;
        font-size: 1rem;
        padding: 15px;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

/* Loading animation for project placeholders */
.project-placeholder {
    position: relative;
    overflow: hidden;
}

.project-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
} 