@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0c0f18;
  color: white;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: rgba(12, 15, 24, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
}

.logo span {
  color: #6c63ff;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  opacity: 0.8;
  transition: 0.3s;
}

.nav-links a:hover {
  opacity: 1;
  color: #6c63ff;
}

.menu-btn {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
}

/* HERO */
.hero {
  padding: 120px 8% 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  min-height: 100vh;
}

.hero-text {
  flex: 1;
}

.tagline {
  color: #6c63ff;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text h1 span {
  background: linear-gradient(90deg, #6c63ff, #ff4ecd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  opacity: 0.8;
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 35px;
}

/* BUTTONS */
.btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: 0.25s ease;
  cursor: pointer;
}

.primary {
  background: linear-gradient(90deg, #6c63ff, #ff4ecd);
  color: white;
}

.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0px 10px 30px rgba(108, 99, 255, 0.35);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.full {
  width: 100%;
  border: none;
}

/* HERO IMAGE */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-card {
  width: 360px;
  height: 460px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0px 20px 80px rgba(0, 0, 0, 0.6);
  transform: rotate(2deg);
  transition: 0.4s;
}

.image-card:hover {
  transform: rotate(0deg) scale(1.03);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* STATS */
.stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 15px;
  border-radius: 14px;
  width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.5);
}

.stat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* SECTIONS */
.section {
  padding: 90px 8%;
}

.dark {
  background: rgba(255, 255, 255, 0.03);
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.section-subtitle {
  opacity: 0.75;
  margin-bottom: 50px;
  max-width: 700px;
}

/* SERVICES GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 78, 205, 0.5);
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  opacity: 0.75;
  line-height: 1.5;
}

/* PORTFOLIO */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-7px);
}

.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-content {
  padding: 20px;
}

.portfolio-content p {
  opacity: 0.75;
  margin: 10px 0 15px;
}

.small-btn {
  text-decoration: none;
  font-weight: 700;
  color: #6c63ff;
}

.small-btn:hover {
  text-decoration: underline;
}

/* ABOUT */
.about-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.about-text p {
  opacity: 0.75;
  margin-bottom: 15px;
  line-height: 1.7;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* SKILLS */
.skills {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.2);
  border: 1px solid rgba(108, 99, 255, 0.3);
  font-size: 0.9rem;
}

/* REVIEWS */
.review-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.review-card p {
  opacity: 0.75;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* CONTACT FORM */
.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  outline: none;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(108, 99, 255, 0.6);
}

.form-status {
  margin-top: 10px;
  font-weight: 600;
}

/* FOOTER */
.footer {
  padding: 35px 8%;
  text-align: center;
  opacity: 0.7;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.slide-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .stats {
    justify-content: center;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .about-wrapper {
    flex-direction: column;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 8%;
    background: rgba(12, 15, 24, 0.95);
    flex-direction: column;
    padding: 20px;
    border-radius: 15px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}

/* FOOTER ICONS */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-icons {
  display: flex;
  gap: 20px;
  font-size: 2rem;
}

.footer-icons i {
  transition: 0.3s ease;
  cursor: pointer;
}

.footer-icons i:hover {
  transform: translateY(-5px) scale(1.1);
}

/* INDIVIDUAL ICON COLORS */
.fa-html5 {
  color: #ff5722;
}

.fa-css3-alt {
  color: #2196f3;
}

.fa-js {
  color: #ffd600;
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: white;
  font-size: 1.7rem;
  transition: 0.3s ease;
}

.social-links a:hover {
  color: #6c63ff;
  transform: translateY(-4px);
}

/* BACK TO TOP BUTTON */
#backToTop {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0px 8px 25px rgba(0,0,0,0.35);
  transition: 0.3s ease;
}

#backToTop:hover {
  transform: translateY(-5px) scale(1.08);
}

#backToTop.show {
  display: block;
}