@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(120deg, #0f2027, #203a43, #2c5364);
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1200px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

/* LOGO */
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* underline animation */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #00ffd5;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* BUTTON */
.nav-links .btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, #00ffd5, #00c3ff);
  color: #000;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links .btn::after {
  display: none;
}

/* HAMBURGER */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.menu-icon span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(15, 32, 39, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    display: none;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 1rem;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }
}


/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background: url("https://images.unsplash.com/photo-1531482615713-2afd69097998?auto=format&fit=crop&w=1500&q=80")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 8%;
  color: white;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Content */
.hero-content {
  position: relative;
  max-width: 650px;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #4f46e5;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 30px;
  transition: 0.3s ease;
}

.hero-btn:hover {
  background: #4338ca;
  transform: translateY(-2px);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    padding: 0 6%;
    text-align: center;
  }

  .hero-content {
    margin: auto;
  }
}



/* SKILLS SECTION */
.skills-section {
  /* height: 100vh; */
  padding: 100px 8%;
  background: #0f172a;
  color: #fff;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 60px;
}

/* Layout */
.skills-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

/* Image */
.skills-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* Cards */
.skills-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 18px;
  transition: 0.4s ease;
  backdrop-filter: blur(10px);
}

.skill-card i {
  font-size: 2.2rem;
  color: #6366f1;
  margin-bottom: 15px;
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 10px;
}

.skill-card span {
  font-size: 0.85rem;
  color: #a5b4fc;
}

/* Hover effect */
.skill-card:hover {
  transform: translateY(-10px);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 15px 40px rgba(99,102,241,0.4);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .skills-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .skills-image {
    max-width: 450px;
    margin: auto;
  }
}





/* HORIZONTAL SCROLL SECTION */
.horizontal-scroll {
  height: 100vh;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.scroll-wrapper {
  width: 100%;
  overflow: hidden;
}

.scroll-text {
  white-space: nowrap;
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 800;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px #6366f1;
  letter-spacing: 4px;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .scroll-text {
    -webkit-text-stroke: 1.5px #6366f1;
    letter-spacing: 2px;
  }
}




/* FIFTH SECTION */
.horizontal-gallery {
  height: 100vh;
  overflow: hidden;
  background: #020617;
}

.gallery-track {
  display: flex;
  width: 200vw;
  height: 100%;
}

/* Individual panels */
.gallery-panel {
  width: 100vw;
  height: 100%;
  padding: 80px 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-panel h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 40px;
  color: #fff;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  transition: 0.5s ease;
  filter: grayscale(40%);
}

/* Hover effect */
.gallery-grid img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
  box-shadow: 0 20px 50px rgba(99,102,241,0.5);
}

/* Alternate layout */
.gallery-grid.alt {
  grid-template-columns: repeat(4, 1fr);
}

/* Background accents */
.panel-one {
  background: linear-gradient(135deg, #020617, #020617);
}

.panel-two {
  background: linear-gradient(135deg, #020617, #020617);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery-grid,
  .gallery-grid.alt {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 220px;
  }
}
