/* ==========================================================================
   MINIMALIST DARK CHARCOAL DESIGN SYSTEM (Exact dev-suyash.vercel.app Parity)
   ========================================================================== */
:root {
    --bg-main: rgb(29, 30, 32);            /* dev-suyash exact background color */
    --bg-card: rgb(41, 41, 47);            /* dev-suyash exact card background */
    --bg-drawer: rgb(23, 23, 23);          /* dev-suyash mobile navbar drawer */
    --bg-card-hover: rgb(48, 48, 55);
    --border-color: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: rgb(195, 194, 194);
    --text-desc: rgb(177, 177, 177);      /* Muted gray text leading-7 */
    --text-gray-200: rgb(229, 231, 235);
    --text-gray-300: rgb(209, 213, 219);
    --text-gray-400: rgb(156, 163, 175);
    --text-muted: rgb(130, 130, 130);
    
    --accent-blue: #60a5fa;                /* Tailwind blue-400 */
    --accent-rose: #fda4af;                /* Tailwind rose-300 */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --theme-transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   LAYOUT CONTAINERS (max-w-4xl / 896px centered layout matching dev-suyash)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 896px; /* max-w-4xl */
    margin: 0 auto;
    padding-left: 1rem;  /* px-4 on mobile */
    padding-right: 1rem;
}

.main-content {
    position: relative;
    width: 100%;
    max-width: 896px; /* max-w-4xl */
    margin: 0 auto;
    padding-left: 1rem;  /* px-4 on mobile */
    padding-right: 1rem;
    padding-bottom: 4rem;
}

@media (min-width: 640px) {
    .container,
    .main-content {
        padding-left: 1.5rem; /* px-6 on tablet */
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container,
    .main-content {
        padding-left: 2rem; /* px-8 on desktop */
        padding-right: 2rem;
    }
}

/* ==========================================================================
   HEADER NAVIGATION (Exact dev-suyash Header & Mobile Drawer)
   ========================================================================== */
#main-header {
    width: 100%;
    background-color: var(--bg-main);
    z-index: 1000;
    margin-top: 2rem;     /* mt-8 */
    margin-bottom: 3.5rem;/* mb-14 */
}

@media (min-width: 768px) {
    #main-header {
        margin-bottom: 5rem; /* md:mb-20 */
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    font-size: 1.25rem; /* text-xl on mobile */
    font-weight: 700;   /* font-bold */
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
    transition: font-size 0.2s ease;
}

@media (min-width: 768px) {
    .logo-link {
        font-size: 1.5rem; /* md:text-2xl */
    }
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-size: 1rem; /* text-base */
    color: var(--text-secondary); /* text-[rgb(195,194,194)] */
    transition: var(--theme-transition);
}

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn svg {
    width: 32px;
    height: 32px;
}

.header-actions {
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px; /* w-3/4 sm:max-w-sm */
        height: 100vh;
        background-color: var(--bg-drawer); /* bg-[rgb(23,23,23)] */
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        z-index: 999;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.25rem; /* text-xl */
    }
}

/* Mobile Navigation Backdrop */
.nav-menu-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8); /* bg-black/80 */
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    z-index: 998;
    transition: opacity 0.3s ease;
}

.nav-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   HERO / INTRO SECTION (Exact Typography & Mobile Font Sizing)
   ========================================================================== */
.hero-section {
    position: relative;
    padding-bottom: 2rem;
}

/* Minimalist Left Timeline Tracer matching dev-suyash */
.left-timeline-beam {
    position: absolute;
    left: -4.5rem;
    top: 0.75rem;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

@media (max-width: 1023px) {
    .left-timeline-beam {
        display: none;
    }
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-dot-inner {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
}

.timeline-line {
    width: 1px;
    flex-grow: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 70%, transparent 100%);
    margin-top: 6px;
}

/* Article Screenshot Image Container */
.article-image-wrapper {
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-intro-wrapper {
    display: flex;
    flex-direction: column;
}

/* Hero Title: Exact text-4xl text-white font-extrabold mb-4 from dev-suyash */
.hero-title {
    font-size: 2.25rem; /* text-4xl (36px) on mobile */
    font-weight: 800;   /* font-extrabold */
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 1rem; /* mb-4 */
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.25rem; /* text-4xl */
    }
}

.intro-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 1rem;                  /* text-base on mobile */
    color: var(--text-desc);           /* text-[rgb(177,177,177)] */
    line-height: 1.75;                /* leading-7 (28px) */
}

@media (min-width: 768px) {
    .intro-details {
        font-size: 1.125rem;           /* md:text-lg */
    }
}

.intro-paragraph {
    line-height: 1.75;
}

.name-underline {
    text-decoration: underline;
    text-underline-offset: 2px;        /* underline-offset-2 */
    color: var(--text-primary);
    font-weight: 600;
}

.highlight-text {
    color: var(--text-gray-200);       /* text-gray-200 */
    font-weight: 500;
}

.sub-intro-text {
    font-size: 1rem;                  /* text-base on mobile */
    line-height: 1.75;                /* leading-7 */
    color: var(--text-gray-300);       /* text-gray-300 */
    margin-top: 1.5rem;               /* mt-6 */
    max-width: 680px;
    letter-spacing: 0.015em;
}

@media (min-width: 768px) {
    .sub-intro-text {
        font-size: 1.125rem;           /* md:text-lg */
    }
}

/* Social links row: flex mt-6 gap-4 */
.social-links-row {
    display: flex;
    align-items: center;
    gap: 1rem;                         /* gap-4 */
    margin-top: 1.5rem;                /* mt-6 */
}

.social-icon-link {
    color: var(--text-gray-400);       /* hover:text-white */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.social-icon-link svg {
    width: 24px;                       /* w-6 h-6 */
    height: 24px;
    fill: currentColor;
    transition: color 0.2s ease;
}

.social-icon-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   PROJECTS / BLOGS SECTION (Exact Card Paddings & Typography from Suyash)
   ========================================================================== */
.projects-section {
    padding-top: 1rem;
}

/* Section Title: mt-10 text-3xl text-white font-bold mb-6 */
.section-title-projects {
    font-size: 1.875rem;              /* text-3xl (30px) */
    font-weight: 700;                 /* font-bold */
    margin-top: 2.5rem;               /* mt-10 */
    margin-bottom: 1.5rem;            /* mb-6 */
    color: var(--text-primary);
}

/* Homepage Blogs List (Vertical stack matching dev-suyash homepage) */
.blogs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;                       /* gap-2 on mobile */
    padding-bottom: 2rem;             /* pb-8 */
}

@media (min-width: 768px) {
    .blogs-list {
        gap: 0.75rem;                  /* md:gap-3 on desktop */
    }
}

/* Homepage Blog Cards (group md:mb-2 rounded-2xl relative bg-[rgb(41,41,47)] text-white w-full) */
.blog-card {
    position: relative;
    background-color: var(--bg-card);  /* bg-[rgb(41,41,47)] */
    border-radius: 1rem;               /* rounded-2xl (16px) */
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: var(--theme-transition);
    display: block;
    width: 100%;
}

@media (min-width: 768px) {
    .blog-card {
        margin-bottom: 0.5rem;         /* md:mb-2 */
    }
}

.blog-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.blog-card-content {
    position: relative;
    z-index: 2;
    padding: 1rem;                     /* p-4 on mobile */
}

@media (min-width: 768px) {
    .blog-card-content {
        padding: 1.5rem;               /* md:p-6 on desktop */
    }
}

.blog-card-title {
    font-size: 1.25rem;               /* text-xl on mobile */
    font-weight: 600;                 /* font-semibold */
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .blog-card-title {
        font-size: 1.5rem;             /* text-2xl on desktop */
        padding: 0.25rem 0.25rem 0.25rem 0; /* md:p-2 md:pl-0 */
    }
}

.blog-card-desc {
    color: var(--text-gray-400);       /* text-gray-400 */
    font-size: 0.875rem;              /* text-sm on mobile */
    line-height: 1.5;
}

@media (min-width: 768px) {
    .blog-card-desc {
        font-size: 1rem;               /* md:text-base on desktop */
        line-height: 1.625;
    }
}

/* Projects Grid container: 1-column on mobile, 2-column grid on desktop matching dev-suyash/projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;                         /* gap-4 */
    padding-bottom: 2rem;             /* pb-8 */
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;                     /* md:gap-4 */
    }
}

/* Card outer: group md:mb-2 rounded-xl transition duration-200 relative bg-[rgb(41,41,47)] text-white w-full min-h-[250px] */
.project-card {
    position: relative;
    background-color: var(--bg-card);  /* bg-[rgb(41,41,47)] */
    border-radius: 0.75rem;            /* rounded-xl (12px) matching dev-suyash */
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(51, 65, 85, 0.8); /* border-slate-700 */
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 250px;                 /* min-h-[250px] */
}

@media (min-width: 768px) {
    .project-card {
        margin-bottom: 0.5rem;         /* md:mb-2 */
    }
}

.project-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Subtle accent trim border gradients matching dev-suyash */
.card-border-line-bottom {
    position: absolute;
    width: 40%;
    bottom: -1px;
    right: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

.card-border-line-left {
    position: absolute;
    width: 1px;
    left: -1px;
    top: 30%;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(96, 165, 250, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

/* Card inner content padding: relative h-full md:p-6 p-4 */
.project-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1rem 1.25rem 1.25rem 1.25rem; /* p-4 on mobile */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .project-card-content {
        padding: 1.5rem;               /* md:p-6 on desktop */
    }
}

.card-header-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.external-link-icon {
    color: var(--text-gray-400);
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.project-card:hover .external-link-icon {
    color: #ffffff;
    transform: translate(2px, -2px);
}

/* Card title: text-xl md:text-2xl font-bold tracking-tight */
.project-card-title {
    font-size: 1.25rem;               /* text-xl (20px) on mobile */
    font-weight: 700;                 /* font-bold */
    letter-spacing: -0.015em;
    color: rgb(243, 244, 246);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .project-card-title {
        font-size: 1.5rem;             /* md:text-2xl */
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

/* Card description: text-gray-300 text-sm md:text-base leading-6 */
.project-card-desc {
    color: var(--text-gray-300);       /* text-gray-300 */
    font-size: 0.875rem;              /* text-sm on mobile */
    line-height: 1.5;
}

@media (min-width: 768px) {
    .project-card-desc {
        font-size: 1rem;               /* md:text-base on desktop */
        line-height: 1.625;
    }
}

/* Tech Badges Row (Exact dev-suyash tag pill layout anchored at bottom) */
.project-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.tech-badge {
    display: inline-block;
    font-size: 0.75rem;               /* text-xs */
    font-style: italic;
    color: rgb(209, 213, 219);         /* text-gray-300 */
    background-color: transparent;
    border: 1px solid rgba(156, 163, 175, 0.5); /* border-gray-500 */
    border-radius: 0.375rem;           /* rounded-md */
    padding: 2px 8px;
    line-height: 1.25;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.project-card:hover .tech-badge {
    border-color: rgba(96, 165, 250, 0.6);
    color: #ffffff;
}

/* Advanced Hover Radial Gradient Overlay */
.project-hover-overlay {
    position: absolute;
    inset: 0;
    border-radius: 1rem;               /* rounded-2xl */
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(96, 165, 250, 0.15) 0%, transparent 100%),
                radial-gradient(300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(253, 164, 175, 0.15) 0%, transparent 100%);
}

.blog-card:hover .project-hover-overlay,
.project-card:hover .project-hover-overlay {
    opacity: 1;
}

/* ==========================================================================
   ARTICLE / POST DETAIL VIEWS (max-w-3xl matching dev-suyash)
   ========================================================================== */
.article-container {
    width: 100%;
    max-width: 768px; /* max-w-3xl */
    margin: 0 auto;
    position: relative;
    padding-top: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;              /* text-sm */
    font-weight: 500;
    color: var(--text-gray-400);
    transition: color 0.2s ease;
    margin-bottom: 1.5rem;
}

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

.back-link svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 1200px) {
    .back-link {
        position: absolute;
        left: -140px;
        top: 1.75rem;
    }
}

.article-header {
    margin-bottom: 2rem;
}

.published-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray-400);
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.875rem;              /* text-3xl on mobile */
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .article-title {
        font-size: 3rem;               /* md:text-5xl */
    }
}

.article-body {
    font-size: 1rem;                  /* text-base on mobile */
    line-height: 1.75;
    color: var(--text-gray-200);
}

@media (min-width: 768px) {
    .article-body {
        font-size: 1.125rem;           /* md:text-lg */
    }
}

.article-body p {
    margin-top: 1.25rem;
}

.article-body h2 {
    font-size: 1.5rem;                /* text-2xl on mobile */
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .article-body h2 {
        font-size: 1.875rem;           /* text-3xl */
    }
}

.article-body ul, .article-body ol {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-top: 0.5rem;
    color: var(--text-gray-300);
}

.article-body blockquote {
    margin-top: 1.25rem;
    border-left: 2px solid var(--text-muted);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--text-gray-400);
}

.article-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.article-tag {
    font-size: 0.8rem;
    background-color: var(--bg-card);
    color: var(--accent-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.article-body pre {
    margin-top: 1.5rem;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.article-body code {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--accent-blue);
}

.article-body pre code {
    color: var(--text-primary);
    background-color: transparent;
    padding: 0;
    border: none;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--accent-blue);
    color: #000000;
    transition: var(--theme-transition);
}

.action-btn:hover {
    background-color: #93c5fd;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-bottom: 2rem;
}
