/* =============================
   Projects Section
============================= */
* {
  box-sizing: border-box;
}

#projects {
  width: 100%;
  padding: 60px 20px 140px; /* ✅ FIX: bottom space for button */
  text-align: center;
  background: #f9f9f9;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

#projects h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #29145c;
}

/* ============================= */
/* Projects Container */
.projects-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

/* ============================= */
/* Project Card */
.project-card {
  background: #fff;
  width: 100%;
  max-width: 300px;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
}

/* ============================= */
/* Logo */
.logo-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 15px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================= */
/* Text */
.project-card h3 {
  margin-bottom: 10px;
  color: #007BFF;
  font-size: 1.15em;
}

.project-card p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 5px;
}

/* ============================= */
/* Read More Content */
.project-card .more-content {
  max-height: 60px;
  overflow: hidden;
  margin-top: 5px;
  padding: 5px 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
  position: relative;
  transition: max-height 0.4s ease;
}

.project-card.expanded .more-content {
  max-height: 1000px;
}

.project-card .more-content::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, transparent, #fff);
}

.project-card.expanded .more-content::after {
  display: none;
}

/* ============================= */
/* Read More Button */
.project-card .read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #007BFF;
  cursor: pointer;
}

.project-card .read-more:hover {
  color: #28a745;
}

/* ============================= */
/* Responsive Cards */
@media (max-width: 768px) {
  #projects h2 {
    font-size: 2em;
  }

  .projects-container {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    max-width: 100%;
  }
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BODY OFFSET ================= */
body {
  padding-top: 80px;
}

/* ================= NAVBAR ================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  z-index: 9999;
}

.header-inner {
  max-width: 1400px;
  height: 100%;
  margin: auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 70px;
}

/* ================= NAV ================= */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* ================= MEGA MENU ================= */
.mega-menu {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  background: #fff;
  padding: 30px 40px;
  border-radius: 14px;
  display: none;
  z-index: 99999;
}

.mega-dropdown:hover .mega-menu {
  display: block;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .mega-menu {
    display: none !important;
  }
}

/* ================= PROJECT BUTTON (FIXED & VISIBLE) ================= */
.project-btn-wrapper {
  width: 100%;
  text-align: center;
  margin: 60px 0;
  clear: both;
  display: block;
  position: relative;
  z-index: 50;
}

.project-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #22c55e;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .project-btn {
    width: 90%;
  }
}
