/* === GLOBAL STYLES === */
:root {
    --accent: #0077ff;
    --bg-light: #f8f9fb;
    --text-dark: #1e1e1e;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --border-glass: rgba(255, 255, 255, 0.3);
    --shadow-glass: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-dark);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

section {
    padding: 80px 10%;
    position: relative;
}

/* === NAVBAR === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 8%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 35px;
    width: 35px;
}

.logo h3 {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--accent);
    left: 0;
    bottom: -4px;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.resume-btn {
    padding: 8px 18px;
    border-radius: 25px;
    border: 1px solid var(--accent);
    color: white;
    background: var(--accent);
    transition: var(--transition);
}

.resume-btn:hover {
    background: transparent;
    color: var(--accent);
}

.nav-links a.active {
  color: #0077ff;
  font-weight: bold;
}


/* === HERO SECTION === */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 120px;
}

.hero-text {
    flex: 1 1 45%;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-text p {
    margin-bottom: 1.5rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-btns a {
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.hero-btns a:first-child {
    background: var(--accent);
    color: #fff;
}

.hero-btns a:first-child:hover {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.hero-btns a:last-child {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.hero-btns a:last-child:hover {
    background: var(--accent);
    color: white;
}

.hero-image {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 320px;
    border-radius: 50%;
    border: 3px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    transition: transform 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* === ABOUT SECTION === */
#about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#about p {
    font-size: 1rem;
    opacity: 0.9;
}

/* === SKILLS SECTION === */
#skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    text-align: center;
    padding: 20px 10px;
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   PROJECTS SECTION - UPDATED WITH IMAGES & BUTTONS
   ========================================================= */
.projects {
  padding: 5rem 8%;
  text-align: center;
}

.projects-h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.project-img:hover {
  transform: scale(1.03);
}

.project-h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-p {
  color: #475569;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.view-btn,
.github-btn {
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.view-btn:hover,
.github-btn:hover {
  color: #fff;
  transform: scale(1.05);
  background-color: var(--accent);
}

.project-card:hover .project-img {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* === CONTACT SECTION === */
#contact {
  padding: 60px 10%;
  text-align: center;
  background: #f1f3f5;
}

#contact h2 {
  font-size: 2.2rem;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

#contact p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Contact Links */
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: white;
  padding: 12px 20px;
  border-radius: 8px;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.contact-links a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-4px);
}

.contact-links i {
  font-size: 20px;
}

/* Contact Form */
.contact-form {
  display: flex;
  justify-content: center;
}

.contact-form form {
  width: 100%;
  max-width: 500px;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 5px var(--accent);
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 25px 10%;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #home {
    flex-direction: column;
    text-align: center;
    }

    .hero-text,
    .hero-image {
    flex: 1 1 100%;
    }

    header {
    flex-direction: column;
    gap: 10px;
    }
}

/* Work-in-progress (WIP) project card */
.project-card.wip {
  position: relative;
  overflow: hidden;
}

.project-card.wip .project-img {
  filter: grayscale(80%);
  opacity: 0.8;
  transition: all 0.4s ease;
}

.project-card.wip .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(60, 60, 60, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(2px);
  transition: all 0.4s ease;
}

/* Hover effect */
.project-card.wip:hover .overlay {
  background: rgba(60, 60, 60, 0.4);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.project-card.wip:hover .project-img {
  filter: grayscale(60%);
  opacity: 1;
}
