* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: #2c3e50;
  line-height: 1.7;
  min-height: 100vh;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 3px solid #2a5298;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-link {
  color: #1e3c72;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(42, 82, 152, 0.3);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: #2a5298;
  transition: transform 0.3s ease;
}

.header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 50px 20px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 20px rgba(30, 60, 114, 0.3);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.1;
}

.header h1, .header h2, .header h3 {
  position: relative;
  z-index: 1;
  margin: 8px 0;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: white !important;
}

.header h1 {
  font-size: 2em;
  font-weight: 600;
}

.header h2 {
  font-size: 1.3em;
  text-align: center;
  display: block;
  width: 100%;
}

.header h3 {
  font-size: 1.1em;
  opacity: 0.95;
}

.logo {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease-out;
  border-radius: 50%;
  background: white;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.project-title {
  margin-top: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  display: inline-block;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.project-title h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  font-weight: 700;
}

.project-title p {
  font-size: 1.2em;
  opacity: 0.95;
  color: white !important;
}

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

.card {
  background: white;
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
  border-left: 5px solid #2a5298;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(42, 82, 152, 0.15);
}

/* Horizontal Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.card-half {
  margin-bottom: 0;
}

h2 {
  color: #1e3c72;
  margin-bottom: 20px;
  font-size: 2em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: '';
  width: 5px;
  height: 30px;
  background: linear-gradient(to bottom, #1e3c72, #2a5298);
  border-radius: 3px;
}

h3 {
  color: #444;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5em;
  font-weight: 600;
}

p {
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.8;
  color: #34495e;
}

ul {
  padding-left: 0;
  list-style: none;
}

ul li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}

ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2a5298;
  font-weight: bold;
  font-size: 1.2em;
}

.note {
  font-style: italic;
  color: #7f8c8d;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #2a5298;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

table th, table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e8ecf1;
}

table th {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

table tr {
  transition: background-color 0.3s ease;
}

table tr:hover {
  background-color: #f8f9fa;
}

table td {
  color: #34495e;
}

table tr:last-child td {
  border-bottom: none;
}

.video-container {
  margin: 20px 0 40px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #000;
}

.video-container video {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
}

.video-placeholder {
  margin: 20px 0 30px 0;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #cbd5e0;
  border-radius: 10px;
  text-align: center;
}

.video-placeholder p {
  color: #6c757d;
  font-style: italic;
  margin: 0;
  text-align: center;
}

/* Screenshot Gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.screenshot-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  background: #f8f9fa;
}

.screenshot-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(42, 82, 152, 0.2);
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-img {
  transform: scale(1.05);
}

/* Technology Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 20px 0 30px 0;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: 150px;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(42, 82, 152, 0.15);
  border-color: #2a5298;
  background: white;
}

.tech-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.tech-item:hover .tech-logo {
  transform: scale(1.1);
}

.tech-item span {
  font-weight: 600;
  color: #1e3c72;
  text-align: center;
  font-size: 0.95em;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  color: #ff4444;
  transform: scale(1.2);
}

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

@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.footer {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  margin-top: 50px;
  font-size: 0.95em;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }

  .nav-container {
    gap: 15px;
    padding: 0 15px;
  }

  .nav-link {
    font-size: 0.85em;
    padding: 6px 12px;
  }

  .header {
    padding: 30px 15px;
  }

  .project-title h1 {
    font-size: 1.8em;
  }

  .project-title p {
    font-size: 1em;
  }

  .container {
    padding: 0 15px;
    margin: 30px auto;
  }

  .card {
    padding: 25px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .tech-item {
    min-height: 130px;
    padding: 15px;
  }

  .tech-logo {
    width: 60px;
    height: 60px;
  }

  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .lightbox-close {
    top: 20px;
    right: 30px;
    font-size: 40px;
  }

  h2 {
    font-size: 1.5em;
  }

  table {
    font-size: 0.85em;
  }

  table th, table td {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    gap: 10px;
  }

  .nav-link {
    font-size: 0.75em;
    padding: 5px 10px;
  }

  .logo {
    width: 100px;
    height: 100px;
  }

  .project-title {
    padding: 20px;
  }

  .project-title h1 {
    font-size: 1.4em;
  }

  .cards-grid {
    gap: 15px;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tech-item {
    min-height: 110px;
    padding: 12px;
  }

  .tech-logo {
    width: 50px;
    height: 50px;
  }

  .tech-item span {
    font-size: 0.85em;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 40px;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }

  table {
    font-size: 0.75em;
  }

  table th, table td {
    padding: 8px;
  }
}
