/* style.css - Complete and Updated Version with Constrained Slider Height */

/* Google Fonts Import: Poppins with various weights */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

/* Root CSS Variables for consistent theming */
:root {
  --background: #1a1a1a;
  --foreground: #fce4ec; /* A soft pinkish-white */
  --accent: #ffb6c1;     /* Light pink accent */
  --text: #ffffff;       /* Pure white text */
  --muted: #999999;      /* Muted gray for secondary text */
  --dark-gray: #111111;  /* Darker gray for header/footer backgrounds */
  --medium-gray: #333333; /* Medium gray for borders/dividers */
  --shadow-dark: rgba(0, 0, 0, 0.5); /* Dark shadow for depth */
  --shadow-light: rgba(255, 182, 193, 0.3); /* Light glow for accent */
}

/* Base Styles for Body and Global Elements */
body {
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  margin: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom Scrollbar Styling (Webkit browsers like Chrome, Safari) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff99aa;
}

/* Global Link Styles */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
  text-decoration: none;
  color: var(--foreground);
  transform: translateY(-1px);
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header Section */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: var(--dark-gray);
  border-bottom: 1px solid var(--medium-gray);
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 10px var(--shadow-dark);
}

.logo {
  font-weight: 600;
  font-size: 28px;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.05em;
}

/* Navigation Links */
nav a {
  margin-left: 30px;
  color: var(--text);
  font-weight: 400;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease-out;
}

nav a:hover::after {
  width: 100%;
}

/* Main Content Area */
main {
  padding: 0;
  margin: 0;
}

/* Hero Section Styles (Used on index.html) */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-align: center;
  margin-bottom: 60px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.7);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 50px 30px;
  border-radius: 12px;
  max-width: 900px;
  box-shadow: 0 8px 25px var(--shadow-dark);
  animation: fadeInScale 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5em, 6vw, 4.5em);
  margin-bottom: 15px;
  color: var(--foreground);
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: clamp(1.1em, 2.8vw, 1.8em);
  margin-bottom: 40px;
  color: var(--text);
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-button {
  font-size: 1.2em;
  padding: 15px 30px;
}

/* Latest Work Section (Used on index.html) */
.latest-work-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.latest-work-section h2 {
    margin-bottom: 40px;
}

/* About Page Content (Used on about.html) */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.about-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  letter-spacing: 0.06em;
}

.about-content p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.profile-picture {
  width: min(200px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 20px var(--shadow-light);
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.profile-picture:hover {
  transform: scale(1.05);
}

/* Gallery Filter Buttons (Used on gallery.html) */
.gallery-filters {
  text-align: center;
  margin: 40px auto 30px auto;
  max-width: 1000px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.filter-button {
  background-color: var(--dark-gray);
  color: var(--text);
  border: 1px solid var(--medium-gray);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.3s ease;
}

.filter-button:hover {
  background-color: var(--medium-gray);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.filter-button.active {
  background-color: var(--accent);
  color: var(--background);
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 4px 10px var(--shadow-light);
}

/* Gallery Grid (Used on gallery.html) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.gallery-grid .gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 15px var(--shadow-dark);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.5s ease;
}

.gallery-grid .gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Hidden state for filtered items */
.gallery-grid .gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  height: 0;
  margin: 0;
  transition: opacity 0.5s ease, transform 0.5s ease, height 0s 0.5s, margin 0s 0.5s;
}
/* Visible state for filtered items - reset properties */
.gallery-grid .gallery-item:not(.hidden) {
    height: 300px;
    margin-bottom: 25px;
    transition: opacity 0.5s ease, transform 0.5s ease, height 0s, margin 0s;
}


/* Highlight Images (Used on index.html) */
.highlight-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-top: 30px;
}

.highlight-imgs img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 15px var(--shadow-dark);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  max-height: 450px;
}

.highlight-imgs img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* Footer Section */
footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 15px;
  color: var(--muted);
  border-top: 1px solid var(--medium-gray);
  margin-top: 80px;
  background-color: var(--dark-gray);
}

/* Social Media Icons (Placeholder styles) */
.social-links {
  margin-top: 15px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  font-size: 24px;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px) scale(1.1);
}

/* Buttons (Global Styles) */
.button {
  background-color: var(--accent);
  color: var(--background);
  padding: 12px 28px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.button:hover {
  background-color: #ff99aa;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

/* Keyframe Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Lightbox Styles */
#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

#lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background-color: var(--background);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

#lightbox-overlay.active #lightbox-container {
  transform: scale(1);
}

#lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  margin-bottom: 15px;
}

#lightbox-caption {
  color: var(--text);
  font-size: 1.1em;
  text-align: center;
  padding: 0 10px;
  font-weight: 300;
}

#lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2em;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}

#lightbox-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 2em;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

#lightbox-prev {
  left: 15px;
}

#lightbox-next {
  right: 15px;
}

/* Contact Page Styles (Used on contact.html) */
.contact-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.contact-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 40px;
}

.contact-form-wrapper, /* Still included for completeness, though no longer used in contact.html */
.contact-details-wrapper {
  background-color: var(--dark-gray);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-dark);
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.contact-form-wrapper h2,
.contact-details-wrapper h2 {
  color: var(--foreground);
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--medium-gray);
  border-radius: 5px;
  background-color: var(--background);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(255, 182, 193, 0.5);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .button {
  width: 100%;
  margin-top: 10px;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-links li {
  margin-bottom: 15px;
}

.contact-links a {
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 1.1em;
}

.contact-links a i {
  margin-right: 10px;
  color: var(--accent);
  font-size: 1.3em;
}

.contact-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.contact-details-wrapper p {
  margin-bottom: 10px;
  font-size: 1em;
}

.contact-details-wrapper h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--foreground);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Services Page Styles (Used on services.html) */
.services-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.services-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.service-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  margin-top: 40px;
}

.service-card {
  background-color: var(--dark-gray);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-dark);
  flex: 1;
  min-width: 280px;
  max-width: 45%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative; /* IMPORTANT: Establish positioning context for the badge */
}

.service-card h2 {
  color: var(--foreground);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6em;
  letter-spacing: 0.03em;
}

.service-card .price {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.service-card .per-item {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--muted);
}

.service-card .save-info {
  font-size: 0.9em;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 500;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.service-card ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 0.95em;
}

.service-card ul li i {
  color: var(--accent);
  margin-right: 8px;
  font-size: 1.1em;
}

.service-card .button {
  margin-top: auto;
  width: 100%;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

.service-card.highlight {
  border: 2px solid var(--accent);
  box-shadow: 0 0 25px var(--shadow-light);
  background-color: #242424;
}

.badge {
  position: absolute;
  top: -15px;
  right: 15px;
  background-color: var(--accent);
  color: var(--background);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 5;
  transform: rotate(5deg);
}

.workflow-info {
  max-width: 700px;
  margin: 60px auto 30px auto;
  padding: 0 20px;
  text-align: center;
}

.workflow-info h3 {
  color: var(--foreground);
  margin-bottom: 20px;
  font-size: 1.5em;
  letter-spacing: 0.05em;
}

.workflow-info p {
  font-size: 1.05em;
  line-height: 1.7;
}

/* NEW: Styles for the img-comparison-slider */
.slider-wrapper {
  margin: 25px auto; /* Centering and spacing */
  width: 100%;
  /* Define a max-width if the images are fixed aspect ratio and you want to constrain it */
  max-width: 600px; /* Example max-width, adjust as needed based on your images */
}

.custom-image-comparison-slider {
  width: 100%;
  height: auto; /* Allow height to adjust based on aspect ratio */
  display: block; /* Important for full width */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);

  /* NEW: Set a maximum height for the slider to prevent it from growing too large */
  max-height: 400px; /* Adjust this value to your desired maximum height */
  /* This ensures the slider itself doesn't exceed this height.
     The object-fit: cover on images inside will handle cropping if needed. */

  /* Override default slider styles if needed via CSS variables */
  --divider-width: 4px; /* Thickness of the handle bar */
  --divider-color: var(--foreground); /* Color of the handle bar */
  --handle-radius: 50%; /* Make the handle round */
  --handle-size: 40px; /* Size of the draggable handle */
  --handle-color: var(--foreground); /* Color of the handle circle */
  --handle-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); /* Shadow for the handle */
  --default-label-font: "Poppins", sans-serif; /* Font for labels */
  --default-label-background: rgba(0, 0, 0, 0.6); /* Background for labels */
  --default-label-color: var(--text); /* Text color for labels */
  --default-label-padding: 5px 10px; /* Padding for labels */
  --default-label-border-radius: 5px; /* Border radius for labels */
  --default-label-font-size: 0.9em; /* Font size for labels */
  --default-label-font-weight: 500; /* Font weight for labels */
}

.custom-image-comparison-slider img {
  object-fit: cover; /* Ensures images cover the area within the slider */
  width: 100%; /* Ensure images take full width within the slider */
  height: 100%; /* Ensure images take full height within the slider */
}

.comparison-caption {
  font-size: 0.9em;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}


/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  .logo {
    font-size: 24px;
  }
  nav a {
    margin-left: 20px;
  }
  .hero-section {
    height: 60vh;
    margin-bottom: 40px;
  }
  .hero-title {
    font-size: clamp(2em, 5vw, 3.5em);
  }
  .hero-subtitle {
    font-size: clamp(0.9em, 2.5vw, 1.3em);
  }
  .hero-overlay {
    padding: 30px 20px;
  }
  .latest-work-section,
  .about-content,
  .contact-section,
  .services-section {
    margin: 40px auto;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  .highlight-imgs {
    gap: 20px;
  }
  /* Lightbox adjustments for tablets */
  #lightbox-container {
    padding: 15px;
  }
  #lightbox-close {
    font-size: 1.8em;
    top: 10px;
    right: 10px;
  }
  .lightbox-nav {
    font-size: 1.8em;
    padding: 10px;
  }
  /* Contact form adjustments for tablets */
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  .contact-form-wrapper,
  .contact-details-wrapper {
    width: 90%;
    min-width: unset;
  }
  /* Services page adjustments for tablets */
  .service-card-container {
    flex-direction: column;
    align-items: center;
  }
  .service-card {
    width: 90%;
    max-width: 400px;
  }
  .badge {
    top: -10px;
    right: 10px;
  }
  /* Image comparison adjustments for tablets */
  .custom-image-comparison-slider {
    /* The library handles responsiveness internally quite well */
    max-height: 300px; /* Adjust for smaller screens if needed */
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  nav a {
    margin: 8px 0;
  }
  .hero-section {
    height: 50vh;
    margin-bottom: 30px;
  }
  .hero-overlay {
    padding: 20px 15px;
  }
  .hero-title {
    font-size: 2em;
    letter-spacing: 0.05em;
  }
  .hero-subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .hero-button {
    font-size: 1em;
    padding: 10px 20px;
  }
  .about-content {
    text-align: left;
    align-items: flex-start;
  }
  .profile-picture {
    width: min(150px, 60vw);
  }
  footer {
    margin-top: 40px;
    padding: 20px;
  }
  /* Lightbox adjustments for mobile */
  #lightbox-container {
    max-width: 95%;
    max-height: 95%;
    padding: 10px;
  }
  #lightbox-image {
    max-height: 70vh;
  }
  #lightbox-caption {
    font-size: 0.9em;
  }
  .lightbox-nav {
    font-size: 1.5em;
    padding: 8px;
  }
  #lightbox-prev {
    left: 5px;
  }
  #lightbox-next {
    right: 5px;
  }
  /* Contact form adjustments for mobile */
  .contact-form-wrapper,
  .contact-details-wrapper {
    width: 100%;
    padding: 20px;
  }
  .contact-intro {
    font-size: 1em;
    margin-bottom: 20px;
  }
  /* Services page adjustments for mobile */
  .services-intro {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .service-card {
    padding: 20px;
  }
  .service-card h2 {
    font-size: 1.4em;
  }
  .service-card .price {
    font-size: 2em;
  }
  .service-card .per-item {
    font-size: 0.6em;
  }
  .service-card .save-info {
    font-size: 0.9em;
  }
  .workflow-info {
    padding: 0 15px;
  }
  .workflow-info h3 {
    font-size: 1.3em;
  }
  /* Image comparison adjustments for mobile */
  .custom-image-comparison-slider {
    max-height: 250px; /* Adjust further for small mobile screens if needed */
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.8em;
  }
  .hero-subtitle {
    font-size: 0.9em;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
