@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&family=Outfit:wght@300;400;700;900&display=swap');

:root {
  --bg-color: #050505;
  --surface-color: rgba(20, 25, 30, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --primary-color: #00ffcc;
  --primary-hover: #00ccaa;
  --secondary-color: #7000ff;
  --text-main: #ffffff;
  --text-muted: #a0a5aa;
  --glow-primary: rgba(0, 255, 204, 0.4);
  --glow-secondary: rgba(112, 0, 255, 0.4);
}

/* Base Styles & Custom Cursor Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Remove native smooth scroll because Lenis handles it */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  cursor: none; /* Hide default cursor */
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(112, 0, 255, 0.15), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(0, 255, 204, 0.1), transparent 40%);
  background-attachment: fixed;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(0, 255, 204, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.cursor.hover {
  background-color: transparent;
}
.cursor-follower.hover {
  width: 70px; height: 70px;
  border-color: transparent;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
}

/* Noise Background Overlay */
.noise-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* GSAP Masking Utils */
.reveal-mask {
  overflow: hidden;
  display: block;
}

.gsap-reveal {
  display: block;
  transform: translateY(110%);
}

.gsap-fade-up, .gsap-fade-in {
  opacity: 0;
  visibility: hidden;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--surface-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  padding: 15px 5%;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1001; 
}

.logo img {
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 0 15px var(--glow-primary);
  pointer-events: none;
}

.logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  margin-left: 25px;
  font-size: 1rem;
  letter-spacing: 1px;
  display: inline-block;
  cursor: none;
}

.lang-switch {
  z-index: 1001;
}

.lang-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
  cursor: none;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  z-index: 1001;
  gap: 6px;
  cursor: none;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5% 0;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Extra height for parallax */
  background-image: url('assets/images/hero_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.hero-content {
  max-width: 900px;
  z-index: 1;
}

.hero-content h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #ffffff 20%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.hero-content p {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 50px;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Play/Action Button */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #111, #222);
  border: 1px solid rgba(0, 255, 204, 0.3);
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.play-btn img {
  width: 36px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.play-btn-text {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.play-btn-text .small {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.play-btn-text .large {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

/* Shared Section Styles */
.section-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem;
  margin-bottom: 100px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #fff, #a0a5aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-mask {
  margin-bottom: 80px;
}
.title-mask .section-title {
  margin-bottom: 0;
}

/* About Section */
.about {
  padding: 200px 5%;
  position: relative;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 30px var(--glow-primary);
}

.about-text {
  padding: 50px;
}

.about-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
}

.about-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 25px;
}

/* Portfolio Section */
.portfolio {
  padding: 150px 5%;
}

.project-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  transition: transform 0.5s ease;
}

.project-showcase:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 30px rgba(0, 255, 204, 0.1);
}

.project-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 25px;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.project-info p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.project-gallery .gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  border: 1px solid var(--glass-border);
  position: relative;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
  transform: scale(1.12) rotate(-2deg);
}

/* Footer */
footer {
  padding: 80px 5% 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

footer p {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 5rem; }
  .about-container, .project-showcase { grid-template-columns: 1fr; }
  .about-image { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  /* On mobile, usually better to restore normal cursor since custom cursor gets buggy with touch */
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
  .magnetic, .lang-btn, .nav-links a, .hamburger, .play-btn { cursor: pointer; }

  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav-content { gap: 20px; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.active { right: 0; }
  .nav-links a { margin: 20px 0; font-size: 1.5rem; }
  .logo img { height: 40px; }
  .logo span { font-size: 1.5rem; }

  .hero { padding-top: 120px; }
  .hero-content h1 { font-size: 3.2rem; }
  .hero-content p { font-size: 1.1rem; padding: 0 10px; }

  .section-title { font-size: 2.8rem; }
  .title-mask { margin-bottom: 40px; }

  .about { padding: 100px 5%; }
  .portfolio { padding: 100px 5%; }
  .about-text, .project-showcase { padding: 30px 20px; border-radius: 20px; }
  .about-text h3 { font-size: 2rem; }
  .about-text p { font-size: 1.05rem; }
  .project-info h3 { font-size: 2.5rem; }
  .project-info p { font-size: 1.05rem; }
  .project-gallery .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.5rem; }
  .section-title { font-size: 2.2rem; }
  .about-text h3 { font-size: 1.8rem; }
  .project-info h3 { font-size: 2.2rem; }
}
