@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #5f9ea0 0%, #4a7a7c 100%);
  color: #ededed;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND CANVAS ===== */
#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===== GLOBAL ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

h2 {
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #e5e7eb;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* ===== NAVBAR ===== */
#navbar {
  position: sticky;
  top: 0;
  background: rgba(95, 158, 160, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #ededed;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 10px;
}

.nav-links li {
  margin-left: 15px;
}

.nav-links a {
  text-decoration: none;
  color: #ededed;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
  background: rgba(0, 171, 240, 0.2);
  color: #00abf0;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-left: 15px;
  color: #ededed;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
}

#theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(15deg);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #ededed;
  padding: 8px;
}

/* ===== HERO ===== */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid #00abf0;
  box-shadow: 0 10px 30px rgba(0, 171, 240, 0.3);
  transition: transform 0.3s;
}

.profile-img:hover {
  transform: scale(1.05);
}

.hero-container h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.highlight {
  color: #00abf0;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e5e7eb;
  margin-bottom: 10px;
}

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

.btn {
  padding: 12px 28px;
  background: #00abf0;
  color: #081b29;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background: #0096d6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 171, 240, 0.4);
}

.secondary-btn {
  background: transparent;
  border: 2px solid #00abf0;
  color: #00abf0;
}

.secondary-btn:hover {
  background: #00abf0;
  color: #081b29;
}

/* ===== ABOUT ===== */
#about {
  background: rgba(255, 255, 255, 0.05);
}

#about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.8;
}

/* ===== MULTI-COLUMN SKILLS GRID ===== */
.skills-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.skill-category-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 25px;
  border: 2px solid rgba(0, 171, 240, 0.2);
  transition: all 0.3s;
}

.skill-category-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 171, 240, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 171, 240, 0.2);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(0, 171, 240, 0.3);
}

.category-header i {
  font-size: 1.5rem;
  color: #00abf0;
}

.category-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00abf0;
  margin: 0;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ededed;
}

.skill-info i {
  font-size: 1.2rem;
  color: #00abf0;
  width: 20px;
  text-align: center;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #00abf0 0%, #0096d6 100%);
  border-radius: 10px;
  transition: width 1.5s ease;
  box-shadow: 0 0 10px rgba(0, 171, 240, 0.5);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skill-percent {
  font-size: 0.85rem;
  font-weight: 600;
  color: #00abf0;
  align-self: flex-end;
  margin-top: -5px;
}

/* ===== PROJECTS ===== */
#projects {
  background: rgba(255, 255, 255, 0.05);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: #ffffff;
  color: #000;
  padding: 0;
  border-radius: 12px;
  transition: transform 0.4s, box-shadow 0.4s;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.project-card h3,
.project-card p,
.project-card .project-link {
  padding: 0 20px;
}

.project-card h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #081b29;
}

.project-card p {
  margin-bottom: 20px;
  color: #4a5568;
  line-height: 1.6;
}

.project-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #00abf0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.project-link:hover {
  color: #0096d6;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 171, 240, 0.4);
}

/* ===== PROJECT TECH BADGES ===== */
.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 20px;
}

.tech-badge {
  background: #00abf0;
  color: #081b29;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
}

.tech-badge:hover {
  background: #0096d6;
  transform: scale(1.05);
}

/* ===== PROJECT LINKS CONTAINER ===== */
.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 20px 20px 20px;
}

.project-link.secondary {
  background: #6c757d;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-link.secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* ===== CERTIFICATES ===== */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.certificate-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s;
  border: 2px solid rgba(0, 171, 240, 0.2);
}

.certificate-card:hover {
  background: rgba(0, 171, 240, 0.15);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 171, 240, 0.3);
  border-color: rgba(0, 171, 240, 0.5);
}

.certificate-icon {
  font-size: 3.5rem;
  color: #00abf0;
  margin-bottom: 20px;
}

.certificate-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #ededed;
  font-weight: 600;
}

.certificate-issuer {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.certificate-date {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.certificate-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #00abf0;
  color: #081b29;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
}

.certificate-link:hover {
  background: #0096d6;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 171, 240, 0.4);
}

/* ===== CONTACT ===== */
.contact-container {
  text-align: center;
}

.contact-intro {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #e5e7eb;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-decoration: none;
  color: #ededed;
  transition: all 0.3s;
}

.contact-item:hover {
  background: rgba(0, 171, 240, 0.2);
  transform: translateX(10px);
}

.contact-item i {
  font-size: 1.5rem;
  color: #00abf0;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 30px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

footer p {
  color: #e5e7eb;
  font-size: 0.95rem;
}

/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== DARK MODE ===== */
body.dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e5e7eb;
}

body.dark #navbar {
  background: rgba(15, 23, 42, 0.95);
}

body.dark .project-card {
  background: #1e293b;
  color: #e5e7eb;
}

body.dark .project-card h3 {
  color: #e5e7eb;
}

body.dark .project-card p {
  color: #cbd5e1;
}

body.dark #about {
  background: rgba(0, 0, 0, 0.2);
}

body.dark #projects {
  background: rgba(0, 0, 0, 0.2);
}

body.dark .skill-category-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 171, 240, 0.3);
}

body.dark .skill-category-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.dark .skill-bar {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .certificate-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 171, 240, 0.3);
}

body.dark .certificate-card:hover {
  background: rgba(0, 171, 240, 0.1);
}

body.dark .tech-badge {
  background: #00abf0;
  color: #081b29;
}

body.dark .project-link.secondary {
  background: #475569;
  color: #e5e7eb;
}

body.dark .project-link.secondary:hover {
  background: #64748b;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(95, 158, 160, 0.98);
    width: 100%;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  body.dark .nav-links {
    background: rgba(15, 23, 42, 0.98);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero-container h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .skills-grid-container {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .project-link,
  .project-link.secondary {
    width: 100%;
    justify-content: center;
  }
  
  .project-tech {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .profile-img {
    width: 140px;
    height: 140px;
  }

  .logo {
    font-size: 20px;
  }

  section {
    padding: 60px 0;
  }

  .certificate-icon {
    font-size: 2.5rem;
  }

  .certificate-card h3 {
    font-size: 1.1rem;
  }

  .skill-category-card {
    padding: 20px;
  }

  .category-header h3 {
    font-size: 1rem;
  }
}

