
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

html {
    scroll-behavior: smooth;
}

/* 1. Design Tokens from Figma */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --secondary-text: #666666;
    --accent-color: #6f7e8f;
    --card-bg: #f5f5f7;
    --border-radius: 12px;
    --max-width: 1000px;
    --nav-bg: #666666;
    --animate-color: #1a1a1a
}

/* 2. Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-top: 80px;
}

/* 3. Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #b5c1ce;
    backdrop-filter: blur(10px);
    z-index: 1000;
    background-color: var(--nav-bg);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* 4. Hero Section */
.hero {
    max-width: var(--max-width);
    margin: 100px auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--accent-color);
 }

/* 5. Project Grid */
.container {
    max-width: var(--max-width);
    margin: 50px auto;
    padding: 0 20px;
}

.section-title {
    margin-bottom: 30px;
}

/* project card*/
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}


.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: transform 0.3s ease;
}

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

.project-photos {
    border-radius: var(--border-radius);
    width: 100%;
    height: 300px;
}
/* Work experience project cell */
.job-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.job-list li {
    margin-bottom: 14px;
}

.job-meta {
    font-size: 0.9rem;
    opacity: 0.75;
}



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

.tags {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.tags span {
    background: #4f5e6d;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.footer {
    text-align: center;
    padding: 50px;
    color: var(--secondary-text);
}

body.dark-mode {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --secondary-text: #94a3b8;
    --card-bg: #1e293b;
    --accent-color: #6e7b80;
    --nav-bg: #3d4d67;
    --color: #94a3b8;
    --animate-color: #94a3b8;

}


#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.2s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

#theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#theme-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

#profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    transform: scale(1.2);
    border: 4px solid rgb(83, 74, 74); 

}


.hero-container {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-wide {
    max-width: 1300px;
    margin: 50px auto;
    padding: 0 40px;
}



.hero-text h1 {
    margin-bottom: 10px;
    
}

/* Layout Positioning */
.portfolio-layout {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.side-nav {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    padding: 30px;
    width: 75px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex-grow: 1;
    padding: 40px;
    margin: 0 auto;
    /* This is the magic line that centers the content */
}

.side-link {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #666;
    transition: 0.3s;
}

.side-link.active {
    color: var(--text-color);
    font-weight: 600;
    border-left: 2px solid #000;
    padding-left: 15px;
}

.section-divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 60px 0;
    width: 100%;
}

.tag-assembly {
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 4px;
}

.profile-card {
    align-items: center; 
    gap: 30px;         
    background: var(--card-bg);
    border-radius: var(--border-radius);

    width: 1000px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    gap: 50px;           /* Space between text and photos */
    align-items: flex-start;
    margin-top: 30px;
}
.about-text-box {
    flex: 1;
}
.hobby-grid {
    flex: 1;             /* Takes up equal space as text, or set a fixed width like 400px */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 15px;
}

.hobby-img {
    width: 100%;
    height: 200px;       /* Keep them uniform */
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.hobby-img:hover {
    transform: scale(1.05); /* Slight pop effect on hover */
}

/* Responsive: Stack them on mobile */
@media (max-width: 850px) {
    .about-content {
        flex-direction: column;
    }
    
    .hobby-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Animated intro text*/



* {
  box-sizing: border-box;
}

.txt {
  flex-wrap: wrap;
  color: var(--animate-color);
  font-size: 20px;
  cursor: pointer;
}

.txt span {
  white-space: pre;
  opacity: 0;
  transform: translate(-2px, 4px) scale(0.9);
  filter: blur(6px);
  animation: fadeIn 0.2s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
  }
}
