/* ============================================
   THE TAMTAM - Pixel Perfect CSS
   ============================================ */

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

:root {
    --purple: #C65BCF;
    --orange: #F5A623;
    --blue: #4A90D9;
    --blue-light: rgba(74, 144, 217, 0.6);
    --red: #E53935;
    --burgundy: #800020;
    --navy: #00004D;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --black: #000000;
    --white: #FFFFFF;
    --bg: #0a0a0a;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
}


/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ============================================
   STAGES
   ============================================ */
.stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.stage.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO STAGE
   ============================================ */
.stage-hero {
    z-index: 10;
}

.hero-content {
    text-align: center;
    transform: scale(0.95);
    opacity: 0;
    animation: heroFadeIn 1.4s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.hero-title .line {
    display: block;
    font-size: clamp(44px, 9vw, 110px);
}

.hero-title .gradient {
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-location {
    margin-top: 28px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.stage-hero.exiting .hero-content {
    animation: heroExit 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ============================================
   TETRIS STAGE
   ============================================ */
.stage-tetris {
    z-index: 5;
    padding-top: 120px;
}

.tetris-wrapper {
    transform: scale(0.6);
    opacity: 0;
    transition: all 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.stage-tetris.active .tetris-wrapper {
    transform: scale(1.25);
    opacity: 1;
}

.tetris-grid {
    position: relative;
    width: 820px;
    height: 410px;
}

/* ============================================
   BLOCK GROUPS - Base Styles
   ============================================ */
.block-group {
    position: absolute;
    text-decoration: none;
    cursor: pointer;
    z-index: 1;
}

.block-group:hover {
    z-index: 999 !important;
}

.block {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.block span {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    user-select: none;
}

.block-group:hover .block span {
    opacity: 0.7;
}

.block {
    overflow: hidden;
}

.block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
}

.block-img-half {
    width: 50% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
    display: block;
    pointer-events: none;
}

/* Hover Panel Base */
.hover-panel {
    position: absolute;
    padding: 20px 24px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.block-group:hover .hover-panel {
    opacity: 1;
}

.hover-panel h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hover-panel p {
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================
   MIXED REALITY - Purple
   ============================================ */
.group-mixed-reality {
    left: 160px;
    top: 0;
    width: 0px;
    height: 310px;
    z-index: 0;
}

.block-mixed {
    left: -20px;
    top: -99px;
    width: 100px;
    height: 300px;
    /* background: var(--purple); */
}

.block-mixed span {
    writing-mode: vertical-rl;
    /*buralar hep Ardanın Arda Nayir'in*/
    font-size: 82px;
    letter-spacing: 8px;
    color: rgba(255,255,255,0.5);
}

.block-reality {
    left: 79px;
    top: 100;
    width: 200px;
    height: 100px;
    /* background: var(--purple); */
}

.block-reality span {
    font-size: 72px;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.5);
}

.group-mixed-reality:hover .block-mixed {
    transform: translateX(-99px);
}

.group-mixed-reality:hover .block-reality {
    transform: translateY(-99px);
}

.group-mixed-reality .hover-panel-left {
    left: -20px;
    top: -98px;
    width: 100px;
    height: 298px;
    background:rgba(245, 166, 35, 0.85);
    padding: 20px 12px;
}

.group-mixed-reality .hover-panel-left h3 {
    /* writing-mode: vertical-rl; SİLİNDİ */
    /* transform: rotate(180deg); SİLİNDİ */
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.group-mixed-reality .hover-panel-left p {
    /* writing-mode: vertical-rl; SİLİNDİ */
    /* transform: rotate(180deg); SİLİNDİ */
    font-size: 10px;
    line-height: 1.4;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}

.group-mixed-reality .hover-panel-top {
    left: 79.6px;
    top: 80;
    width: 200px;
    height: 100px;
    background: rgba(245, 166, 35, 0.85);
}

.group-mixed-reality .hover-panel-top h3 {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
}

.group-mixed-reality .hover-panel-top p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}




/* ============================================
   ENTERTAINMENT - Blue (was POST)
   ============================================ */
/* ============================================
   AI PRO + DUCTION - Birleşik grup
   ============================================ */
.group-aipro {
    left: 440px;
    top: 0;
    width: 0px;
    height: 410px;
    z-index: 15;
}

.group-aipro .block-post {
    left: -1px;
    top: 0;
    width: 200px;
    height: 100px;
}

.group-aipro:hover .block-post {
    transform: translateY(-98px);
}

.group-aipro .block-prod {
    left: 120px;
    top: 100px;
    width: 200px;
    height: 100px;
}

.group-aipro:hover .block-prod {
    transform: translateX(198px);
}

.group-aipro .hover-panel-aipro {
    left: -1px;
    top: 0;
    width: 200px;
    height: 100px;
    background: rgba(198, 91, 207, 0.85);
    padding: 20px 24px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.group-aipro .hover-panel-duction {
    left: 120px;
    top: 100px;
    width: 200px;
    height: 100px;
    background: rgba(198, 91, 207, 0.85);
    padding: 20px 24px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.group-aipro:hover .hover-panel-aipro,
.group-aipro:hover .hover-panel-duction {
    opacity: 1;
}

.group-aipro .hover-panel-aipro h3,
.group-aipro .hover-panel-duction h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.group-aipro .hover-panel-aipro p,
.group-aipro .hover-panel-duction p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

.group-aipro:hover .block {
    box-shadow: 0 20px 40px rgba(198, 91, 207, 0.3);
}

/* ============================================
   PRODUCTION - Red (separate)
   ============================================ */
.group-production-new {
    left: 620px;
    top: 0;
    width: 000px;
    height: 410px;
    z-index: 14;
}

.group-production-new .block-uction {
    left: -250px;
    top: 200px;
    width: 300px;
    height: 100px;
    /* background: var(--red); */
}

.group-production-new .block-uction span {
    font-size: 45px;
    letter-spacing: 3px;
    color: rgba(74, 144, 217, 0.85);
}

.group-production-new:hover .block-uction {
    transform: translateY(100px);
}

.group-production-new .hover-panel-uction {
    left: -249.5px;
    top: 200px;
    width: 299px;
    height: 100px;
    background: rgba(74, 144, 217, 0.85);
    padding: 20px 24px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
}

.group-production-new:hover .hover-panel-uction {
    opacity: 1;
}

.group-production-new .hover-panel-uction h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.group-production-new .hover-panel-uction p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}



/* OLD PRODUCTION GROUP - DEPRECATED */
.group-production {
    left: 620px;
    top: 0;
    width: 200px;
    height: 410px;
    z-index: 15;
}

.block-prod {
    left: -40px;
    top: 100px;
    width: 200px;
    height: 100px;
    /* background: var(--orange); */
}

.block-prod span {
    font-size: 56px;
    letter-spacing: 4px;
    color: rgba(100, 70, 0, 0.6);
}

.block-uction {
    left: -140px;
    top: 200px;
    width: 200px;
    height: 100px;
    /* background: var(--red); */
}

.block-uction span {
    font-size: 46px;
    letter-spacing: 3px;
    color: rgba(100, 20, 20, 0.6);
}

/* POST hover - only POST moves */
.group-production:hover .block-prod {
    transform: translateX(200px);
}

/* PRODUCTION hover - only PRODUCTION moves */
.group-production:hover .block-uction {
    transform: translateY(100px);
}

/* Hover Panel - POST */
.group-production .hover-panel-prod {
    left: -40px;
    top: 100px;
    width: 200px;
    height: 100px;
    /* background: var(--orange); */
    padding: 20px 24px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
}

.block-prod:hover ~ .hover-panel-prod {
    opacity: 1;
}

.group-production .hover-panel-prod h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(80, 50, 0, 0.9);
}

.group-production .hover-panel-prod p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(80, 50, 0, 0.75);
}

/* Hover Panel - PRODUCTION */
.group-production .hover-panel-uction {
    left: -140px;
    top: 200px;
    width: 200px;
    height: 100px;
    background: var(--burgundy);
    padding: 20px 24px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
}

.block-uction:hover ~ .hover-panel-uction {
    opacity: 1;
}

.group-production .hover-panel-uction h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.group-production .hover-panel-uction p {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.group-production:hover .block {
    box-shadow: 0 20px 40px rgba(229, 57, 53, 0.3);
}

/* ============================================
   CENTER LOGO
   ============================================ */
.center-logo {
    position: absolute;
    left: 240px;
    top: 100px;
    width: 317px;
    height: 100px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 50;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.center-logo img {
    max-width: 85%;
    max-height: 70%;
    object-fit: contain;
}

.center-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ============================================
   ENTERTAINMENT - Blue
   ============================================ */
.group-entertainment {
    left: 20px;
    top: 200px;
    width: 48px;
    height: 100px;
    z-index: 25;
}

.block-entertainment {
    left: 0;
    top: 0px;
    width: 398px;
    height: 100px;
    /* background: var(--blue); */
}

.block-entertainment span {
    font-size: 92px;
    letter-spacing: 4px;
    color: rgba(229, 57, 53, 0.85);
}

.group-entertainment:hover .block-entertainment {
    transform: translateY(100px);
}

.group-entertainment .hover-panel {
    left: 47px;
    top: 0;
    width: 303px;
    height: 100px;
    background: rgba(229, 57, 53, 0.85);
}

.group-entertainment .hover-panel h3 {
    color: var(--white);
}

.group-entertainment .hover-panel p {
    color: rgba(255, 255, 255, 0.85);
}


/* ============================================
   ARTIFICIAL INTELLIGENCE - Navy
   ============================================ */
.group-ai {
    display: none;  /* GIZLE */
    left: 800px;
    top: 0;
    width: 180px;
    height: 410px;
    z-index: 8;
}

.block-artificial {
    left: 0;
    top: 0;
    width: 190px;
    height: 205px;
    /* background: linear-gradient(180deg, var(--dark) 0%, var(--navy) 100%); */
}

.block-artificial span {
    font-size: 36px;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.25);
}

.block-intelligence {
    left: 0;
    top: 205px;
    width: 190px;
    height: 205px;
    /* background: linear-gradient(180deg, var(--navy) 0%, var(--dark) 100%); */
}

.block-intelligence span {
    font-size: 30px;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.25);
}

.group-ai:hover .block-artificial {
    transform: translateY(-120px);
}

.group-ai:hover .block-intelligence {
    transform: translateY(120px);
}

.group-ai .hover-panel {
    left: 0;
    top: 30px;
    width: 190px;
    height: 300px;
    background: var(--navy);
}

.group-ai .hover-panel h3 {
    color: var(--white);
}

.group-ai .hover-panel p {
    color: rgba(255, 255, 255, 0.8);
}

.group-ai:hover .block {
    box-shadow: 0 20px 40px rgba(0, 0, 77, 0.5);
}

.group-ai:hover .block span {
    opacity: 0.4;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 28px 48px;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-btn:hover {
    /* background: var(--purple); */
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(198, 91, 207, 0.4);
}

.contact-btn .arrow {
    font-size: 18px;
    transition: transform 0.4s ease;
}

.contact-btn:hover .arrow {
    transform: translateX(6px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroExit {
    to {
        opacity: 0;
        transform: scale(1.15);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1000px) {
    .tetris-wrapper {
        transform: scale(0.95);
    }
    .stage-tetris.active .tetris-wrapper {
        transform: scale(0.95);
    }
}

@media (max-width: 768px) {
    .tetris-wrapper {
        transform: scale(0.65);
    }
    .stage-tetris.active .tetris-wrapper {
        transform: scale(0.65);
    }
   
    .contact-btn {
        padding: 14px 32px;
        font-size: 13px;
    }
}

@media (max-width: 500px) {
    .tetris-wrapper {
        transform: scale(0.48);
    }
    .stage-tetris.active .tetris-wrapper {
        transform: scale(0.48);
    }
}