/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #f4f7fa;
  scroll-behavior: smooth;
}

header {
  background: #181a1b;
  color: #fff;
  padding: 1.2rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.3s;
}

header .logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #00bcd4;
}

header nav {
  display: flex;
  gap: 2rem;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

header nav a:hover {
  color: #00bcd4;
  border-bottom: 2px solid #00bcd4;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  background: linear-gradient(120deg, #00bcd4 0%, #2196f3 100%);
  color: #fff;
  text-align: center;
  padding: 7rem 2rem 6rem 2rem;
  animation: fadeIn 1s forwards;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  animation: slideIn 1s;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero a {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: #fff;
  color: #2196f3;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.hero a:hover {
  background: #e3f7fa;
  color: #00bcd4;
  transform: translateY(-3px) scale(1.05);
}

/* Section Styles */
section {
  padding: 5rem 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s forwards;
  background: #fff;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  color: #222;
  font-weight: 700;
  position: relative;
  letter-spacing: 1px;
}

.section-title:after {
  content: '';
  width: 60px;
  height: 3px;
  background: #00bcd4;
  display: block;
  margin: 0.7rem auto 0 auto;
  border-radius: 2px;
  animation: growBar 1s;
}

/* Experience Section */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.experience-item {
  background: #f4f7fa;
  border-left: 5px solid #00bcd4;
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,188,212,0.04);
}

.experience-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #2196f3;
}

.experience-item p, .experience-item ul {
  margin: 0.3rem 0 0 0;
  color: #444;
  font-size: 1rem;
}

.experience-item ul {
  padding-left: 1.2rem;
}

/* Skills Section */
.skills ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.skills ul li {
  background: #e3f7fa;
  color: #2196f3;
  padding: 1rem 1.7rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,188,212,0.07);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.skills ul li:hover {
  background: #00bcd4;
  color: #fff;
  transform: translateY(-4px) scale(1.05);
}

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

.projects .project {
  background: #f4f7fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.projects .project:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,188,212,0.13);
}

.projects img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s;
}

.projects .project:hover img {
  transform: scale(1.07);
}

.projects .project-info {
  padding: 1.2rem 1rem 1.5rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects h3 {
  font-size: 1.15rem;
  margin: 0 0 0.7rem 0;
  color: #2196f3;
  transition: color 0.3s;
}

.projects h3:hover {
  color: #00bcd4;
}

.projects .project-info p {
  color: #444;
  font-size: 1rem;
  margin: 0;
}

/* Articles Section */
.articles ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.articles ul li {
  margin-bottom: 1.2rem;
  font-size: 1.07rem;
}

.articles ul li a {
  color: #2196f3;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.articles ul li a:hover {
  color: #00bcd4;
  text-decoration: underline;
}

/* Contact Section */
.contact ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.contact ul li {
  background: #e3f7fa;
  color: #2196f3;
  padding: 1rem 1.5rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,188,212,0.07);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.contact ul li a {
  color: #2196f3;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.contact ul li a:hover {
  color: #00bcd4;
  text-decoration: underline;
}

.contact ul li:hover {
  background: #00bcd4;
  color: #fff;
  transform: translateY(-4px) scale(1.05);
}

.contact ul li:hover a {
  color: #fff;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #181a1b;
  color: #fff;
  font-size: 1rem;
  border-radius: 0 0 18px 18px;
}

footer a {
  color: #00bcd4;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #66d9ff;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes slideIn {
  from { transform: translateX(-100%);}
  to { transform: translateX(0);}
}
@keyframes growBar {
  from { width: 0;}
  to { width: 60px;}
}

/* Responsive Design */
@media (max-width: 1024px) {
  section {
    padding: 3.5rem 1rem;
  }
  .hero {
    padding: 5rem 1rem 4rem 1rem;
  }
}

@media (max-width: 768px) {
  header nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 220px;
    background: #181a1b;
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px 30px 30px;
    gap: 1.5rem;
    transition: right 0.3s;
    box-shadow: -2px 0 12px rgba(0,0,0,0.12);
  }
  header nav.active {
    right: 0;
  }
  .hamburger {
    display: block;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .projects .project-grid {
    grid-template-columns: 1fr;
  }
  .skills ul li, .contact ul li {
    padding: 0.8rem 1rem;
    font-size: 0.98rem;
  }
  section {
    padding: 2.5rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 0.5rem 2.5rem 0.5rem;
  }
  .hero h1 {
    font-size: 1.4rem;
  }
  .hero p {
    font-size: 0.92rem;
  }
  .hero a {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .skills ul, .contact ul {
    gap: 0.5rem;
  }
  .skills ul li, .contact ul li {
    padding: 0.6rem 0.7rem;
    font-size: 0.92rem;
  }
  section {
    padding: 1.2rem 0.2rem;
    border-radius: 10px;
  }
  footer {
    border-radius: 0 0 10px 10px;
    font-size: 0.95rem;
  }
}