/* General Styles */
:root {
    --zulfi-dark: #0a0e17;
    --zulfi-darker: #050709;
    --zulfi-accent: #6e42ff;
    --zulfi-accent-light: #8e6eff;
    --zulfi-accent-dark: #5025db;
    --zulfi-blue: #2c5fff;
    --zulfi-cyan: #00c2ff;
    --zulfi-success: #30e3a1;
    --zulfi-warning: #ff9c41;
    --zulfi-danger: #ff4d6b;
    --zulfi-text: #f0f2f5;
    --zulfi-text-muted: #a1a7b3;
    --zulfi-border: rgba(255, 255, 255, 0.1);
    --zulfi-card-bg: #121825;
    --zulfi-transition: all 0.3s ease;
    --zulfi-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --zulfi-glow: 0 0 15px rgba(110, 66, 255, 0.5);
}

@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/3KHJtXrEh6Dc.woff2') format('woff2');
}

@font-face {
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/il4lDgez1LW3.woff2') format('woff2');
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--zulfi-dark);
    background: linear-gradient(135deg, var(--zulfi-dark) 0%, var(--zulfi-darker) 100%);
    background-attachment: fixed;
    color: var(--zulfi-text);
    font-family: 'Exo 2', sans-serif;
    position: relative;
}

/* Formula Box Styles */
.formula-box {
    background: linear-gradient(135deg, rgba(110, 66, 255, 0.15), rgba(44, 95, 255, 0.1));
    border: 2px solid rgba(110, 66, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(110, 66, 255, 0.2);
    transition: all 0.3s ease;
}

.formula-box:hover {
    border-color: rgba(110, 66, 255, 0.5);
    box-shadow: 0 12px 40px rgba(110, 66, 255, 0.3);
    transform: translateY(-2px);
}

.formula-box strong {
    font-size: 1.2em;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(110, 66, 255, 0.5);
}

.formula-box small {
    color: var(--zulfi-text-muted);
    font-style: italic;
}

/* Reading Progress and Continue Button */
.reading-progress {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(110, 66, 255, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(110, 66, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.reading-progress:hover {
    background: rgba(110, 66, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 66, 255, 0.6);
}

/* Confirmation Dialog Styles */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.confirmation-content {
    background: linear-gradient(135deg, var(--zulfi-card-bg), var(--zulfi-dark));
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    border: 2px solid rgba(110, 66, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.confirmation-content h3 {
    color: var(--zulfi-warning);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.confirmation-content p {
    color: var(--zulfi-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirmation-buttons .btn {
    min-width: 120px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

.btn-confirm-yes {
    background: var(--zulfi-danger);
    color: white;
}

.btn-confirm-yes:hover {
    background: #ff2046;
    transform: translateY(-2px);
}

.btn-confirm-no {
    background: var(--zulfi-success);
    color: white;
}

.btn-confirm-no:hover {
    background: #2bc47e;
    transform: translateY(-2px);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMCAwaDQwdjQwSDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTEgMWgxdjFoLTF6TTM4IDFoMXYxaC0xek0xIDM4aDF2MWgtMXpNMzggMzhoMXYxaC0xeiIgZmlsbD0icmdiYSgxMTAsIDY2LCAyNTUsIDAuMDUpIi8+PC9zdmc+');
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}

.main-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.display-2 {
    font-size: 3.5rem;
    background: linear-gradient(to right, var(--zulfi-cyan), var(--zulfi-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    padding: 4rem 1rem;
}

.screen.active {
    display: block;
    animation: fadeIn 0.8s ease-in-out;
}

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

/* Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: var(--zulfi-transition);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(45deg, var(--zulfi-accent-dark), var(--zulfi-accent));
    border: none;
    color: white;
    box-shadow: var(--zulfi-box-shadow);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: linear-gradient(45deg, var(--zulfi-accent), var(--zulfi-accent-light));
    transform: translateY(-3px);
    box-shadow: var(--zulfi-glow);
}

.btn-outline-secondary {
    border: 1px solid var(--zulfi-accent);
    color: var(--zulfi-accent);
    background: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--zulfi-accent);
    color: white;
}

.btn-outline-light {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    backdrop-filter: blur(10px);
    color: white;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--zulfi-accent), var(--zulfi-danger));
    opacity: 0;
    z-index: -1;
    transition: var(--zulfi-transition);
}

.btn-outline-light:hover::after {
    opacity: 1;
}

/* Card and Form Styles */
.form-control, .form-floating>.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--zulfi-border);
    color: var(--zulfi-text);
    transition: var(--zulfi-transition);
    backdrop-filter: blur(5px);
}

.form-control:focus, .form-floating>.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--zulfi-accent);
    box-shadow: 0 0 0 0.25rem rgba(110, 66, 255, 0.25);
    color: white;
}

.form-floating>label {
    color: var(--zulfi-text-muted);
}

/* Timer Styles */
.timer-container {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--zulfi-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.timer {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--zulfi-accent-dark), var(--zulfi-accent));
    color: white;
    box-shadow: var(--zulfi-glow);
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}

.timer::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 0.9em;
}

/* Reading Text */
.reading-text {
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 3rem;
    background-color: var(--zulfi-card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--zulfi-box-shadow);
    border: 1px solid var(--zulfi-border);
}

.reading-text p {
    margin-bottom: 1.5rem;
}

/* Health Reminder */
.health-reminder {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.health-content {
    padding: 3rem;
    max-width: 90%;
    background: rgba(18, 24, 37, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--zulfi-border);
    box-shadow: var(--zulfi-box-shadow);
}

.health-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Flashing Animation */
@keyframes flash {
    0% { filter: invert(0); }
    50% { filter: invert(1); }
    100% { filter: invert(0); }
}

.flashing {
    animation: flash 0.5s infinite;
}

/* Audio Controls */
.audio-controls {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
}

.audio-controls .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 24, 37, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--zulfi-border);
    box-shadow: var(--zulfi-box-shadow);
    color: var(--zulfi-accent);
    font-size: 1.2rem;
    transition: var(--zulfi-transition);
}

.audio-controls .btn:hover {
    transform: scale(1.1);
    box-shadow: var(--zulfi-glow);
}

/* Assessment Styles */
.question-card {
    margin-bottom: 2.5rem;
    border-radius: 10px;
    padding: 2rem;
    background-color: var(--zulfi-card-bg);
    border: 1px solid var(--zulfi-border);
    box-shadow: var(--zulfi-box-shadow);
    transition: var(--zulfi-transition);
    position: relative;
    overflow: hidden;
}

.question-card:hover {
    box-shadow: var(--zulfi-glow);
    transform: translateY(-5px);
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--zulfi-accent), var(--zulfi-blue));
}

.question-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--zulfi-accent-dark), var(--zulfi-accent));
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.question-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    padding-right: 2rem;
}

/* Results Styles */
.alert {
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--zulfi-box-shadow);
    border: none;
}

.alert-success {
    background: linear-gradient(45deg, var(--zulfi-success), var(--zulfi-blue));
    color: white;
}

.alert-warning {
    background: linear-gradient(45deg, var(--zulfi-warning), var(--zulfi-danger));
    color: white;
}

.alert-info {
    background: linear-gradient(45deg, var(--zulfi-blue), var(--zulfi-cyan));
    color: white;
}

#countdown-container {
    background-color: var(--zulfi-card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--zulfi-box-shadow);
    border: 1px solid var(--zulfi-border);
}

#countdown-timer {
    font-size: 5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--zulfi-accent), var(--zulfi-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#team-registration-form {
    background-color: var(--zulfi-card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--zulfi-box-shadow);
    border: 1px solid var(--zulfi-border);
}

.fst-italic {
    background: linear-gradient(to right, var(--zulfi-cyan), var(--zulfi-success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 194, 255, 0.2);
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .display-2 {
        font-size: 2.8rem;
    }
    
    .screen {
        padding: 3rem 1rem;
    }
    
    .reading-text {
        font-size: 1.1rem;
        line-height: 1.7;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .display-2 {
        font-size: 2.3rem;
    }
    
    .screen {
        padding: 2rem 1rem;
    }
    
    .reading-text {
        font-size: 1rem;
        line-height: 1.6;
        padding: 1.25rem;
    }
    
    .timer {
        font-size: 1.1rem;
        padding: 0.3rem 0.8rem;
    }
    
    .health-content h2 {
        font-size: 1.8rem;
    }
    
    .question-text {
        font-size: 1.15rem;
    }
    
    #countdown-timer {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .display-2 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .timer-container {
        padding: 0.5rem 1rem;
    }
    
    .timer {
        font-size: 1rem;
        padding: 0.25rem 0.6rem;
    }
    
    .question-card {
        padding: 1.5rem;
    }
    
    .health-content h2 {
        font-size: 1.5rem;
    }
}

/* Animation for screens */
@keyframes floatUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animated-item {
    animation: floatUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* Pulse animation for health icon */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

/* Success icon animation */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.success-icon {
    animation: bounceIn 1s forwards;
}

/* Particle background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Background glowing effect */
.bg-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--zulfi-accent);
    filter: blur(50px);
    opacity: 0.15;
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

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

.glow-1 {
    top: 10%;
    left: 10%;
    background: var(--zulfi-accent);
    animation-delay: 0s;
}

.glow-2 {
    bottom: 20%;
    right: 15%;
    background: var(--zulfi-blue);
    animation-delay: 2s;
    animation-duration: 10s;
}

.glow-3 {
    top: 60%;
    left: 50%;
    background: var(--zulfi-cyan);
    animation-delay: 4s;
    animation-duration: 12s;
}

/* Additional styling for quiz elements */
.question-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--zulfi-accent-dark), var(--zulfi-accent));
    color: white;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: var(--zulfi-glow);
    animation: pulse 2s infinite;
}

.badge {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.progress-bar {
    background: linear-gradient(to right, var(--zulfi-accent), var(--zulfi-cyan));
}

/* Input focus effects */
.form-control:focus, textarea:focus {
    box-shadow: 0 0 0 0.25rem rgba(110, 66, 255, 0.25);
    border-color: var(--zulfi-accent);
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 23, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--zulfi-accent-dark), var(--zulfi-accent));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--zulfi-accent), var(--zulfi-accent-light));
}

/* Mobil cihazlar için kayıt formu iyileştirmeleri */
@media (max-width: 576px) {
    #team-form-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem;
    }
    
    .input-group-text {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .form-label {
        margin-bottom: 0.25rem;
        font-size: 0.8rem;
    }
    
    #team-registration-form .card-body {
        padding: 1rem !important;
    }
    
    #team-registration-form .input-group {
        margin-bottom: 0.5rem;
    }
    
    #team-registration-form textarea {
        min-height: 60px;
    }
    
    #btn-submit-team {
        font-size: 0.9rem;
        padding: 0.5rem 1rem !important;
    }
}