/* Reset ve Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Magnabliss Primary Colors */
    --color-primary: #B9375D;
    --color-secondary: #D25D5D;
    --color-accent: #E7D3D3;
    --color-background: #EEEEEE;
    --color-dark-background: #222831;
    --color-dark-surface: #393E46;
    --color-light-text: #222831;
    --color-dark-text: #EEEEEE;
    
    /* Fonts */
    --font-family-sans: 'Inter', ui-sans-serif, system-ui;
    --font-family-display: 'Playfair Display', ui-serif, Georgia;
}

body {
    font-family: var(--font-family-sans);
    background: #000;
    color: var(--color-dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hero Slider Container */
.hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
    max-height: 100vh;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 1;
    transition: opacity 0.5s ease;
    background: #000;
}

.hero-video.loading {
    opacity: 0;
}

.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

/* Video Loading Indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
    border: 1px solid rgba(185, 55, 93, 0.3);
}

.video-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-loading p {
    margin-top: 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(185, 55, 93, 0.3);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(185, 55, 93, 0.3) 30%,
        rgba(210, 93, 93, 0.2) 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: -1;
}

/* Content */
.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    z-index: 10;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: auto;
    padding-top: 8rem; /* Logo için üstten boşluk */
}

/* Logo */
.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    opacity: 1;
    /* Primary color filter for logo */
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(340deg) brightness(89%) contrast(97%);
    transition: all 0.3s ease;
    max-width: 300px;
    object-fit: contain;
}

.logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(340deg) brightness(89%) contrast(97%) drop-shadow(0 0 10px rgba(185, 55, 93, 0.5));
}

/* Main Content */
.hero-main {
    width: 100%;
    max-width: 700px;
    margin-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Title */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-accent) 50%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(185, 55, 93, 0.3);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.4s both;
    letter-spacing: 2px;
}

/* Description */
.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.countdown-item {
    text-align: center;
    background: rgba(185, 55, 93, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(185, 55, 93, 0.3);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    min-width: 80px;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(185, 55, 93, 0.3);
    border-color: var(--color-primary);
}

.countdown-number {
    display: block;
    font-family: var(--font-family-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(185, 55, 93, 0.5);
}

.countdown-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}



/* Newsletter */
.hero-newsletter {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 1s both;
    width: 100%;
    max-width: 450px;
}

.hero-newsletter h3 {
    font-family: var(--font-family-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
    color: white;
}

.hero-newsletter p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.newsletter-info {
    background: rgba(185, 55, 93, 0.1);
    border: 1px solid rgba(185, 55, 93, 0.3);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    max-width: 450px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(185, 55, 93, 0.3);
}

.input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group button:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    transform: translateX(2px);
}

/* Social Links */
.hero-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 1.2s both;
    margin-top: 2rem;
    z-index: 20;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(185, 55, 93, 0.3);
    background: rgba(185, 55, 93, 0.1);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(185, 55, 93, 0.5);
}

.floating-element::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(185, 55, 93, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 8%;
}

.floating-element:nth-child(2) {
    top: 25%;
    right: 12%;
}

.floating-element:nth-child(3) {
    top: 45%;
    left: 15%;
}

.floating-element:nth-child(4) {
    top: 55%;
    right: 18%;
}

.floating-element:nth-child(5) {
    bottom: 35%;
    left: 10%;
}

.floating-element:nth-child(6) {
    bottom: 45%;
    right: 15%;
}

.floating-element:nth-child(7) {
    top: 75%;
    left: 25%;
}

.floating-element:nth-child(8) {
    top: 85%;
    right: 8%;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
        min-height: 100vh;
        overflow: hidden;
    }
    
    .hero-logo {
        top: 1rem;
    }
    
    .logo-img {
        height: 60px;
        max-width: 200px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    
    .hero-description {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
    
    .countdown-timer {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 1rem 0.5rem;
    }
    
    .countdown-number {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 25px;
    }
    
    .input-group button {
        border-radius: 0 0 25px 25px;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .hero-logo {
        top: 0.5rem;
    }
    
    .logo-img {
        height: 50px;
        max-width: 180px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .hero-social {
        bottom: 1rem;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(185, 55, 93, 0.3);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
