* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Logo renk paletine uygun renkler */
    --dark-brown: #8B4513;
    --light-orange-brown: #D2691E;
    --cream-bg: #FAF0E6;
    --paper-texture: #F5F5DC;
    --accent-orange: #CD853F;
    --warm-beige: #FFF8DC;
    --deep-brown: #654321;
    
    /* Spacing */
    --spacing-xs: clamp(0.5rem, 2vw, 0.75rem);
    --spacing-sm: clamp(0.75rem, 3vw, 1rem);
    --spacing-md: clamp(1rem, 4vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 6vw, 2.5rem);
    --spacing-xl: clamp(2rem, 8vw, 4rem);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--paper-texture) 50%, var(--warm-beige) 100%);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--spacing-sm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Paper texture effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.02) 2px,
            rgba(139, 69, 19, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.02) 2px,
            rgba(139, 69, 19, 0.02) 4px
        );
    pointer-events: none;
    z-index: 0;
}

/* Animated background waves */
.wave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(210, 105, 30, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: waveMove 20s ease-in-out infinite;
}

.wave-1 {
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.wave-2 {
    top: 50%;
    left: -50%;
    transform: translateY(-50%);
    animation-delay: 7s;
    background: radial-gradient(ellipse at center, rgba(139, 69, 19, 0.06) 0%, transparent 70%);
}

.wave-3 {
    top: 50%;
    right: -50%;
    transform: translateY(-50%);
    animation-delay: 14s;
    background: radial-gradient(ellipse at center, rgba(205, 133, 63, 0.05) 0%, transparent 70%);
}

@keyframes waveMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(10%, 10%) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translate(-10%, -10%) scale(0.9);
        opacity: 0.6;
    }
}

/* Floating dough particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: clamp(20px, 4vw, 40px);
    height: clamp(20px, 4vw, 40px);
    background: var(--light-orange-brown);
    border-radius: 50% 30% 50% 30%;
    opacity: 0.15;
    animation: floatParticle 15s ease-in-out infinite;
}

.particle-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.particle-2 {
    top: 15%;
    right: 15%;
    animation-delay: 2s;
    transform: rotate(90deg);
    background: var(--accent-orange);
}

.particle-3 {
    top: 50%;
    left: 10%;
    transform: translateY(-50%) rotate(135deg);
    animation-delay: 4s;
}

.particle-4 {
    top: 50%;
    right: 10%;
    transform: translateY(-50%) rotate(180deg);
    animation-delay: 6s;
    background: var(--accent-orange);
}

.particle-5 {
    bottom: 15%;
    left: 15%;
    animation-delay: 8s;
    transform: rotate(225deg);
}

.particle-6 {
    bottom: 15%;
    right: 15%;
    animation-delay: 10s;
    transform: rotate(270deg);
    background: var(--accent-orange);
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--rotation, 0deg)) scale(1);
    }
    25% {
        transform: translate(20px, -30px) rotate(calc(var(--rotation, 0deg) + 90deg)) scale(1.1);
    }
    50% {
        transform: translate(-15px, -50px) rotate(calc(var(--rotation, 0deg) + 180deg)) scale(0.9);
    }
    75% {
        transform: translate(30px, -20px) rotate(calc(var(--rotation, 0deg) + 270deg)) scale(1.05);
    }
}

/* Main container */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Main content card */
.content-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: clamp(24px, 6vw, 32px);
    padding: var(--spacing-xl) var(--spacing-lg);
    box-shadow: 
        0 20px 60px rgba(139, 69, 19, 0.12),
        0 8px 24px rgba(139, 69, 19, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    animation: cardAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(139, 69, 19, 0.08);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(210, 105, 30, 0.1) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo wrapper with decorative frame */
.logo-wrapper {
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.logo-frame {
    position: relative;
    display: inline-block;
    padding: var(--spacing-md);
    margin: 0 auto;
}

.frame-decoration {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--light-orange-brown), transparent);
    border-radius: 2px;
    animation: frameGrow 1.5s ease-out 0.5s both;
}

.frame-top {
    top: 0;
}

.frame-bottom {
    bottom: 0;
}

@keyframes frameGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60%;
        opacity: 1;
    }
}

.logo-container {
    position: relative;
    animation: logoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(139, 69, 19, 0.2));
    display: block;
    width: 100%;
    text-align: center;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(-12px);
    }
    75% {
        transform: translateY(-8px);
    }
}

.logo {
    max-width: min(280px, 70vw);
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.logo:hover {
    transform: scale(1.03);
}

/* Title section */
.title-section {
    margin-bottom: var(--spacing-md);
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    color: var(--dark-brown);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    animation: titleFadeIn 1s ease-out 0.3s both;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-underline {
    width: clamp(80px, 20vw, 120px);
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--light-orange-brown), var(--accent-orange), transparent);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
    animation: underlineGrow 1s ease-out 0.6s both;
}

@keyframes underlineGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: clamp(80px, 20vw, 120px);
        opacity: 1;
    }
}

/* Subtitle */
.subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    color: var(--accent-orange);
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.8s both;
}

.subtitle-text {
    display: inline-block;
}

.loading-dots {
    display: inline-flex;
    gap: 2px;
}

.dot {
    display: inline-block;
    animation: dotBounce 1.4s ease-in-out infinite;
    font-size: 1.5em;
    line-height: 1;
}

.dot-1 {
    animation-delay: 0s;
}

.dot-2 {
    animation-delay: 0.2s;
}

.dot-3 {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Progress section */
.progress-section {
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 1s ease-out 1s both;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--light-orange-brown), var(--accent-orange));
    border-radius: 10px;
    animation: progressFill 3s ease-out 1.2s both;
    box-shadow: 0 0 10px rgba(210, 105, 30, 0.5);
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 75%;
    }
}

.progress-text {
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    color: var(--dark-brown);
    opacity: 0.7;
    font-weight: 400;
    text-align: center;
}

/* Divider section */
.divider-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    animation: fadeIn 1s ease-out 1.4s both;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(210, 105, 30, 0.3), transparent);
    max-width: 80px;
}

.divider-icon {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    animation: iconSpin 3s ease-in-out infinite;
}

@keyframes iconSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

/* Footer */
.footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(139, 69, 19, 0.1);
    animation: fadeIn 1s ease-out 1.6s both;
}

.footer-icon {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: var(--spacing-xs);
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(10deg);
    }
}

.footer-text {
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    color: var(--dark-brown);
    opacity: 0.75;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.6;
    text-align: center;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 8px;
    border-radius: 6px;
}

.footer-link:hover {
    opacity: 1;
    color: var(--dark-brown);
    background: rgba(210, 105, 30, 0.1);
    transform: translateY(-2px);
}

.footer-link:active {
    transform: translateY(0);
}

.footer-label {
    font-weight: 600;
    color: var(--dark-brown);
    position: relative;
}

.footer-link:hover .footer-label {
    color: var(--light-orange-brown);
}

.footer-separator {
    opacity: 0.7;
    font-weight: 400;
}

.footer-link:hover .footer-separator {
    opacity: 0.9;
}

/* Floating elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.float-element {
    position: absolute;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    opacity: 0.15;
    animation: floatAround 20s ease-in-out infinite;
    filter: blur(1px);
}

.float-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-2 {
    top: 20%;
    right: 10%;
    animation-delay: 7s;
}

.float-3 {
    bottom: 20%;
    left: 50%;
    animation: floatAroundVertical 20s ease-in-out infinite;
    animation-delay: 14s;
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-15px, -40px) rotate(180deg);
    }
    75% {
        transform: translate(25px, -25px) rotate(270deg);
    }
}

@keyframes floatAroundVertical {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateX(-50%) translateY(-35px) rotate(180deg);
    }
    75% {
        transform: translateX(-50%) translateY(-15px) rotate(270deg);
    }
}

/* Responsive optimizations */
@media (max-width: 768px) {
    .content-card {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: clamp(20px, 5vw, 28px);
    }
    
    .logo {
        max-width: min(240px, 65vw);
    }
    
    .title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .subtitle {
        font-size: clamp(0.9rem, 3.2vw, 1.1rem);
    }
}

@media (max-width: 480px) {
    body {
        padding: var(--spacing-xs);
    }
    
    .content-card {
        padding: var(--spacing-md) var(--spacing-sm);
        border-radius: clamp(18px, 4.5vw, 24px);
    }
    
    .logo {
        max-width: min(200px, 60vw);
    }
    
    .title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        gap: 0.25rem;
    }
    
    .subtitle {
        font-size: clamp(0.85rem, 3vw, 1rem);
        flex-direction: column;
        gap: 2px;
    }
    
    .footer-text {
        font-size: clamp(0.75rem, 2.8vw, 0.85rem);
    }
    
    .particle {
        width: clamp(15px, 3vw, 30px);
        height: clamp(15px, 3vw, 30px);
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding: var(--spacing-xs);
    }
    
    .content-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .logo-wrapper {
        margin-bottom: var(--spacing-sm);
    }
    
    .logo {
        max-width: min(180px, 40vw);
    }
    
    .title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: var(--spacing-xs);
    }
    
    .subtitle {
        margin-bottom: var(--spacing-sm);
    }
    
    .progress-section {
        margin-bottom: var(--spacing-sm);
    }
    
    .divider-section {
        margin: var(--spacing-sm) 0;
    }
    
    .footer {
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .logo:hover {
        transform: scale(1);
    }
    
    .logo:active {
        transform: scale(0.98);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .content-card {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid var(--dark-brown);
    }
    
    .title {
        color: var(--deep-brown);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-container {
        animation: none;
    }
    
    .particle,
    .wave,
    .float-element {
        animation: none;
    }
}