/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #666666;
    --gray-light: #f5f5f5;
    --accent: #0066cc;
    --accent-warm: #8d0d17;
    --accent-warm-light: #fff5f0;
    --accent-warm-subtle: #ffe8dc;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

main {
    width: 100%;
    display: block;
    min-height: 100vh;
    padding-top: 0;
    background-color: var(--white);
    color: var(--black);
}


/* Navigation */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-body);
    font-weight: 600;
    color: #8d0d17;
    text-decoration: none;
}

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

.nav-menu a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 0.6;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
    padding: 0.5rem;
}


/* Hero Section */

.hero-section {
    padding: 6rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-warm) 20%, var(--accent-warm) 80%, transparent 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.photo-container {
    flex-shrink: 0;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(204, 82, 0, 0.25);
}

.basic-container {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.basic-container h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--black);
}

.basic-container .subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent-warm);
    margin: 0;
    font-weight: 500;
}

.basic-container .tagline {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    padding: 0.5rem;
}

.social-link:hover {
    color: #8d0d17;
    opacity: 1;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.2s;
}

.social-link:hover svg {
    fill: #8d0d17;
}

.profile-summary {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--black);
    max-width: 700px;
    margin: 0;
    padding-top: 1.5rem;
    position: relative;
}

.profile-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-warm);
}


/* Section Styles */

.section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #e0e0e0;
}

.section:last-of-type {
    border-bottom: none;
}

.section-container {
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
    color: #8d0d17;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 3rem;
}


/* Experience Section */

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.experience-item {
    display: flex;
    flex-direction: column;
}

.experience-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.experience-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.experience-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.3px;
    margin: 0;
}

.experience-company {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray);
    margin: 0;
}

.experience-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.25rem;
}

.experience-period {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    font-variant-numeric: tabular-nums;
}

.experience-type {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.experience-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.experience-tech {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    margin: 0;
}

.experience-achievements {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.experience-achievements li {
    margin-bottom: 0.35rem;
    line-height: 1.4;
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--gray);
}

.experience-achievements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gray);
}

@media (max-width: 768px) {
    .experience-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.tech-tag {
    background-color: var(--gray-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--black);
}


/* Projects Section */

.projects-grid {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.projects-grid::before,
.projects-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 2;
}

.projects-grid::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

.projects-grid::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
}

.projects-carousel {
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    scrollbar-width: none;
    width: max-content;
    /* critical */
    will-change: transform;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--gray-light);
    margin-bottom: 0.75rem;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    display: none;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
    letter-spacing: -0.2px;
    margin: 0;
}

.project-description {
    color: var(--gray);
    line-height: 1.5;
    font-size: 0.85rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.project-tech .tech-tag {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 400;
    font-style: italic;
    padding: 0;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.project-link {
    color: var(--black);
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.project-link:hover {
    opacity: 0.6;
}


/* Technical Stack Section */

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-category-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-category-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.tech-list {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray);
}

.tech-item svg {
    flex-shrink: 0;
    color: var(--black);
}


/* Two Column Layout */

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.column {
    width: 100%;
}

@media (max-width: 968px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* Achievements Section */

.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-card {
    padding: 0.5rem 0;
}

.achievement-header {
    margin-bottom: 0.25rem;
}

.achievement-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--black);
}

.achievement-link {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s;
}

.achievement-link:hover {
    color: var(--accent-warm);
    text-decoration: underline;
}

.achievement-org {
    font-weight: 500;
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0.15rem 0;
}

.achievement-desc {
    color: var(--gray);
    line-height: 1.5;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.achievement-icon {
    display: none;
}

.achievement-type {
    display: none;
}


/* Education Section */

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem 0;
}

.education-item:last-child {
    border-bottom: none;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-degree {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.2px;
    margin: 0;
}

.education-period {
    font-size: 0.85rem;
    color: var(--gray);
    font-variant-numeric: tabular-nums;
}

.education-institution {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
    margin: 0.15rem 0;
}

.education-location {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
    margin: 0.15rem 0;
}

.education-gpa {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0.15rem 0;
}

.education-description {
    margin: 0.25rem 0;
    line-height: 1.5;
    color: var(--gray);
    font-size: 0.85rem;
}

.education-coursework {
    margin-top: 0.5rem;
}

.education-coursework strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.coursework-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course-tag {
    background-color: var(--gray-light);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 400;
}

.education-icon {
    display: none;
}


/* Blogs Section */

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    padding: 1.5rem;
    background-color: var(--gray-light);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.blog-card:hover {
    background-color: var(--accent-light);
}

.blog-card:hover .blog-title {
    color: var(--accent);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-category {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--black);
}

.blog-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    flex: 1;
    font-size: 0.95rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
    margin-top: auto;
}

.blog-link:hover {
    opacity: 0.6;
}

.blog-link::after {
    content: '→';
    transition: transform 0.2s;
}

.blog-link:hover::after {
    transform: translateX(4px);
}


/* Footer */

.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-content p:last-child {
    margin-bottom: 0;
    opacity: 0.8;
}


/* Responsive */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
        border-bottom: 1px solid #e0e0e0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        width: 100%;
        padding: 1rem 0;
    }
    .nav-link {
        width: 100%;
        display: block;
        padding: 1rem;
    }
    .basic-info h1 {
        font-size: 2rem;
    }
    .section {
        padding: 3rem 1.5rem;
    }
    .hero-section {
        padding: 6rem 1.5rem 3rem;
    }
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .basic-container {
        text-align: center;
        align-items: center;
    }
    .social-icons {
        justify-content: center;
    }
    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .experience-meta {
        align-items: flex-start;
        text-align: left;
    }
}