@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #14b8a6;
    --background: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.72);
    --text-main: #1e293b;
    --text-light: #64748b;
    --border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.09);
    --shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.18);
    --radius: 18px;
    --transition: all 0.33s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== GLASSMORPHISM ===== */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-main); line-height: 1.2; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 14px;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    margin: 14px 24px 0;
    transition: var(--transition);
}

.brand {
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--primary); border-radius: 4px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
    font-size: 15px;
    letter-spacing: 0.3px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    box-shadow: 0 4px 18px rgba(99,102,241,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(99,102,241,0.45); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 22px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-main); font-size: 14px; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(0,0,0,0.09);
    border-radius: 12px;
    background: rgba(255,255,255,0.93);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    color: var(--text-main);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.14); }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ===== MODALS ===== */
.modal { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.65); z-index: 1100; backdrop-filter: blur(5px); justify-content: center; align-items: center; padding: 20px; }
.modal.active { display: flex; animation: fadeIn 0.25s ease; }
.modal-content {
    background: white;
    padding: 36px;
    border-radius: var(--radius);
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    animation: slideUp 0.3s forwards ease;
}
.close-modal-btn { position: absolute; right: 18px; top: 18px; background: #f1f5f9; border: none; font-size: 20px; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.close-modal-btn:hover { background: #e2e8f0; }

/* ===== ALERTS ===== */
.alert { padding: 14px 20px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== SECTION HEADINGS ===== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-header p { color: var(--text-light); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.fade-up { animation: fadeUp 0.7s ease forwards; }

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 900px) {
    .form-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .navbar { margin: 10px 12px 0; }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0; right: 0;
        background: white;
        border-radius: var(--radius);
        flex-direction: column;
        gap: 0;
        padding: 16px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.1);
        border: 1px solid #f1f5f9;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 10px 14px; border-radius: 10px; }
    .nav-links a:hover { background: #f8fafc; }
    .hamburger { display: flex; }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .btn { padding: 11px 22px; font-size: 14px; }
    .modal-content { padding: 24px 20px; }
}
