/* Photography Portfolio Custom Styles */

/* ========================================
   COLOR THEME OPTIONS
   ======================================== */

/* THEME OPTION 1: Sage Green & Cream (DEFAULT) */
:root {
  --primary-color: #768C45;
  --primary-hover: #5d6e36;
  --light-bg: #F2f1f0;
  --text-color: #868e96;
  --heading-color: #343a40;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  /* Typography Variables */
  --heading-font: 'Tenor Sans', sans-serif;
  --body-font: 'Lato', sans-serif;
  --accent-font: 'Meraki Script', cursive;
}

/* THEME OPTION 2: Deep Forest Green & Soft Mint */
/*
:root {
  --primary-color: #3a4d19;
  --primary-hover: #2a3812;
  --light-bg: #edf3e6;
  --text-color: #868e96;
  --heading-color: #343a40;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  --heading-font: 'Tenor Sans', sans-serif;
  --body-font: 'Lato', sans-serif;
  --accent-font: 'Meraki Script', cursive;
}
*/

/* ========================================
   TO CHANGE THEME:
   1. Comment out the current active theme (wrap in /* */)
   2. Uncomment your desired theme (remove /* */)
   3. Save the file - Hugo will auto-rebuild
   ======================================== */

/* Typography System */
body {
  font-family: var(--body-font);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-color);
  font-size: 16px;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--heading-font);
  font-weight: 400;
  color: var(--heading-color);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

h1, .h1 {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 1px;
}

h2, .h2 {
  font-size: 2.5rem;
  font-weight: 400;
}

h3, .h3 {
  font-size: 2rem;
  font-weight: 400;
}

h4, .h4 {
  font-size: 1.5rem;
  font-weight: 400;
}

h5, .h5 {
  font-size: 1.25rem;
  font-weight: 400;
}

h6, .h6 {
  font-size: 1rem;
  font-weight: 400;
}

/* Body text variations */
p {
  font-family: var(--body-font);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Accent typography for special elements */
.accent-text {
  font-family: var(--accent-font);
  font-size: 1.5rem;
  color: var(--primary-color);
}

.script-heading {
  font-family: var(--accent-font);
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
}

/* Navigation typography */
.navbar-nav .nav-link {
  font-family: var(--heading-font);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Button typography and styling */
.btn {
  font-family: var(--heading-font);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 25px;
  padding: 12px 30px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(189, 93, 56, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(189, 93, 56, 0.3);
}

/* Social icons styling */
.social-icons a {
  display: inline-block;
  margin-right: 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-3px);
}

/* Form typography */
.form-control {
  font-family: var(--body-font);
  font-weight: 300;
}

label {
  font-family: var(--heading-font);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2.5rem;
  }

  h2, .h2 {
    font-size: 2rem;
  }

  h3, .h3 {
    font-size: 1.75rem;
  }

  body {
    font-size: 15px;
  }

  .script-heading {
    font-size: 2rem;
  }
}

/* Photography-specific typography */
.photographer-name {
  font-family: var(--heading-font);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--heading-color);
}

.tagline {
  font-family: var(--accent-font);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.photographer-bio {
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

/* Logo styling for title */
.logo-inline {
  height: 3.5rem;
  width: 3.5rem;
  object-fit: cover;
}

@media (max-width: 767px) {
  .logo-inline {
    height: 2.5rem;
    width: 2.5rem;
  }
}

/* Enhanced profile image for photographer */
.photographer-image-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.photographer-portrait {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  object-fit: cover;
}

.photographer-portrait:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for photographer portrait */
@media (max-width: 991px) {
  .photographer-portrait {
    max-width: 400px;
    margin-bottom: 3rem;
  }
}

@media (max-width: 767px) {
  .photographer-portrait {
    max-width: 350px;
    margin-bottom: 2rem;
  }

  .photographer-image-container {
    margin-bottom: 2rem;
  }
}

/* Gallery styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  background: #f8f9fa;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 12px;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  padding: 1.5rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Services page specific gallery styling */
.services-gallery {
  margin-top: 3rem;
  padding: 2rem 0;
}

.services-gallery h3 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-weight: 400;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  letter-spacing: 1px;
}

.services-gallery h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  border-radius: 2px;
}

/* Gallery grid responsive adjustments */
@media (max-width: 768px) {
  .gallery-item img {
    height: 180px;
  }

  .gallery-caption {
    padding: 1rem 0.8rem 0.8rem;
  }
}

/* Enhanced social media icons */
.social-icons {
  margin: 2rem 0;
}

.social-icons a {
  display: inline-block;
  margin-right: 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
}

.social-icons a:hover {
  color: var(--primary-hover);
  transform: translateY(-3px);
  text-decoration: none;
}

.social-icons a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.social-icons a:hover::after {
  width: 100%;
}

/* Enhanced buttons */
.btn-photography {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.btn-photography:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(189, 93, 56, 0.3);
}

/* Pricing cards enhancement */
.pricing-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.pricing-card:hover::before {
  transform: scaleX(1);
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.popular::before {
  transform: scaleX(1);
}

/* Pricing typography */
.pricing-card .card-title {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--heading-color);
}

.pricing-card .price {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 400;
  color: var(--primary-color);
}

.pricing-card .price-period {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-color);
}

.pricing-card .list-group-item {
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Minimal Services Page Design */
.services-minimal-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  background: #fafafa;
}

.minimal-tabs-container {
  margin-bottom: 3rem;
}

.minimal-nav-tabs {
  border: none;
  margin-bottom: 2rem;
}

.minimal-nav-tabs .nav-item {
  margin: 0 1rem;
}

.minimal-tab-link {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-color) !important;
  border: none !important;
  background: transparent !important;
  padding: 1rem 2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
}

.minimal-tab-link:hover {
  color: var(--primary-color) !important;
  background: rgba(189, 93, 56, 0.1) !important;
  transform: translateY(-2px);
}

.minimal-tab-link.active {
  color: white !important;
  background: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(189, 93, 56, 0.3);
}

.minimal-tab-content {
  max-height: 75vh;
  overflow: hidden;
}

/* Optimized 12-Photo Gallery Layout */
.minimal-gallery-optimized {
  padding: 0;
  margin: 0;
}

.gallery-grid-12 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
  max-height: 65vh;
  padding: 10px;
}

.gallery-item-optimized {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Performance optimizations */
  will-change: transform, box-shadow;
  transform: translateZ(0);
  contain: layout style paint;
}

.gallery-item-optimized:hover {
  transform: translateY(-10px) scale(1.06);
  z-index: 15;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Gallery thumbnail styling with center cropping */
.gallery-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Center crop instead of top */
  transition: all 0.3s ease;
  border-radius: 12px;
  /* Performance optimizations */
  will-change: transform, filter;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Enhanced hover states for gallery thumbnails */
.gallery-item-optimized:hover .gallery-thumbnail {
  filter: brightness(1.1) contrast(1.05) saturate(1.1);
}



/* Legacy minimal gallery (keeping for compatibility) */
.minimal-gallery {
  padding: 0;
}

.minimal-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 2px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.minimal-gallery-item:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.minimal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.minimal-gallery-item:hover img {
  filter: brightness(1.1) contrast(1.1);
}

/* Responsive adjustments for optimized 12-photo layout */
@media (max-width: 991px) {
  .services-minimal-section {
    padding: 1rem 0;
  }

  .minimal-tab-link {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
  }

  .minimal-nav-tabs .nav-item {
    margin: 0 0.5rem;
  }

  /* Tablet: 4 columns × 3 rows = 12 photos */
  .gallery-grid-12 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 6px;
    max-height: 60vh;
    padding: 8px;
  }

  .gallery-item-optimized:hover {
    transform: translateY(-8px) scale(1.05);
  }


}

@media (max-width: 767px) {
  .minimal-tab-link {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    margin: 0 0.2rem;
  }

  .minimal-nav-tabs .nav-item {
    margin: 0 0.2rem;
  }

  .minimal-tabs-container {
    margin-bottom: 2rem;
  }

  .minimal-tab-content {
    max-height: 70vh;
  }

  /* Mobile: 2 columns × 6 rows = 12 photos */
  .gallery-grid-12 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 4px;
    max-height: 65vh;
    padding: 6px;
  }

  .gallery-item-optimized {
    border-radius: 8px;
  }

  .gallery-item-optimized img {
    border-radius: 8px;
  }

  .gallery-item-optimized:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }


}

@media (max-width: 480px) {
  .services-minimal-section {
    padding: 0.5rem 0;
  }

  .minimal-tab-content {
    max-height: 60vh;
  }

  .gallery-grid-12 {
    gap: 3px;
    padding: 4px;
    max-height: 55vh;
  }

  .gallery-item-optimized:hover {
    transform: translateY(-4px) scale(1.03);
  }
}

/* Legacy services tabs (keeping for compatibility) */
.nav-tabs {
  border-bottom: 2px solid var(--primary-color);
}

.nav-tabs .nav-link {
  border: none;
  color: var(--text-color);
  font-weight: 600;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
  color: var(--primary-color);
}

.nav-tabs .nav-link.active {
  background: var(--primary-color);
  color: white;
  border-radius: 25px 25px 0 0;
}

/* Contact form enhancement */
.form-control {
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(189, 93, 56, 0.25);
  transform: translateY(-1px);
}

.form-control::placeholder {
  font-family: var(--body-font);
  font-weight: 300;
  color: #adb5bd;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .photographer-name {
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-align: center;
  }

  .tagline {
    font-size: 1.4rem;
    text-align: center;
  }

  .subheading {
    text-align: center;
  }

  .pricing-card .price {
    font-size: 2.5rem;
  }

  .services-gallery h3 {
    font-size: 1.8rem;
  }

  .btn-lg {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .btn-lg.ml-3 {
    margin-left: 0 !important;
  }

  .social-icons {
    text-align: center;
  }

  .social-icons a {
    font-size: 2rem;
    margin-right: 1rem;
  }
}
  
  .social-icons a {
    font-size: 2rem;
    margin-right: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
  }
}

/* Loading animation for images */
.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Enhanced section spacing */
.resume-section {
  min-height: auto;
  padding: 4rem 0;
}

.resume-section:first-child {
  padding-top: 6rem;
}

/* Photography-specific utilities */
.text-photography {
  color: var(--primary-color) !important;
}

.bg-photography {
  background-color: var(--primary-color) !important;
}

.border-photography {
  border-color: var(--primary-color) !important;
}

/* WhatsApp Button Styling */
.btn-success {
  background-color: #25D366;
  border-color: #25D366;
  color: white;
}

.btn-success:hover {
  background-color: #1da851;
  border-color: #1da851;
  color: white;
}

.btn-success:focus,
.btn-success:active {
  background-color: #1da851;
  border-color: #1da851;
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

/* Responsive button layout */
@media (max-width: 768px) {
  .btn-lg.ml-3 {
    margin-left: 0 !important;
    margin-top: 0.75rem;
    display: block;
    width: 100%;
  }
}
