/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header */
header {
    background: #50C878; /* emerald green */
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: 600;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    color: #e6ffe6;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        display: none;
        width: 100%;
        background: #50C878;
    }

    nav.active {
        display: block;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }
}

/* Hero/Profile Section */
#hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: #eaffea;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #50C878;
    margin-bottom: 20px;
}

#hero h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #2e4e1f;
}

#hero p {
    font-size: 1.1em;
    color: #444;
}

/* 🔗 Social Icons */
.social-links {
    margin-top: 15px;
}

.social-links a {
    color: #50C878;
    font-size: 1.8em;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-4px);
}

/* Specific hover colors */
.social-links a:nth-child(1):hover { /* LinkedIn */
    color: #0077b5;
}

.social-links a:nth-child(2):hover { /* GitHub */
    color: #24292e;
}

.social-links a:nth-child(3):hover { /* Instagram gradient */
    color: #e4405f;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections */
section {
    padding: 60px 20px;
}

section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #222;
}

/* About */
#about p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1em;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-card h3 {
    margin-bottom: 10px;
    color: #50C878;
}

/* Contact */
#contact {
    text-align: center;
}

.btn {
    display: inline-block;
    background: #50C878;
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn:hover {
    background: #2e8b57;
}

/* Footer */
footer {
    background: #50C878;
    color: #aaa;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 🌫️ Smooth fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

/* When element becomes visible */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: slower fade for hero section */
#hero.fade-in {
    transition-duration: 1.5s;
}


/* Prevent header from covering section titles */
section {
    scroll-margin-top: 80px; /* adjust based on your header height */
}

html {
    scroll-behavior: smooth;
}

/* Highlight for active nav link */
nav ul li a.active {
    color: #50C878; /* emerald green highlight */
    font-weight: 600;
    border-bottom: 2px solid #50C878;
    transition: color 0.3s, border-bottom 0.3s;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 20px auto;
}

#contact input,
#contact textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

#contact button {
  background-color: #50C878; /* emerald green */
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

#contact button:hover {
  background-color: #3da563;
}

#status {
  margin-top: 10px;
  font-weight: 500;
  text-align: center;
}
