@charset "UTF-8";

/* =====================================================
   1. GLOBAL RESET & VARIABLES
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

:root {
  --primary: #1e40af;
  --secondary: #2563eb;
  --accent: #f59e0b;

  --dark: #1f2937;
  --charcoal: #0f172a;

  --light: #f8fafc;
  --surface: #f1f5f9;

  --muted: #6b7280;
  --border: #e5e7eb;
}

/* =====================================================
   2. BASE ELEMENTS
===================================================== */
body {
  color: var(--dark);
  line-height: 1.6;
  background: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =====================================================
   3. LAYOUT UTILITIES
===================================================== */
.page-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding-top: 65px; /* navbar clearance */
}

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

.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bg-light {
  background: var(--light);
}

/* =====================================================
   4. NAVBAR
===================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(30, 58, 138, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-button {
  display: flex;
  align-items: center;
  gap: 15px;
}

.custom-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: #e0f2fe;
  font-weight: 500;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #93c5fd;
}

.btn-outline {
  border: 1px solid #93c5fd;
  padding: 8px 18px;
  border-radius: 20px;
  color: #93c5fd;
}

/* =====================================================
   5. PROJECTS GRID
===================================================== */
#projects-list {
  position: relative;
  z-index: 2;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 20px;
}

/* =====================================================
   6. PROJECT CARD (PREMIUM)
===================================================== */
.project-card-pro {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  perspective: 1000px;
}

.project-card-pro:hover {
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
}

/* ---------- IMAGE ---------- */
.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.project-card-pro:hover .card-image img {
  transform: scale(1.12) translateY(-6px);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(30, 64, 175, 0.95);
  color: #ffffff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- CONTENT ---------- */
.card-content {
  padding: 22px 22px 10px;
}

.card-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- FOOTER ---------- */
.card-footer {
  margin-top: auto;
  padding: 16px 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.card-meta {
  font-size: 13px;
  color: var(--muted);
}

.card-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.project-card-pro:hover .card-cta {
  color: var(--accent);
}

/* =====================================================
   7. PROJECT SHOWCASE MODAL
===================================================== */
.project-showcase {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 3000;
}

.project-showcase.active {
  display: block;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.showcase-panel {
  position: relative;
  max-width: 1100px;
  margin: auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.35);
  animation: slideUp 0.6s cubic-bezier(.22,.61,.36,1);
}

/* ---------- GRID ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- IMAGES ---------- */
.showcase-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.showcase-images img {
  width: 100%;
  max-height: 32vh;
  object-fit: contain;
  border-radius: 14px;
}

/* ---------- CONTENT ---------- */
.showcase-content {
  position: sticky;
  top: 20px;
}

.showcase-content h2 {
  font-size: 35px;
  margin-bottom: 20px;
}

.showcase-content ul {
  padding-left: 20px;
}

.showcase-content li {
  font-size: 18px;
  margin-bottom: 14px;
  text-align: justify;
  animation: pointFade 0.45s ease forwards;
}

/* ---------- META ---------- */
.showcase-meta {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
}

.meta-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

.meta-value {
  font-size: 14px;
  font-weight: 500;
}

/* =====================================================
   8. FOOTER
===================================================== */
footer {
  background-color: #1e3a8a;
  color: #ffffff;
  padding: 30px 0 15px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  border-bottom: 1px solid #3b82f6;
  padding-bottom: 20px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer-links ul {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.footer-social {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

footer .copyright {
  text-align: center;
  padding-top: 12px;
  font-size: 0.8rem;
  color: #bfdbfe;
}

/* =====================================================
   9. ANIMATIONS
===================================================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pointFade {
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   10. RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-images {
    max-height: 45vh;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
