:root {
    --primary-color: #1b4e80;
    --secondary-color: #2f6fa3;
    --accent-color: #63a9e6;
    --accent-soft: rgba(99, 169, 230, 0.2);
    --text-dark: #1a1a1a;
    --text-light: #cfd8e3;
    --text-white: #ffffff;
    --bg-dark: #0d2238;
    --surface: rgba(22, 47, 75, 0.72);
    --surface-strong: rgba(14, 36, 58, 0.82);
    --border-color: rgba(255, 255, 255, 0.16);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-white);
    background:
        linear-gradient(rgba(13, 34, 56, 0.78), rgba(16, 43, 69, 0.84)),
        url('/images/sitearkaplan.png') center center / cover fixed;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

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

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: rgba(21, 49, 76, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    text-decoration: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    transition: 0.25s ease;
}

.topbar-btn:hover {
    background: var(--accent-soft);
    border-color: rgba(76, 143, 190, 0.45);
    transform: translateY(-1px);
}

.topbar-btn svg {
    width: 16px;
    height: 16px;
}

.main-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(180deg, rgba(20, 48, 75, 0.94), rgba(20, 48, 75, 0.78));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.brand-logo,
.footer-logo {
    height: 92px;
    width: auto;
    object-fit: contain;
}

.brand-text-fallback,
.footer-brand-text {
    display: none;
    flex-direction: column;
    line-height: 1;
}

.brand-text {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-subtext {
    font-size: 11px;
    letter-spacing: 4px;
}

.brand-caption {
    margin: 0;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
    position: relative;
    transition: color 0.25s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-menu a:hover {
    color: var(--text-white);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: var(--text-white);
}

section {
    padding: 88px 0;
    scroll-margin-top: 150px;
}

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 170px;
    padding-bottom: 110px;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(115, 188, 255, 0.22), transparent 46%),
        radial-gradient(circle at 82% 10%, rgba(99, 169, 230, 0.2), transparent 40%),
        linear-gradient(120deg, rgba(17, 40, 64, 0.82), rgba(27, 73, 112, 0.72));
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
}

.hero-content {
    position: relative;
    max-width: 840px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(173, 218, 255, 0.16);
    border: 1px solid rgba(173, 218, 255, 0.3);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.hero-title {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 18px;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    max-width: 680px;
    font-size: 19px;
    color: rgba(235, 246, 255, 0.9);
    margin-bottom: 34px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-bottom: 44px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #4fa8ef, #2e8fdc);
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(79, 168, 239, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric {
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.metric-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-value-compact {
    font-size: clamp(24px, 2.2vw, 30px);
    letter-spacing: -0.4px;
    white-space: nowrap;
}

.metric-label {
    font-size: 13px;
    color: rgba(232, 245, 255, 0.9);
}

.hero-video-panel {
    display: grid;
    gap: 16px;
}

.video-shell {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(173, 218, 255, 0.32);
    background: rgba(6, 18, 29, 0.5);
    box-shadow: 0 24px 40px rgba(5, 16, 28, 0.4);
}

.hero-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.sound-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(11, 23, 36, 0.74);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.sound-toggle:hover {
    background: rgba(35, 76, 114, 0.85);
}

.video-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.video-action-btn {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(160, 212, 255, 0.36);
    background: rgba(174, 220, 255, 0.16);
    color: #e9f5ff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: 0.25s ease;
}

.video-action-btn:hover {
    transform: translateY(-2px);
    background: rgba(174, 220, 255, 0.28);
    color: #ffffff;
}

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

.section-title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    margin-bottom: 14px;
}

.section-line {
    width: 88px;
    height: 4px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color), #83c4ec);
}

.section-summary,
.catalog-intro {
    max-width: 760px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.78);
}

.about-section,
.projects-section,
.contact-section {
    background: rgba(20, 47, 74, 0.34);
    backdrop-filter: blur(10px);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
}

.about-copy {
    display: grid;
    gap: 20px;
}

.about-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.showcase-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.services-grid,
.projects-grid,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.services-grid.five-up {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card,
.project-card,
.catalog-item,
.detail-card,
.contact-info-panel,
.contact-cta-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.service-card,
.project-card,
.catalog-item,
.detail-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.project-card:hover,
.catalog-item:hover,
.detail-card:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 143, 190, 0.45);
}

.service-image,
.project-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.service-gallery {
    background: rgba(9, 22, 35, 0.65);
}

.service-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
}

.service-slide.active {
    opacity: 1;
}

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

.service-title,
.project-title,
.catalog-item-title,
.detail-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.service-card.compact .service-title,
.service-card.compact .service-description {
    padding-left: 20px;
    padding-right: 20px;
}

.service-title {
    margin: 18px 0 10px;
}

.service-description,
.project-description,
.catalog-item-description,
.detail-list,
.reference-highlight,
.contact-item p,
.contact-cta-card p {
    color: rgba(255, 255, 255, 0.8);
}

.service-description,
.project-description,
.catalog-item-description {
    padding: 0 20px 24px;
    font-size: 15px;
}

.project-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
}

.project-category {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 17, 29, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
}

.project-info,
.catalog-item-content,
.detail-card {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.detail-list {
    margin-top: 16px;
    padding-left: 18px;
}

.detail-list li + li {
    margin-top: 10px;
}

.references-section {
    background: linear-gradient(180deg, rgba(21, 52, 81, 0.48), rgba(21, 52, 81, 0.2));
}

.reference-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.reference-highlight {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 220px));
    justify-content: center;
    gap: 16px;
    align-items: stretch;
}

.reference-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 14px 16px;
    background: rgba(248, 251, 255, 0.96);
    border-radius: 16px;
    border: 1px solid rgba(38, 88, 133, 0.15);
    box-shadow: var(--shadow);
}

.reference-item img {
    max-height: 44px;
    max-width: 132px;
    width: 100%;
    object-fit: contain;
}

.reference-name {
    display: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.catalog-section {
    background: linear-gradient(135deg, rgba(27, 79, 125, 0.9), rgba(36, 100, 154, 0.86));
}

.catalog-title,
.catalog-line {
    color: var(--text-white);
}

.preview-grid .catalog-item {
    min-height: 100%;
}

.catalog-item-title {
    margin-bottom: 12px;
}

.catalog-download {
    margin-top: 32px;
    padding: 32px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.catalog-download p {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
}

.contact-grid.two-column {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.contact-info-panel,
.contact-cta-card {
    padding: 28px;
}

.contact-info-panel {
    display: grid;
    gap: 22px;
}

.contact-item {
    display: flex;
    gap: 18px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4,
.contact-cta-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.contact-item a {
    text-decoration: none;
    color: var(--text-white);
}

.contact-cta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface-strong);
}

.contact-cta-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.contact-form-panel {
    margin-top: 24px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.section-header.compact {
    text-align: left;
    margin-bottom: 24px;
}

.section-title.small {
    font-size: 28px;
    margin-bottom: 8px;
}

.section-header.compact .section-summary {
    margin: 0;
    max-width: none;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(76, 143, 190, 0.75);
    background: rgba(255, 255, 255, 0.09);
}

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

.contact-map-panel {
    margin-top: 24px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.map-frame-wrap {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.map-frame-wrap iframe {
    display: block;
    width: 100%;
    min-height: 420px;
}

.main-footer {
    padding: 34px 0 44px;
    background: rgba(15, 38, 60, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-text,
.footer-powered {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.footer-powered a {
    color: var(--text-white);
    font-weight: 700;
    text-decoration: none;
}

.footer-powered a:hover {
    color: #7fc3f0;
}

@media (max-width: 1180px) {
    .services-grid.five-up {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 16px;
    }

    .hero-metrics,
    .projects-grid,
    .catalog-grid,
    .contact-grid.two-column,
    .about-layout,
    .reference-highlights,
    .references-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid,
    .services-grid.five-up {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .topbar {
        position: relative;
    }

    .topbar-container {
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .topbar-btn span {
        display: none;
    }

    .main-nav {
        position: sticky;
        top: 0;
    }

    .main-nav .container {
        position: relative;
        min-height: 90px;
    }

    .brand-logo,
    .footer-logo {
        height: 74px;
    }

    .brand-stack {
        gap: 2px;
    }

    .brand-caption {
        max-width: 210px;
        font-size: 9px;
        line-height: 1.3;
    }

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

    .nav-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        gap: 18px;
        padding: 24px;
        background: rgba(5, 13, 24, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

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

    .hero-section {
        min-height: auto;
        padding-top: 96px;
    }

    .video-actions {
        grid-template-columns: 1fr;
    }

    .hero-cta,
    .contact-cta-actions {
        flex-direction: column;
    }

    .hero-metrics,
    .about-layout,
    .services-grid,
    .services-grid.five-up,
    .projects-grid,
    .detail-grid,
    .reference-highlights,
    .references-grid,
    .catalog-grid,
    .contact-grid.two-column {
        grid-template-columns: 1fr;
    }

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

    .hero-subtitle,
    .about-text {
        font-size: 17px;
    }

    .container {
        padding: 0 18px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 72px 0;
        scroll-margin-top: 90px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 84px;
        padding-bottom: 84px;
    }

    .hero-kicker {
        font-size: 12px;
    }

    .metric-value {
        font-size: 28px;
    }
}
