:root {
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'DM Sans', sans-serif;

  --color-bg: #000000;
  --color-text: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.75);
  --color-accent: #aaaaff;
  --color-loader: #3498db;
  --color-loader-bg: #f3f3f3;
  --color-border: #222222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* NAVBAR */
.nav-wrapper {
  padding: 2rem 1.5rem;
}

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

.logo-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: rotate(5deg) scale(1.1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
  display: inline-block;
  perspective: 600px;
}

.text-layer {
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
  font-weight: 400;
  white-space: nowrap;
}

.front {
  transform: translateY(0);
  opacity: 1;
}

.back {
  transform: translateY(20px);
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.nav-item:hover .front {
  transform: translateY(-20px);
  opacity: 0;
}

.nav-item:hover .back {
  transform: translateY(0);
  opacity: 1;
}

/* HERO SECTION */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  gap: 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

.hero-title .line1 {
  font-weight: 300;
  color: var(--color-text-muted);
}

.hero-title .line2 {
  font-weight: 700;
  background: linear-gradient(90deg, var(--color-text), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 750px;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
}

.myself-btn {
  display: inline-flex;
  align-items: center;
  min-width: 135px;
  height: 40px;
  padding-left: 0.4rem;
  padding-right: 1rem;
  background-color: var(--color-text);
  color: var(--color-bg);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.6px;
  border-radius: 999px;
  transition: transform 0.3s ease;
  border: none;
  gap: 0.8rem;
}

.myself-btn .circle {
  width: 34px;
  height: 34px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.myself-btn .arrow {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.myself-btn:hover {
  transform: scale(1.05);
}

.myself-btn:hover .circle {
  transform: translate(6px, -6px);
}

.myself-btn:hover .arrow {
  transform: translate(2px, -2px);
}

/* WORK SECTION */
.new-section {
  padding: 4rem 1.5rem;
  text-align: center;
}

.new-section h2 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 4rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  justify-items: center;
  align-items: start;
}

.work-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 550px;
}

.mockup {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-text);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  transition: transform 0.3s ease;
  position: relative;
}

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

.mockup:hover {
  transform: translateY(-5px);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: rgba(0, 0, 0, 0.5);
}

.overlay img {
  width: 50px;
  height: 50px;
}

.mockup:hover .overlay {
  opacity: 1;
}

.info-bar {
  background: var(--color-bg);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  margin-top: 1rem;
}

.project-title {
  font-weight: 500;
  font-size: 1.2rem;
}

.project-year {
  font-weight: 300;
  opacity: 0.7;
}

/* ABOUT PAGE */
.about-main-content {
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.about-section {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 0;
  text-align: center;
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
}

.about-text h1 em {
  font-weight: 500;
  font-style: italic;
}

.about-text p {
  font-family: var(--font-secondary);
  margin-top: 1.8rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.7;
  text-align: left;
}

.about-image {
  width: 100%;
  max-width: 320px;
  height: 520px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* FOOTER */
.site-footer {
  background-color: var(--color-bg);
  padding: 12rem 1.5rem 3rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10rem;
}

.connect-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.lets-connect-svg {
  max-width: 90%;
  height: auto;
}

.footer-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 3rem;
}

.copyright {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 300;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.social-links .nav-item {
  font-size: 14px;
  letter-spacing: 1px;
}

/* UTILITIES */
#case-study-container {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.loader {
  border: 5px solid var(--color-loader-bg);
  border-top: 5px solid var(--color-loader);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* MEDIA QUERIES */
@media (min-width: 768px) {
  .nav-wrapper {
    padding: 3rem 4rem;
  }

  .nav-links {
    gap: 3rem;
  }

  .hero-section, .new-section, .site-footer {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .about-main-content {
    padding: 0 4rem;
  }

  .about-section {
    flex-direction: row;
    text-align: left;
    gap: 5rem;
    padding: 6rem 0;
  }

  .about-image {
    max-width: 380px;
  }

  .footer-content {
    flex-direction: row;
    gap: 2rem;
  }

  .social-links {
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .nav-wrapper {
    padding: 4rem 6rem;
  }

  .nav-links {
    gap: 5rem;
  }

  .about-section {
    gap: 9rem;
  }
}

#case-study-container img {
  max-width: 100%;
  height: auto;
  width: 100%;
  display: block;
}

.responsive-case-image {
  width: 100%;
  height: auto;
  display: block;
}
