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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-gradient-start: #1e3a8a;
    --bg-gradient-end: #1e293b;
    --footer-bg: #0f172a;
    --footer-text: rgba(255, 255, 255, 0.8);
    --footer-btn-bg: rgba(255, 255, 255, 0.1);
    --footer-btn-hover: rgba(255, 255, 255, 0.2);
}

/* Light Mode (Gündüz) */
[data-theme="light"] {
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #f8fafc;
    --footer-bg: #1e293b;
}

[data-theme="light"] .content {
    color: var(--text-dark);
}

[data-theme="light"] .status-text {
    color: var(--text-dark);
}

[data-theme="light"] .status-title {
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.4), 0 0 25px rgba(37, 99, 235, 0.3);
    animation: titleGlowLight 2.5s ease-in-out infinite;
}

@keyframes titleGlowLight {
    0%, 100% {
        text-shadow: 0 0 12px rgba(59, 130, 246, 0.4), 0 0 25px rgba(37, 99, 235, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 18px rgba(59, 130, 246, 0.6), 0 0 35px rgba(37, 99, 235, 0.4);
        transform: scale(1.02);
    }
}

[data-theme="light"] .status-text span {
    color: var(--text-light);
}

[data-theme="light"] .email-link {
    color: var(--primary-color);
}

[data-theme="light"] .email-link:hover {
    color: var(--secondary-color);
}

[data-theme="light"] .wifi-arc {
    border-top-color: rgba(37, 99, 235, 0.7);
}

[data-theme="light"] .wifi-dot {
    background: rgba(37, 99, 235, 0.9);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.6);
}

[data-theme="light"] .email-icon {
    opacity: 0.8;
}

/* Dark Mode (Gece) - Default */
[data-theme="dark"] {
    --bg-gradient-start: #1e3a8a;
    --bg-gradient-end: #1e293b;
    --footer-bg: #0f172a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.content {
    text-align: center;
    color: white;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    margin-bottom: 2rem;
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.construction-visual {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 260px;
}

.wifi-icon {
    position: relative;
    width: 160px;
    height: 140px;
}

.wifi-arc {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.85);
    animation: wifiPulse 2.2s ease-out infinite;
}

.wifi-arc.arc-1 {
    width: 140px;
    height: 140px;
    top: 0;
    animation-delay: 0s;
}

.wifi-arc.arc-2 {
    width: 110px;
    height: 110px;
    top: 15px;
    animation-delay: 0.25s;
}

.wifi-arc.arc-3 {
    width: 80px;
    height: 80px;
    top: 35px;
    animation-delay: 0.5s;
}

.wifi-dot {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
    animation: wifiDot 1.8s ease-in-out infinite;
}

@keyframes wifiPulse {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.85);
    }
    40% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes wifiDot {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
}

.status-text {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.status-title {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(59, 130, 246, 0.3);
    animation: titleGlow 2.5s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(59, 130, 246, 0.5);
        transform: scale(1.02);
    }
}

.status-text span {
    opacity: 0.75;
    font-size: 0.95rem;
}

.email-info {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.email-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}

.email-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.email-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-text {
    color: var(--footer-text);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.hologram-text {
    display: inline-block;
    font-weight: 700;
    background: linear-gradient(
        90deg,
        #ff006e 0%,
        #8338ec 25%,
        #3a86ff 50%,
        #06ffa5 75%,
        #ff006e 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hologramShift 3s linear infinite;
    text-shadow: 0 0 12px rgba(255, 0, 110, 0.3);
    filter: drop-shadow(0 0 5px rgba(131, 56, 236, 0.4));
}

@keyframes hologramShift {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 5px rgba(255, 0, 110, 0.4));
    }
    25% {
        background-position: 50% 50%;
        filter: drop-shadow(0 0 5px rgba(131, 56, 236, 0.4));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 5px rgba(58, 134, 255, 0.4));
    }
    75% {
        background-position: 150% 50%;
        filter: drop-shadow(0 0 5px rgba(6, 255, 165, 0.4));
    }
    100% {
        background-position: 200% 50%;
        filter: drop-shadow(0 0 5px rgba(255, 0, 110, 0.4));
    }
}

.footer-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.footer-btn {
    padding: 0.35rem 0.85rem;
    background: var(--footer-btn-bg);
    color: var(--footer-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.footer-btn:hover {
    background: var(--footer-btn-hover);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.email-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.email-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.theme-toggle:active {
    transform: scale(0.9);
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.25);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        max-width: 150px;
    }

    .construction-visual {
        margin: 2rem 0;
        min-height: 250px;
    }

    .loader-container {
        width: 180px;
        height: 180px;
    }

    .loader-ring:nth-child(1) {
        width: 180px;
        height: 180px;
    }

    .loader-ring:nth-child(2) {
        width: 140px;
        height: 140px;
        top: 20px;
        left: 20px;
    }

    .loader-ring:nth-child(3) {
        width: 100px;
        height: 100px;
        top: 40px;
        left: 40px;
    }

    .loader-ring:nth-child(4) {
        width: 60px;
        height: 60px;
        top: 60px;
        left: 60px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-buttons {
        justify-content: center;
        width: 100%;
    }

    .email-info {
        margin-top: 1.25rem;
        padding-top: 0.75rem;
    }

    .email-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    .logo {
        max-width: 120px;
    }

    .construction-visual {
        margin: 1.5rem 0;
        min-height: 200px;
    }

    .loader-container {
        width: 150px;
        height: 150px;
    }

    .loader-ring:nth-child(1) {
        width: 150px;
        height: 150px;
    }

    .loader-ring:nth-child(2) {
        width: 120px;
        height: 120px;
        top: 15px;
        left: 15px;
    }

    .loader-ring:nth-child(3) {
        width: 90px;
        height: 90px;
        top: 30px;
        left: 30px;
    }

    .loader-ring:nth-child(4) {
        width: 60px;
        height: 60px;
        top: 45px;
        left: 45px;
    }

    .pulse-dot {
        width: 15px;
        height: 15px;
    }

    .footer {
        padding: 1rem;
    }

    .footer-btn {
        padding: 0.3rem 0.75rem;
        font-size: 0.7rem;
    }

    .email-info {
        margin-top: 1rem;
        padding-top: 0.75rem;
        flex-direction: column;
        gap: 0.4rem;
    }

    .email-link {
        font-size: 0.85rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 12px;
        right: 12px;
        background: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }

    [data-theme="light"] .theme-toggle {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(0, 0, 0, 0.3);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
}
