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

:root {
    /* Primary Color Palette - Pharmacy Theme */
    --primary-main: #065F46;
    --primary-light: #10B981;
    --primary-dark: #064E3B;
    --accent: #D97706;

    /* Neutral Palette */
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-main: #F9FAFB;
    --bg-white: #FFFFFF;

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Spacing */
    --section-padding: 100px 5%;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --primary-glow: rgba(16, 185, 129, 0.4);
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-white: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-main: #34d399;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4 {
    font-family: 'Merriweather', serif;
    color: var(--primary-dark);
    transition: var(--transition);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: var(--primary-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    transition: background-color 0.5s ease;
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px 0 var(--primary-glow);
    border-color: var(--primary-light);
}

/* --- Premium Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-main);
    color: var(--primary-main);
}

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

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* --- Navbar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.4s ease, background 0.4s ease;
}

nav.scrolled {
    padding: 12px 5%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] nav.scrolled {
    background: rgba(15, 23, 42, 0.85);
}

.logo {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-main);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.mobile-toggle {
    display: none;
}

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

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.1), rgba(16, 185, 129, 0.05)), url('college-building.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    animation: heroFadeIn 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- Courses Section --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

[data-theme="dark"] #courses,
[data-theme="dark"] .faq-section {
    background-color: var(--bg-main);
}

#courses,
.faq-section {
    background-color: var(--bg-white);
    transition: var(--transition);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.course-card:hover img {
    transform: scale(1.1) rotate(1deg);
}

/* FAQ Accordion */
.faq-item.active .faq-content {
    display: block !important;
}

.faq-item.active i {
    transform: rotate(180deg);
}

.faq-content {
    border-top: 1px solid var(--glass-border);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-main), var(--primary-light));
    z-index: 10001;
    transition: width 0.1s linear;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* --- Footer --- */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 5%;
    text-align: center;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 50px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        margin: 15px 0;
    }

    .mobile-toggle {
        display: flex !important;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
    }

    .logo-container .logo {
        font-size: 1.1rem;
    }
}