/* Cursy Framework Extended - College Theme */
/* Import base Cursy framework (assuming it's available) */
/* @import url('path/to/original/cursy.css'); */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

/* Extended Color Palette - College Theme */
:root {
    --cursy-primary: #00ffff;
    --cursy-secondary: #ff00ff;
    --cursy-accent: #00ff00;
    --cursy-dark: #0a0a0a;
    --cursy-light: #ffffff;
    --cursy-gradient: linear-gradient(135deg, var(--cursy-primary), var(--cursy-secondary));

    /* Animation Variables */
    --animation-speed-fast: 0.3s;
    --animation-speed-normal: 0.6s;
    --animation-speed-slow: 1.2s;
    --particle-count: 50;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section Styles */
.hero-section {
    padding: 8rem 0 4rem 0; /* Extra padding for fixed navbar */
    text-align: center;
    background: rgba(0,255,255,0.05);
    border-bottom: 1px solid rgba(0,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(0,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    color: #00ffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(0,255,255, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,255,255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    color: #00ffff;
    margin-right: 0.3rem;
}

.logo-accent {
    color: #ff00ff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00ffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ffff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

#login-btn {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #000;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0,255,255, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #00ffff;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--cursy-gradient);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,255,255,0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
}

.btn-secondary:hover {
    background: #00ffff;
    color: #000;
}

/* Card Styles */
.card {
    background: rgba(0,0,0,0.8);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0,255,255,0.2);
    transform: translateY(-2px);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Courses Section Styles */
.courses-section {
    padding: 4rem 0;
    background: var(--cursy-dark);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0,255,255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--cursy-primary);
    box-shadow: 0 10px 30px rgba(0,255,255, 0.2);
}

.course-image {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.placeholder-image {
    background: linear-gradient(45deg, rgba(0,255,255,0.1), rgba(255,0,255,0.1));
    border: 2px solid rgba(0,255,255, 0.3);
    padding: 2rem;
    text-align: center;
    color: var(--cursy-primary);
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.placeholder-image:hover {
    border-color: var(--cursy-primary);
    box-shadow: 0 0 15px rgba(0,255,255, 0.3);
}

.course-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cursy-light);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-content p {
    color: rgba(255,255,255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255, 0.6);
}

.grade,
.subject {
    background: rgba(0,255,255, 0.1);
    color: var(--cursy-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.enroll-btn {
    background: var(--cursy-gradient);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.enroll-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,255,255, 0.3);
}

.login-btn {
    background: rgba(0,255,255, 0.1);
    color: var(--cursy-primary);
    border: 1px solid rgba(0,255,255, 0.3);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.login-btn:hover {
    background: var(--cursy-primary);
    color: #000;
    border-color: var(--cursy-primary);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    background: rgba(0,255,255, 0.1);
    border: 1px solid rgba(0,255,255, 0.3);
    color: var(--cursy-primary);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover,
.page-btn.active {
    background: var(--cursy-primary);
    color: #000;
    border-color: var(--cursy-primary);
}

/* Footer Styles */
.footer {
    background: rgba(0,0,0,0.9);
    border-top: 1px solid rgba(0,255,255,0.3);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    color: #b8c5d6;
    margin: 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.text-primary { color: #00ffff; }
.text-secondary { color: #ff00ff; }
.text-accent { color: #00ff00; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .nav-container {
        height: 60px;
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        padding: 1.2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,255,255,0.3);
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Glow Effects */
.glow {
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(0,255,255,0.6);
}
