/* General Settings & Accessibility */
html {
    scroll-behavior: smooth;
    /* Prevents header from covering section titles */
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    background-attachment: fixed;
    line-height: 1.6;
}

/* Responsive Navigation */
header {
    background-color: #2c3e50;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allows menu to wrap on small screens */
}

nav ul li {
    margin: 5px 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #1abc9c;
}

/* Hero Section */
.hero-section {
    min-height: 100vh; /* Better than fixed height for mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 50px 20px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 10px 25px rgba(26, 188, 156, 0.3);
    margin-bottom: 20px;
}

.highlight {
    color: #1abc9c;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-buttons a {
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary { background: #2c3e50; color: white; }
.btn-secondary { border: 2px solid #2c3e50; color: #2c3e50; }

.hero-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Sections */
section {
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    width: 50%;
    height: 3px;
    background: #1abc9c;
    position: absolute;
    bottom: -10px;
    left: 25%;
}

/* Skills Grid (Fully Responsive) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.skill-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid #1abc9c;
}

/* Project Cards */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    border-left: 6px solid #1abc9c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Essential for mobile */
}

.contact-card {
    text-decoration: none;
    background: white;
    padding: 12px 25px;
    border-radius: 50px;
    color: #2c3e50;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.contact-card:hover {
    background: #1abc9c;
    color: white;
}

/* --- Media Queries for Mobile Devices --- */
@media (max-width: 768px) {
    section {
        padding: 60px 5%;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    nav ul li {
        margin: 5px 10px;
    }
}
