/* ===================================
   Global Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
.name {
  font-family: "Space Mono", "Courier New", monospace;
}

/* ===================================
   Container
   =================================== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===================================
   Header
   =================================== */
header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.2);
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #64ffda, transparent);
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 0%, #64ffda 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header .title {
  font-size: 1.15rem;
  animation: fadeIn 0.6s ease-out;
}

header .contact {
  margin-top: 20px;
}

header .contact span {
  transition: color 0.3s ease;
}

header .contact span:hover {
  color: #64ffda;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===================================
   Typography
   =================================== */
h2 {
  font-size: 1.6rem;
  margin-bottom: 25px;
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  position: relative;
  color: #ffffff;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #64ffda, transparent);
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
}

/* ===================================
   Sections
   =================================== */
section {
  margin-bottom: 40px;
}

/* ===================================
   Skills
   =================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.skill-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  border-color: rgba(100, 255, 218, 0.4);
  box-shadow:
    0 8px 30px rgba(100, 255, 218, 0.2),
    0 0 20px rgba(100, 255, 218, 0.1);
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item h3 {
  font-size: 1.1rem;
  color: #64ffda;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.skill-item p {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ===================================
   Experience
   =================================== */
.job {
  margin-bottom: 35px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #64ffda;
  border-radius: 10px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.job::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #64ffda, transparent);
  transition: width 0.4s ease;
}

.job:hover {
  transform: translateX(5px);
  background: rgba(100, 255, 218, 0.05);
  box-shadow: 0 5px 25px rgba(100, 255, 218, 0.15);
}

.job:hover::before {
  width: 5px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.job-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0;
  color: #64ffda;
}

.period {
  color: #888888;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 300;
}

.job-title {
  color: #aaaaaa;
  font-size: 1.05rem;
  margin-bottom: 18px;
  font-style: italic;
  font-weight: 300;
}

.job ul {
  list-style-position: outside;
  padding-left: 25px;
}

.job ul li {
  margin-bottom: 12px;
  color: #cccccc;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.job ul li:hover {
  color: #ffffff;
}

.job ul li strong {
  color: #64ffda;
  font-weight: 600;
}

/* ===================================
   Education
   =================================== */
.education-item {
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #64ffda;
  border-radius: 10px;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.education-item:hover {
  transform: translateX(5px);
  background: rgba(100, 255, 218, 0.05);
  box-shadow: 0 5px 25px rgba(100, 255, 218, 0.15);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.education-header h3 {
  margin-bottom: 0;
  color: #64ffda;
}

/* ===================================
   Home Page Styles
   =================================== */
.home-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.avatar-wrapper {
  text-align: center;
  margin-bottom: 20px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: translateY(-5px);
}

.intro {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  /* border-bottom: 1px solid #333333; */
}

.home-container .name {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.home-container .role {
  font-size: 1rem;
  color: #999999;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
}

.bio {
  font-size: 1rem;
  line-height: 1.8;
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto;
  text-align: justify;
}

.tech-stack {
  font-size: 0.9rem;
  /* color: #888888; */
  margin-top: 20px;
  margin-bottom: 30px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.tech-label {
  /* color: #ffffff; */
  font-weight: 600;
}

/* ===================================
   Social Icons
   =================================== */
.social-icons {
  display: flex;
  /* justify-content: center; */
  gap: 20px;
  margin: 40px 0 30px;
}

.social-icon {
  color: #8892b0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: #64ffda;
  transform: translateY(-3px);
}

/* ===================================
   Resume Button
   =================================== */
.resume-button-wrapper {
  display: flex;
  margin-bottom: 10px;
  padding-bottom: 10px;
  gap: 15px;
}

.resume-button {
  padding: 5px 20px;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 3.40282e38px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
}

.resume-button:hover {
  background-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.resume-button-dark {
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.resume-button-dark:hover {
  background-color: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ===================================
   Quick Info
   =================================== */
.quick-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

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

.info-item .label {
  font-size: 0.85rem;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.info-item .value {
  font-size: 0.95rem;
  color: #ffffff;
}

/* ===================================
   Back Button
   =================================== */
.back-button {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 12px 24px;
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 8px;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.back-button:hover {
  background: rgba(100, 255, 218, 0.1);
  border-color: #64ffda;
  color: #64ffda;
  transform: translateX(-3px);
  box-shadow: 0 5px 20px rgba(100, 255, 218, 0.2);
}

/* ===================================
   Contact Page Styles
   =================================== */
.contact-section {
  margin-top: 50px;
}

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

.contact-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 35px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.contact-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.2), transparent);
  transition:
    width 0.5s ease,
    height 0.5s ease;
}

.contact-item:hover::before {
  width: 300px;
  height: 300px;
}

.contact-item:hover {
  border-color: rgba(100, 255, 218, 0.4);
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 12px 35px rgba(100, 255, 218, 0.25),
    0 0 25px rgba(100, 255, 218, 0.15);
}

.contact-item h3 {
  margin-bottom: 18px;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
  color: #64ffda;
}

.contact-item p {
  color: #cccccc;
  position: relative;
  z-index: 1;
}

.contact-item a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.contact-item a:hover {
  color: #64ffda;
}

/* ===================================
   Footer
   =================================== */
footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #888888;
  font-size: 0.9rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  header h1 {
    font-size: 2.2rem;
  }

  header .contact {
    flex-direction: column;
    gap: 12px;
  }

  h2 {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }

  h2::after {
    width: 60px;
  }

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

  .job-header,
  .education-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .job {
    padding: 20px;
  }

  /* Home Page Mobile */
  .home-container {
    padding: 40px 20px;
  }

  .home-container .name {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .home-container .role {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .bio {
    font-size: 0.95rem;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .social-icons {
    gap: 15px;
    margin: 30px 0 20px;
  }

  .resume-button {
    padding: 12px 32px;
    font-size: 0.9rem;
  }

  .quick-info {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .home-container .name {
    font-size: 1.8rem;
  }

  .social-icons {
    gap: 12px;
  }

  .social-icon svg {
    width: 20px;
    height: 20px;
  }
}
