@import url('https://fonts.googleapis.com/css2?family=Staatliches&family=Sora:wght@300;400;600&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --text: #f0ede8;
  --text-muted: #7a7a7a;
  --accent: #d97706;
  --accent-glow: rgba(217, 119, 6, 0.12);
  --accent-border: rgba(217, 119, 6, 0.3);
  --border: #1e1e1e;
  --font-display: 'Staatliches', 'Impact', sans-serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ========== NAV ========== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 var(--accent-glow);
}

nav img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-border);
}

nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--accent);
}

/* ========== LANDING ========== */

.landing-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.landing-page::after {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
  top: -320px;
  right: -160px;
  pointer-events: none;
  z-index: 0;
}

/* ========== INFO ========== */

.info {
  padding: 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}

.info h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: uppercase;
  position: relative;
}

.info h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin-top: 0.75rem;
  margin-left: auto;
  border-radius: 2px;
}

.info h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  max-width: 500px;
  text-align: end;
}

/* ========== SOCIAL ========== */

.links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition);
}

.links a:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(217, 119, 6, 0.2);
}

.links img {
  width: 22px;
  height: 22px;
  filter: brightness(0.85);
  transition: filter var(--transition);
}

.links a:hover img {
  filter: brightness(1);
}

/* ========== PROFILE ========== */

.profile-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.profile-picture::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  animation: ringPulse 3s ease-in-out infinite;
}

.picture {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: all var(--transition);
}

.picture:hover {
  border-color: var(--accent);
  transform: scale(1.015);
  box-shadow: 0 0 60px rgba(217, 119, 6, 0.08);
}

/* ========== PROJECTS HEADING ========== */

#Projects {
  scroll-margin-top: 80px;
}

.heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 5rem 1.5rem 0;
  position: relative;
  color: var(--text);
  z-index: 1;
}

.heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ========== PROJECTS GRID ========== */

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  padding: 2.5rem 1.5rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========== CARDS ========== */

.projects a {
  display: flex;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 280px;
  max-width: 300px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 380px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 32px var(--accent-glow);
  background: #161616;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1rem 1.25rem 0.25rem;
  color: var(--text);
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0 1.25rem 1.5rem;
  line-height: 1.6;
  flex: 1;
}

/* ========== ANIMATIONS ========== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ringPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.03);
  }
}

.landing-page {
  animation: fadeIn 0.8s ease-out;
}

.info h1 {
  animation: fadeUp 0.7s ease-out both;
  animation-delay: 0.1s;
}

.info h2 {
  animation: fadeUp 0.7s ease-out both;
  animation-delay: 0.2s;
}

.links {
  animation: fadeUp 0.7s ease-out both;
  animation-delay: 0.3s;
}

.profile-picture {
  animation: fadeIn 1s ease-out both;
  animation-delay: 0.4s;
}

.card {
  animation: fadeUp 0.6s ease-out both;
}

.projects a:nth-child(1) .card { animation-delay: 0.1s; }
.projects a:nth-child(2) .card { animation-delay: 0.2s; }
.projects a:nth-child(3) .card { animation-delay: 0.3s; }

/* ========== RESPONSIVE ========== */

@media (max-width: 860px) {
  .landing-page {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: calc(64px + 2rem) 1.5rem 3rem;
  }

  .info {
    align-items: center;
    padding: 0;
    text-align: center;
  }

  .info h2 {
    text-align: center;
  }

  .info h1::after {
    margin: 0.75rem auto 0;
  }

  .profile-picture::before {
    width: 320px;
    height: 320px;
  }

  .picture {
    width: 280px;
    height: 280px;
  }

  .projects {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .landing-page {
    padding: calc(64px + 1.5rem) 1rem 2rem;
  }

  .info h1 {
    font-size: 2.5rem;
  }

  .profile-picture::before {
    width: 260px;
    height: 260px;
  }

  .picture {
    width: 220px;
    height: 220px;
  }

  .card {
    max-width: 100%;
  }
}
