/* =========================
   RESET & BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #eaeaea;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      800px 400px at 20% 10%,
      rgba(198,168,255,0.08),
      transparent 60%
    ),
    radial-gradient(
      600px 300px at 80% 70%,
      rgba(255,255,255,0.04),
      transparent 60%
    );
  pointer-events: none;
  z-index: -1;
}


body.light {
  background: #f7f7f7;
  color: #111;
}

/* =========================
   VARIABLES
========================= */

:root {
  --bg-dark: #0a0a0a;
  --bg-soft: #111111;
  --bg-light: #f7f7f7;

  --text-main: #f5f5f5;        /* brighter main text */
  --text-muted: #b3b3b3;
  --text-dark: #111;

  --accent: #c6a8ff;  
  --accent-soft: rgba(198, 168, 255, 0.35);

  --radius: 18px;
  --radius-sm: 12px;

  --transition-fast: 0.2s ease;
  --transition: 0.35s ease;
  --transition-slow: 0.6s ease;
}

/* =========================
   NAVIGATION
========================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.65);
}

body.light .nav {
  background: rgba(247, 247, 247, 0.75);
}

.nav-left {
  font-weight: 600;
  letter-spacing: 0.15em;
}

.nav-right button {
  background: none;
  border: none;
  color: inherit;
  font-size: 14px;
  margin-left: 18px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.nav-right button:hover {
  opacity: 1;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
}

.parallax {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(181, 140, 255, 0.15),
    transparent 60%
  );
  z-index: -1;
}

.intro {
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  font-size: 186px;
}

.hero .italic {
  font-style: italic;
  opacity: 0.85;
}

.text-gradient {
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light .text-gradient {
  background: linear-gradient(135deg, #111, var(--accent));
  -webkit-background-clip: text;
}

.subtitle {
  max-width: 620px;
  margin: 28px auto 0;
  opacity: 0.7;
}

/* =========================
   BUTTONS (MAGNETIC)
========================= */

.cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.magnetic-btn {
  position: relative;
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition);
  will-change: transform;
}

.magnetic-btn-inner {
  pointer-events: none;
}

.magnetic-btn.primary {
  background: var(--accent);
  color: var(--text-dark);
}

body.light .magnetic-btn.primary {
  color: var(--text-main);
}

.magnetic-btn.outline {
  color: var(--text-dark);
  border: 1px solid var(--accent);
}

body.light .magnetic-btn.outline {
  color: var(--text-dark);
  border-color: var(--accent);
}

.magnetic-btn:hover {
  box-shadow: 0 0 40px var(--accent-soft);
}


/* =========================
   SECTIONS
========================= */

.section {
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.soft-bg {
  background: var(--bg-soft);
}

body.light .soft-bg {
  background: #ececec;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.5;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-top: 12px;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 24px auto 0;
  opacity: 0.5;
}

/* =========================
   PROJECTS
========================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.project-card:hover video {
  opacity: 1;
}

.card-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  font-size: 14px;
}

/* =========================
   ABOUT
========================= */

.about-text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  opacity: 0.75;
}

.skills {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
}

.skill {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  text-align: center;
  font-size: 14px;
}

body.light .skill {
  background: rgba(0,0,0,0.05);
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 60px 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
}

/* =========================
   REVEAL ANIMATIONS
========================= */

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.about-content {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}

.about-photo {
  width: 280px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 8px 40px rgba(198, 168, 255, 0.3);
}

.slider {
  height: 420px;          /* fixed height */
  overflow: hidden;
  padding-right: 20px;
}
.slider img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  margin-right: 20px; /* space between images */
}

.center-autoplay img {
  width: 100%;
  height: 300px;
  object-fit: contain; /* full image visible */
  cursor: pointer;     /* makes it clear it's clickable */
}

/* =========================
   HIRE ME
========================= */

.hire-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  opacity: 0.75;
  margin-top: 32px;
}

#hire .cta {
  margin-top: 32px;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

body.light #hire .cta .magnetic-btn.outline {
  color: var(--text-dark);
  border-color: var(--accent);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {
  .hero {
    padding-top: 140px;
  }

  .cta {
    flex-direction: column;
  }
}


