/* ============================================
   aminadin.com — Professional Landing Page
   ============================================ */

/* --- Reset & Base --- */

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

:root {
  --bg: #1a1412;
  --card-bg: #231e1a;
  --text-primary: #f5efe6;
  --text-secondary: #b8a99a;
  --accent: #c9a96e;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --- Page Layout --- */

.page {
  display: flex;
  height: 100vh;
}

/* --- Photo Side --- */

.photo-side {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
}

.photo {
  width: 100%;
  height: 100%;
  background: url('/images/headshot.jpg') center top / cover no-repeat;
  transition: transform 0.3s ease-out;
  animation: kenBurns 20s ease-in-out infinite;
}

.divider {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(201, 169, 110, 0.2), transparent);
  z-index: 2;
}

/* --- Ken Burns --- */

@keyframes kenBurns {
  0% { transform: scale(1.0) translate(0, 0); }
  50% { transform: scale(1.05) translate(-0.5%, -0.5%); }
  100% { transform: scale(1.0) translate(0, 0); }
}

/* --- Text Side --- */

.text-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.text-content {
  position: relative;
  z-index: 1;
}

/* --- Atmospheric Orbs --- */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -50px;
  right: -50px;
  animation: floatOrb1 15s ease-in-out infinite;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  bottom: -30px;
  left: -30px;
  animation: floatOrb2 18s ease-in-out infinite;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  animation: floatOrb3 22s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-20px, 30px); }
  66% { transform: translate(15px, -15px); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(25px, -20px); }
  66% { transform: translate(-10px, 25px); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.2); }
}

/* --- Typography --- */

.name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 1.1;
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem 0;
}

.bio {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 380px;
}

/* --- Links --- */

.links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.link {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon {
  flex-shrink: 0;
}

/* --- Copyright --- */

.copyright {
  position: absolute;
  bottom: 2rem;
  left: 4rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.4;
}

/* --- Entrance Animations --- */

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

.animate-in {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }
.delay-5 { animation-delay: 0.9s; }

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .photo {
    animation: none;
    transition: none;
  }

  .orb {
    animation: none;
  }
}

/* --- Mobile --- */

@media (max-width: 768px) {
  body {
    overflow: auto;
    height: auto;
  }

  .page {
    flex-direction: column;
    height: auto;
  }

  .photo-side {
    flex: none;
    height: 60vh;
  }

  .photo {
    background-position: center top;
  }

  .text-side {
    padding: 2.5rem 2rem 3rem;
  }

  .copyright {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 2.5rem;
  }

  .divider {
    display: none;
  }
}
