/* ===================================
   ULTRA MODERN INTRO PAGE
   Sıfırdan Tasarım - 2025
   =================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-bg: #0a0e27;
    --color-bg-secondary: #0f1629;
    --color-primary: #00d9ff;
    --color-secondary: #5b8cff;
    --color-accent: #a855f7;
    --color-pink: #f472b6;
    --color-orange: #fb923c;
    --color-teal: #10b981;
    --color-white: #ffffff;
    --color-text: #e0e7ff;
    --color-text-muted: #a5b4fc;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 217, 255, 0.3) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-glow: 0 0 40px rgba(0, 217, 255, 0.5);
    --shadow-glow-strong: 0 0 60px rgba(91, 140, 255, 0.8);
    
    /* Timing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--color-bg);
    color: var(--color-white);
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */

.intro-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(91, 140, 255, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Daha yavaş float animasyonu */
.orb-1 {
    animation-duration: 25s; /* 20s → 25s */
}

.orb-2 {
    animation-duration: 30s; /* 20s → 30s */
}

.orb-3 {
    animation-duration: 28s; /* 20s → 28s */
}

/* Mesh Gradient */
.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 20% 30%, rgba(0, 217, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(91, 140, 255, 0.1) 0px, transparent 50%);
    animation: mesh-move 20s ease-in-out infinite; /* 15s → 20s */
}

@keyframes mesh-move {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Particle Canvas */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===================================
   MAIN CONTENT
   =================================== */

.intro-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
    animation: content-fade-in 1s var(--ease-smooth);
}

@keyframes content-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   LOGO ANIMATION
   =================================== */

.logo-container {
    margin-bottom: 40px;
    animation: logo-entrance 1.5s var(--ease-bounce);
}

@keyframes logo-entrance {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(var(--shadow-glow));
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(91, 140, 255, 0.8));
    }
}

.logo-text {
    animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Logo Rings */
.logo-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.3;
}

.ring-1 {
    width: 220px;
    height: 220px;
    border-color: var(--color-primary);
    animation: ring-rotate 10s linear infinite;
}

.ring-2 {
    width: 250px;
    height: 250px;
    border-color: var(--color-secondary);
    animation: ring-rotate 15s linear infinite reverse;
}

.ring-3 {
    width: 280px;
    height: 280px;
    border-color: var(--color-accent);
    animation: ring-rotate 20s linear infinite;
}

@keyframes ring-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===================================
   COMPANY NAME & GLITCH EFFECT
   =================================== */

.company-name {
    text-align: center;
    margin-bottom: 50px;
}

.glitch-text {
    position: relative;
    font-size: clamp(32px, 8vw, 80px);
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch-layer:nth-child(1) {
    position: relative;
    z-index: 3;
}

.glitch-layer:nth-child(2) {
    z-index: 2;
    color: var(--color-primary);
    animation: glitch-1 2s infinite;
}

.glitch-layer:nth-child(3) {
    z-index: 1;
    color: var(--color-accent);
    animation: glitch-2 2s infinite;
}

@keyframes glitch-1 {
    0%, 90%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    91% {
        transform: translate(-3px, 2px);
        opacity: 0.8;
    }
    93% {
        transform: translate(3px, -2px);
        opacity: 0.8;
    }
    95% {
        transform: translate(0);
        opacity: 0;
    }
}

@keyframes glitch-2 {
    0%, 90%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    92% {
        transform: translate(3px, -2px);
        opacity: 0.7;
    }
    94% {
        transform: translate(-3px, 2px);
        opacity: 0.7;
    }
    96% {
        transform: translate(0);
        opacity: 0;
    }
}

/* Tagline */
.tagline {
    font-size: clamp(14px, 2.5vw, 20px);
    color: var(--color-text);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tagline-word {
    display: inline-block;
    opacity: 0;
    animation: word-fade-in 0.6s var(--ease-smooth) forwards;
    animation-delay: var(--delay);
}

@keyframes word-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline-separator {
    color: var(--color-primary);
    opacity: 0;
    animation: word-fade-in 0.6s var(--ease-smooth) 0.7s forwards;
}

/* ===================================
   PROGRESS BAR
   =================================== */

.progress-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.3s var(--ease-smooth);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
}

.progress-glow {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100px;
    height: 20px;
    background: var(--gradient-glow);
    border-radius: 50%;
    opacity: 0.8;
    animation: progress-glow-move 2s ease-in-out infinite;
}

@keyframes progress-glow-move {
    0%, 100% {
        left: -50px;
    }
    50% {
        left: calc(100% - 50px);
    }
}

/* Daha yavaş glow hareketi */
.progress-glow {
    animation-duration: 3s; /* 2s → 3s */
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
}

.progress-percent {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.progress-status {
    font-size: 14px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===================================
   LOCATION BADGES
   =================================== */

.location-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(91, 140, 255, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: badge-fade-in 0.6s var(--ease-smooth) forwards;
    animation-delay: var(--delay);
    transition: all 0.3s var(--ease-smooth);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

@keyframes badge-fade-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.badge-icon {
    font-size: 18px;
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 1px;
}

/* ===================================
   SKIP BUTTON
   =================================== */

.skip-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(91, 140, 255, 0.3);
    border-radius: 30px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-smooth);
    opacity: 0;
    animation: skip-fade-in 1s var(--ease-smooth) 2s forwards;
}

@keyframes skip-fade-in {
    to {
        opacity: 1;
    }
}

.skip-button:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.skip-button:active {
    transform: translateY(-1px);
}

.skip-icon {
    transition: transform 0.3s var(--ease-smooth);
}

.skip-button:hover .skip-icon {
    transform: translateX(5px);
}

/* ===================================
   LOADING HINTS
   =================================== */

.loading-hints {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    opacity: 0;
    animation: hint-fade-in 1s var(--ease-smooth) 3s forwards;
}

@keyframes hint-fade-in {
    to {
        opacity: 1;
    }
}

.hint {
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .logo-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .ring-1 { width: 170px; height: 170px; }
    .ring-2 { width: 200px; height: 200px; }
    .ring-3 { width: 230px; height: 230px; }
    
    .glitch-text {
        font-size: clamp(24px, 6vw, 50px);
        letter-spacing: 4px;
    }
    
    .tagline {
        font-size: clamp(11px, 2vw, 16px);
        letter-spacing: 2px;
        gap: 6px;
    }
    
    .progress-container {
        max-width: 90%;
    }
    
    .skip-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 12px;
    }
    
    .loading-hints {
        bottom: 15px;
    }
    
    .hint {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .ring-1 { width: 140px; height: 140px; }
    .ring-2 { width: 170px; height: 170px; }
    .ring-3 { width: 200px; height: 200px; }
    
    .company-name {
        margin-bottom: 30px;
    }
    
    .progress-percent {
        font-size: 20px;
    }
    
    .progress-status {
        font-size: 11px;
    }
    
    .badge {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .skip-button {
        padding: 10px 20px;
        font-size: 11px;
        gap: 8px;
    }
    
    .skip-icon {
        width: 16px;
        height: 16px;
    }
    
    .loading-hints {
        display: none;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .badge,
    .skip-button {
        border-width: 3px;
    }
}

/* Focus Styles */
.skip-button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}
