/* Modern Style Overrides */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    /* Blue/Sky/Slate Gradient */
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 50%, #e2e8f0 100%);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover-transform: translateY(-5px);

    /* Featured Theme (Gold/Amber) */
    --featured-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --featured-glow: rgba(245, 158, 11, 0.5);
    --featured-bg: rgba(245, 158, 11, 0.05);
}

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

/* Navbar Overrides */
.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 10rem;
    background: var(--bg-dark);
    overflow: hidden;
}

/* Aurora Background Animation */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2563eb 0%, rgba(37, 99, 235, 0) 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0ea5e9 0%, rgba(14, 165, 233, 0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
    animation-delay: -2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    font-weight: 300;
}

.profile-img-glow {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.profile-img-glow:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Wave Divider */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(136% + 1.3px);
    height: 120px;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom .shape-fill {
    fill: var(--bg-dark);
    opacity: 0.5;
}

/* Main content overlap fix */
.main-content-overlap {
    margin-top: -50px;
    position: relative;
    z-index: 2;
    padding-top: 50px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.glass-card:hover {
    transform: var(--card-hover-transform);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Featured Projects Theme */
.glass-card-featured {
    background: var(--featured-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.glass-card-featured:hover {
    transform: var(--card-hover-transform);
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 30px var(--featured-glow);
}

.text-featured {
    background: var(--featured-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-featured {
    background: var(--featured-gradient);
    color: #000;
    font-weight: 800;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 0 10px var(--featured-glow);
}

.card-img-top {
    height: 200px;
    /* Set a fixed height */
    object-fit: cover;
    /* Crop images to fit, maintaining aspect ratio */
}

/* Portfolio Card Tags */
.portfolio-tags {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    /* Add some space before the buttons */
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    /* Center the tags */
}

.tech-tag {
    background-color: rgba(255, 255, 255, 0.1);
    /* Lighter than #333 for better glass effect */
    color: var(--text-light);
    /* Use theme variable */
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    /* Pill shape like the buttons */
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Featured Section Title (Gold/Amber) */
.section-title-featured {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    /* Gold Gradient Text */
    background: var(--featured-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.3));
    /* Text Glow */
}

.section-title-featured::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--featured-gradient);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--featured-glow);
}

/* Icon Styling */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* List Group Overrides */
.list-group-item {
    border-color: var(--glass-border) !important;
    color: var(--text-light) !important;
    transition: background 0.2s;
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Buttons */
.btn-primary-modern {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    /* Enhanced glow */
}

.btn-primary-modern:hover {
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.7);
    /* Stronger glow on hover */
}

.btn-outline-modern {
    background: rgba(255, 255, 255, 0.05);
    /* Slight background for better visibility */
    border: 2px solid rgba(37, 99, 235, 0.8);
    /* More visible border */
    color: var(--text-light);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-modern:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* Featured Buttons (Gold/Amber) */
.btn-primary-featured {
    background: var(--featured-gradient);
    border: none;
    color: #000;
    /* Black text for contrast on gold */
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--featured-glow);
}

.btn-primary-featured:hover {
    opacity: 0.9;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--featured-glow);
}

.btn-outline-featured {
    background: rgba(245, 158, 11, 0.05);
    border: 2px solid rgba(245, 158, 11, 0.8);
    color: #f59e0b;
    /* Amber 500 */
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-featured:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

/* Typed.js Cursor */
.typed-cursor {
    font-size: 1.5rem;
    color: #0ea5e9;
    font-weight: 300;
}

/* Podcast Specific Styles */
.podcast-cover-glow {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.podcast-cover-glow i {
    font-size: 5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.5));
}

.episode-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.audio-player-custom {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    margin-top: 1rem;
    filter: invert(1) hue-rotate(180deg);
    /* Simple dark mode hack for default audio player */
    opacity: 0.8;
    transition: opacity 0.3s;
}

.audio-player-custom:hover {
    opacity: 1;
}

.glass-card.episode-card {
    position: relative;
    overflow: hidden;
}

/* Tutorial Series Sections (Adapted for Dark Theme) */
.tutorial-series {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    /* Use glass background */
    border-radius: 16px;
    /* Match glass-card radius */
    border: 1px solid var(--glass-border);
}

.tutorial-series h2 {
    font-size: 2.25rem;
    color: var(--text-light);
    /* Light text for dark background */
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid;
    /* Will be set by specific series */
    display: flex;
    align-items: center;
}

.tutorial-series h2 .series-icon {
    margin-right: 1rem;
    background: var(--primary-gradient);
    /* Use gradient for icon color */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Specific series colors - adjust to dark theme */
.tutorial-series-advanced {
    /* Use a subtle color or slight variation of glass-bg for distinction */
    background: rgba(30, 41, 59, 0.8);
    /* Slightly darker glass */
    border-color: rgba(255, 229, 143, 0.2);
    /* Faded yellow border */
}

.tutorial-series-advanced h2 {
    color: #ffd700;
    /* Gold */
    border-bottom-color: #ffd700;
}

.tutorial-series-advanced h2 .series-icon {
    color: #ffd700;
    -webkit-text-fill-color: #ffd700;
    /* Override transparent for specific color */
}

.tutorial-series-pm {
    /* Use a subtle color or slight variation of glass-bg for distinction */
    background: rgba(30, 41, 59, 0.6);
    /* Slightly lighter glass */
    border-color: rgba(166, 217, 193, 0.2);
    /* Faded green border */
}

.tutorial-series-pm h2 {
    color: #32cd32;
    /* Lime green */
    border-bottom-color: #32cd32;
}

.tutorial-series-pm h2 .series-icon {
    color: #32cd32;
    -webkit-text-fill-color: #32cd32;
    /* Override transparent for specific color */
}

/* Quick links section adaptation */
.quick-links {
    background: var(--glass-bg) !important;
    /* Force glass background */
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quick-links h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quick-links .btn-outline-primary {
    border-color: rgba(99, 102, 241, 0.5);
    color: var(--text-light);
}

.quick-links .btn-outline-primary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}

.quick-links .btn-outline-success {
    border-color: rgba(50, 205, 50, 0.5);
    /* LimeGreen */
    color: var(--text-light);
}

.quick-links .btn-outline-success:hover {
    background: rgba(50, 205, 50, 0.1);
    border-color: #32cd32;
}

.quick-links .btn-outline-warning {
    border-color: rgba(255, 215, 0, 0.5);
    /* Gold */
    color: var(--text-light);
}

.quick-links .btn-outline-warning:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
}

/* Impact Badge */
.impact-badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #67e8f9;
    /* Cyan 300 */
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

/* Impact Badge Overlay */
.impact-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: inline-block;
    background: rgba(15, 23, 42, 0.85);
    /* Darker background for contrast */
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #67e8f9;
    /* Cyan 300 */
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}