/* Studio Invoid - Custom Styles */

:root {
  --color-background: #CDCBCE;
  --color-primary: #6C6B6C;
  --color-secondary: #4A4949;
  --color-text-dark: #1F2937;
  --color-text-light: #6B7280;
  --color-white: #FFFFFF;
  --color-instagram: #E4405F;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Comfortaa', cursive;
  background: var(--color-background);
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Hero Text Gradient */
.hero-text {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  background: linear-gradient(0deg, #6C6B6C 0%, #4A4949 80.4393%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-word;
  hyphens: auto;
}

/* Button Styles */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(108, 107, 108, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(108, 107, 108, 0.4);
}

.btn-secondary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background-color: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(108, 107, 108, 0.2);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 8px rgba(108, 107, 108, 0.3);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Project Card Hover Overlay */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  filter: grayscale(0%);
  transition: filter 0.5s ease, transform 0.3s ease;
}

.project-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  padding: 1rem;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease, opacity 0.15s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
  transform: scale(0.95);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

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

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

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

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Zoom Controls */
.lightbox-zoom-controls {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 24px;
  z-index: 10;
}

.lightbox-zoom-controls button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-zoom-controls button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.lightbox-zoom-controls button:active:not(:disabled) {
  transform: scale(0.95);
}

.lightbox-zoom-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.zoom-indicator {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 3rem;
  text-align: center;
  user-select: none;
}

/* Counter */
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 16px;
  z-index: 10;
  user-select: none;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .hero-text {
    font-size: 2.5rem !important;
    line-height: 1.1;
  }
  
  .project-card-title {
    font-size: 1.25rem;
  }

  /* Mobile Lightbox Adjustments */
  .lightbox-prev,
  .lightbox-next {
    padding: 0.75rem;
  }

  .lightbox-prev svg,
  .lightbox-next svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .lightbox-close {
    padding: 0.75rem;
  }

  .lightbox-close svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .lightbox-zoom-controls {
    bottom: 4rem;
    padding: 0.4rem 0.75rem;
    gap: 0.4rem;
  }

  .lightbox-zoom-controls button {
    padding: 0.4rem;
  }

  .lightbox-zoom-controls svg {
    width: 1rem;
    height: 1rem;
  }

  .zoom-indicator {
    font-size: 0.75rem;
    min-width: 2.5rem;
  }

  .lightbox-counter {
    font-size: 0.75rem;
    bottom: 1rem;
    padding: 0.4rem 0.75rem;
  }

  /* Carousel responsive */
  .carousel-container {
    height: auto !important;
    min-height: 280px;
  }
}

@media (max-width: 380px) {
  .hero-text {
    font-size: 2rem !important;
  }
  
  .carousel-container {
    min-height: 260px;
  }
}

/* Tablet specific styles */
@media (min-width: 641px) and (max-width: 1024px) {
  .carousel-container {
    height: auto !important;
    min-height: 380px;
  }
  
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Desktop and large screens */
@media (min-width: 1025px) {
  .carousel-container {
    height: auto !important;
    min-height: 520px;
  }
}

/* Extra large screens */
@media (min-width: 1920px) {
  .carousel-container {
    min-height: 600px;
  }
  
  .container {
    max-width: 1600px;
  }
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive grid adjustments */
@media (max-width: 640px) {
  .grid {
    gap: 1rem;
  }
}

/* Responsive text sizes */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  p {
    font-size: 0.875rem;
  }
}
