/* -------------------------------------
   CSS VARIABLES & DESIGN SYSTEM
------------------------------------- */
:root {
    --color-bg: #030303;
    --color-bg-alt: #0a0a0a;
    --color-text-main: #f5f5f5;
    --color-text-dim: #9e9e9e;
    --color-accent: #d4af37;
    /* Muted Gold/Amber */

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Syne', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 0.4s ease;
}

/* -------------------------------------
   RESET & BASE STYLES
------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.dark-bg {
    background-color: var(--color-bg-alt);
}

/* -------------------------------------
   STAGE LIGHTING EFFECTS
------------------------------------- */
.stage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% -20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.spotlight {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    top: -30vw;
    left: 20%;
    pointer-events: none;
    z-index: 0;
}

/* -------------------------------------
   BILINGUAL SYSTEM (LANGUAGE TOGGLE)
------------------------------------- */
.tr,
.en {
    display: none;
    /* Hidden by default */
}

body.lang-tr .tr {
    display: inline-block;
}

body.lang-tr p.tr,
body.lang-tr div.tr {
    display: block;
}

body.lang-en .en {
    display: inline-block;
}

body.lang-en p.en,
body.lang-en div.en {
    display: block;
}

/* Special cases for inline buttons/links */
.btn .tr,
.btn .en,
.nav-link .tr,
.nav-link .en,
.hero-subtitle .tr,
.hero-subtitle .en {
    display: none;
}

body.lang-tr .btn .tr,
body.lang-tr .nav-link .tr,
body.lang-tr .hero-subtitle .tr {
    display: inline;
}

body.lang-en .btn .en,
body.lang-en .nav-link .en,
body.lang-en .hero-subtitle .en {
    display: inline;
}


/* -------------------------------------
   NAVIGATION
------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    z-index: 100;
    transition: all 0.5s ease;
    background: transparent;
}

.navbar.scrolled {
    padding: var(--spacing-sm) 0;
    background: rgba(3, 3, 3, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--color-text-main);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-dim);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text-dim);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: var(--transition-normal);
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--color-accent);
    font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu-btn span {
    display: block;
    height: 1px;
    width: 100%;
    background-color: var(--color-text-main);
    transition: var(--transition-normal);
}

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-dim);
}

.mobile-link:hover {
    color: var(--color-text-main);
}


/* -------------------------------------
   BUTTONS
------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-text-main);
}

.btn-primary:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-dim);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}


/* -------------------------------------
   HERO SECTION
------------------------------------- */
.fullscreen-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url('../assets/hero-bg.jpg') center/cover no-repeat;
    /* Optional BG image */
    background-color: #050505;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 3, 3, 0.3) 0%, rgba(3, 3, 3, 0.9) 100%),
        radial-gradient(circle at center, transparent 0%, rgba(3, 3, 3, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 5%;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-intro {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-text-dim);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}


/* -------------------------------------
   COMMON SECTION STYLES
------------------------------------- */
.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.header-line {
    width: 60px;
    height: 1px;
    background-color: var(--color-accent);
}

.subsection-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}


/* -------------------------------------
   ABOUT SECTION
------------------------------------- */
.about-image-wrapper {
    width: 100%;
    margin: 0 auto var(--spacing-lg);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.about-profile-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(20%) contrast(1.1);
    transition: transform var(--transition-slow), filter var(--transition-normal);
}

.about-image-wrapper:hover .about-profile-img {
    transform: scale(1.02);
    filter: grayscale(0%) contrast(1.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #b0b0b0;
    font-weight: 300;
}


/* -------------------------------------
   WORKS SECTION
------------------------------------- */
.works-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.work-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.work-item.reverse {
    grid-template-columns: 1fr 1.5fr;
}

.work-item.reverse .work-media {
    order: 2;
}

.work-item.reverse .work-info {
    order: 1;
}

.work-media {
    position: relative;
    overflow: hidden;
}

.media-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 1s ease;
}

.work-media:hover .media-placeholder {
    transform: scale(1.02);
}

.video-placeholder {
    background: linear-gradient(45deg, #050505, #151515);
}

.play-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.work-media:hover .play-icon {
    color: var(--color-accent);
}

.work-info {
    display: flex;
    flex-direction: column;
}

.work-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.work-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.work-role {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.work-description p {
    color: #a0a0a0;
    font-weight: 300;
}


/* -------------------------------------
   PERFORMANCE HISTORY (TIMELINE)
------------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: var(--spacing-md);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    width: 120px;
    padding-right: 2rem;
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent);
    font-size: 1.1rem;
    padding-top: 2px;
}

.timeline-content {
    flex: 1;
    padding-left: 2rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-accent);
    transition: background 0.3s;
}

.timeline-item:hover .timeline-content::before {
    background: var(--color-accent);
}

.timeline-institution {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #e0e0e0;
}

.timeline-detail {
    color: var(--color-text-dim);
    font-size: 0.9rem;
}


/* -------------------------------------
   EDUCATION
------------------------------------- */
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.minimal-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-year {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.list-title {
    font-size: 1.1rem;
    color: #e0e0e0;
    font-weight: 500;
}

.list-institution {
    font-size: 0.9rem;
    color: var(--color-text-dim);
}


/* -------------------------------------
   MEDIA SECTION
------------------------------------- */
.showreel-container {
    margin-bottom: var(--spacing-lg);
}

.showreel-placeholder {
    width: 100%;
    aspect-ratio: 21/9;
    background: linear-gradient(to right, #050505, #1a1a1a, #050505);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.play-btn-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-main);
    transition: all 0.4s ease;
}

.showreel-placeholder:hover .play-btn-large {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
    transform: scale(1.1);
}

.showreel-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.media-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.media-item.wide {
    grid-column: span 2;
}

.media-item .media-placeholder {
    width: 100%;
    height: 100%;
    background-color: #111;
}

.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: #fff;
    font-size: 0.85rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.media-item:hover .media-caption {
    transform: translateY(0);
}


/* -------------------------------------
   MOUSE SPARKLE TRAIL
------------------------------------- */
.sparkle-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 1) 0%, rgba(212, 175, 55, 0) 70%);
    opacity: 0.8;
    transform: translate(-50%, -50%);
    animation: sparkle-fade var(--duration, 1s) ease-out forwards;
}

@keyframes sparkle-fade {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0);
        opacity: 0;
    }
}

/* -------------------------------------
   CONTACT SECTION
------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.contact-desc {
    font-size: 1.2rem;
    color: #d0d0d0;
    font-weight: 300;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.contact-link:hover {
    color: var(--color-accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dim);
}

.form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
}

.cv-btn {
    padding: 0.8rem 2rem;
    gap: 0.5rem;
}


/* -------------------------------------
   FOOTER
------------------------------------- */
.footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--color-text-dim);
}


/* -------------------------------------
   ANIMATIONS & REVEALS
------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* -------------------------------------
   MEDIA QUERIES
------------------------------------- */
@media screen and (max-width: 1024px) {
    .section-padding {
        padding: var(--spacing-lg) 0;
    }

    .about-grid,
    .works-item,
    .contact-grid,
    .grid-two-col {
        gap: var(--spacing-md);
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .about-grid,
    .contact-grid,
    .grid-two-col {
        grid-template-columns: 1fr;
    }

    .work-item,
    .work-item.reverse {
        grid-template-columns: 1fr;
    }

    .work-item.reverse .work-media {
        order: unset;
    }

    .work-item.reverse .work-info {
        order: unset;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-year {
        width: auto;
        padding-right: 0;
        text-align: left;
        margin-bottom: 0.5rem;
        padding-left: 40px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-content {
        padding-left: 40px;
    }

    .timeline-content::before {
        left: 15px;
        top: -24px;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-item.wide {
        grid-column: span 1;
    }
}