/**
 * Premium Portfolio Styles for ICPC DELTA Community
 * Modern Design with Glassmorphism, Gradients & Animations
 * Color Scheme: Dark Blue/Black (Primary), Light Blue (Secondary), Orange (Accent)
 */

:root {
    --primary-color: #0a0e1a;
    --secondary-color: #24bfe5;
    --accent-color: #f97316;
    --dark-bg: #000000;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --text-light-blue: #24bfe5;
    --gradient-primary: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0a0e1a 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-secondary: linear-gradient(135deg, #24bfe5 0%, #38bdf8 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(36, 191, 229, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 76px;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0a0e1a 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../back.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
}

/* Animated Background Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(36, 191, 229, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ========== NAVIGATION ========== */
.navbar {
    background: rgba(10, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(36, 191, 229, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(36, 191, 229, 0.5));
}

.navbar-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(36, 191, 229, 0.8));
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light-blue) !important;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.98) 0%, rgba(26, 31, 53, 0.95) 50%, rgba(10, 14, 26, 0.98) 100%);
    color: var(--secondary-color);
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(36, 191, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 15px 40px rgba(36, 191, 229, 0.4));
    animation: fadeInUp 1s ease-out, float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light-blue);
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: var(--gradient-secondary);
    border: none;
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(36, 191, 229, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.5);
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.6);
}

/* ========== SECTION TITLES ========== */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-accent);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.section-title p {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    opacity: 0.9;
}

/* ========== CARDS ========== */
.card {
    border: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* ========== INSTRUCTOR CARDS ========== */
.instructor-card {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-secondary) border-box;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.instructor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.instructor-card:hover::before {
    transform: scaleX(1);
}

.instructor-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(36, 191, 229, 0.3), 0 0 0 1px rgba(249, 115, 22, 0.2);
    transform: translateY(-10px);
}

.instructor-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(36, 191, 229, 0.4);
    transition: all 0.4s ease;
    margin: 0 auto 1.5rem;
}

.instructor-card:hover .instructor-photo {
    border-color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.5);
}

.instructor-placeholder {
    width: 140px;
    height: 140px;
    background: var(--gradient-secondary);
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(36, 191, 229, 0.4);
    transition: all 0.4s ease;
}

.instructor-card:hover .instructor-placeholder {
    background: var(--gradient-accent);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.5);
}

.instructor-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.instructor-role {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(36, 191, 229, 0.3);
}

.instructor-email {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.instructor-card:hover .instructor-email {
    color: var(--accent-color);
}

/* ========== SESSION CARDS ========== */
.session-card {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-accent) border-box;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.session-card:hover::before {
    transform: scaleX(1);
}

.session-card:hover {
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
    transform: translateY(-10px);
}

.session-thumbnail-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
}

.session-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.session-card:hover .session-thumbnail {
    transform: scale(1.15);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border: 3px solid var(--accent-color);
}

.play-button-overlay i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-left: 5px;
}

.session-card:hover .play-button-overlay {
    background: rgba(249, 115, 22, 0.9);
    transform: translate(-50%, -50%) scale(1.2);
    border-color: white;
}

.session-card:hover .play-button-overlay i {
    color: white;
}

.session-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.session-type-badge.lecture {
    background: var(--gradient-secondary);
    color: white;
}

.session-type-badge.practice {
    background: var(--gradient-accent);
    color: white;
}

.session-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.session-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.session-meta i {
    color: var(--secondary-color);
    margin-right: 0.3rem;
}

/* ========== STATS CARDS ========== */
.stats-card {
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.95), rgba(26, 31, 53, 0.95));
    backdrop-filter: blur(20px);
    color: var(--text-light-blue);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(36, 191, 229, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(36, 191, 229, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(36, 191, 229, 0.4);
}

.stats-card .stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.stats-card .stats-label {
    font-size: 1.1rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ========== SECTIONS ========== */
.bg-light {
    background: rgba(248, 250, 252, 0.98) !important;
    backdrop-filter: blur(10px);
}

section.py-5:not(.bg-light) {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ========== FOOTER ========== */
.footer-section {
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.98), rgba(0, 0, 0, 0.98)) !important;
    border-top: 3px solid var(--secondary-color);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    color: var(--text-light-blue) !important;
    font-size: 1.5rem;
    margin: 0 0.8rem;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--accent-color) !important;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.8));
}

/* ========== UTILITY CLASSES ========== */
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-light-blue { color: var(--text-light-blue) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light-blue { background-color: var(--secondary-color) !important; }

/* ========== PROGRESS BARS ========== */
.progress {
    height: 30px;
    border-radius: 50px;
    background-color: rgba(226, 232, 240, 0.3);
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: var(--gradient-secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1s ease;
    color: white;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(36, 191, 229, 0.5);
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.progress-bar.bg-warning {
    background: var(--gradient-accent);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

/* ========== BADGES ========== */
.badge {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .navbar-logo { height: 40px; }
    .hero-logo { max-width: 250px; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title h2 { font-size: 2.2rem; }
    .stats-card .stats-number { font-size: 2.5rem; }
    .instructor-photo,
    .instructor-placeholder { width: 120px; height: 120px; }
}

@media (max-width: 576px) {
    .hero-logo { max-width: 200px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title h2 { font-size: 1.8rem; }
    .stats-card { padding: 1.5rem; }
    .stats-card .stats-number { font-size: 2rem; }
    .instructor-photo,
    .instructor-placeholder { width: 100px; height: 100px; font-size: 2.5rem; }
    .btn-accent,
    .btn-primary { padding: 0.8rem 2rem; font-size: 0.85rem; }
}

/* ========== ANIMATIONS ========== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}
