body {
    font-family: Arial, sans-serif;
    background-color: #f5f0e1;
    padding-left: 40px;
    padding-right: 40px;
    /* margin: 0; */
}

nav {
    background-color: #f5f0e1;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    align-items: center;
}

/* LEFT */
.navbar-left {
    flex: 1;
    font-size: 20px;
    font-weight: bold;
    color: #6f4f35;
}

/* CENTER */
.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* RIGHT */
.navbar-icons {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links */
.navbar-center a {
    text-decoration: none;
    color: #6f4f35;
    /* font-weight: bold; */
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.navbar-center a:hover {
    color: #9c5e3a;
}

.navbar-center a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #9c5e3a;
    left: 0;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.navbar-center a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Icon sizing (this fixes the huge icons) */
.navbar-icons img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}


/* 🔹 INTRO SECTION LAYOUT */
.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    min-height: 80vh;
}

/* Left text – 60% */
.intro-left {
    flex: 0 0 60%;
    max-width: 60%;
    z-index: 2;
}

/* Right image – 40% */
.intro-right {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

/* Profile image */
.profile-pic {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
}

/* Typography */
h1 {
    font-size: 60px;
    font-weight: bold;
    color: #6f4f35;
}

p {
    font-size: 30px;
    color: #6f4f35;
}

/* Typing effect */
#typing-effect {
    display: inline-block;
    border-right: 3px solid #6f4f35; /* cursor */
    padding-right: 6px;
    white-space: nowrap;
    animation: blink 0.8s step-end infinite;
}

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

.quote-container {
    max-width: 900px;
    margin: 120px auto;
    text-align: center;
    padding: 0 20px;
}

.quote-top {
    font-size: 28px;
    font-weight: bold;
    color: #6f4f35;
    margin-bottom: 20px;
}

.quote-bottom {
    font-size: 18px;
    color: #6f4f35;
    line-height: 1.7;
    opacity: 0.9;
}

.about-me-container {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 60px;
    padding: 80px 10%;
}

/* LEFT */
/* .about-me-left h2 {
    font-size: 36px;
    margin-bottom: 30px;
} */

.stack-group {
    margin-bottom: 22px;
}

.stack-group h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #6f4f35;
}

.stack-group p {
    font-size: 16px;
    line-height: 1.6;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(26px, 1fr));
    gap: 32px;
}

.icon-grid img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}


/* RIGHT */
.about-me-right {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

:root {
    --timeline-axis: 40px;
}

.timeline {
    position: relative;
    margin-top: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: var(--timeline-axis);
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #d3c6b8;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-icon {
    position: absolute;
    left: calc(var(--timeline-axis) - 32px);
    background-color: #f5f0e1;
    padding: 4px;
}

.timeline-icon img {
    width: 64px;
    height: 64px;
    object-fit: scale-down;
    /* border-radius: 32px; */
}

.timeline-content {
    padding-left: 120px;
}

.timeline-content .role {
    font-size: 18px;
    margin: 0;
    color: #6f4f35;
}

.timeline-content .time {
    display: block;
    font-size: 14px;
    margin: 4px 0 6px;
    color: #9c5e3a;
}

.timeline-content .org {
    margin: 0;
    font-size: 16px;
    color: #6f4f35;
}

/* Hobbies */
.about-me-three{
  grid-column: 1 / -1;   /* span both columns */
  margin-top: 60px;
}

.about-me-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr; /* middle a bit wider */
    gap: 28px;
    align-items: center;
}

/* Left portrait */
.portrait-img {
    width: 100%;
    aspect-ratio: 3 / 4;   /* portrait */
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* Middle text */
.about-middle p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #6f4f35;
    text-align: center;
}

/* Right images stacked */
.about-right {
    display: grid;
    gap: 16px;
}

.landscape-img {
    width: 100%;
    aspect-ratio: 16 / 9;  /* landscape */
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* Mobile: stack nicely */
@media (max-width: 900px) {
    .about-me-grid {
        grid-template-columns: 1fr;
    }

    .about-middle {
        text-align: center;
    }
}

.projects-container {
    padding: 80px 0; /* no side padding here */
}

.projects-grid {
    display: flex;
    justify-content: space-between; /* equal spacing */
    gap: 0;                          /* spacing handled by flex */
}

/* Fixed-size cards */
.project-card {
    width: 260px;        /* adjust to taste */
    height: 260px;
    border: 2px solid #d3c6b8;
    border-radius: 18px;
    padding: 26px;
    background: #f5f0e1;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #9c5e3a;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}


/* Responsive */
@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Mobile */
@media (max-width: 900px) {
    .about-me-container {
        grid-template-columns: 1fr;
    }
}

/* 📱 Mobile responsive */
@media (max-width: 768px) {
    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .intro-right {
        margin-top: 30px;
    }
}
