/* 
  =========================================
  PERSONAL BRAND WEBSITE - PREMIUM STYLES
  =========================================
*/

/* --- 1. VARIABLES & THEME SETUP --- */
:root {
    /* Font Family */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Light Theme Colors */
    --bg-color: #f3f4f6;
    --bg-gradient: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #111827;
    --text-muted: #4b5563;
    --primary: #4f46e5;
    /* Indigo */
    --primary-hover: #4338ca;
    --accent: #ec4899;
    /* Pink */
    --accent-glow: rgba(236, 72, 153, 0.3);
    --border-color: rgba(229, 231, 235, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px var(--accent-glow);

    /* Transitions */
    --transition-speed: 0.4s;
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-color: #0b0f19;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --primary: #6366f1;
    /* Indigo 400 */
    --primary-hover: #818cf8;
    --accent: #d946ef;
    /* Fuchsia */
    --accent-glow: rgba(217, 70, 239, 0.25);
    --border-color: rgba(75, 85, 99, 0.4);
    --glass-bg: rgba(17, 24, 39, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* --- 2. RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Mesh */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.1s;
}

/* --- 3. UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s;
    pointer-events: none;
}

.btn:active::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    background: rgba(79, 70, 229, 0.05);
}

.section-padding {
    padding: 6rem 0;
}

/* Enhanced Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* --- 4. FLOATING NAVBAR (PREMIUM) --- */
/* --- PREMIUM UNIFIED NAVBAR --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    /* Reduced max-width for tighter premium feel */
    z-index: 1000;
    padding: 0 1.5rem;
    /* No vertical padding on container, handled by flex height */
    height: 70px;
    /* Fixed height for consistency */
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.82);
    /* High opacity glass */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .navbar {
    background: rgba(10, 15, 30, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    top: 15px;
    width: 95%;
    max-width: 1000px;
    height: 60px;
    /* Shrink slightly */
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.logo:hover {
    transform: scale(1.1);
}

/* Hide Nav Links Container Background - make it seamless */
.nav-links {
    display: flex;
    gap: 0.2rem;
    /* Tighter gap */
    align-items: center;
    background: transparent;
    /* Removed inner pill bg */
    border: none;
    padding: 0;
    height: 100%;
}

.nav-item {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
    color: var(--text-muted);
    border-radius: 100px;
    transition: all 0.3s ease;
    height: 40px;
    /* Pill height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
}

.nav-item.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Remove old underline effect */
.nav-item::after {
    display: none;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--bg-card);
    transform: rotate(180deg) scale(1.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 3;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- MOBILE RESPONSIVE NAV --- */
@media (max-width: 768px) {
    .navbar {
        top: 15px;
        width: 92%;
        padding: 0.8rem 1.2rem;
        border-radius: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: var(--bg-color);
        /* Fallback */
        background: rgba(255, 255, 255, 0.98);
        /* Less transparent for readability */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding-top: 4rem;
        clip-path: circle(0px at 90% 50px);
        transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        border-radius: 0;
        z-index: 1100;
        /* High z-index to cover content */
        pointer-events: none;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .nav-links {
        background: rgba(11, 15, 25, 0.98);
    }

    .nav-links.active {
        clip-path: circle(150% at 90% 50px);
        pointer-events: all;
    }

    .nav-item {
        font-size: 1.5rem;
        padding: 0.5rem 0;
        color: var(--text-main);
        background: none !important;
        /* No pills on mobile */
        box-shadow: none !important;
    }

    .nav-item.active {
        color: var(--primary);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        width: 28px;
        background: var(--primary);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        width: 28px;
        background: var(--primary);
    }
}

/* --- 5. HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* spacing for fixed nav */
    overflow: hidden;
}

/* Dynamic background blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.hero::before {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -10%;
    right: -5%;
}

.hero::after {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-tagline::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.hero h1 {
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.typewriter {
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    animation: blink 0.75s step-end infinite;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.8;
}

.hero-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
    transform: rotate(3deg);
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1), -20px -20px 60px rgba(255, 255, 255, 0.1);
    transition: transform 0.5s var(--ease-elastic);
}

.hero-image-container:hover .hero-img {
    transform: rotate(0) scale(1.02);
}

/* --- 6. PROJECTS (3D Tilt Cards) --- */
/* --- FIX: ABOUT PAGE IMAGE WRAPPER --- */
/* Mobile First / Default */
aside {
    text-align: center;
}

aside img {
    max-width: 100%;
    width: 300px;
    /* Constrain width for a better portrait shape */
    height: 380px;
    object-fit: cover;
    /* Use center position usually safe for portraits */
    object-position: center 20%;
    border-radius: 20px;
    border: 4px solid var(--bg-card);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 0 auto 2rem auto;
}

aside img:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

@media (min-width: 900px) {
    aside {
        position: sticky;
        top: 120px;
        /* Sticky sidebar on desktop */
        height: min-content;
        text-align: left;
    }

    aside img {
        width: 100%;
        /* Fill sidebar column width on desktop */
        max-width: 320px;
        /* But don't get massive */
        margin: 0 0 2rem 0;
    }
}

/* --- FIX: CONTACT FORM PREMIUM --- */
/* --- FIX: CONTACT FORM (CLEANER) --- */
.contact-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

/* Fix input contrast and visibility */
.form-control {
    width: 100%;
    padding: 1.2rem 1rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    margin-top: 5px;
    /* Space for label */
}

/* Dark mode adjustment for visibility */
[data-theme="dark"] .form-control {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-control:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    outline: none;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: static;
    /* Remove absolute positioning */
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.form-group {
    margin-bottom: 2rem;
}

/* Social Cards Grid Fix */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--text-main);
}

.social-card i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.social-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.1s, box-shadow 0.3s;
    /* Fast transform for JS tilt */
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tech-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.project-link {
    margin-top: auto;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--primary);
}

/* --- 7. ANIMATIONS & SCROLL REVEAL --- */
@keyframes float {

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

    50% {
        transform: translate(0, -20px);
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent);
}

/* --- RESTORED ABOUT PAGE LAYOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
    /* Crucial for sticky sidebar */
}

/* Timeline/Resume Styles */
.resume-section {
    position: relative;
    padding-left: 1rem;
}

.resume-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.resume-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

.resume-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 2.5rem;
    border-left: 2px solid var(--border-color);
}

.resume-item:last-child {
    border-left-color: transparent;
}

.resume-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 5px var(--bg-color);
    /* Spacing effect */
    transition: all 0.3s ease;
}

.resume-item:hover::before {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary-hover);
}

.resume-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* --- 8. MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    /* FIX: Ensure about grid stacks correctly on tablet/mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
        margin: 0 auto;
    }

    /* ... rest of existing mobile styles ... */

    .hero-image-container {
        order: 1;
        justify-content: center;
        display: flex;
    }

    .hero-tagline {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .navbar {
        width: 95%;
        top: 15px;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 75px;
        right: 0;
        height: auto;
        width: 90%;
        margin: 0 5%;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        flex-direction: column;
        padding: 2rem;
        backdrop-filter: blur(20px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* --- 9. BLOG PAGE STYLES --- */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    /* Reading width */
    margin: 0 auto;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.blog-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.blog-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.blog-content h2 a {
    text-decoration: none;
    background: linear-gradient(to right, var(--text-main), var(--text-main)),
        linear-gradient(to right, var(--primary), var(--accent));
    background-size: 100% 2px, 0 2px;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s;
}

.blog-content h2 a:hover {
    background-size: 0 2px, 100% 2px;
    color: var(--primary);
    /* Optional: change text color too */
}

/* --- 10. FOOTER STYLES --- */
footer {
    margin-top: 4rem;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.02));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-bio h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}