/* ========================================
   Jackie Studio — Ocean Breeze Theme
   ======================================== */

/* --- Design Tokens --- */
:root {
  --color-sky: #D4A0A7;
  --color-ocean-light: #C07886;
  --color-ocean: #A85C6E;
  --color-ocean-deep: #7A3D4E;

  --color-sand: #F5DDD5;
  --color-sand-light: #FBF2EF;
  --color-shell: #FFB8C6;
  --color-coral: #FF8FA3;

  --color-white: #FFFFFF;
  --color-text: #2B2D42;
  --color-text-light: #555B6E;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lora', serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius: 12px;
  --shadow-card: 0 4px 20px rgba(122, 61, 78, 0.1);
  --shadow-card-hover: 0 8px 30px rgba(122, 61, 78, 0.18);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-sand-light);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: var(--space-sm);
  color: var(--color-ocean-deep);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .nav-logo {
  color: var(--color-ocean-deep);
}

.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

.navbar.scrolled .nav-toggle span {
  background: var(--color-ocean-deep);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-white);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-coral);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('https://i.pinimg.com/1200x/a2/42/04/a242047094fdaa33068d6246f000f300.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122, 61, 78, 0.65) 0%, rgba(168, 92, 110, 0.5) 50%, rgba(192, 120, 134, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  text-align: center;
  z-index: 3;
  padding: 0 var(--space-md);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--color-white);
  color: var(--color-ocean-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Sun decoration */
.hero-sun {
  position: absolute;
  top: 8%;
  right: 10%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE066, #FFD166, #FFC233);
  box-shadow: 0 0 60px rgba(255, 209, 102, 0.5), 0 0 120px rgba(255, 209, 102, 0.2);
  animation: sun-pulse 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes sun-pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(255, 209, 102, 0.5), 0 0 120px rgba(255, 209, 102, 0.2); }
  50% { box-shadow: 0 0 80px rgba(255, 209, 102, 0.7), 0 0 160px rgba(255, 209, 102, 0.3); }
}

/* Waves */
.hero-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 2;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.wave-1 { animation: wave-slide 7s linear infinite; }
.wave-2 { animation: wave-slide 11s linear infinite reverse; }
.wave-3 { animation: wave-slide 15s linear infinite; }

@keyframes wave-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- About --- */
.about {
  background: var(--color-sand-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-image-frame {
  width: 280px;
  height: 340px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 4px solid var(--color-ocean-light);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-sky), var(--color-ocean-light));
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}

.about-image-frame:hover {
  transform: rotate(0deg);
}

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

.about-image-placeholder {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  padding: var(--space-sm);
}

.about-text p {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.about-text p:first-child {
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: 600;
}

/* --- Gallery --- */
.gallery {
  background: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-sky), var(--color-ocean-light));
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(122, 61, 78, 0.85));
  padding: var(--space-md);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  color: var(--color-white);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-caption {
  font-weight: 600;
  font-size: 1rem;
  display: block;
}

.gallery-category {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  gap: 0.5rem;
}

.gallery-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.8;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  text-align: center;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-caption {
  color: var(--color-white);
  margin-top: var(--space-sm);
  font-size: 1.1rem;
  font-weight: 500;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-sm);
  transition: color var(--transition);
  z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-coral);
}

.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Videos --- */
.videos {
  background: var(--color-sand-light);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.video-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.video-embed {
  position: relative;
  padding-top: 56.25%;
  background: linear-gradient(135deg, var(--color-sky), var(--color-ocean));
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-link-card {
  position: relative;
}

.video-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
  gap: var(--space-xs);
  padding-top: 0;
}

.video-placeholder svg {
  width: 48px;
  height: 48px;
}

.video-info {
  padding: var(--space-sm) var(--space-md);
}

.video-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.video-info p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* --- Hobbies --- */
.hobbies {
  background: var(--color-white);
}

.hobbies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.hobby-card {
  background: var(--color-sand-light);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hobby-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.hobby-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hobby-icon svg {
  width: 100%;
  height: 100%;
}

.hobby-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-ocean-deep);
  margin-bottom: var(--space-xs);
}

.hobby-card p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Personal --- */
.personal {
  background: var(--color-sand-light);
}

.personal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.personal-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.personal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.personal-card-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--color-shell), var(--color-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  overflow: hidden;
}

.personal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personal-card-content {
  padding: var(--space-md);
}

.personal-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-ocean-deep);
  margin-bottom: var(--space-xs);
}

.personal-card-content p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--color-ocean-deep);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
}

.footer-waves {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.footer-waves svg {
  display: block;
  width: 100%;
  height: 60px;
}

.footer-content {
  text-align: center;
  padding-top: var(--space-lg);
}

.footer-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--color-coral);
  transform: scale(1.15);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered gallery items */
.gallery-item.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.gallery-item.animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.gallery-item.animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.gallery-item.animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.gallery-item.animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .about-grid {
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
  }

  .about-image-frame {
    margin: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hobbies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .personal-card {
    grid-template-columns: 1fr 1fr;
  }

  .personal-card-image {
    height: 100%;
    min-height: 250px;
  }

  .section {
    padding: var(--space-2xl) 0;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile-only: show hamburger, hide links */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-ocean-deep);
    padding: var(--space-sm);
    gap: var(--space-xs);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--color-white);
    padding: var(--space-xs);
    text-align: center;
  }

  .navbar.scrolled .nav-links {
    background: var(--color-white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .navbar.scrolled .nav-links a {
    color: var(--color-text);
  }

  .hero-sun {
    width: 50px;
    height: 50px;
    top: 12%;
    right: 8%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
