/* Modern Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: #8b0000;
    color: #ffffff;
}

@font-face {
    font-family: 'Hack Font';
    src: url('../gorsel/uni-sans.otf') format('opentype');
}

:root {
    --primary-red: #dc143c;
    --dark-red: #8b0000;
    --gold: #ffd700;
    --white: #ffffff;
    --black: #000000;
    --gray: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

body {
    font-family: 'Hack Font', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    overflow: hidden;
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
    position: relative;
}

body.fade-out {
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Gradient Overlays */
.gradient-overlay {
    position: fixed;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 2;
}

.gradient-overlay.top {
    top: 0;
    height: 200px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%);
}

.gradient-overlay.bottom {
    bottom: 0;
    height: 250px;
    background: linear-gradient(0deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.6) 40%,
        transparent 100%);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #000000 0%, #1a0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-icon {
    font-size: 64px;
    color: var(--primary-red);
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

.loading-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.info-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.modern-button {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.5);
}

.modern-button:active {
    transform: translateY(0);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

#continue-button {
    display: none;
}

#continue-button.visible {
    display: inline-flex;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Video Background */
#video-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: none;
}

#video-container.active {
    display: block;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    align-items: center;
}

/* Logo Section */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.symbol-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.symbol-container.rotated {
    transform: rotate(21deg);
}

.symbol-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.symbol-container:hover .symbol-glow {
    opacity: 1;
}

.symbol-part {
    position: absolute;
    transition: var(--transition-smooth);
    cursor: pointer;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
}

#sol {
    height: 200px;
    left: 50%;
    top: 50%;
    transform: translate(-87%, -38%);
    z-index: 2;
}

#sag {
    height: 200px;  
    left: 50%;
    top: 50%;
    transform: translate(-12%, -60%);
    z-index: 3;
}

#yildiz {
    height: 50px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -40%);
    z-index: 4 !important;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#yildiz.disappear {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0) rotate(720deg);
    filter: blur(10px) drop-shadow(0 0 30px var(--primary-red));
}

#yildiz.appear {
    animation: starAppear 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes starAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0) rotate(-720deg);
        filter: blur(10px) drop-shadow(0 0 30px var(--gold));
    }
    50% {
        transform: translate(-50%, -40%) scale(1.3) rotate(-360deg);
        filter: blur(5px) drop-shadow(0 0 20px var(--gold));
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -40%) scale(1) rotate(0deg);
        filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
    }
}

.symbol-part:hover {
    filter: drop-shadow(0 0 25px var(--primary-red)) brightness(1.3);
    transform: scale(1.15);
    z-index: 10 !important;
}

#sol:hover {
    transform: translate(-150%, -50%) scale(1.15);
}

#sag:hover {
    transform: translate(40%, -35%) scale(1.15);
}

#yildiz:hover {
    transform: translate(25%, -50%) scale(1.3);
}

/* Infinity Button */
.infinity-button {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.infinity-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.infinity-button.active {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.infinity-icon {
    font-size: 28px;
    transition: var(--transition-fast);
}

.infinity-button.active .infinity-icon {
    color: var(--gold);
}

/* Title Section */
.title-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.title-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, transparent 100%);
    border-radius: 2px;
}

.main-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-word {
    display: block;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.title-word::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-red);
    transition: width 0.4s ease;
}

.title-word:hover::after {
    width: 100%;
}

.title-word:hover {
    color: var(--primary-red);
    transform: translateX(10px);
}

.title-word.hidden {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 8px;
    font-weight: 300;
}

.title-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Info Panel */
.info-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    padding: 30px;
    padding-bottom: 110px;
    z-index: 50;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
}

.info-panel.active {
    transform: translateX(-50%) translateY(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-indicator {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.panel-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.panel-content {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.panel-content::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

#panel-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-red);
}

#panel-text {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Controls */
.controls {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 25;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-button {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.control-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.control-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.audio-control img {
    width: 24px;
    height: 24px;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px 140px 30px;
    }

    .main-title {
        font-size: 56px;
    }

    .symbol-container {
        width: 250px;
        height: 250px;
    }

    #sol, #sag {
        height: 160px;
    }

    #yildiz {
        height: 40px;
    }

    .info-panel {
        width: calc(100% - 40px);
        padding: 25px;
        padding-bottom: 100px;
        border-radius: 16px 16px 0 0;
    }

    .panel-content {
        max-height: 250px;
    }

    #panel-title {
        font-size: 24px;
    }

    #panel-text {
        font-size: 16px;
    }

    .controls {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .loading-content {
        padding: 20px;
        max-width: 90%;
    }

    .loading-content h2 {
        font-size: 24px;
    }

    .info-text {
        font-size: 14px;
    }

    .modern-button {
        padding: 14px 32px;
        font-size: 16px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 100px 20px 160px 20px;
        min-height: auto;
    }

    .logo-section {
        gap: 25px;
        order: 2;
    }

    .title-section {
        gap: 20px;
        order: 1;
    }

    .symbol-container {
        width: 200px;
        height: 200px;
    }

    #sol, #sag {
        height: 130px;
    }

    #yildiz {
        height: 32px;
    }

    #sol:hover {
        transform: translate(-87%, -38%) scale(1.1);
    }

    #sag:hover {
        transform: translate(-12%, -60%) scale(1.1);
    }

    #yildiz:hover {
        transform: translate(-50%, -40%) scale(1.2);
    }

    .infinity-button {
        padding: 10px 24px;
        font-size: 16px;
    }

    .infinity-icon {
        font-size: 24px;
    }

    .main-title {
        font-size: 42px;
        gap: 8px;
    }

    .title-word.hidden {
        font-size: 24px;
        letter-spacing: 6px;
    }

    .title-subtitle {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .title-divider {
        width: 80px;
        height: 3px;
    }

    /* Mobile Info Panel - Fullscreen Modal */
    .info-panel {
        width: 100%;
        max-width: none;
        height: 100vh;
        border-radius: 0;
        padding: 60px 20px 20px 20px;
        transform: translateX(-50%) translateY(100vh);
    }

    .info-panel.active {
        transform: translateX(-50%) translateY(0);
    }

    .panel-header {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 10;
        margin-bottom: 0;
    }

    .panel-indicator {
        display: none;
    }

    .panel-close {
        font-size: 36px;
        width: 44px;
        height: 44px;
    }

    .panel-content {
        max-height: calc(100vh - 100px);
        padding-right: 5px;
        margin-top: 20px;
    }

    #panel-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    #panel-text {
        font-size: 16px;
        line-height: 1.7;
    }

    /* Mobile Controls - Stacked */
    .controls {
        bottom: 15px;
        left: 15px;
        right: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .control-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    .control-button svg {
        width: 18px;
        height: 18px;
    }

    .audio-control img {
        width: 20px;
        height: 20px;
    }

    /* Hide gradient overlays on mobile */
    .gradient-overlay {
        display: none;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .main-content {
        padding: 80px 15px 180px 15px;
    }

    .main-title {
        font-size: 36px;
    }

    .symbol-container {
        width: 170px;
        height: 170px;
    }

    #sol, #sag {
        height: 110px;
    }

    #yildiz {
        height: 28px;
    }

    #panel-title {
        font-size: 22px;
    }

    #panel-text {
        font-size: 15px;
    }

    .controls {
        gap: 8px;
    }

    .control-button {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 600px) and (orientation: landscape) {
    .main-content {
        padding: 60px 20px 120px 20px;
    }

    .symbol-container {
        width: 150px;
        height: 150px;
    }

    #sol, #sag {
        height: 100px;
    }

    #yildiz {
        height: 25px;
    }

    .main-title {
        font-size: 32px;
    }
}