/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* GLOBAL CONTAINERS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVIGATION BAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  transition: all 0.3s ease;
}

.Logo {
  text-decoration: none;
  color: white;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #666;
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #666, #999);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* HERO SECTION */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 150px 0 100px;
  color: #fff;
}

.hero-video,
.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  z-index: -3;
  pointer-events: none;
  filter: brightness(0.35) contrast(1.05) saturate(0.95);
}

.video-overlay {
  position: fixed;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 */
  z-index: -2;
  background-color: transparent;
  /* set rgba(...) if you want dimming */
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
  opacity: 0;
  font-size: 70px;
  animation: fadeInUp 1s ease forwards;
}

.title-line-2 {
  display: block;
  font-size: 35px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-size: 20px;
  color: #999;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.4s;
}

/* Hero Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PROJECTS SECTION */
.projects {
  padding: 30px 0;
  padding-top: 100px;
  margin-top: -110px;
}

.projects .title-line {
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
  display: block;
  opacity: 0;
  font-size: 60px;
  animation: fadeInUp 1s ease forwards;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 60px 40px;
}

.project-card {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-image {
  height: 250px;
  overflow: hidden;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 18px;
  transition: all 0.3s ease;
}

.placeholder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover .placeholder-image {
  transform: scale(1.05);
}

.project-content {
  padding: 30px;
}

.project-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.project-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title a:hover {
  color: #fff;
}

.project-title span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85em;
  font-weight: 400;
}

.project-description {
  color: #999;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Project Tech Tags */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #ccc;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}

/* Project Links/Buttons */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 22px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.08));
  color: #fff;
}

.project-link.primary {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.3);
}

.project-link.primary:hover {
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0.12));
  border-color: rgba(255, 255, 255, 0.45);
}

.button-container {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 0;
}

/* ABOUT SECTION */
.about {
  padding: 10px 0;
  position: relative;
  scroll-margin-top: 210px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-text {
  text-align: left;
}

.about-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Profile Photo */
.about-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.about-photo:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-badge {
  display: inline-block;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease forwards;
}

.about-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #999999 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease forwards 0.2s;
  opacity: 0;
}

.about-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeInUp 0.8s ease forwards 0.4s;
  opacity: 0;
}

.about-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease forwards 0.6s;
  opacity: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease forwards 0.8s;
  opacity: 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #999999);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* SKILLS & EXPERIENCE */
.skills-experience {
  padding: 50px 0;
  margin-top: 40px;
}

.skills-exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 40px;
  color: #ffffff;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.experience-item {
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.experience-item:hover {
  transform: translateX(10px);
}

.exp-role {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.exp-company {
  font-size: 16px;
  color: #999;
  margin-bottom: 5px;
}

.exp-duration {
  font-size: 14px;
  color: #666;
}

/* COMMON BUTTONS */
.common-button {
  display: inline-block;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 18px 45px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.common-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.08));
}

.common-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.5s ease;
}

.common-button:hover::before {
  left: 100%;
}

.common-button::after {
  content: "→";
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.common-button:hover::after {
  transform: translateX(5px);
}

/* FOOTER */
.footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-link {
  color: #999;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* RESPONSIVE DESIGN */

/* Tablet */
@media (max-width: 768px) {
  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .title-line {
    font-size: 50px !important;
  }

  .title-line-2 {
    font-size: 25px !important;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-exp-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    gap: 20px;
  }

  .container {
    padding: 0 15px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 24px;
  }

  .project-title {
    font-size: 20px;
  }
}