/* ==========================================
   HK PLANLAMA - Ana Stil Dosyası
   Renk Teması: Lacivert + Turuncu
   ========================================== */

/* --- CSS Variables --- */
:root {
    --primary: #1a237e;
    --primary-dark: #0d1452;
    --primary-light: #283593;
    --accent: #ff6f00;
    --accent-light: #ff8f00;
    --accent-dark: #e65100;
    --white: #ffffff;
    --light: #f5f7fa;
    --gray: #6b7280;
    --dark: #1f2937;
    --shadow: 0 4px 24px rgba(26, 35, 126, 0.10);
    --shadow-lg: 0 12px 40px rgba(26, 35, 126, 0.15);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 35, 126, 0.97);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.4rem;
}

.logo-hk {
    background: var(--accent);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-text {
    color: var(--white);
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

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

/* Dil Değiştirici */
.lang-switcher {
    position: relative;
    margin-left: 16px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    font-size: 0.78rem;
}

.lang-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.lang-btn.active .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(26, 35, 126, 0.18);
    overflow: hidden;
    min-width: 150px;
    z-index: 1100;
    list-style: none;
    padding: 4px 0;
    border: 1px solid rgba(26, 35, 126, 0.08);
}

.lang-dropdown.open {
    display: block;
    animation: langDropIn 0.15s ease;
}

@keyframes langDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--dark);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.lang-dropdown li a:hover {
    background: var(--light);
    color: var(--primary);
}

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

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 4;
}

/* --- Hero Slider --- */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide .hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 20, 82, 0.65);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 111, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 111, 0, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1" width="80" height="80"/></svg>') repeat;
    background-size: auto, auto, 80px 80px;
    z-index: 1;
}

/* Slider Navigation Dots */
.hero-slider-nav {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-dot:hover {
    border-color: var(--white);
}

.hero-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* Slider Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-left {
    left: 24px;
}

.hero-arrow-right {
    right: 24px;
}

@media (max-width: 768px) {
    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .hero-arrow-left {
        left: 12px;
    }

    .hero-arrow-right {
        right: 12px;
    }

    .hero-slider-nav {
        bottom: 70px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 24px;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 4px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-hk {
    color: var(--accent);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
}

.hero-scroll a:hover {
    color: var(--accent);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 111, 0, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Section Styles --- */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-desc {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* --- Hakkımızda --- */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 4px;
}

.about-img-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    gap: 16px;
}

.about-img-placeholder i {
    font-size: 5rem;
}

.about-img-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* --- Hizmetlerimiz --- */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    padding: 40px 28px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- İletişim --- */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form-wrapper {
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--white);
    font-size: 1.1rem;
}

.info-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* --- Footer --- */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer ul a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Service Card as Link --- */
a.service-card {
    color: inherit;
    text-decoration: none;
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header-content h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header-icon {
    width: 72px;
    height: 72px;
    background: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.page-header-icon i {
    font-size: 2rem;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

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

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

.breadcrumb-current {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Page Content Layout --- */
.page-content {
    padding: 60px 0;
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.page-body {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--dark);
}

.page-body p {
    margin-bottom: 16px;
    color: var(--gray);
}

.page-body h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 32px 0 12px;
}

.page-body h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 24px 0 10px;
}

.page-body ul,
.page-body ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--gray);
}

.page-body li {
    margin-bottom: 8px;
    list-style: disc;
}

/* --- Child Pages --- */
.child-pages {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.child-pages h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 24px;
}

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

.child-page-card {
    display: block;
    background: var(--light);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.child-page-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.child-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.child-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.child-page-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.child-page-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* --- Sidebar --- */
.sidebar-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 4px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: var(--white);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-links a i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    text-align: center;
    color: var(--white);
}

.sidebar-cta i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.sidebar-cta h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.sidebar-cta p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

/* --- Referanslar --- */
.references {
    background: var(--light);
}

.ref-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.ref-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    background: var(--white);
    color: var(--gray);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.ref-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ref-filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.ref-filter-btn i {
    font-size: 0.85rem;
}

/* Referans Tablosu */
.ref-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--white);
    margin-bottom: 48px;
}

.ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ref-table thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.ref-table thead th {
    color: var(--white);
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.ref-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.ref-table tbody tr:hover {
    background: rgba(255, 111, 0, 0.04);
}

.ref-table tbody tr.ref-hidden {
    display: none;
}

.ref-table tbody td {
    padding: 14px 20px;
    color: var(--dark);
    vertical-align: middle;
    line-height: 1.5;
}

.ref-table tbody td:first-child {
    white-space: nowrap;
}

.ref-year {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.ref-badge i {
    font-size: 0.7rem;
}

.badge-sanayi {
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
}

.badge-kentsel {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
}

.badge-enerji {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.badge-resmi {
    background: rgba(74, 20, 140, 0.1);
    color: #4a148c;
}

/* Kategori Özet Kartları */
.ref-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ref-summary-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.ref-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ref-summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.ref-summary-icon i {
    font-size: 1.4rem;
    color: var(--white);
}

.ref-summary-card h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.ref-summary-count {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 500;
}

@media (max-width: 992px) {
    .ref-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .ref-table thead th:nth-child(4),
    .ref-table tbody td:nth-child(4) {
        display: none;
    }

    .ref-table thead th,
    .ref-table tbody td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .ref-filters {
        gap: 8px;
    }

    .ref-filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .ref-summary {
        grid-template-columns: 1fr 1fr;
    }

    .ref-table thead th:nth-child(3),
    .ref-table tbody td:nth-child(3) {
        display: none;
    }
}

/* --- Logo Marquee --- */
.logo-marquee-section {
    background: var(--white);
    padding: 80px 0 60px;
    overflow: hidden;
}

.logo-marquee {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.logo-marquee-track {
    display: flex;
    gap: 48px;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
    animation-play-state: paused;
}

.logo-marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    min-width: 200px;
    padding: 6px 10px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.logo-marquee-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: scale(1.08);
}

.logo-marquee-item img {
    max-height: 85px;
    max-width: 185px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.logo-marquee-item:hover img {
    filter: grayscale(0%) opacity(1);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .logo-marquee-track {
        gap: 28px;
        animation-duration: 20s;
    }

    .logo-marquee-item {
        height: 70px;
        min-width: 140px;
        padding: 6px 10px;
    }

    .logo-marquee-item img {
        max-height: 58px;
        max-width: 125px;
    }

    .logo-marquee::before,
    .logo-marquee::after {
        width: 60px;
    }

    .logo-marquee-section {
        padding: 60px 0 40px;
    }
}

/* --- Form Header --- */
.form-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 111, 0, 0.15);
}

.form-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header h3 i {
    color: var(--accent);
}

.form-header p {
    color: var(--gray);
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--accent);
    margin-right: 4px;
    font-size: 0.8rem;
}

.label-hint {
    color: var(--gray);
    font-weight: 400;
    font-size: 0.82rem;
}

/* --- File Upload --- */
.file-input-hidden {
    display: none;
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--accent);
    background: rgba(255, 111, 0, 0.03);
}

.file-upload-content i {
    font-size: 2.2rem;
    color: #d1d5db;
    margin-bottom: 10px;
    transition: var(--transition);
}

.file-upload-area:hover .file-upload-content i,
.file-upload-area.dragover .file-upload-content i {
    color: var(--accent);
}

.file-upload-content p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.file-browse {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.file-upload-content small {
    color: #9ca3af;
    font-size: 0.78rem;
}

.file-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
}

.file-item.file-error {
    border-color: #fecaca;
    background: #fef2f2;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.file-item-info i {
    color: var(--accent);
    flex-shrink: 0;
}

.file-item-name {
    color: var(--dark);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.file-item-size {
    color: var(--gray);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.file-remove-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.file-remove-btn:hover {
    color: #ef4444;
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-img-placeholder {
        height: 280px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

    .page-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .lang-btn {
        padding: 5px 9px;
        font-size: 0.75rem;
    }

    .lang-dropdown {
        right: 0;
        left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .page-header-content h1 {
        font-size: 1.8rem;
    }

    .child-pages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    section {
        padding: 70px 0;
    }
}