/* Custom CSS for Advanced Resume Aesthetics */

/* Base Design Variables - Dark Glassmorphism Theme */
:root {
    --bg-primary: #0f172a; /* Deep Slate */
    --bg-secondary: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-color: #3b82f6; /* Modern Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .subheading {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    color: var(--text-main) !important;
}

/* Typography Overrides */
h1 { font-size: 4rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; position: relative; display: inline-block; }
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}
.subheading { color: #e2e8f0; font-size: 1.25rem; font-weight: 500; }
.text-primary { color: var(--accent-color) !important; }
.lead { color: var(--text-muted); font-size: 1.15rem; font-weight: 400; }

/* Sidebar Styling (Glassmorphism) */
#sideNav {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

#sideNav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
}

#sideNav .nav-link:hover, #sideNav .nav-link.active {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

#sideNav .navbar-brand .img-profile {
    width: 12rem !important;
    height: 12rem !important;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 1.5rem !important;
}
#sideNav .navbar-brand:hover .img-profile {
    transform: scale(1.08) rotate(3deg);
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Interactive Cards */
.resume-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Skills Badges */
.skills-icons { margin-bottom: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.skills-icons img {
    height: 3.5rem;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}
.skills-icons img:hover {
    transform: translateY(-8px) scale(1.1);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.course-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.course-badges span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}
.course-badges span:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Social Icons */
.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-main);
    border-radius: 50%;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}
.social-icons .social-icon:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Typing Effect Cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-color);
    animation: blink 1s infinite;
    height: 1.2em;
    vertical-align: middle;
    margin-left: 5px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Section Overrides */
section.resume-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

hr {
    border-top: 1px solid var(--glass-border);
    opacity: 1;
}

/* Custom Button */
.btn-custom {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    margin-top: 2rem;
}
.btn-custom:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
    color: #fff;
}

/* Custom Button Outline */
.btn-custom-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}
.btn-custom-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Hero Image & Blob Animation */
.hero-image-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    animation: morph 8s ease-in-out infinite;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px var(--accent-glow);
    background-color: var(--bg-secondary);
}

.profile-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@media (max-width: 991.98px) {
    section.resume-section {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-image-container {
        width: 250px;
        height: 250px;
        margin: 2rem auto 0 auto;
    }
    
    #sideNav .navbar-brand {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        gap: 0.75rem;
    }

    #sideNav .navbar-brand .img-profile {
        width: 3rem !important;
        height: 3rem !important;
        border-width: 2px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }
    
    #sideNav .navbar-brand .d-block.mt-3.mt-lg-0 {
        margin-top: 0 !important;
    }
}
