:root {
    --primary-color: #2E7D32;
    --primary-hover: #1B5E20;
    --background-color: #F5F5F5;
    --header-bg: #FFFFFF;
    --text-color: #212121;
    --text-muted: #757575;
    --card-bg: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
    --font-family2: 'Fira Code', 'Courier New', monospace;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    display: flex;
    position: sticky;
    top: 0;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: var(--header-bg);
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 1;
}

b {
    color: var(--primary-color);
}

header h1 {
    color: var(--text-color);
    font-family: var(--font-family2);
    filter: drop-shadow(1px 1px 5px var(--shadow-color));
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    font-weight: bold;
    color: var(--primary-hover);
}

.section {
    scroll-margin-top: 80px; 
}

#home, #projects, #about {
    scroll-margin-top: 100px; 
}


.intro-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 80vh;
    padding: 50px;
    text-align: left;
    gap: 30px;
}

.intro-text {
    max-width: 600px;
    line-height: 30px;
}

.intro-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.intro-text span {
    color: var(--primary-color);
    font-weight: 600;
}

.intro-text p {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 5px 10px var(--shadow-color);
}

.btn:hover {
    background-color: var(--primary-hover);
}

.intro-image img {
    margin: auto 50px;
    width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 5px 5px 15px var(--shadow-color);
}

.container {
    max-width: 80%;
    margin: 50px auto;
    padding-top: 5px;
    padding-bottom: 50px;
    text-align: center;
}

.about h2, .projects h2 {
    font-size: 38px;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 700;
}

.about, .projects {
    min-height: 100vh;
}

.project img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    box-shadow: 3px 3px 8px var(--shadow-color);
    display: block;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
    justify-content: center;
    gap: 25px;
}

.project-text {
    padding: 25px;
}

.project {
    background: var(--card-bg);
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    width: 360px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.project:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.project h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.project a {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.project a:hover {
    text-decoration: underline;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    display: inline-block;
    margin: 0 12px;
    font-size: 26px;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-hover);
    transform: translateY(-3px);
}
