/* Modern Style Overrides - Professional Refactor */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Base Colors - Deep & Professional */
    --bg-dark: #020617;
    /* Deepest Slate */
    --bg-card: #0f172a;
    /* Slate 900 */
    --text-primary: #f1f5f9;
    /* Slate 100 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --text-accent: #38bdf8;
    /* Sky 400 */

    /* Accents - Tech & Stability */
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    /* Silver/Metallic for text */
    --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    /* Blue/Cyan for elements */

    /* Glass Effect - Refined */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(148, 163, 184, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Cards */
    --card-radius: 12px;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.mono-font {
    font-family: 'JetBrains Mono', monospace;
}

/* Navbar Refined */
.navbar {
    background: rgba(2, 6, 23, 0.85) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

/* Hero Section Professional */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    background: radial-gradient(circle at top center, #1e293b 0%, #020617 70%);
    overflow: hidden;
}

/* Subtle Grid Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    z-index: 0;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typed-text-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3rem;
    margin-bottom: 2rem;
}

#typed-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: var(--text-accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.profile-img-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    padding: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.profile-img-glow {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(20%) contrast(110%);
}

/* Refined Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: var(--card-shadow-hover);
    background: linear-gradient(to bottom right, #1e293b, #0f172a);
}

.section-title-modern {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 3px;
}

/* Feature Icons */
.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-card:hover .icon-box {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Professional Buttons */
.btn-primary-modern {
    background: var(--text-primary);
    color: var(--bg-dark);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary-modern:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-outline-modern {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-modern:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

/* List Groups */
.list-group-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 1rem 0 !important;
    color: var(--text-secondary) !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
}

.list-group-item:hover {
    color: var(--text-primary) !important;
}

.list-group-item i {
    transition: transform 0.2s ease;
}

.list-group-item:hover i {
    transform: translateX(4px);
    color: var(--text-accent) !important;
}

/* Tutorial & Project Cards Refinements */
.card-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    margin-right: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .section-title-modern {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border) !important;
}

.hover-white:hover {
    color: var(--text-primary) !important;
    transform: translateY(-2px);
    display: inline-block;
    transition: all 0.2s;
}

/* Utility */
.text-justify {
    text-align: justify;
}

.opacity-75 {
    opacity: 0.75;
}

.z-2 {
    z-index: 2;
    position: relative;
}

/* ========================================
   Podcast Page Styles
   ======================================== */

/* Podcast Cover Glow Effect */
.podcast-cover-glow {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

.podcast-cover-glow i {
    font-size: 5rem;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 80px rgba(139, 92, 246, 0.6);
    }
}

/* Episode Card */
.episode-card {
    position: relative;
    padding: 1.5rem;
    padding-left: 3.5rem;
}

.episode-number {
    position: absolute;
    left: 0.75rem;
    top: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-accent);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Audio Player Custom Styling */
.audio-player-custom {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

.audio-player-custom::-webkit-media-controls-panel {
    background: rgba(15, 23, 42, 0.8);
}

.episode-player {
    margin-top: 0.5rem;
}

/* Text Gray Helper */
.text-gray {
    color: var(--text-secondary) !important;
}