@charset "UTF-8";

/* ===== ARCHUB - მთავარი CSS ფაილი ===== */

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 16px 24px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s ease;
  pointer-events: auto;
  max-width: 350px;
  word-wrap: break-word;
}

.toast.success { background: #3b82f6; }
.toast.error { background: #ef4444; }
.toast.warning { background: #f59e0b; color: #212529; }
.toast.info { background: #6366f1; }
.toast.hiding { animation: toastSlideOut 0.3s ease forwards; }

.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-message { flex: 1; }

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.toast-close:hover { opacity: 1; }

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ===== Utility Classes ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-15 { margin-top: 15px; }
.footer-admin-link { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-admin-link:hover { color: #fff; }

/* ===== Fonts ===== */
@font-face {
  font-family: 'DejaVu Sans';
  src: url('../fonts/dejavu-sans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BPG Nino Mtavruli Bold';
  src: url('../fonts/bpg-nino-mtavruli-bold-webfont.woff2') format('woff2'),
       url('../fonts/bpg-nino-mtavruli-bold-webfont.woff') format('woff'),
       url('../fonts/bpg-nino-mtavruli-bold-webfont.ttf') format('truetype');
}

/* ===== CSS Variables ===== */
:root {
  --color-black: #000;
  --color-dark-gray: #464646;
  --color-dark-gray-70: rgba(52, 52, 52, 0.7);
  --color-yellow: #ffc400;
  --color-white: #fff;
  --color-white-80: rgba(255, 255, 255, 0.6);
  --color-card-info-bg: rgba(52, 52, 52, 0.7);
  --color-purple: #420092;
  --color-red: #900000;
  --color-orange: #ff6633;
  --gradient-accent: linear-gradient(90deg, #0800ff, #c300ff);
}

/* ===== Base Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: 'DejaVu Sans', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

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

/* Text Selection */
::selection {
  background: rgba(66, 0, 146, 0.3);
  color: var(--color-black);
}

::-moz-selection {
  background: rgba(66, 0, 146, 0.3);
  color: var(--color-black);
  font-weight: 100;
}

html {
  scroll-padding-top: 0;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  color: var(--color-black);
  background: url('/static/images/mtavari foni.jpg') center/cover fixed no-repeat;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header & Navigation - გადატანილია header.css ფაილში ===== */

/* ===== Main Content ===== */
.main {
  width: 100%;
  padding-top: 135px;
  overflow-x: hidden;
}

/* ===== Carousel ===== */
.carousel {
  width: 100%;
  height: 250px;
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
  padding-bottom: 5px;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}
.carousel-slide.active { opacity: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Energy Efficiency Banner ===== */
.energy-banner {
  width: 94%;
  height: 100px;
  background-color: var(--color-white-80);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 0;
  box-sizing: border-box;
  margin: 30px auto;
}

.energy-banner-left {
  height: 100%;
}

.energy-logo-img {
  height: 100%;
  width: auto;
  display: block;
}

.energy-banner-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.energy-text,
.energy-text span {
  font-family: 'BPG Nino Mtavruli Bold', sans-serif;
  font-size: clamp(12px, 3.5vw, 50px);
  font-weight: 700;
  color: #009A00;
  margin: 0;
  text-align: center;
  line-height: 1.1;
}

.energy-text {
  transform: translateY(5px);
}

/* ===== Section 1 - Services ===== */
.section-1 {
  width: 94%;
  min-height: 700px;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-around;
  flex-wrap: wrap;
  background-color: var(--color-white-80);
  margin: 0 auto;
}

.section-1-left {
  width: 650px;
  height: 650px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-1-left-content {
  width: 70%;
  aspect-ratio: 1;
  transform: rotate(23deg);
  position: relative;
}

.photo-1, .photo-2, .photo-3, .photo-4 {
  width: 48%;
  height: 48%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
}

.photo-1 { background-image: url(/static/images/logo%201.jpg); top: 0; left: 0; }
.photo-2 { background-image: url(/static/images/logo%202.jpg); top: 0; right: 0; }
.photo-3 { background-image: url(/static/images/logo%203.jpg); bottom: 0; left: 0; }
.photo-4 { background-image: url(/static/images/logo%204.jpg); bottom: 0; right: 0; }

.overlay-element {
  width: 280px;
  height: 100px;
  background-color: var(--color-white);
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  position: absolute;
  bottom: 15%;
  right: 2%;
  z-index: 10;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.overlay-element h3 {
  font-size: 60px;
  font-weight: 600;
  color: var(--color-yellow);
}

.overlay-element p {
  font-size: 20px;
  color: var(--color-black);
}

.section-1-right {
  width: 650px;
  height: 650px;
  padding: 10px;
  position: relative;
}

.section-1-right h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  font-family: 'BPG Nino Mtavruli Bold', sans-serif;
  color: var(--color-red);
}

.section-1-right h2 {
  font-size: 26px;
  line-height: 1.2;
  font-family: 'BPG Nino Mtavruli Bold', sans-serif;
  color: var(--color-black);
}

.section-1-right p {
  font-size: 16px;
  color: var(--color-black);
  margin: 10px 10px 10px 20px;
  text-align: justify;
}

/* Services List SEO-optimized styling */
.services-list {
  list-style: none;
  padding: 0;
  margin: 10px 20px 10px 30px;
  display: flex;
  flex-direction: column;
}

.services-list li {
  font-size: 16px;
  color: var(--color-black);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.services-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-black);
  font-weight: bold;
}

.services-list li span[itemprop="name"] {
  font-weight: 500;
}

.projects-btn {
  width: 150px;
  height: 40px;
  background: var(--color-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
  left: 0;
  color: var(--color-white);
  font-size: 16px;
  border: 1px solid var(--color-black);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.projects-btn:hover { transform: scale(1.05); }

.gipc-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.gipc-buttons .projects-btn {
  position: relative;
  bottom: auto;
  left: auto;
  color: var(--color-black);
}

/* gipc.org.ge ღილაკი - გამჭვირვალე ფონით */
.gipc-buttons .projects-btn:last-child {
  background: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
}

/* Section 1 - Responsive */
@media (max-width: 900px) {
  .section-1 {
    flex-direction: column;
    padding: 20px;
    gap: 30px;
  }
  .section-1-left {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1;
  }
  .section-1-right {
    width: 100%;
    max-width: 600px;
    height: auto;
    padding: 20px;
  }
  .section-1-right h1 { font-size: 32px; }
  .section-1-right h2 { font-size: 22px; }
  .projects-btn { 
    position: relative; 
    margin-top: 15px; 
  }
  .overlay-element { width: 180px; height: 70px; }
  .overlay-element h3 { font-size: 36px; }
  .overlay-element p { font-size: 12px; }
}

@media (max-width: 600px) {
  .section-1 {
    padding: 15px;
    gap: 20px;
  }
  .section-1-left {
    max-width: 350px;
  }
  .section-1-right {
    padding: 15px;
  }
  .section-1-right h1 { font-size: 1.6rem; }
  .section-1-right h2 { font-size: 1.2rem; }
  .services-list { margin: 10px 10px 15px 20px; }
  .services-list li { font-size: 14px; line-height: 1.4; }
  .section-1-right p { margin: 10px 10px 15px 20px; font-size: 14px; }
  .overlay-element { 
    width: 42%; 
    height: auto; 
    padding: 7px; 
  }
  .overlay-element h3 { font-size: 28px; }
  .overlay-element p { font-size: 10px; }
}

/* ===== Section 2 - Projects Carousel ===== */
.section-2 {
  width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  --s2-card-w: 450px;
}

.projects-scroll-1 { position: relative; z-index: 2; overflow: visible; }
.section-2-top-bar, .section-2-bottom-bar { position: relative; z-index: 1; }

.section-2-top-bar, .section-2-bottom-bar {
  width: 100%;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.section-2-top-bar { align-items: flex-end; }
.section-2-bottom-bar { align-items: center; overflow: hidden; }

.section-2-top-bar h3 {
  font-size: 34px;
  font-family: 'BPG Nino Mtavruli Bold', sans-serif;
  color: var(--color-white);
  margin: 0;
  line-height: 1;
  transform: translateY(10px);
}

/* Search */
.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: var(--s2-card-w);
  height: 48px;
  justify-content: center;
  position: relative;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--s2-card-w);
  height: 38px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-box:focus-within {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--color-black);
  padding: 6px 8px;
  height: 20px;
}
.search-input::placeholder { color: #666; font-style: italic; }

.search-btn, .clear-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--color-purple);
  width: 24px;
  height: 24px;
}
.search-btn:hover, .clear-search-btn:hover { transform: scale(1.1); }
.clear-search-btn { color: #666; }
.clear-search-btn:hover { color: var(--color-red); }

/* Cards Container */
.projects-scroll-1 {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(var(--s2-card-w) * 3 / 4 + 60px);
}

.cards-container {
  display: flex;
  gap: 30px;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 30px 55px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cards-container::-webkit-scrollbar { width: 0; height: 0; }

/* Project Cards */
.project-card {
  width: 450px;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.3);
}

.projects-scroll-1 .project-card {
  overflow: visible;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform-origin: center;
  scroll-snap-align: center;
  flex: 0 0 auto;
  height: calc(var(--s2-card-w) * 3 / 4);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-scroll-1 .project-card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 5;
  will-change: transform, box-shadow;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-card-info-bg);
  color: var(--color-white);
  padding: 15px 10px;
  pointer-events: none;
  border-radius: 0 0 10px 10px;
}

.card-area { font-size: 16px; }

/* Search Highlight */
.project-card.search-highlighted {
  border: 3px solid var(--color-yellow);
  box-shadow: 0 0 20px rgba(255, 196, 0, 0.6);
  transform: scale(1.02);
}

/* Like Button */
.like-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.like-btn:hover { 
  transform: scale(1.15);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.like-btn:active {
  transform: scale(0.95);
}
.like-btn svg { 
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Section 2 Navigation Arrows */
.projects-scroll-1 .nav-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  font-size: 60px;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s ease;
  padding: 15px;
  background: none;
  border: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.projects-scroll-1 .nav-icon:hover {
  transform: translateY(-50%) scale(1.1);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}
.projects-scroll-1 .prev { left: 20px; }
.projects-scroll-1 .next { right: 20px; }

/* Gallery Like Button */
.gallery-like-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.gallery-like-btn:hover { transform: scale(1.1); }
.gallery-like-btn svg { transition: all 0.3s ease; }

/* ===== Section 3 - Projects Grid ===== */
.section-3 {
  width: 94%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-white-80);
  margin: 0 auto;
}

.section-3-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1340px;
  width: 100%;
  padding: 50px 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  width: 100%;
  justify-items: center;
}

.projects-grid .project-card {
  width: 310px;
  margin: 0 auto;
  height: 233px;
  background: var(--color-white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.projects-grid .project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.projects-grid .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  background: var(--color-purple);
}

.projects-grid .card-info {
  padding: 16px 15px 12px;
}

.projects-grid .card-area { font-size: 12px; }

/* ===== Footer ===== */
.footer {
  background: #1a1a1a;
  color: var(--color-white);
  padding: 50px 0 20px;
  position: relative;
  margin-top: 50px;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--color-white);
  font-size: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 0.7rem;
  transition: all 0.3s ease;
}
.footer-section p:hover { 
  color: var(--color-white);
  transform: translateX(5px);
}
.footer-section p a { 
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-section p a:hover { color: var(--color-white); }

.footer-links { list-style: none; }
.footer-links li { 
  margin-bottom: 0.8rem;
  padding-left: 15px;
  position: relative;
}
.footer-links li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-white);
  font-weight: bold;
  transition: transform 0.3s ease;
}
.footer-links li:hover::before {
  transform: translateX(5px);
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.3s ease;
}
.footer-links a:hover { 
  color: var(--color-white);
  padding-left: 5px;
}

.footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
  margin-top: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 14px;
  transition: color 0.3s ease;
}
.footer-bottom p:hover { color: var(--color-white-80); }

/* ===== Auth Modals ===== */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(26, 26, 46, 0.8) 100%);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-content {
  background: #ffffff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-50px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fafafa;
  border-radius: 6px 6px 0 0;
}

.auth-modal-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.auth-modal-close {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  justify-content: center;
  transition: all 0.3s ease;
}
.auth-modal-close:hover {
  background: #1a1a1a;
  color: white;
  transform: rotate(90deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-form { padding: 30px; }

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

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #444;
  margin-bottom: 10px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  color: var(--color-black);
  background-color: #fff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:hover, .form-group textarea:hover {
  border-color: #999;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
  background-color: var(--color-white);
}

.form-group input[readonly], .form-group textarea[readonly] {
  background-color: var(--color-purple);
  color: #616161;
  cursor: not-allowed;
}

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

.auth-form button[type="submit"] {
  width: 100%;
  height: 50px;
  background: #3b82f6;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 15px;
}

.auth-form button[type="submit"]:hover {
  background: #2563eb;
}

.auth-form button[type="submit"]:active { 
  background: #1d4ed8;
}

.auth-form button[type="submit"]:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.auth-form button[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.2);
}

.auth-form p a {
  color: #3b82f6;
  font-weight: 500;
  transition: all 0.2s ease;
}
.auth-form p a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* ===== Gallery Modal ===== */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content {
  width: 90vw;
  height: 80vh;
  max-width: 1000px;
  max-height: 700px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
  animation: slideIn 0.3s ease;
}

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* მობილურზე სრული ფოტო ჩანდეს, არა ჩამოჭრილი */
@media (max-width: 768px) {
  .slide img {
    object-fit: contain;
    background-color: #1a1a1a;
  }
}

.close-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  padding: 10px;
}
.close-icon:hover { transform: scale(1.1); }

.nav-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 80px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  padding: 20px;
}
.nav-icon:hover { transform: translateY(-50%) scale(1.1); }
.prev { left: -10px; }
.next { right: -10px; }

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  background: white;
  transform: scale(1.2);
}

.no-photos {
  text-align: center;
  color: white;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  margin: 20px;
}

.no-photos h3 { font-size: 16px; margin-bottom: 10px; }
.no-photos p { font-size: 16px; color: #ccc; }

/* ===== Responsive Design ===== */

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
  .section-2 { --s2-card-w: 380px; }
  .project-card { width: 380px; }
  
  .project-card.search-highlighted {
    border: 2px solid var(--color-yellow);
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.5);
    transform: scale(1.01);
  }
  
  .cards-container { gap: 25px; padding: 5px 30px; }
  
  .like-btn { width: 35px; height: 35px; top: 10px; right: 10px; }
  .like-btn svg { width: 16px; height: 16px; }
  
  .section-2-top-bar h3 { font-size: 22px; }
  .projects-scroll-1 { height: calc(var(--s2-card-w) * 3 / 4 + 60px); }
  
  .section-3 { padding: 20px 0; }
  .section-3-content { width: 95%; padding: 15px; }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }
  
  .projects-grid .project-card {
    width: 100%;
    max-width: 310px;
    height: auto;
    aspect-ratio: 4/3;
  }
  
  .projects-scroll-1 .nav-icon { font-size: 50px; padding: 12px; }
  .projects-scroll-1 .prev { left: 15px; }
  .projects-scroll-1 .next { right: 15px; }
  
  .gallery-modal-content { width: 95vw; height: 85vh; max-width: none; max-height: none; margin: 10px; }
  .gallery-like-btn { width: 40px; height: 40px; top: 15px; left: 15px; }
  .gallery-like-btn svg { width: 20px; height: 20px; }
  .nav-icon { font-size: 60px; padding: 15px; }
  .prev { left: -5px; }
  .next { right: -5px; }
  .close-icon { font-size: 24px; padding: 8px; }
  .dots { bottom: 15px; }
  .dot { width: 6px; height: 6px; }
  
  .overlay-element { width: 200px; height: 80px; padding: 8px; bottom: 12%; right: 1%; }
  .overlay-element h3 { font-size: 40px; }
  .overlay-element p { font-size: 16px; }
  
  .search-container { max-width: 90%; }
  .search-input { font-size: 13px; }
  .search-btn, .clear-search-btn { width: 22px; height: 22px; }
  .search-btn svg, .clear-search-btn svg { width: 16px; height: 16px; }
  
  .form-group { margin-bottom: 15px; }
  .form-group input, .form-group textarea { padding: 10px 12px; }
  .form-group textarea { min-height: 100px; }
  
  .auth-modal-content { width: 95%; margin: 20px; max-height: calc(100vh - 40px); }
  .auth-modal-header { padding: 20px 20px 15px; }
  .auth-modal-header h2 { font-size: 20px; }
  .auth-form { padding: 20px; }
  .auth-form button[type="submit"] { height: 45px; }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .toast-container { left: 10px; right: 10px; top: 10px; }
  .toast { max-width: 100%; }
  
  .section-2 { --s2-card-w: 280px; }
  .project-card { width: 280px; }
  
  .project-card.search-highlighted {
    border: 2px solid var(--color-yellow);
    box-shadow: 0 0 10px rgba(255, 196, 0, 0.4);
    transform: scale(1.01);
  }
  
  .cards-container { gap: 20px; padding: 30px 20px; }
  .section-2-top-bar h3 { font-size: 18px; }
  .projects-scroll-1 { height: calc(var(--s2-card-w) * 3 / 4 + 60px); }
  .projects-scroll-1 .nav-icon { font-size: 40px; padding: 10px; }
  .projects-scroll-1 .prev { left: 10px; }
  .projects-scroll-1 .next { right: 10px; }
  
  .overlay-element { width: 42%; height: auto; padding: 7px; bottom: 20%; right: 1%; }
  .overlay-element h3 { font-size: 22px; }
  .overlay-element p { font-size: 10px; }
  
  .gallery-modal-content { width: 98vw; height: 90vh; margin: 5px; }
  .gallery-like-btn { width: 35px; height: 35px; top: 10px; left: 10px; }
  .gallery-like-btn svg { width: 18px; height: 18px; }
  .nav-icon { font-size: 50px; padding: 10px; }
  .prev { left: -2px; }
  .next { right: -2px; }
  .close-icon { font-size: 20px; padding: 6px; }
  .dots { bottom: 10px; }
  .dot { width: 5px; height: 5px; }
  
  .search-container { max-width: 95%; }
  .search-box { padding: 6px 8px; }
  .search-input { font-size: 12px; }
  .search-btn, .clear-search-btn { width: 20px; height: 20px; }
  .search-btn svg, .clear-search-btn svg { width: 14px; height: 14px; }
  
  .projects-grid .project-card { width: 280px; height: 210px; }
  .projects-grid .like-btn { width: 35px; height: 35px; top: 10px; right: 10px; }
  .projects-grid .like-btn svg { width: 16px; height: 16px; }
}
