/* ===== CSS Variables ===== */
:root {
  --primary-color: #0a192f;
  --secondary-color: #64ffda;
  --text-color: #8892b0;
  --light-text: #ccd6f6;
  --bg-color: #0a192f;
  --bg-light: #112240;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("wallpaper.png");
  background-size: cover;
  background-position: top center;
  opacity: 0.35;
  z-index: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: "Courier New", monospace;
}

.hero-name {
  font-size: 3.5rem;
  color: var(--light-text);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-title {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-block;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.hero-social {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  height: 500px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 0 60px rgba(100, 255, 218, 0.4);
  animation: pulse 2s ease-in-out infinite;
  border: 8px solid var(--secondary-color);
  opacity: 0.9;
  transition: var(--transition);
}

.hero-img:hover {
  transform: scale(1.05);
  opacity: 1;
  box-shadow: 0 0 80px rgba(100, 255, 218, 0.6);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.3);
  }
  50% {
    box-shadow: 0 0 60px rgba(100, 255, 218, 0.5);
  }
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 2.5rem;
  color: var(--light-text);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== About Section ===== */
.about {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-color);
}

.about-text strong {
  color: var(--secondary-color);
}

.about-info {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
}

.info-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* ===== Skills Section ===== */
.skills {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 10px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.skill-category:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px);
}

.skill-category h3 {
  color: var(--light-text);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category h3 i {
  color: var(--secondary-color);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  border: 1px solid var(--secondary-color);
  transition: var(--transition);
}

.skill-tag:hover {
  background-color: rgba(100, 255, 218, 0.2);
  transform: scale(1.05);
}

/* ===== Experience Section ===== */
.experience {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--secondary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 4px solid var(--bg-color);
  box-shadow: 0 0 0 4px var(--secondary-color);
}

.timeline-content {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  width: calc(50% - 40px);
  transition: var(--transition);
  border: 1px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-content:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px);
}

.timeline-header h3 {
  color: var(--light-text);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-header .company {
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline-header .location {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.timeline-header .location i {
  color: var(--secondary-color);
  margin-right: 0.3rem;
}

.timeline-header .duration {
  color: var(--text-color);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.timeline-details {
  list-style: none;
  padding-left: 0;
}

.timeline-details li {
  color: var(--text-color);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.timeline-details li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* ===== Projects Section ===== */
.projects {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 10px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.project-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px);
}

.project-header {
  margin-bottom: 1.5rem;
}

.project-header h3 {
  color: var(--light-text);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-subtitle {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.project-type {
  color: var(--text-color);
  font-size: 0.9rem;
  font-style: italic;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--secondary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 0.85rem;
  border: 1px solid var(--secondary-color);
}

.project-details {
  list-style: none;
  padding-left: 0;
}

.project-details li {
  color: var(--text-color);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.project-details li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* ===== Education Section ===== */
.education {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.education-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.education-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px);
}

.education-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.education-content h3 {
  color: var(--light-text);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.education-content .institution {
  color: var(--secondary-color);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.education-content .duration {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.education-content .grade {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

/* ===== Contact Section ===== */
.contact {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-description {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.contact-item h4 {
  color: var(--light-text);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contact-item p {
  color: var(--text-color);
  font-size: 0.95rem;
}

.contact-social {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
  border: 2px solid var(--secondary-color);
  text-decoration: none;
}

.social-btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-color);
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
  color: var(--light-text);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--bg-color);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer p {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--light-text);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-light);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-img {
    width: 100%;
    max-width: 300px;
    height: 300px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-marker {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 70px);
    margin-left: 70px !important;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-info {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .skills-grid,
  .projects-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }
}
