/* --- MODERN PORTFOLIO STYLES --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #06b6d4;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* --- NEUMORPHIC HEADER --- */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #e0e5ec;
    border-bottom: 1px solid #d1d9e6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff014f;
    padding: 2px;
    box-shadow: 4px 4px 8px #bec6d4, -4px -4px 8px #ffffff;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Reduced gap for a tighter look */
    list-style: none;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
}

.nav-item a:hover,
.nav-item a.active {
    color: #ff014f;
    background: transparent;
    box-shadow: inset 6px 6px 10px #bec6d4, inset -6px -6px 10px #ffffff;
}

.contact-btn {
    background: #e0e5ec !important;
    color: var(--text-secondary) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 8px 8px 16px #bec6d4, -8px -8px 16px #ffffff !important;
}

.contact-btn:hover {
    box-shadow: inset 6px 6px 10px #bec6d4, inset -6px -6px 10px #ffffff !important;
    color: #ff014f !important;
    transform: translateY(0) !important;
}

/* ====================================================================== */
/* ==================== NEUMORPHIC HERO SECTION STYLES ================== */
/* ====================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #e0e5ec; /* Neumorphic background color */
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Give more space to content */
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: var(--text-secondary);
}

.hero-subtitle {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-highlight {
    color: #ff014f; /* Accent color from the example */
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 550px;
}

/* --- Neumorphic Icon Groups --- */
.hero-extra-info {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
}

.social-icons-neumorphic,
.skill-icons-neumorphic {
    display: flex;
    gap: 1rem;
}

.neu-icon-card {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #d1d9e6, inset -4px -4px 6px #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.neu-icon-card:hover {
    background: #ff014f;
    box-shadow: 4px 4px 6px #d1d9e6, -4px -4px 6px #ffffff;
}

.neu-icon-card i,
.neu-icon-card img {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.neu-icon-card img {
    width: 28px;
    height: 28px;
}

.neu-icon-card:hover i,
.neu-icon-card:hover img {
    color: white;
    filter: invert(1) brightness(2);
}

/* --- Neumorphic Image Card --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; /* For 3D tilt effect */
}

.neumorphic-image-card {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: #e0e5ec;
    box-shadow: 20px 20px 40px #bec6d4, -20px -20px 40px #ffffff;
    transition: transform 0.1s linear, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.neumorphic-image-card .profile-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 6px 6px 12px #bec6d4, -6px -6px 12px #ffffff;
}

/* Remove old hero styles that are no longer needed */
.hero-bg-animation,
.hero-buttons {
    display: none;
}


/* --- SECTIONS --- */
.section {
    padding: 6rem 0;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================================== */
/* ============= NEUMORPHIC "ABOUT ME" SECTION STYLES =============== */
/* ================================================================== */
.about-section-bg {
    background: #e0e5ec;
}

.about-card-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-interactive-card {
    background: #e0e5ec;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 20px 20px 40px #bec6d4, -20px -20px 40px #ffffff;
}

.about-display-panel {
    text-align: center;
    min-height: 150px;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: inset 6px 6px 12px #bec6d4, inset -6px -6px 12px #ffffff;
    transition: opacity 0.3s ease-in-out;
}

.about-display-panel h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.about-display-panel h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ff014f; /* Accent color */
    margin-bottom: 1rem;
}

.about-display-panel p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.about-timeline {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
}

.timeline-connector {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    width: 70%;
    height: 4px;
    background: #e0e5ec;
    border-radius: 4px;
    box-shadow: inset 1px 1px 2px #bec6d4, inset -1px -1px 2px #ffffff;
    z-index: 0;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 1;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: #e0e5ec;
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 6px 6px 12px #bec6d4, -6px -6px 12px #ffffff;
}

.timeline-node:hover .timeline-icon {
    box-shadow: inset 4px 4px 8px #bec6d4, inset -4px -4px 8px #ffffff;
    color: #ff014f;
}

/* ====================================================================== */
/* =================== NEUMORPHIC SERVICES SECTION ====================== */
/* ====================================================================== */
#services {
    background: #e0e5ec; /* Neumorphic background */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #e0e5ec;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    text-align: left;
    box-shadow: 10px 10px 20px #bec6d4, -10px -10px 20px #ffffff;
    transition: box-shadow 0.3s ease-in-out;
}

.service-card:hover {
    box-shadow: inset 8px 8px 16px #bec6d4, inset -8px -8px 16px #ffffff;
}

.service-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: #ff014f; /* Accent color on hover */
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* =================================================================== */
/* ==================== NEUMORPHIC SKILLS SECTION ==================== */
/* =================================================================== */
#skills {
    background: #e0e5ec;
}

#skills .section-badge {
    background: rgba(255, 1, 79, 0.1);
    color: #ff014f;
}

.skills-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.skill-category-card {
    background: #e0e5ec;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 10px 10px 20px #bec6d4, -10px -10px 20px #ffffff;
    transition: box-shadow 0.3s ease-in-out;
}

.skill-category-card:hover {
    box-shadow: inset 8px 8px 16px #bec6d4, inset -8px -8px 16px #ffffff;
}

.skill-category-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #d1d9e6;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-list-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-list-icon img {
    width: 100%;
    height: 100%;
}

.skill-list-icon i {
    font-size: 20px;
    color: var(--text-secondary);
}


/* =================================================================== */
/* ================== NEUMORPHIC PROJECTS SECTION ==================== */
/* =================================================================== */
#projects {
    background: #e0e5ec;
}

#projects .section-badge {
    background: rgba(255, 1, 79, 0.1);
    color: #ff014f;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #e0e5ec;
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 6px 6px 12px #bec6d4, -6px -6px 12px #ffffff;
}

.filter-btn.active,
.filter-btn:hover {
    box-shadow: inset 4px 4px 8px #bec6d4, inset -4px -4px 8px #ffffff;
    color: #ff014f;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: #e0e5ec;
    border-radius: var(--radius-xl);
    box-shadow: 10px 10px 20px #bec6d4, -10px -10px 20px #ffffff;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
}

.project-card:hover {
    box-shadow: inset 8px 8px 16px #bec6d4, inset -8px -8px 16px #ffffff;
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card-info {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.project-description-short {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-link {
    font-weight: 600;
    color: #ff014f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-card:hover .project-link i {
    transform: translateX(5px);
}

/* Hide old overlay styles */
.project-content { display: none; }

/* ================================================================= */
/* ===================== NEW BLOG SECTION STYLES ===================== */
/* ================================================================= */
#blog {
    background: #e0e5ec;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: #e0e5ec;
    border-radius: var(--radius-xl);
    box-shadow: 10px 10px 20px #bec6d4, -10px -10px 20px #ffffff;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
}

.blog-card:hover {
    box-shadow: inset 8px 8px 16px #bec6d4, inset -8px -8px 16px #ffffff;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-card-info {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.blog-description-short {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.blog-link {
    font-weight: 600;
    color: #ff014f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-link i {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-link i {
    transform: translateX(5px);
}

.btn-primary-blog {
    display: inline-block;
    background: #e0e5ec;
    color: var(--text-secondary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 8px 8px 16px #bec6d4, -8px -8px 16px #ffffff;
    transition: all 0.3s ease;
}

.btn-primary-blog:hover {
    box-shadow: inset 6px 6px 10px #bec6d4, inset -6px -6px 10px #ffffff;
    color: #ff014f;
}

/* --- BLOG & BLOG DETAIL PAGE --- */
.blog-list-page, .blog-detail-page {
    background-color: #f1f5f9;
}

.blog-page-main-content, .blog-post-main-content {
    padding-top: 80px;
}

.blog-post-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
    background-size: cover;
    background-position: center;
}

.blog-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.blog-post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.blog-post-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    font-size: 1rem;
    font-weight: 500;
}

.blog-post-body {
    max-width: 1100px;
    margin: -80px auto 4rem auto;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 2rem;
}

@media (min-width: 1024px) {
    .blog-post-body {
        grid-template-columns: 250px 1fr;
    }
    .blog-post-main {
        order: 2;
    }
    .blog-post-sidebar {
        order: 1;
    }
}

.blog-post-main {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-post-content h2, .blog-post-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.blog-post-content h2 { font-size: 2rem; margin-top: 2.5rem; }
.blog-post-content h3 { font-size: 1.5rem; margin-top: 2rem; }
.blog-post-content p { margin-bottom: 1.5rem; }
.blog-post-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.blog-post-content li { margin-bottom: 0.75rem; }
.blog-post-content a { color: #ff014f; font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(255, 1, 79, 0.3); }
.blog-post-content blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 4px solid #ff014f; font-style: italic; color: var(--text-primary); }

.blog-post-sidebar {
    padding-top: 2rem;
}

@media (min-width: 1024px) {
    .blog-post-sidebar {
        position: sticky;
        top: 120px;
        align-self: start;
    }
}

.sidebar-widget {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.widget-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name { font-weight: 600; color: var(--text-primary); }
.author-title { font-size: 0.85rem; color: var(--text-light); }

.share-links {
    display: flex;
    gap: 0.75rem;
}

.share-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.share-link:hover {
    background: #ff014f;
    color: white;
}

/* ================================================================= */
/* ================== NEUMORPHIC CONTACT SECTION =================== */
/* ================================================================= */
.contact-section {
    background: #e0e5ec;
    overflow: hidden;
}

.contact-bg-gradient { display: none; }

.contact-grid-modern {
    display: block;
    background: #e0e5ec;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 20px 20px 40px #bec6d4, -20px -20px 40px #ffffff;
    border: none;
}

.contact-info-modern {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info-modern .section-title,
.contact-info-modern .section-description {
    text-align: center;
    max-width: 100%;
}

.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-details p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.contact-details p i {
    color: #ff014f;
    margin-right: 0.75rem;
}

.contact-details p a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details p a:hover {
    color: #ff014f;
}

.contact-form-modern .form-input,
.contact-form-modern .form-textarea {
    width: 100%;
    padding: 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background-color: #e0e5ec;
    color: var(--text-secondary);
    box-shadow: inset 6px 6px 10px #bec6d4, inset -6px -6px 10px #ffffff;
    transition: all 0.3s ease;
}

.contact-form-modern .form-input::placeholder,
.contact-form-modern .form-textarea::placeholder {
    color: var(--text-light);
}

.contact-form-modern .form-input:focus,
.contact-form-modern .form-textarea:focus {
    outline: none;
    box-shadow: inset 2px 2px 4px #bec6d4, inset -2px -2px 4px #ffffff;
}

.contact-form-modern .form-textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form-modern button[type="submit"] {
    width: 100%;
    background: #e0e5ec;
    color: var(--text-secondary);
    border: none;
    padding: 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 8px 8px 16px #bec6d4, -8px -8px 16px #ffffff;
    transition: all 0.3s ease;
}

.contact-form-modern button[type="submit"]:hover {
    box-shadow: inset 6px 6px 10px #bec6d4, inset -6px -6px 10px #ffffff;
    color: #ff014f;
}


/* --- FOOTER --- */
.footer {
    background: #e0e5ec;
    color: var(--text-secondary);
    padding: 4rem 0 2rem;
}

.footer-content { 
    display: grid; 
    grid-template-columns: 2fr 3fr; 
    gap: 3rem; 
    margin-bottom: 3rem; 
}

.footer-links { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem; 
}

.footer-brand h3 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

.footer-brand p { 
    color: var(--text-secondary);
    line-height: 1.6; 
    margin-bottom: 1.5rem; 
}

.social-links { display: flex; gap: 1rem; }

.social-link { 
    width: 44px;
    height: 44px;
    background: #e0e5ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 8px #bec6d4, -4px -4px 8px #ffffff;
}

.social-link:hover { 
    box-shadow: inset 3px 3px 6px #bec6d4, inset -3px -3px 6px #ffffff;
    color: #ff014f;
    transform: translateY(0);
}

.footer-section h4 { 
    font-size: 1.125rem; 
    font-weight: 600; 
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.75rem; }

.footer-section a { 
    color: var(--text-secondary);
    text-decoration: none; 
    transition: color 0.3s ease; 
}

.footer-section a:hover { 
    color: #ff014f;
}

.footer-bottom { 
    border-top: 1px solid #d1d9e6;
    padding-top: 2rem; 
    text-align: center; 
    color: var(--text-light);
}

/* --- MOBILE MENU STYLES --- */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-primary); cursor: pointer; padding: 0.5rem; border-radius: var(--radius-md); transition: all 0.3s ease; }
.mobile-menu-btn:hover { background: rgba(37, 99, 235, 0.1); color: var(--primary); }

/* =========== ELEGANT ANIMATION CLASSES ================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================== */
/* ============= NEUMORPHIC STICKY ICONS & CHATBOT ================== */
/* ================================================================== */

.sticky-widgets-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.sticky-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 8px 8px 16px #bec6d4, -8px -8px 16px #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    background: #e0e5ec;
}

.sticky-icon:hover {
    box-shadow: inset 6px 6px 10px #bec6d4, inset -6px -6px 10px #ffffff;
    transform: translateY(0);
}

.sticky-icon i {
    transition: color 0.3s ease;
}

.sticky-icon:hover i {
    color: #ff014f;
}

.whatsapp-btn i {
    color: #25D366;
}

.chatbot-toggle-btn i {
    color: var(--text-secondary);
}

.chatbot-container {
    position: relative;
}

.chatbot-window {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: #e0e5ec;
    border-radius: var(--radius-xl);
    box-shadow: 20px 20px 40px #bec6d4, -20px -20px 40px #ffffff;
    border: 1px solid #d1d9e6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 75vh;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.chatbot-header {
    background: linear-gradient(135deg, #e0e5ec, #d1d9e6);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 4px 4px 8px #bec6d4, -4px -4px 8px #ffffff;
}
.chatbot-avatar img { width: 100%; height: 100%; }
.chatbot-title h3 { font-size: 1rem; margin: 0; }
.chatbot-title p { font-size: 0.75rem; color: var(--text-secondary); margin: 0; }
.chatbot-close-btn {
    background: none; border: none; color: var(--text-secondary);
    font-size: 1.5rem; margin-left: auto; cursor: pointer;
    opacity: 0.8; transition: opacity 0.3s ease;
}
.chatbot-close-btn:hover { opacity: 1; }

.chatbot-messages {
    flex-grow: 1;
    padding: 0.875rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem; 
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: #d1d9e6;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background-color: #bec6d4;
    border-radius: 10px;
}

/* --- Chat Bubble --- */
.chat-bubble {
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-lg);
    max-width: 85%;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease forwards;
    font-size: 0.9rem;
    word-wrap: break-word;
}

/* THIS IS THE CRITICAL ANIMATION THAT WAS MISSING */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-bubble.bot {
    background: #e0e5ec;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    box-shadow: 4px 4px 8px #bec6d4, -4px -4px 8px #ffffff;
    align-self: flex-start;
}
.chat-bubble.user {
    background: #ff014f;
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

/* --- Typing Indicator Styles --- */
.chat-bubble.typing-indicator {
    padding: 12px 15px;
}
.chat-bubble.typing-indicator span {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    display: inline-block;
    margin: 0 1px;
    animation: bob 1.5s infinite ease-in-out;
}
.chat-bubble.typing-indicator span:nth-of-type(1) { animation-delay: -0.3s; }
.chat-bubble.typing-indicator span:nth-of-type(2) { animation-delay: -0.15s; }
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.chatbot-options {
    padding: 0.75rem;
    border-top: 1px solid #d1d9e6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: #e0e5ec;
    flex-shrink: 0;
}

.chat-option-btn {
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: #e0e5ec;
    border: none;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 8px #bec6d4, -4px -4px 8px #ffffff;
}
.chat-option-btn:hover {
    box-shadow: inset 3px 3px 6px #bec6d4, inset -3px -3px 6px #ffffff;
    color: #ff014f;
}

/* --- PROJECT & BLOG DETAIL PAGE STYLES --- */
.project-details-body {
    background-color: #e0e5ec;
}

.project-detail-header-modern {
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid #d1d9e6;
    margin-bottom: 4rem;
}

.project-detail-title-modern {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-detail-category-modern {
    background: rgba(255, 1, 79, 0.1);
    color: #ff014f;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

/* --- UPDATED BACK LINK STYLES --- */
.back-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: none;
    color: var(--text-secondary);
    background: #e0e5ec;
    box-shadow: 4px 4px 8px #bec6d4, -4px -4px 8px #ffffff;
}

.back-link-modern:hover {
    color: #ff014f;
    box-shadow: inset 3px 3px 6px #bec6d4, inset -3px -3px 6px #ffffff;
}

.back-link-modern.on-dark {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    margin-bottom: 1rem;
}

.back-link-modern.on-dark:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: white;
}

.project-detail-container-neu {
    background: #e0e5ec;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 20px 20px 40px #bec6d4, -20px -20px 40px #ffffff;
}

.project-detail-main-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.project-detail-info-modern h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.project-detail-info-modern p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-detail-info-modern h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack-container-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tag-modern {
    background: #e0e5ec;
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 4px 4px 8px #bec6d4, -4px -4px 8px #ffffff;
    transition: all 0.3s ease;
    border: none;
}

.tech-tag-modern:hover {
    box-shadow: inset 3px 3px 6px #bec6d4, inset -3px -3px 6px #ffffff;
    color: #ff014f;
}

.project-links-container {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-links-container .btn-primary {
    background: #e0e5ec;
    color: var(--text-secondary);
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 8px 8px 16px #bec6d4, -8px -8px 16px #ffffff;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.project-links-container .btn-primary:hover {
    box-shadow: inset 6px 6px 10px #bec6d4, inset -6px -6px 10px #ffffff;
    color: #ff014f;
}

.gallery-carousel {
    position: relative;
}

.carousel-image-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 10px 10px 20px #bec6d4, -10px -10px 20px #ffffff;
}

.carousel-main-image {
    width: 100%;
    display: block;
    cursor: pointer;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #e0e5ec;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: 6px 6px 12px #bec6d4, -6px -6px 12px #ffffff;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    box-shadow: inset 4px 4px 8px #bec6d4, inset -4px -4px 8px #ffffff;
    color: #ff014f;
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-counter {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.gallery-hint-modern {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1.5rem;
}


/* --- IMAGE VIEWER MODAL STYLES --- */
.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.close-viewer-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.prev-viewer-btn, .next-viewer-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
    background: rgba(0,0,0,0.3);
    border-radius: 0 3px 3px 0;
}
.prev-viewer-btn { left: 15px; border-radius: 3px 0 0 3px;}
.next-viewer-btn { right: 15px; }
.prev-viewer-btn:hover, .next-viewer-btn:hover { background-color: rgba(0,0,0,0.6); }

.image-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 1rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.other-projects-section {
    padding-top: 6rem;
}

.other-projects-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.other-project-card {
    background: #e0e5ec;
    border-radius: var(--radius-xl);
    box-shadow: 10px 10px 20px #bec6d4, -10px -10px 20px #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
}

.other-project-card:hover {
    box-shadow: inset 8px 8px 16px #bec6d4, inset -8px -8px 16px #ffffff;
}

.other-project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.other-project-info {
    padding: 1rem 1.5rem;
}

.other-project-title {
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-extra-info { justify-content: center; gap: 3rem; }
    .section-title { font-size: 2rem; }
    .project-detail-main-modern { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-menu { 
        position: fixed; 
        top: 70px; 
        left: 0; 
        width: 100%; 
        background: #e0e5ec; 
        border-bottom: 1px solid #d1d9e6; 
        flex-direction: column; 
        gap: 0; 
        padding: 1rem 0; 
        transform: translateY(-100%); 
        opacity: 0; 
        visibility: hidden; 
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
        z-index: 999; 
    }
    .nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-item { width: 100%; text-align: center; }
    .nav-item a { display: block; padding: 1rem 2rem; border-radius: 0; border-bottom: 1px solid #d1d9e6; }
    .nav-item:last-child a { border-bottom: none; }
    .contact-btn { margin: 1rem 2rem 0 !important; text-align: center !important; }
    .header-container { padding: 0 1rem; height: 70px; }
    html { scroll-padding-top: 70px; }
    .section { padding: 4rem 0; }
    .section-container { padding: 0 1rem; }
    .hero-section { padding-top: 70px; min-height: auto; padding-bottom: 4rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-description { font-size: 1rem; }
    
    .about-interactive-card { padding: 2rem 1.5rem; }
    .about-display-panel { min-height: 180px; }
    .about-display-panel h3 { font-size: 1.5rem; }
    
    .services-grid { grid-template-columns: 1fr; }
    .skills-category-grid { grid-template-columns: 1fr; }

    .projects-grid, .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .project-filters { gap: 0.5rem; }
    .filter-btn { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
    
    .contact-grid-modern { display: block; padding: 2rem; }
    .contact-details { flex-direction: column; align-items: center; gap: 1.5rem; }
    .contact-info-modern .section-title { font-size: 1.75rem; }

    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { margin-bottom: 2rem; }
    .social-links { justify-content: center; }
    .footer-links { text-align: left; }
    
    .project-detail-container-neu { padding: 2rem; }
    .project-detail-title-modern { font-size: 2.5rem; }
    .blog-post-title { font-size: 2.2rem; }
    .blog-post-main { padding: 2rem; }
    .blog-post-body { margin-top: -60px; padding: 0 1rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.75rem; }
    .hero-extra-info { flex-direction: column; gap: 2rem; align-items: center; }
    .info-group { align-items: center; }
    
    .chatbot-window { width: calc(100vw - 40px); bottom: calc(100% + 10px); right: -10px; }
    .sticky-widgets-container { bottom: 15px; right: 15px; }
    .sticky-icon { width: 55px; height: 55px; }

    .blog-post-title { font-size: 1.8rem; }
    .blog-post-main { padding: 1.5rem; }
}