/*
Theme Name: Portfolio Awwwards
Author: Amir
Version: 2.0
Description: An animated one-page portfolio theme built with GSAP + Lenis smooth scroll.
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: portfolio-awwwards
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #0b0b0f;
  color: white;
  overflow-x: hidden;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
}

section h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 0 0 16px;
}

/* HERO typography */
.title {
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 1.08;
  margin: 0 0 20px;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.subtitle {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: #b3b3c2;
  margin: 0;
}

/* ABOUT / CONTACT body text */
.about p,
.contact p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: #d0d0db;
  max-width: 700px;
}

.contact p {
  margin-left: auto;
  margin-right: auto;
}

/* SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #5a5aff, #b66bff);
  z-index: 9999;
}

/* CUSTOM CURSOR */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-ring.is-active {
  width: 60px;
  height: 60px;
  border-color: #8a8aff;
}

@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* NAVIGATION */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 80px;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(11, 11, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 80px;
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.nav-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #b3b3c2;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: #8a8aff;
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 9001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-nav,
  .site-nav.is-scrolled {
    padding: 18px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: #0b0b0f;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .nav-links a {
    font-size: 22px;
  }

  .site-nav.is-open .nav-links {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
}
.title .letter {
  display: inline-block;
  will-change: transform, opacity;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #2b2b40, #0b0b0f);
  z-index: -1;
}

/* ABOUT */
.about {
  background: #12121a;
}

/* SKILLS */
.skills {
  background: #1a1a25;
}

/* SKILLS MARQUEE */
.skills-marquee {
  margin-top: 40px;
  overflow: hidden;
  display: flex;
  width: 100%;
}

.skills-track {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  padding-right: 16px;
  animation: marquee 18s linear infinite;
}

.skills-marquee:hover .skills-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.skill {
  flex-shrink: 0;
  font-size: 16px;
  padding: 10px 22px;
  border: 1px solid #2a2a38;
  border-radius: 999px;
  background: #1a1a25;
  white-space: nowrap;
}

/* PROJECTS */
.projects {
  background: #0f0f16;
}

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

.project-card {
  background: #1a1a25;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #2a2a38;
  transition: border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card:hover {
  border-color: #5a5aff;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 16px;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.project-card p {
  margin: 0 0 14px;
  color: #b3b3c2;
  font-size: 15px;
  line-height: 1.5;
}

.project-link {
  color: #8a8aff;
  text-decoration: none;
  font-size: 14px;
}

.project-link:hover {
  text-decoration: underline;
}

.projects-empty {
  color: #8a8a99;
}

/* CONTACT */
.contact {
  background: #12121a;
  text-align: center;
  align-items: center;
}

.contact-email {
  display: inline-block;
  margin-top: 20px;
  font-size: 22px;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid #5a5aff;
}

.contact-socials {
  margin-top: 24px;
  display: flex;
  gap: 24px;
}

.contact-socials a {
  color: #b3b3c2;
  text-decoration: none;
  font-size: 14px;
}

.contact-socials a:hover {
  color: #ffffff;
}

/* FOOTER */
.site-footer {
  padding: 30px 80px;
  text-align: center;
  background: #0b0b0f;
  color: #6a6a78;
  font-size: 13px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  section {
    padding: 60px 40px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 50px 24px;
  }

  .site-footer {
    padding: 24px 24px;
  }

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

  .project-card {
    padding: 20px;
  }

  .skill {
    font-size: 14px;
    padding: 8px 16px;
  }

  .contact-socials {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .contact-email {
    font-size: 18px;
    word-break: break-all;
  }
}

@media (max-width: 380px) {
  section {
    padding: 40px 18px;
  }

  .title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}
