/*:root {
    --bg-color: #121212;
    --primary-color: #1e1e1e;
    --secondary-color: #2a2a2a;
    --text-color: #e0e0e0;
    --accent-color: #bb86fc;
    --accent-secondary: #03dac6;
    --font-family: 'Poppins', sans-serif;
    --nav-height: 70px;
}*/
:root {
    --bg-color: #4f4537;
    --primary-color: #1e1e1e;
    --secondary-color: #2a2a2a;
    --text-color: #dfe0df;
    --accent-color: #ffc75f;
    --accent-secondary: #a68d65;
    --font-family: 'Poppins', sans-serif;
    --nav-height: 70px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--accent-color);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-secondary);
    margin: 10px auto 0;
}

/* Navigation Bar */
.navbar {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    position: fixed;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent-secondary);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-menu a:hover {
    color: var(--accent-color);
	font-weight: 800;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://source.unsplash.com/1600x900/?developer,desk') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    padding-top: var(--nav-height); /* Offset for fixed nav */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero .tagline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: #121212;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-3px);
}

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

.about-profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.project-card-content {
    padding: 25px;
}

.project-card-content h3 {
    color: var(--accent-secondary);
    margin-bottom: 15px;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
/*
.skill-item {
    background-color: var(--primary-color);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
}

.skill-item:hover {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

.skill-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}
*/
.skill-item {
    background-color: var(--primary-color);
    padding: 20px; /* Adjusted padding for better spacing */
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center; /* This is the key change */
    width: 150px; /* Optional: set a fixed width for uniformity */
    transition: transform 0.2s ease;
}

.skill-item:hover {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

.skill-item i {
    color: var(--accent-color);
    font-size: 2rem; /* Increased icon size for better visuals */
    margin-bottom: 10px; /* Adds space between icon and text */
    display: block; /* Ensures margin-bottom works correctly */
}
/* Recommendations Section */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.recommendation-card {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-secondary);
}

.recommendation-card blockquote {
    font-style: italic;
    margin-bottom: 15px;
}

.recommendation-card cite {
    font-weight: 600;
    display: block;
    text-align: right;
    color: var(--accent-color);
}

.recommendation-form-container {
    background: var(--primary-color);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 40px auto 0;
}

#recommendation-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#recommendation-form input,
#recommendation-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: var(--font-family);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

.contact-details {
    margin: 20px 0;
}

.contact-details p {
    margin-bottom: 10px;
}
.contact-details p a{
    color: var(--accent-color);
}
.contact-details p a:hover{
    color: var(--accent-secondary);
}
.languages {
    margin-top: 20px;
}

.footer-credit {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}


/* Home Icon */
.home-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.home-icon:hover {
    background-color: var(--accent-secondary);
    transform: scale(1.1);
}

/* Pop-up message */
.popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-secondary);
    color: var(--bg-color);
    padding: 15px 30px;
    border-radius: 8px;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.5s, opacity 0.5s linear;
}

.popup.show {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s linear;
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Simplification for this example. A real-world scenario would use a hamburger menu. */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
}