/* Corporate Trust Theme - CSA Insaat */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    /* Palette - Architectural Integrity */
    --primary: #0A2463;
    /* Deep Navy - Trust, Authority */
    --primary-dark: #061a4a;
    --secondary: #607D8B;
    /* Slate Grey - Professionalism */
    --accent: #C5A059;
    /* Muted Gold - Prestige */
    --accent-light: #e0bb70;

    --bg-body: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-dark: #121212;

    --text-main: #1A1A1A;
    --text-muted: #666666;
    --text-light: #FFFFFF;

    --spacing-unit: 8px;
    --container-width: 1200px;
    --border-radius-sm: 2px;
    /* Sharp edges for corporate feel */
    --border-radius-lg: 4px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(10, 36, 99, 0.15);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
    scroll-margin-top: 100px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::after {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    color: var(--text-light);
}

.btn-gold {
    background: var(--accent);
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 2px solid var(--accent);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::before {
    width: 100%;
}

/* Hero Section - Asymmetric Tension */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
}

.hero-slider,
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    position: absolute;
    /* Fix for background layering */
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.3);
    /* Navy tint overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-overlay-box {
    background: rgba(10, 36, 99, 0.9);
    padding: 80px 100px 80px 40px;
    /* Asymmetric padding */
    max-width: 600px;
    margin-left: 10%;
    /* Offset from left */
    border-left: 8px solid var(--accent);
    color: var(--bg-white);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    /* Slight angled cut */
}

.hero-title {
    font-size: 48px;
    margin-bottom: 24px;
    color: var(--bg-white);
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Stats Section */
.stats {
    background: var(--bg-white);
    padding: 60px 0;
    transform: translateY(-40px);
    /* Overlap hero */
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.services {
    background: var(--bg-body);
}

.section-header {
    margin-bottom: 60px;
    border-left: 5px solid var(--accent);
    padding-left: 20px;
}

.section-title {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 16px;
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 36, 99, 0.05);
    /* very light primary */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 24px;
    border-radius: var(--border-radius-sm);
}

.service-title {
    font-size: 20px;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 15px;
}

/* Projects */
.projects {
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 36, 99, 0.9), transparent);
    opacity: 1;
    /* Always visible */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-title {
    color: var(--bg-white);
    font-size: 20px;
    margin-bottom: 8px;
    transform: translateY(0);
    /* Fixed position */
    transition: transform 0.4s 0.1s ease;
}

.project-cat {
    color: var(--accent);
    font-size: 14px;
    text-transform: uppercase;
    transform: translateY(0);
    /* Fixed position */
    transition: transform 0.4s 0.2s ease;
}

/* Contact / Footer */
.footer {
    background: var(--primary);
    color: var(--bg-white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer h4 {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-icon {
    color: var(--accent);
    margin-top: 4px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Animations helper */
.wow {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.wow.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
/* Mobile Nav & Responsiveness */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    z-index: 1002;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Mobile Breakpoint */
@media (max-width: 960px) {
    .menu-toggle {
        display: block;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-bottom: 32px;
        width: 100%;
        display: flex;
        /* Override previous display: none if any */
    }

    .nav-link {
        font-size: 18px;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    /* Hero Fixes */
    .hero-title {
        font-size: 32px;
    }

    .hero-overlay-box {
        margin: 0;
        width: 100%;
        max-width: none;
        padding: 40px 24px;
        clip-path: none;
        background: rgba(10, 36, 99, 0.95);
        position: absolute;
        bottom: 0;
        border-left: none;
        border-top: 4px solid var(--accent);
    }

    .hero-desc {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 13px;
    }

    /* Grid Fixes */
    .stats {
        transform: none;
        padding: 40px 0;
        border-top: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Full width cards on mobile */
        gap: 24px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .d-flex.justify-between {
        flex-direction: column;
        gap: 30px !important;
    }

    /* Adjust about visual overlap */
}

/* Page Header (Subpages) */
.page-header {
    background: var(--primary);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--bg-white);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Sidebar Layout (Kurumsal) */
.layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    margin-bottom: 100px;
}

.sidebar-menu {
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 120px;
    height: fit-content;
    overflow: hidden;
}

.sidebar-item {
    display: block;
    padding: 18px 24px;
    color: var(--text-main);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: #f8f9fa;
    border-left-color: var(--accent);
    color: var(--primary);
    padding-left: 30px;
}

.content-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.content-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cert Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.cert-card {
    background: var(--bg-white);
    padding: 30px;
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 100px;
}

.contact-info-card {
    background: var(--primary);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius-sm);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--accent);
}

.info-content h4 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 16px;
}

.info-content p,
.info-content a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--primary);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background: #f9f9f9;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

/* Projects Filter */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Subpage Mobile */
@media (max-width: 960px) {
    .layout-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar-menu {
        position: static;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .sidebar-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 12px 20px;
        background: white;
        margin-right: 10px;
        border-radius: 4px;
    }

    .sidebar-item:hover,
    .sidebar-item.active {
        padding-left: 20px;
        border-left: none;
        border-bottom-color: var(--accent);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}