/* Base Styles */
:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fbbf24;
  --bg-dark: #1a1a1a;
  --bg-darker: #111111;
  --bg-light: #222222;
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: #333333;
  --card-bg: #1e1e1e;
  --card-hover: #2a2a2a;
  --gradient-start: rgba(26, 26, 26, 0.8);
  --gradient-end: rgba(17, 17, 17, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background: #fff;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  padding: 0.5rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem;
  transition: transform 0.3s ease;
  margin-right: 2rem;
  background: transparent;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-image {
  height: 100px;
  width: auto;
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  cursor: pointer;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #333333;
  z-index: 1001;
}

/* Mobile Menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Admin Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
}

.close:hover {
  color: #333;
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #333;
}

.modal-content input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
}

/* Admin Panel */
.admin-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1500;
  overflow-y: auto;
}

.admin-header {
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.admin-content {
  background: white;
  min-height: calc(100vh - 80px);
  padding: 2rem;
}

.admin-section {
  max-width: 1000px;
  margin: 0 auto;
}

.admin-section h3 {
  margin-bottom: 1.5rem;
  color: #333;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.admin-section h4 {
  margin: 1.5rem 0 1rem 0;
  color: #555;
}

.current-images {
  margin-bottom: 2rem;
}

.images-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.image-item {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  overflow: hidden;
  background: white;
}

.admin-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.image-controls {
  padding: 0.75rem;
  text-align: center;
}

.image-controls span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.add-image-section {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.add-image-section input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 2px dashed #ddd;
  border-radius: 0.5rem;
  background: white;
}

.project-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-form-fields input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
}

.image-settings {
  background: #f0f9ff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary);
}

.image-settings label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #333;
}

.image-settings input[type="number"] {
  width: 100px;
  padding: 0.5rem;
  margin-left: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-image-container {
  position: relative;
  height: 100%;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-light);
  width: 90%;
  max-width: 900px;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.2s backwards;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-danger {
  background: #ef4444;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
}

.bg-light {
  background: #f9fafb;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  text-align: center;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Projects */
.projects-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  flex: 1;
  min-height: 300px;
}

.project-card {
  position: relative;
  height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

/* Navigation Arrows */
.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-arrow:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.nav-arrow:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.nav-arrow-left {
  margin-right: 1rem;
}

.nav-arrow-right {
  margin-left: 1rem;
}

/* Project Indicators */
.projects-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary);
  transform: scale(1.2);
}

.indicator:hover {
  background: var(--primary-light);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 0.5rem;
}

.close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    background: white;
    padding: 6rem 2rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: flex;
  }

  .logo-image {
    height: 80px;
  }

  .modal-content {
    margin: 25% auto;
    width: 95%;
  }

  .admin-content {
    padding: 1rem;
  }

  .images-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .admin-thumbnail {
    height: 100px;
  }

  .projects-container {
    flex-direction: column;
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .nav-arrow {
    display: none;
  }

  .project-form-fields {
    grid-template-columns: 1fr;
  }
}