* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: black;
}

body {
    background: black;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.slide-in {
    transform: translateY(0);
}

body.slide-out {
    transform: translateY(100%);
}

.navbar {
    position: fixed;
    top: 1vw;
    left: 50%;
    transform: translateX(-50%);
    width: min(90vw, 760px);
    padding: clamp(0.65rem, 1.2vw, 0.85rem) clamp(0.8rem, 1.8vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2vw;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1vw;
    box-shadow: 0 2vw 8vw rgba(0, 0, 0, 0.28);
    z-index: 10;
}

@media (min-width: 1200px) {
    .navbar {
        width: min(50vw, 40vw);
        padding: clamp(0.2rem, 1vw, 0.3rem) clamp(0.15rem, 1.5vw, 0.95rem);
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3vw;
    height: 3vw;
    border-radius: 0.7vw;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5vw;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    padding: 0.5vw 0.8vw;
    display: inline-block;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1vw;
    flex-shrink: 0;
}

.nav-button {
    border-radius: 0.8vw;
    padding: clamp(0.6rem, 1vw, 0.8rem) clamp(0.9rem, 1.7vw, 1rem);
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-primary {
    background: white;
    color: black;
    font-weight: 700;
    padding: 0.6vw 1vw;
    min-width: 90px;
    text-align: center;
}

.language-selector {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 20;
}

.toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 0.2em;
    padding: 0.15em;
    background: linear-gradient(to right, #1a1a1a, #2c2c2c);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    font-size: 1.5em;
}

.toggle-checkbox {
    appearance: none;
    position: absolute;
    z-index: 1;
    border-radius: inherit;
    width: 100%;
    height: 100%;
    font: inherit;
    opacity: 0;
    cursor: pointer;
}

.toggle-container {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 0.1em;
    width: 4em;
    height: 1.6em;
    background-color: #222222;
    box-shadow: inset 0 0 0.1em rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.toggle-background {
    display: none;
}

.toggle-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0.2em;
    border-radius: 0.1em;
    width: 1.6em;
    height: 1.2em;
    background: linear-gradient(to bottom, #ffffff, #d9d9d9);
    box-shadow: 0 0 0.2em rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
    z-index: 2;
}

.toggle-checkbox:checked+.toggle-container>.toggle-button {
    left: 2.2em;
}

.toggle-checkbox:checked+.toggle-container {
    background-color: #222222;
}

.toggle-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: none;
    z-index: 3;
}

.toggle-label-en,
.toggle-label-tr {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.38em;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.toggle-label-en {
    color: white;
}

.toggle-label-tr {
    color: white;
}

.toggle-checkbox:not(:checked)~.toggle-labels .toggle-label-en {
    color: #111;
}

.toggle-checkbox:checked~.toggle-labels .toggle-label-tr {
    color: #111;
}

.aboutme-hero {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8vh;
    overflow-y: auto;
}

/* DOT GRID BACKGROUND (INDEX HERO COPY) */
.aboutme-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgb(255, 255, 255) 1.4px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
    mask-image: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
    z-index: 0;
}

/* koyu overlay */
.aboutme-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: black;
    opacity: 0.6;
    z-index: 1;
}

.aboutme-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 2rem;
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-img {
    flex: 0 0 260px;
    width: 260px;
    height: 260px;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1.5rem;
}

@media (max-width: 768px) {
    .about-img {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
    }

    .about-img img {
        height: auto;
    }
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
}

.about-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

.section-title-wrapper {
    text-align: center;
    margin: 1rem 0 1rem;
    padding: 1rem 0 0;
}

.section-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.carousel-section {
    width: 100%;
    height: 500px;
    position: relative;
}

.wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inner {
    --w: 100px;
    --h: 150px;
    --translateZ: calc((var(--w) + var(--h)) + 0px);
    --rotateX: -15deg;
    --perspective: 1000px;
    position: absolute;
    width: var(--w);
    height: var(--h);
    top: 25%;
    left: calc(50% - (var(--w) / 2) - 2.5px);
    z-index: 2;
    transform-style: preserve-3d;
    transform: perspective(var(--perspective));
    animation: rotating 20s linear infinite;
}

@keyframes rotating {
    from {
        transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0);
    }

    to {
        transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(1turn);
    }
}

.card {
    position: absolute;
    border: 2px solid rgba(var(--color-card));
    border-radius: 12px;
    overflow: hidden;
    inset: 0;
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
}

.card-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 4;
    padding: 0.45rem 0.7rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.45));
    border-radius: 0.6rem;
    backdrop-filter: blur(6px);
    min-width: 50%;
}

.card-caption h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .card-caption {
        top: 50%;
        min-width: 80%;
        padding: 0.5rem;
        transform: translate(-50%, -50%);
    }

    .card-caption h4 {
        font-size: 0.95rem;
    }
}

.img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0000 radial-gradient(circle, rgba(var(--color-card), 0.2) 0%, rgba(var(--color-card), 0.6) 80%, rgba(var(--color-card), 0.9) 100%);
}

.drives-cards {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.5rem;
}

.drives-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: white;
}

.drives-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.drives-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {

    .about-row,
    .about-row.reverse {
        flex-direction: column;
    }

    .drives-cards {
        flex-direction: column;
    }

    .language-selector {
        top: auto !important;
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        left: auto !important;
        transform: none !important;
    }

    .toggle-wrapper {
        font-size: 1em;
    }

    .navbar {
        width: 85vw;
    }
}

@media (max-width: 464px) {
    .nav-primary {
        min-width: unset;
        padding: 0.5vw 2vw;
        font-size: 0.8rem;
    }

    .nav-links a {
        min-width: unset;
        font-size: 0.8rem;
        padding: 0.5vw 0.4vw;
    }
}