:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #fbbf24;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.8);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'SolaimanLipi', sans-serif;
}

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

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

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

/* Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/storage/reunion_banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-content {
    padding: 3rem;
    text-align: center;
    color: white;
    background: rgba(15, 23, 42, 0.6);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.grid-2 {
    grid-template-columns: 1fr 1fr;
}
.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Cards */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

/* Sponsor Section Redesign */
.sponsor-card {
    text-align: center; 
    padding: 2.5rem 1.5rem; 
    border-radius: 24px; 
    position: relative; 
    overflow: hidden; 
    background: white; 
    border: 1px solid rgba(255,255,255,0.6); 
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sponsor-card:hover {
    transform: translateY(-15px) scale(1.03); 
    box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.15);
}
.sponsor-card:hover .sponsor-logo {
    transform: scale(1.1);
}
.sponsor-accent {
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 5px; 
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.sponsor-ribbon {
    position: absolute; 
    top: 1.5rem; right: -2.5rem; 
    background: var(--secondary); 
    color: var(--dark); 
    font-size: 0.75rem; font-weight: 800; 
    padding: 0.4rem 3rem; 
    transform: rotate(45deg); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero-content { padding: 1.5rem; width: 90%; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1.1rem; margin-bottom: 1.5rem;}
    .hero-actions { flex-direction: column; width: 100%; gap: 0.8rem; }
    .hero-actions .btn { width: 100%; margin: 0; box-sizing: border-box; }
    
    .nav-links { display: none; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .container { padding: 3rem 1.5rem; }

    /* Mobile Edge-to-Edge Form */
    .donation-section { padding: 2rem 0; }
    #donations .container { padding: 0; }
    .form-wrapper { 
        padding: 1.5rem 1rem; 
        border-radius: 0; 
        border-left: none; 
        border-right: none; 
    }
}

/* Modal and SweetAlert 100% Error-Free Styling Container */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1050;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
}
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 1.75rem auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    animation: fadeIn 0.3s ease forwards;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: 0.3s;
}
.modal-close:hover {
    color: var(--error);
}

/* SweetAlert 2 Generic Fixes */
.swal2-container {
    z-index: 99999 !important;
}
.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(5px) !important;
}
body.modal-open, body.swal2-shown {
    overflow: hidden !important;
    padding-right: 0 !important;
}
