/* Base Styles */
:root {
    --primary: #c0392b; /* Turkish Red */
    --secondary: #27ae60; /* Iranian Green */
    --accent: #f1c40f; /* Gold accent */
    --bg-dark: #0a0a0a; /* Daha koyu siyah */
    --bg-grey: #1a1a1a; /* Koyu gri */
    --text-light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

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

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary); }
    50% { box-shadow: 0 0 20px var(--primary); }
    100% { box-shadow: 0 0 5px var(--primary); }
}

.animate-fade {
    animation: fadeIn 1s ease-out forwards;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: flex-end; /* İçeriği en alta çekiyoruz */
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #000;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Sadece en alta hafif bir karartma ekleyerek yazıların okunmasını sağlıyoruz */
    background: linear-gradient(to top, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.5) 20%, 
        transparent 50%);
    z-index: 1;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Cumhurbaşkanımızın ve bayrakların göründüğü merkez hattı */
    opacity: 1;
    z-index: 0;
    image-rendering: -webkit-optimize-contrast;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 3rem;
    max-width: 900px;
    margin-bottom: 3rem; /* Alttan boşluk bırakarak görseli ferahlatıyoruz */
    background: rgba(0, 0, 0, 0.4); /* Daha şeffaf */
    backdrop-filter: blur(8px); /* Blur etkisini azalttık */
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-title {
    font-size: 3.2rem; /* Yüzü kapatmaması için boyutunu optimize ettik */
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.8);
}

.btn-primary {
    padding: 1.2rem 3rem;
    background: linear-gradient(45deg, var(--primary), #e74c3c);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(192, 57, 43, 0.6);
}

/* Donation Section */
.donation-section {
    padding: 5rem 2rem;
    display: none; /* Initially hidden */
    justify-content: center;
}

.donation-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}

.card-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Support Grid Section */
.support-section {
    padding: 6rem 2rem;
    background-color: var(--bg-dark);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.support-card {
    position: relative;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.support-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(192, 57, 43, 0.2);
    border-color: var(--primary);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s ease;
}

.support-card:hover .card-bg {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* Premium Header Styles */
.main-header {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
    z-index: 10;
}

.premium-title {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.title-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px rgba(192, 57, 43, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-align: center;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Footer style */
footer {
    background-color: #050505;
    padding: 3rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Modal and Success Fix */
.modal-success, #success-modal {
    display: none !important; /* Başlangıçta kesinlikle gizle */
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--secondary);
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* Premium Modal & SMS Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.95));
    padding: 4rem 3rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9), insert 0 0 20px rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.timer-container {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#smsTimer {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 20px rgba(192, 57, 43, 0.6);
    letter-spacing: -2px;
}

#sms_code {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    font-size: 3rem !important;
    text-align: center !important;
    letter-spacing: 15px !important;
    padding: 1rem 0 !important;
    margin-bottom: 2rem !important;
    transition: all 0.3s ease;
    width: 100%;
}

#sms_code:focus {
    outline: none;
    border-bottom-color: var(--primary) !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.btn-primary {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    border: none;
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(192, 57, 43, 0.6);
}

.btn-resend {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.btn-resend:hover {
    opacity: 0.8;
}

.btn-resend:disabled {
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
    text-decoration: none;
}
