/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #1a1a1a;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: #2a2a2a;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo:hover .logo-img {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #ffffff;
}

.nav-menu a.active {
  color: #ffffff;
  font-weight: bold;
  position: relative;
}

/* Add underline indicator for active nav items */
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
}

/* Active logo state (for home page) */
.logo.active .logo-img {
  opacity: 1;
  filter: brightness(1.1);
}

/* Burger Menu Styles */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1002;
  transition: transform 0.3s ease;
  position: relative;
  /* Ensure it's clickable */
  touch-action: manipulation;
}

.burger-menu:hover {
  transform: scale(1.1);
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: #e0e0e0;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Burger menu animation when active */
.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Focus styles for accessibility */
.burger-menu:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.nav-menu a:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
  margin-top: 0;
  min-height: 100vh;
}

/* About Page Section Separations */
main section {
  margin-bottom: 0;
}

main section + section {
  margin-top: 0;
}

/* Common Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #4a4a4a;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover {
  background-color: #6a6a6a;
}

/* Common Section Styles */
.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
}

/* Page Header (used by About, Portfolio, Contact) */
.page-header {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23f0f0f0" width="1200" height="400"/><text x="50%" y="50%" text-anchor="middle" dy=".3em" font-family="Arial" font-size="24" fill="%23999">Header Image</text></svg>');
  background-size: cover;
  background-position: center;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.page-header h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Hero Section (Home page) */
.hero-image {
  background: url('assets/HeroBanner.webp');
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  margin-top: 0;
  position: relative;
}

.hero-content-section {
  background-color: #1a1a1a;
  padding: 2rem 0;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #cccccc;
}

/* Image Slider Section (Home page) */
.section_marquee {
  background-color: #ffffff !important;
  padding: 1.5rem 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
  clear: both;
  border: none !important;
}

.padding-section-medium {
  padding: 0;
}

.container-large {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.image-slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.image-slider::before,
.image-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.image-slider::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
}

.image-slider::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
}

.slider-container {
  overflow: hidden;
  width: 100%;
  height: 120px;
}

.slider-track {
  display: flex;
  height: 100%;
  will-change: transform;
  /* Animation applied dynamically by JavaScript */
}

.slide {
  min-width: 200px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 40px;
  padding: 10px;
  flex-shrink: 0;
}

.slider-image {
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
  filter: brightness(1) contrast(1);
}

/* Marquee Animation - Dynamic keyframes generated by JavaScript */

/* Navigation controls are not needed for continuous marquee */

/* Contact Services Section (Home page) */
.contact-services {
  background-color: #2a2a2a;
}

.contact-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-services-card {
  background: #3a3a3a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
}

.contact-services-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.contact-services-card p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* About Page Styles */

/* First About Section - Profile and Personal Info */
.section:first-of-type {
  background-color: #1a1a1a;
  position: relative;
}

.section:first-of-type::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, #4a4a4a 20%, #4a4a4a 80%, transparent);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}

.about-image {
  text-align: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}

.about-image img {
  width: 100%;
  max-width: 550px;
  height: 650px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #cccccc;
  line-height: 1.8;
}

.about-text h3 {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 600;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about-text li {
  background-color: #3a3a3a;
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  color: #cccccc;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid #6a6a6a;
}

.about-text li:hover {
  background-color: #404040;
  color: #ffffff;
  transform: translateX(5px);
  border-left-color: #8a8a8a;
}

/* Skills Section (About page) */
.skills {
  background-color: #2a2a2a;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-item {
  background: #3a3a3a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
}

.skill-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.skill-item p {
  color: #cccccc;
}

/* Experience/Timeline Section (About page) */
.experience {
  padding: 4rem 0;
}

.experience h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  background: #3a3a3a;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #6a6a6a;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.timeline-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.timeline-item .year {
  font-weight: bold;
  color: #cccccc;
  margin-bottom: 1rem;
}

.timeline-item p {
  color: #cccccc;
  line-height: 1.6;
}

/* Portfolio Page Styles */
.portfolio-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.portfolio-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.portfolio-intro p {
  font-size: 1.1rem;
  color: #cccccc;
  line-height: 1.8;
}

.portfolio-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 20px;
  background-color: #4a4a4a;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.category-btn:hover,
.category-btn.active {
  background-color: #6a6a6a;
  color: white;
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.portfolio-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
  height: fit-content;
  position: relative;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
}

/* Portfolio filtering states */
.portfolio-item.filter-hidden {
  display: none !important;
}

.portfolio-item.filter-visible {
  display: block !important;
}

.portfolio-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) brightness(0.9);
  transition: all 0.4s ease;
}

/* Enhanced hover effect for modal-like appearance - only on devices that can actually hover */
@media (hover: hover) and (pointer: fine) {
  .portfolio-item:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.9);
    z-index: 100;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease !important;
  }

  .portfolio-item:hover img {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.02);
  }

  .portfolio-item:hover::before {
    background: rgba(0, 0, 0, 0.1);
  }
}

/* Modal-like overlay effect */
.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

/* Add subtle visual cue for touch devices that images are clickable */
@media (hover: none) {
  .portfolio-item::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0.8;
    z-index: 2;
    pointer-events: none;
  }
}

/* Portfolio Image Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transition: opacity 0.3s ease;
  background: transparent; /* Prevent white flash */
}

.lightbox-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -10px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  color: #ff6b6b;
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 10000;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 30px;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

/* Hide mobile hint on desktop */
.lightbox-mobile-hint {
  display: none;
}

/* Lazy Loading States - Enhanced for Progressive Loading */
.lazy-image {
  transition: all 0.4s ease;
}

.lazy-image.loading {
  opacity: 0.8;
}

.lazy-image.blur-up {
  filter: blur(5px);
  transform: scale(1.02);
  opacity: 0.9;
}

.lazy-image.loaded {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

.lazy-image.error {
  opacity: 0.5;
  filter: grayscale(100%);
}

/* Loading animation for lazy images */
.lazy-image.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #666;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: lazy-loading-spin 1s linear infinite;
  z-index: 2;
}

@keyframes lazy-loading-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading Indicator Styles */
.loading-indicator {
  display: none;
  text-align: center;
  padding: 2rem;
  margin: 2rem 0;
}

.loading-indicator.show {
  display: block;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #333;
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: lazy-loading-spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loading-indicator p {
  color: #ccc;
  font-size: 1rem;
}

/* Load More functionality is handled automatically by scroll */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #4a4a4a;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #6a6a6a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: #2a2a2a;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
}

.footer-section a:hover {
  color: white;
}

/* Follow Us Container */
.follow-us-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.follow-us-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.follow-us-link:hover {
  color: white;
  transform: translateY(-2px);
}

.follow-us-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.follow-us-link span {
  font-size: 14px;
  font-weight: 500;
}

/* Legacy social media styles for backward compatibility */
.social-media {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #4a4a4a;
  border-radius: 50%;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-media a:hover {
  background-color: #666;
  color: white;
  transform: translateY(-2px);
}

.social-media img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.social-media a:hover img {
  filter: brightness(0) invert(1);
}

.copyright {
  border-top: 1px solid #4a4a4a;
  padding-top: 1rem;
  margin-top: 1rem;
}

/* Contact Page Styles */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #cccccc;
  line-height: 1.8;
}

.contact-details {
  background-color: #3a3a3a;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.contact-details h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.contact-item strong {
  min-width: 80px;
  color: #ffffff;
}

.contact-item a {
  color: #cccccc;
  text-decoration: none;
}

.contact-item a:hover {
  color: #ffffff;
}

.contact-form {
  background: #3a3a3a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #5a5a5a;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #2a2a2a;
  color: #ffffff;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999999;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6a6a6a;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.services-offered {
  background-color: #2a2a2a;
}

/* About Page Sections Styling - Clean Separations */

/* Photography Section - Second Section */
section:nth-of-type(2) {
  background-color: #222222;
  position: relative;
}

/* Clean subtle separator between first and second section */
section:nth-of-type(2)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1) 50%, transparent);
}

.padding-section-medium {
  padding: 3rem 0;
}

.padding-global {
  padding: 0 20px;
}

.div-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 300;
  letter-spacing: 2px;
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 0;
}

.spacer-large {
  height: 2rem;
}

.spacer-small {
  height: 1rem;
}

.service_tag-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.text-service-tag {
  padding: 8px 20px;
  background-color: #4a4a4a;
  color: #e0e0e0;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: default;
}

.text-service-tag:hover {
  background-color: #6a6a6a;
  color: #ffffff;
  transform: translateY(-2px);
}

.wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.text-size-large {
  font-size: 1.2rem;
  color: #cccccc;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Services Section - Third Section */
.section_services {
  background: linear-gradient(135deg, #2a2a2a 0%, #252525 100%);
  position: relative;
}

/* Clean subtle separator between second and third section */
.section_services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15) 50%, transparent);
}

.section_services .padding-section-large {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.padding-section-large {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.services_component {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service_video {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  height: 600px;
}

.service_video:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}

.background-video {
  width: 100%;
  height: 100%;
  position: relative;
}

.background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.service_item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 600px;
}

.service_item > div {
  background-color: #3a3a3a;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service_item > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  background-color: #404040;
}

.heading-style-h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: 1px;
}

.heading-style-h3.serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Show burger menu on mobile */
  .burger-menu {
    display: flex;
  }

  /* Hide and transform nav menu for mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #2a2a2a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 0;
    margin: 0;
  }

  /* Show nav menu when active */
  .nav-menu.active {
    right: 0;
  }

  /* Style nav menu items for mobile */
  .nav-menu li {
    list-style: none;
  }

  .nav-menu a {
    font-size: 1.5rem;
    padding: 1rem;
    display: block;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
  }

  .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
  }

  /* Active state for mobile navigation */
  .nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: bold;
  }

  /* Remove the underline indicator on mobile since we use background */
  .nav-menu a.active::after {
    display: none;
  }

  /* Prevent body scroll when mobile menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Add backdrop blur effect for modern browsers */
  .nav-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: -1;
  }
}

/* Tablet specific styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .burger-menu {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background-color: #2a2a2a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 0;
    margin: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    list-style: none;
  }

  .nav-menu a {
    font-size: 1.3rem;
    padding: 1rem 2rem;
    display: block;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 8px;
  }

  .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
  }

  /* Active state for tablet navigation */
  .nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: bold;
  }

  /* Remove the underline indicator on tablet since we use background */
  .nav-menu a.active::after {
    display: none;
  }
}

  .page-header h1 {
    font-size: 2rem;
  }

  .hero-image {
    height: 60vh;
    margin-top: 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .contact-services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    max-width: 100%;
  }

  .about-image img {
    max-width: 400px;
    height: 500px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .experience h2 {
    font-size: 2rem;
  }

  .portfolio-intro h2 {
    font-size: 2rem;
  }



  .portfolio-item img {
    height: 400px;
  }



  /* Lightbox responsive adjustments for tablets */
  .lightbox-image {
    max-width: 95vw;
    max-height: 85vh;
  }

  .lightbox-close {
    top: -40px;
    right: 0;
    font-size: 35px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 25px;
    padding: 12px 16px;
  }

  .lightbox-prev {
    left: -60px;
  }

  .lightbox-next {
    right: -60px;
  }
}

/* Tablet breakpoint for portfolio grid */
@media (max-width: 1024px) and (min-width: 481px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* Mobile breakpoint for portfolio grid */
@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .portfolio-item img {
    height: 350px;
  }



  /* Lightbox mobile optimizations */
  .lightbox-image {
    max-width: 98vw;
    max-height: 80vh;
  }

  .lightbox-close {
    top: -35px;
    right: 5px;
    font-size: 30px;
    padding: 8px;
  }

  /* Hide navigation arrows on mobile - users can use keyboard arrows or tap to close */
  .lightbox-nav {
    display: none;
  }

  /* Show mobile navigation hint */
  .lightbox-mobile-hint {
    display: block;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
  }

  /* Add touch-friendly area for swiping */
  .lightbox-content {
    touch-action: pan-x; /* Allow horizontal panning for swipe */
  }

  /* Smooth transition for swipe navigation */
  .lightbox-image {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }

  .portfolio-categories {
    flex-direction: column;
    align-items: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info h2 {
    font-size: 2rem;
  }

  /* New sections responsive styles */
  .serif {
    font-size: 2rem;
  }

  .services_component {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service_video {
    order: -1; /* Video appears first on mobile */
  }

  .background-video {
    height: 300px;
  }

  .text-size-large {
    font-size: 1.1rem;
  }

  .service_tag-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .text-service-tag {
    padding: 6px 16px;
    font-size: 0.8rem;
  }

  /* Responsive section separations - keep clean approach */
  .section:first-of-type::after {
    width: 90%;
  }

  section:nth-of-type(2)::before {
    width: 90%;
  }

  .section_services::before {
    width: 90%;
  }

  /* Image Slider Responsive */
  .slider-container {
    height: 100px;
  }

  .slide {
    min-width: 150px;
    margin-right: 30px;
    padding: 8px;
  }

  .slider-image {
    max-width: 140px;
    max-height: 60px;
  }

  .section_marquee {
    background-color: #ffffff !important;
    padding: 1rem 0;
    border: none !important;
  }

  .image-slider::before,
  .image-slider::after {
    width: 80px; /* Smaller fade width on mobile */
  }

  .image-slider::before {
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
  }

  .image-slider::after {
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
  }

  /* Additional responsive styles for new sections */
  .padding-section-medium,
  .padding-section-large {
    padding: 2rem 0;
  }

  .service_item {
    gap: 1.5rem;
  }

  .service_item > div {
    padding: 1.5rem;
  }

  .background-video {
    height: 250px;
  }

  .heading-style-h3 {
    font-size: 1.2rem;
  }

  .wrapper {
    padding: 0 1rem;
  }

  /* Additional responsive adjustments for profile image */
  .about-image img {
    max-width: 320px;
    height: 400px;
  }

  .about-content {
    gap: 1.5rem;
  }

  /* Back to Top Button - Mobile */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}
