/* 
   Project: LowGPA.online
   Theme: Academic, Calm, Modern, Structured
   Color Palette: Slate & Teal
*/

:root {
    /* Colors - Refined Slate & Teal Palette */
    --bg-body: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-accent-light: #F0FDFA;
    /* Light teal background */
    --bg-gradient: radial-gradient(circle at top right, #F1F5F9 0%, #F8FAFC 100%);

    --text-primary: #0F172A;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-muted: #94A3B8;
    /* Slate 400 */

    --accent-primary: #0D9488;
    /* Teal 600 */
    --accent-hover: #0F766E;
    /* Teal 700 */
    --accent-secondary: #0EA5E9;
    /* Sky 500 */

    --border-light: #E2E8F0;
    /* Slate 200 */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Shadows - Premium Soft */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
    --shadow-glow: 0 0 15px rgba(13, 148, 136, 0.15);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    /* Slightly rounder */
    --radius-lg: 1.25rem;
    /* Modern rounded corners */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
    /* 48px */
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: 2.25rem;
    /* 36px */
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.5rem;
    /* 24px */
    margin-bottom: var(--spacing-xs);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 1.125rem;
    /* 18px */
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.flex {
    display: flex;
    gap: var(--spacing-sm);
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

/* Components */

/* Header */
.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-primary);
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    background-color: var(--bg-accent-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-text {
    padding: 0;
    color: var(--accent-primary);
    font-weight: 500;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Small Button Variant */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 1rem;
    width: 100%;
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.card-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

/* Hero Section - Premium Refresh */
.hero {
    text-align: center;
    padding: 6rem 0 5rem;
    background:
        radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.08) 0px, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.75rem;
    /* Larger */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--text-primary) 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

/* Feature/Grid Sections */
.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-accent-light);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-accent-light);
    color: var(--accent-primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* Footer (Refined) */
.site-footer {
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-surface);
    padding: 4rem 0 3rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically for better balance */
    gap: var(--spacing-md);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 400px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    /* Safety for smaller screens */
    justify-content: flex-end;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-email {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.built-with {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.8;
}

/* Timeline Component */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--border-light);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--bg-surface);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 1rem;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.timeline-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.timeline-highlight {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    color: #B45309;
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0;
        margin-top: 3rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-left {
        align-items: center;
        width: 100%;
    }

    .footer-right {
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-links {
        display: none;
        /* In a real project we'd add a mobile menu mostly, sticking to minimal for now */
    }

    .hero {
        padding: var(--spacing-lg) 0;
    }

    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-xs);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Premium Gradients */
.bg-gradient-premium {
    background: radial-gradient(circle at top right, #F0FDFA 0%, #FFFFFF 60%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Hints & Utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
}

/* Liquid / Aurora Background Effect */
.liquid-bg {
    position: relative;
    overflow: hidden;
}

.liquid-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.05), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.05), transparent 40%);
    animation: liquidMove 15s infinite alternate linear;
    z-index: -1;
    pointer-events: none;
}

@keyframes liquidMove {
    0% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(10deg) scale(1.1);
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-light);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Volunteer Section */
.volunteer-section {
    background: linear-gradient(to right, #0F172A, #1E293B);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
}

.volunteer-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.volunteer-section p {
    color: #CBD5E1;
    /* Slate 300 */
    max-width: 600px;
    margin: 0 auto 2rem;
}

.volunteer-section .btn {
    background: white;
    color: #0F172A;
    font-weight: 700;
}

.volunteer-section .btn:hover {
    background: #F8FAFC;
    transform: translateY(-2px);
}

/* --- Added Visual Polish --- */

/* Glassmorphism Utilities */
.glass,
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
}

/* Badge Polish */
.badge-glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Table Visuals */
.app-table {
    border-spacing: 0 4px;
    /* Separate rows slightly */
    border-collapse: separate;
}

.app-table tr {
    transition: transform 0.1s, background-color 0.2s;
}

.app-table td {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.app-table td:first-child {
    border-left: 1px solid var(--border-light);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.app-table td:last-child {
    border-right: 1px solid var(--border-light);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.app-table tr:hover td {
    background-color: #F8FAFC;
    /* Slate 50 */
    border-color: var(--accent-primary);
}

/* Force sticky header background to be solid or blurry */
.app-table th {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: none;
    padding-bottom: 1rem;
}

/* Skeleton Loader */
.skeleton {
    background-color: #E2E8F0;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}