/* Ana Değişkenler */
:root {
    --primary-color: #C41E3A;  /* Ejderha kırmızısı */
    --text-color: #ffffff;
    --dark-bg: rgba(0, 0, 0, 0.9);
    --card-bg: rgba(255, 255, 255, 0.1);
    --hover-color: #E62A45; /* Daha açık ejderha kırmızısı */
    --transition-standard: all 0.3s ease-in-out;
    --menu-width: 380px;
    --mobile-breakpoint: 768px;
    --small-mobile-breakpoint: 480px;
}

/* Genel Stil Ayarları */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #000;
    position: relative;
    height: 100vh;
    width: 100vw;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Video Arkaplan */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    background-color: #000;
}

#backgroundVideo {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Hamburger Menü */
.hamburger-menu {
    position: fixed;
    top: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-standard);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 50px;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    margin-right: 12px;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    transition: var(--transition-standard);
    border-radius: 2px;
}

.menu-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hamburger-menu:hover {
    background-color: rgba(196, 30, 58, 0.2);
}

.hamburger-menu:hover .hamburger-icon span {
    background-color: var(--primary-color);
}

.hamburger-menu:hover .menu-text {
    color: var(--primary-color);
}

/* Ana İçerik */
.main-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.logo {
    position: fixed;
    top: 20px;
    left: 40px;
    cursor: pointer;
    transition: var(--transition-standard);
    z-index: 100;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    filter: brightness(0) invert(1);
    display: block;
}

.logo:hover .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(196, 30, 58, 0.7));
}

.logo:focus .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(196, 30, 58, 0.7));
}

.heading-container {
    text-align: center;
    max-width: 800px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.main-heading {
    font-size: 5rem;
    font-weight: 600;
    font-family: 'Urbanist', sans-serif;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    position: relative;
    text-align: center;
    opacity: 0.7;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.typewriter {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.main-title {
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.1;
    position: relative;
    text-align: left;
}

/* Yan Menü */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 35%; /* Video genişliğinin tamamlayıcısı */
    height: 100%;
    background-color: #000;
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    display: none; /* Logo gereksiz olduğu için gizliyorum */
}

.close-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-standard);
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1010;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-button i {
    color: #C41E3A;
    font-size: 1.5rem;
}

.close-button:hover {
    transform: rotate(90deg);
}

.side-menu-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.side-menu-logo span {
    color: var(--primary-color);
}

.side-menu-content {
    padding: 120px 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.menu-nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.menu-nav ul li {
    margin-bottom: 20px;
    position: relative;
}

.menu-nav ul li:before {
    display: none;
}

.menu-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    display: block;
    transition: var(--transition-standard);
    opacity: 0.9;
    letter-spacing: 0.5px;
    padding: 8px 0;
}

.menu-nav ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}

.side-menu-footer {
display: none;
}

/* Menü açıldığında */
body.menu-open {
overflow-x: hidden;
}

body.menu-open .video-background {
width: 65%;
height: 100%;
top: 0;
left: 0;
right: auto;
position: fixed;
border-radius: 0;
overflow: hidden;
transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    left: 0;
    right: auto;
    position: fixed;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

body.menu-open .video-overlay {
    background: rgba(0, 0, 0, 0.3);
}

body.menu-open .main-content {
    width: calc(100% - var(--menu-width));
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    position: relative;
    margin-right: var(--menu-width);
    z-index: 10;
}

body.menu-open #backgroundVideo {
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

body.menu-open .logo {
    left: 40px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

body.menu-open .hamburger-menu {
    opacity: 0;
    pointer-events: none;
}

body.menu-open .side-menu {
    box-shadow: none;
}

/* Medya Sorguları */
@media (max-width: 1024px) {
    :root {
        --menu-width: 320px;
    }
    
    .main-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --menu-width: 280px;
    }
    
    .main-heading {
        font-size: 3.2rem;
        text-align: center;
    }
    
    .typewriter {
        font-size: 0.9em;
    }
    
    .hamburger-menu {
        top: 20px;
        right: 20px;
        background-color: transparent;
        padding: 0;
        border-radius: 0;
    }
    
    .logo {
        top: 20px;
        left: 20px;
    }
    
    .menu-text {
        display: none;
    }
    
    /* Mobilde menü açıldığında video ve ana içeriği gizle */
    body.menu-open .video-background {
        width: 0;
        opacity: 0;
    }
    
    body.menu-open .main-content {
        width: 0;
        opacity: 0;
    }
    
    /* Mobilde menü içeriğini düzenle */
    .side-menu-content {
        padding: 80px 30px;
        justify-content: center;
        align-items: center;
    }
    
    .menu-nav {
        width: 100%;
        justify-content: center;
    }
    
    .menu-nav ul {
        text-align: center;
    }
    
    .menu-nav ul li a {
        font-size: 1.6rem;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    :root {
        --menu-width: 100%;
    }
    
    .main-heading {
        font-size: 2.4rem;
    }
    
    .typewriter {
        font-size: 0.85em;
        display: inline-block;
    }
    
    .hamburger-menu {
        top: 15px;
        right: 15px;
        background-color: transparent;
        padding: 0;
        border-radius: 0;
    }
    
    .logo {
        top: 15px;
        left: 15px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    /* Küçük ekranlarda menü tam ekran */
    .side-menu {
        width: 100%;
        align-items: center;
    }
    
    /* Küçük ekranlarda video ve ana içeriği gizle */
    body.menu-open .video-background {
        display: none;
    }
    
    body.menu-open .main-content {
        display: none;
    }
    
    /* Küçük ekranlarda menü içeriğini düzenle */
    .side-menu-content {
        padding: 60px 20px;
        align-items: center;
        justify-content: center;
    }
    
    .menu-nav {
        width: 100%;
        justify-content: center;
    }
    
    .menu-nav ul {
        text-align: center;
        width: 100%;
    }
    
    .menu-nav ul li {
        margin-bottom: 25px;
    }
    
    .menu-nav ul li a {
        font-size: 1.5rem;
        padding: 10px 0;
        display: inline-block;
        width: auto;
    }
    
    /* X butonu konumu */
    .close-button {
        top: 15px;
        right: 15px;
    }
}
