/* General Styles */
:root {
    --primary-color: #a0522d; /* Earthy Brown */
    --secondary-color: #d2b48c; /* Tan */
    --dark-color: #2e2e2e; /* Dark Grey */
    --text-color: #f0f0f0; /* Light Grey */
    --code-color: #00ff00; /* Neon Green for code elements */
    --hover-color: #cd853f; /* Medium Brown */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--dark-color);
    color: var(--text-color);
    scroll-behavior: smooth; /* Enable smooth scrolling */
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    font-family: 'Roboto Mono', monospace;
}
/*
h2::after {
    content: '//'; 
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--code-color);
}
*/

/* Header and Navigation */
header {
    background: var(--dark-color);
    color: var(--text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
header nav a img{
    height:50px;
    width: 50px;
}

header nav div{
    margin: 0px;
    padding:0px;
    display: inline;
}

header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: var(--text-color);
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Sections */
.section {
    padding: 40px 0;
    opacity: 0; 
    transform: translateY(50px); 
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Me Section */
#about .about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

#about .profile-picture {
    flex: 1;
    text-align: center;
}

#about .profile-picture img {
    max-width: 300px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#about .about-description {
    flex: 2;
}

/* Experience Section (Projects) */
.tech-stack{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0px;
}
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-item {
    background-color: #3a3a3a; 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-image img {
    display: block;
    max-width: 50%;
    border-radius: 4px;
    margin-bottom: 15px;
    align-items: center;
}

.project-details h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.project-details .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

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

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill-tag {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
}

/* Contact Section */
#contact {
    text-align: center;
}

.contact-links {
    margin-top: 20px;
}

.contact-links a {
    display: inline-block;
    margin: 0 15px;
    font-size: 1.2em;
}

.contact-links a i {
    margin-right: 5px;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--text-color);
    text-align: center;
    padding: 1rem 0;
    margin-top: 40px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
}

/* Animations */
/* Keyframes are defined here but triggered by adding/removing the 'visible' class via JS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media screen and (max-width:768px) {
    #about .about-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    }
    #about .about-description p{
        margin: 0px 30px 0px 30px;
    }
    h2{ font-size:2rem ;}
}