@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --scroll-time: 15s;
    --scrollTXTsize: 36px;
    
    /* Default (Gold) Theme */
    --primary-color: #d4af37;
    --text-color: #fff;
    --text-muted: #eee;
    --bg-dark: rgba(10, 10, 10, 0.6);
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --anim-bg-1: #0f0c00;
    --anim-bg-2: #1a1708;
    --anim-bg-3: #261f03;
    --anim-bg-4: #110e01;
}

body.navy {
    --primary-color: #5ab9ea;
    --text-color: #fff;
    --text-muted: #d0e1f9;
    --bg-dark: rgba(18, 32, 54, 0.6);
    --glass-bg: rgba(18, 32, 54, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --anim-bg-1: #0a111a;
    --anim-bg-2: #122036;
    --anim-bg-3: #1a2f4c;
    --anim-bg-4: #0a111a;
}

body.light {
    --primary-color: #122036;
    --text-color: #111;
    --text-muted: #333;
    --bg-dark: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.15);
    --anim-bg-1: #fdfdfd;
    --anim-bg-2: #f0f0f0;
    --anim-bg-3: #e8e8e8;
    --anim-bg-4: #fdfdfd;
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: transparent; /* Z-INDEX FIX */
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
}

/* Default Animated Background */
.animated-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(-45deg, var(--anim-bg-1), var(--anim-bg-2), var(--anim-bg-3), var(--anim-bg-4));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -2;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background Handling */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bg-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bg-container .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
}

/* Clock & Date (Top Right) */
#timer {
    position: absolute;
    top: 30px;
    right: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    border-radius: 20px;
    text-align: right;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#clock {
    font-weight: 800;
    font-size: 5rem;
    line-height: 1;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(var(--primary-color), 0.4);
}

#tarih {
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Slider / Gallery Container */
.gallery-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(0.95);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}
/* Logo Area */
.logo-area {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}
.main-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}
.logo-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.logo-sub {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Info Text Slider (Left Side) */
.info-slider-container {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 25%;
    height: auto;
    min-height: 200px;
    z-index: 10;
    display: flex;
    align-items: center;
}

.info-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: translateY(20px);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.4;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.info-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.info-slide strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Subtle Social Widget */
.social-widget-subtle {
    position: absolute;
    right: 40px;
    bottom: 90px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0.6;
}

.social-widget-subtle svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.social-widget-subtle span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 2px solid var(--glass-border);
}

/* Scrolling Footer */
.scrolling-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 15px 0;
    z-index: 20;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left var(--scroll-time) linear infinite;
}

.scrolling-text span {
    font-size: var(--scrollTXTsize);
    font-weight: 600;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


