html {
    scroll-behavior: smooth;
}
:root {
    --primary: #324851;      /* Charcoal Blue */
    --secondary: #34675C;    /* Deep Pine */
    --accent: #86AC41;       /* Leaf Green */
    --neutral: #7DA3A1;      /* Muted Sage */
    --bg-light: #f4f7f6;     /* Background tint */
    --white: #ffffff;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--primary);
    background-color: var(--bg-light);
}

header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    nav ul li {
        margin: 10px 0; /* Add space between stacked links */
        text-align: center;
        background-color: transparent;
    }
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

/* Hero Section */
#hero {
    background: var(--primary); /* Changed to primary for visual depth */
    color: var(--white);        /* Ensure text is readable */
    padding: 60px 20px;         /* Increased padding slightly for better spacing */
    text-align: center;
    border-bottom: 3px solid var(--secondary);
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* About Section */
#about {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Button Styling */
button {
    background: transparent;
    text-decoration: none;
    color: var(--accent);
    padding: 10px 20px;
    border: 2px solid var(--accent);
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background: var(--accent);
    color: var(--white);
}

.hero-btns {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-secondary {
    text-decoration: none;
    color: var(--accent);
    padding: 10px 20px;
    border: 2px solid var(--accent);
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--white);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 20px auto;
}

.project-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary);
    transition: transform 0.3s;
}

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

.badge {
    display: inline-block;
    background: var(--neutral);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 5px;
}

.btn-small {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-badge {
    font-size: 0.7rem;
    background: var(--accent);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.card-features h4 {
    font-size: 0.9rem;
    margin: 15px 0 5px 0;
    color: var(--primary);
}

.card-features ul {
    padding-left: 20px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--primary);
}

.card-features li {
    margin-bottom: 4px;
}

.skills-tags {
    margin-top: 10px;
}

/* Project Image Placeholders */
.project-image {
    width: 100%;
    height: 180px;
    background: var(--bg-light); /* Uses light sage tint */
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--neutral);
}

.project-image i {
    font-size: 4rem;
    color: var(--neutral); /* Uses muted sage for a subtle look */
}

#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    background-color: var(--primary);
    opacity: 0.8;
    color: var(--white);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px 10px;
    border-radius: 80%;
    font-size: 30px;
    transition: 0.3s;
}

#backToTop:hover {
    background-color: var(--neutral); 
    opacity: 0.5;
}

nav a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}
/* Media Query for Tablets and Phones */
@media (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: column; /* Stack links vertically */
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 0; /* Add space between stacked links */
        text-align: center;
    }

    #hero h1 {
        font-size: 1.8rem; /* Shrink text so it doesn't wrap awkwardly */
    }

    .hero-btns {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
    }

    button, .btn-secondary {
        width: 80%; /* Make buttons wider for easier tapping */
    }
	
    .card-header {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px;
		align-items: center;
		text-align: center;
    }

    .project-image {
        height: 220px; 
    }

    .project-image i {
        font-size: 5rem; 
    }

    .project-card {
        padding: 25px; 
    }

    .skills-tags {
        display: flex;
        flex-wrap: wrap; 
        gap: 8px;
    }

}

/* Mobile-Friendly Touch Targets */
nav a, .btn-small, .btn-secondary, button {
    padding: 12px 20px; /* Increased padding for better thumb-tapping */
    display: inline-block; 
}

