
@font-face {
    font-family: "GoogleSansCode"; 
    src: url("fonts/GoogleSansCode-VariableFont_wght.ttf") format("truetype"); 
    font-weight: normal; 
    font-style: normal; 
}

@font-face {
    font-family: "GoogleSansCodeItalic"; 
    src: url("fonts/GoogleSansCode-Italic-VariableFont_wght.ttf") format("truetype"); 
    font-weight: normal; 
    font-style: normal; 
}

/* Use increments of 11px for pixel-perfect */
@font-face {
    font-family: "DepartureMono"; 
    src: url("fonts/DepartureMono-Regular.otf") format("truetype"); 
    font-weight: normal; 
    font-style: normal; 
}

:root {
    --primary: #7daf80;    
    --secondary: hsl(128, 15%, 45%); 
    --accent: #2f7133;     
    --header-color: hsl(128, 51%, 15%);
    --background: hsl(100, 7%, 92%);
    --text: #2D2D2D;
    --light-gray: #E9ECEF;
}

/* Typography */
body {
    font-family: 'GoogleSansCode', sans-serif;
    line-height: 1.6;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: var(--header-color)
}

h1 { 
    font-size: 5rem; 
    color: var(--header-color);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    line-height: normal;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 3rem; 
    margin: 0;
}

h3 {
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 450;
}

.tech-stack {
    display: flex;
    row-gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    animation: underlineGrow 0.5s ease-out;
} */

header {
    /* background-color: var(--primary); */
    color: var(--header-color);
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    grid-template-columns: auto 1fr;
    justify-content: space-between;
    align-items: center;
    /* border-bottom: 3px solid var(--secondary); Accent line */
}

header h1 {
    color: var(--header-color);
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Subtle text shadow */
}

header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    animation: underlineGrow 0.5s ease-out;
}

nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--header-text);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.nav-link:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    /* box-shadow: 0 4px 12px rgba(196, 90, 18, 0.3); */
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link span {
    font-weight: 500;
    font-size: 0.95rem;
}



section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.profile-container {
    display: flex;
    box-sizing: border-box;
    /* grid-template-columns: 1fr auto; */
    align-items: center; /* Align items vertically */
    gap: 20px; /* Space between image and bio */
    /* max-width: 600px; Adjust width as needed */
    padding: 4rem;
    margin: 2rem 4rem 0; /* Center the container */
}

.profile-pic {
    width: auto;  
    max-width: 450px;
    min-width: 300px;
    height: auto; 
    max-height: 450px;
    min-height: 300px;
    object-fit: cover; 
    display: block;
    margin: 0 auto;
    border: 3px solid var(--secondary);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.bio {
  font-size: 16px;
  color: #ddd; /* Adjust for dark mode */
  max-width: 400px; /* Prevent text from being too wide */
}

#projects {
    max-width: 1200px;
    box-sizing: border-box;
    padding: 0;
}

#resume {
    padding: 4rem 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
    padding: 0 2rem;
}

.project-card {
    /* width: 100%; */
    max-width: 400px;
    position: relative;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--secondary);
}

/* .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
} */

.tech-tag {
    background-color: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.resume-download {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--secondary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.resume-download:hover {
    transform: scale(1.05);
}

footer {
    background-color: var(--primary);
    padding: 2rem;
    margin-top: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--header-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes underlineGrow {
    from { width: 0 }
    to { width: 60% }
}