/* ========================================
  TASK 2: style.css
  ========================================
*/

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* --- Header & Navigation --- */
nav {
    background-color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* RUBRIC: Your name is visibly styled (font size/weight/color) */
.profile-name {
    color: #ecf0f1;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* RUBRIC: Hover Effect on Navbar */
/* Must be Bold AND Underlined */
.nav-links a:hover {
    font-weight: bold;
    text-decoration: underline;
    color: #3498db;
}

.home-icon {
    font-size: 1.2rem;
}

/* --- Sections General --- */
section {
    padding: 60px 5%;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
}

/* --- About Me --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3498db;
}

/* --- Skills --- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 150px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #3498db;
}

.skill-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 10px;
}

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

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    background: #fafafa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.project-card h3 {
    margin-bottom: 10px;
    color: #2980b9;
}

/* --- Recommendations --- */
.recommendation-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.recommendation-card {
    background: #fffdf0;
    border-left: 4px solid #f1c40f;
    padding: 15px;
    font-style: italic;
    border-radius: 4px;
}

/* Form */
.rec-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background-color: #2980b9;
}

/* --- Popup Modal --- */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.popup-content h3 {
    color: #27ae60;
    margin-bottom: 10px;
}

.popup-content button {
    background-color: #27ae60;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0.8rem 3%;
    }
    
    .profile-name {
        font-size: 1.2rem;
        text-align: left;
    }
    
    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 5px 0;
    }
    
    .home-icon {
        font-size: 1rem;
    }
}