/* Base */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: url("image/ITBACK.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #ccd6f6;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 25, 47, 0.9); /* overlay */
  z-index: -1;
}

/* Header */
header {
  text-align: center;
  padding: 80px 20px 40px;
}
header h1 {
  font-size: 2.5rem;
  color: #64ffda; /* accent green */
}
.typing {
  font-size: 1.2rem;
  color: #8892b0;
  border-right: 2px solid #64ffda;
  padding-right: 5px;
  white-space: nowrap;
  overflow: hidden;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.9), rgba(17, 34, 64, 0.9)),
              url("Image/ITBACK.jpg") no-repeat center center/cover;
  color: #ffffff;
  padding: 0 20px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero-img-wrapper {
  position: relative;
  width: 190px;
  height: 190px;
}

.hero-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  position: relative;
}

.glow-ring {
  position: absolute;
  top: -10px; left: -10px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #64ffda;
  box-shadow: 0 0 20px #64ffda, 0 0 40px #64ffda, 0 0 60px #00bcd4;
  animation: rotateGlow 4s linear infinite, colorShift 6s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes colorShift {
  0% {
    border-color: #64ffda;
    box-shadow: 0 0 20px #044d5f, 0 0 40px #7f54e6, 0 0 60px #f1186b;
  }
  50% {
    border-color: #00bcd4;
    box-shadow:  0 0 20px #044d5f, 0 0 40px #e04cb4, 0 0 60px #c9d615;
  }
  100% {
    border-color: #64ffda;
    box-shadow:  0 0 20px #048d58, 0 0 40px #7f54e6, 0 0 60px #c9d615;
  }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #64ffda;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.6),
               0 0 20px rgba(100, 255, 218, 0.4);
}

.hero .highlight {
  color: #00bcd4;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: #ccd6f6;
}

/* Sections */
section {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
h2 {
  color: #64ffda;
  margin-bottom: 20px;
}

/* Cards */
.card {
  background: rgba(17, 34, 64, 0.85);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(17, 34, 64, 0.95);
  box-shadow: 0 8px 20px rgba(100, 255, 218, 0.4);
  border: 1px solid #64ffda;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-title {
  font-weight: 700; /* bold */
  color: #64ffda; /* cyan accent */
  text-shadow: 0 0 8px rgba(100, 255, 218, 0.7),
               0 0 16px rgba(100, 255, 218, 0.5);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.project-title:hover {
  color: #00bcd4; /* blue-green hover */
  text-shadow: 0 0 12px rgba(0, 188, 212, 0.8),
               0 0 24px rgba(0, 188, 212, 0.6);
}

/* Skills Section */
.skills {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 20px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill-badge {
  background: rgba(100, 255, 218, 0.15);
  color: #64ffda;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #64ffda;
  box-shadow: 0 0 6px rgba(100, 255, 218, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.skill-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px rgba(100, 255, 218, 0.6);
}


/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: rgba(10, 25, 47, 0.95);
  border-top: 1px solid #64ffda;
}
footer a {
  color: #64ffda;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  header h1 {
    font-size: 1.6rem;
  }
  .typing {
    font-size: 1rem;
  }
}
