/* ===========================
   Global Styles
   =========================== */

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222;
  line-height: 1.7;
}

/* ===========================
   HERO SECTION
   =========================== */

.projects-hero {
  margin-top: 0;
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgb(69, 85, 175) 0%, rgb(50, 65, 145) 100%);
  overflow: hidden;
}

.projects-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.projects-hero::after {
  content: "";
  position: absolute;
  bottom: -35%;
  left: -12%;
  width: 450px;
  height: 450px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 5px;
  margin-top: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  margin: 20px 0;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  opacity: 0.7;
  animation: bounce 2s infinite;
  z-index: 2;
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ===========================
   SECTION HEADERS
   =========================== */

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  color: rgb(34, 139, 34);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-label.light {
  color: rgba(255, 255, 255, 0.9);
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #222;
  margin: 10px 0 15px;
  letter-spacing: -1px;
}

.section-header p {
  color: #666;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   PROCESS SECTION
   =========================== */

.process-section {
  padding: 100px 10%;
  background: #f9f9f9;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1400px;
  margin: 0 auto;
}

.process-card {
  background: white;
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, rgb(34, 139, 34), rgb(69, 85, 175));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.process-card:hover::before {
  transform: scaleX(1);
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.process-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgb(34, 139, 34), rgb(50, 160, 50));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.process-card:hover .process-icon {
  transform: rotate(5deg) scale(1.05);
}

.process-icon i {
  font-size: 2.2rem;
  color: white;
}

.process-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 20px;
}

.process-intro {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* ===========================
   DROPDOWN SYSTEM
   =========================== */

.dropdown-container {
  margin-top: 25px;
}

.toggle-bar {
  width: 100%;
  background: linear-gradient(135deg, rgb(69, 85, 175), rgb(50, 65, 145));
  color: white;
  border: none;
  padding: 16px 25px;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(69, 85, 175, 0.3);
}

.toggle-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(69, 85, 175, 0.4);
}

.toggle-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.toggle-bar.active .toggle-icon {
  transform: rotate(45deg);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
}

.dropdown-content.active {
  max-height: 2000px;
  opacity: 1;
  margin-top: 20px;
}

.dropdown-section {
  background: #f9f9f9;
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 15px;
  border-left: 4px solid rgb(34, 139, 34);
}

.dropdown-section:last-child {
  margin-bottom: 0;
}

.dropdown-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  color: #222;
  margin: 0 0 15px;
  font-weight: 700;
}

.dropdown-section h4 i {
  color: rgb(34, 139, 34);
  font-size: 1.1rem;
}

.dropdown-section p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 15px;
}

.dropdown-section p:last-child {
  margin-bottom: 0;
}

.dropdown-section ul {
  margin: 10px 0 0;
  padding-left: 25px;
  color: #555;
}

.dropdown-section ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.dropdown-section ul li:last-child {
  margin-bottom: 0;
}

/* ===========================
   PORTFOLIO SECTION
   =========================== */

.portfolio-section {
  position: relative;
  background: linear-gradient(135deg, rgb(34, 139, 34) 0%, rgb(50, 160, 50) 100%);
  padding: 100px 10%;
  overflow: hidden;
}

.portfolio-section::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.portfolio-title {
  color: white !important;
}

.portfolio-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.project-button {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-button:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-button:hover .project-image-wrapper img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(69, 85, 175, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-overlay i {
  font-size: 3rem;
  color: white;
}

.project-title {
  display: block;
  padding: 25px 20px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
}

/* ===========================
   MODAL SYSTEM
   =========================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.modal.visible {
  display: flex;
}

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

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  padding: 50px 40px 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 30px;
  text-align: center;
}

.modal-content p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  margin-top: 25px;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
}

.close:hover {
  background: rgb(34, 139, 34);
  color: white;
  transform: rotate(90deg);
}

/* ===========================
   MODAL SLIDER
   =========================== */

.modal-slider {
  position: relative;
  width: 100%;
  height: 50vh;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background: rgb(34, 139, 34);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left {
  left: 15px;
}

.slider-arrow.right {
  right: 15px;
}

.slider-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  user-select: none;
  backdrop-filter: blur(5px);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .process-section {
    padding: 80px 8%;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portfolio-section {
    padding: 80px 8%;
  }

  .project-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .projects-hero {
    height: auto;
    min-height: 400px;
    padding: 100px 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .process-section {
    padding: 60px 6%;
  }

  .process-card {
    padding: 35px 25px;
  }

  .process-icon {
    width: 70px;
    height: 70px;
  }

  .process-icon i {
    font-size: 1.8rem;
  }

  .process-card h3 {
    font-size: 1.7rem;
  }

  .portfolio-section {
    padding: 60px 6%;
  }

  .project-gallery {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
  }

  .project-image-wrapper {
    height: 240px;
  }

  .project-title {
    font-size: 1.15rem;
    padding: 20px 15px;
  }

  .modal-content {
    padding: 40px 25px 30px;
  }

  .modal-content h2 {
    font-size: 1.8rem;
  }

  .modal-slider {
    height: 40vh;
    max-height: 320px;
  }

  .slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .slider-arrow.left {
    left: 10px;
  }

  .slider-arrow.right {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .process-card {
    padding: 30px 20px;
  }

  .process-icon {
    width: 60px;
    height: 60px;
  }

  .process-icon i {
    font-size: 1.6rem;
  }

  .process-card h3 {
    font-size: 1.5rem;
  }

  .process-intro {
    font-size: 1rem;
  }

  .toggle-bar {
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .dropdown-section {
    padding: 18px 20px;
  }

  .dropdown-section h4 {
    font-size: 1.05rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-image-wrapper {
    height: 220px;
  }

  .modal-content h2 {
    font-size: 1.6rem;
  }

  .modal-slider {
    height: 35vh;
    max-height: 260px;
  }

  .slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slider-counter {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}