/* ========================================
   FOCUSPOINT STUDIO - LUXURY PHOTOGRAPHY
   Cinematic Web Experience
   ======================================== */

/* === CSS VARIABLES === */
:root {
  /* Colors */
  --color-charcoal: #111111;
  --color-mist: #F4F4F4;
  --color-silver: #B5B5B5;
  --color-gold: #CFAF60;
  
  /* Typography */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Lato', -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 10rem;
  
  /* Transitions */
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --max-width: 1400px;
  --gutter: 2rem;
}

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-mist);
  background-color: var(--color-charcoal);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.4s var(--ease-cinematic);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-mist);
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
  max-width: 65ch;
}

.subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-md) var(--gutter);
  background: linear-gradient(180deg, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0) 100%);
  backdrop-filter: blur(10px);
  transition: all 0.6s var(--ease-cinematic);
}

.nav.scrolled {
  background: rgba(17,17,17,0.98);
  backdrop-filter: blur(20px);
  padding: var(--space-sm) var(--gutter);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 65px;
  transition: all 0.6s var(--ease-cinematic);
}

.nav.scrolled .nav-logo img {
  height: 50px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.5s var(--ease-cinematic);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--color-mist);
  transition: all 0.3s var(--ease-smooth);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-charcoal);
}

.hero-parallax-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: 1;
}

.hero-parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(17,17,17,0.3) 0%, rgba(17,17,17,0.8) 100%);
  z-index: 2;
}

.hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(17,17,17,0.7) 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--gutter);
  max-width: 1000px;
}

.hero-title {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.2s var(--ease-cinematic) 0.3s forwards;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s var(--ease-cinematic) 0.6s forwards;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.8;
  margin-top: var(--space-md);
  color: var(--color-silver);
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s var(--ease-cinematic) 0.9s forwards;
  margin-top: var(--space-lg);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-gold);
  cursor: pointer;
  transition: all 0.5s var(--ease-cinematic);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-gold);
  transition: left 0.5s var(--ease-cinematic);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: var(--color-charcoal);
}

/* === SECTIONS === */
.section {
  position: relative;
  padding: var(--space-xxl) var(--gutter);
  overflow: hidden;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.05;
}

/* === GRID LAYOUTS === */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
}

/* === IMAGE CONTAINERS === */
.image-container {
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-cinematic), filter 0.8s var(--ease-cinematic);
}

.image-container:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* === PORTFOLIO GRID === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-charcoal);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s var(--ease-cinematic);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17,17,17,0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease-cinematic);
  padding: var(--space-md);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
  filter: blur(3px) brightness(0.6);
}

.portfolio-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-cinematic) 0.1s;
}

.portfolio-category {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-cinematic) 0.2s;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-category {
  transform: translateY(0);
}

/* === SERVICES === */
.service-card {
  padding: var(--space-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(181,181,181,0.1);
  transition: all 0.6s var(--ease-cinematic);
}

.service-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--color-gold);
  transform: translateY(-8px);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.service-title {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.service-description {
  color: var(--color-silver);
  line-height: 1.8;
}

/* === CONTACT FORM === */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-silver);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-mist);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(181,181,181,0.2);
  transition: all 0.4s var(--ease-smooth);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.05);
}

.form-textarea {
  min-height: 180px;
  resize: vertical;
}

/* === FOOTER === */
.footer {
  background: rgba(0,0,0,0.5);
  padding: var(--space-xl) var(--gutter) var(--space-lg);
  border-top: 1px solid rgba(181,181,181,0.1);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.footer-section h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  color: var(--color-silver);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--color-mist);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(181,181,181,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-silver);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--ease-cinematic);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: all 1s var(--ease-cinematic);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17,17,17,0.98);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--color-mist);
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--color-gold);
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
  :root {
    --gutter: 1.5rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(17,17,17,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    transition: right 0.5s var(--ease-cinematic);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 500px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: var(--space-lg) var(--gutter);
  }
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--color-gold);
}

.text-silver {
  color: var(--color-silver);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-lg {
  margin-top: var(--space-lg);
}

