/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Color Variables - Dark Mode Only */
  :root {
    --bg-color: #0f172a;
    --text-color: #EFF7FB;
    --subtext-color: #6b7280;
    --card-bg: #FFF;
    --card-hover-glow: rgba(181, 21, 255, 0.5);
    --section-bg: #0a0e1a;
    --title-color: #EFF7FB;
    --button-color: #0f172a;
    --footer-bg: #000;
    --contact-bg: #0a0e1a;
  }
  
  /* Body */
  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  /* Header & Footer */
  header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #121212;
  }
  
  footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--subtext-color);
    background-color: var(--footer-bg);
    padding: 1.5rem 2rem;
    border-top: 1px solid #131313;
    transition: background-color 0.3s ease;
  }
  
  /* Navigation */
  nav a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
  }
  
  nav a:hover {
    text-decoration: underline;
  }
  
  /* Hamburger Menu */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
  }
  
  .hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Mobile Responsive Design */
  @media (max-width: 768px) {
    header {
      padding: 1rem;
    }
    header > div {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      position: relative;
    }
    .hamburger {
      display: flex;
      z-index: 1001;
      position: relative;
    }
    .nav-menu {
      position: fixed;
      top: 80px;
      right: 1rem;
      width: auto;
      min-width: unset;
      max-width: 95vw;
      height: auto;
      background: #1a2339;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 1rem 1.5rem;
      box-shadow: 0 4px 24px rgba(0,0,0,0.18);
      z-index: 2001;
      border-radius: 12px;
      transform: translateY(0);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s, transform 0.3s;
      overflow: visible;
      gap: 1rem;
    }
    .nav-menu.active {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    body.menu-open {
      overflow: hidden;
    }
    .nav-menu a {
      margin: 0.25rem 0;
      font-size: 1.1rem;
      padding: 0.5rem 1.5rem;
      border-radius: 5px;
      transition: background-color 0.3s ease;
      width: 100%;
      text-align: center;
      display: block;
    }
    .nav-menu a:hover {
      background-color: var(--section-bg);
      text-decoration: none;
    }
  

  
    .hero h2 {
      font-size: 2rem;
    }
  
    .hero p {
      font-size: 0.9rem;
    }
  
    .grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .section {
      padding: 2rem 1rem;
    }

    /* Tablet Modal Styles */
    .modal {
      padding: 1rem;
    }
    
    .modal-content {
      max-width: 90vw;
      max-height: 85vh;
    }
    
    .modal-body {
      min-height: 280px;
    }
    
    .modal-image {
      min-height: 280px;
    }
    
    .modal-info {
      padding: 1.5rem;
    }
    
    .modal-title {
      font-size: 1.4rem;
    }
    
    .modal-description {
      font-size: 0.95rem;
    }
  }
  
  @media (max-width: 480px) {
    .hero h2 {
      font-size: 1.8rem;
    }
  
    .nav-menu {
      width: 50%;
      flex-direction: column;
      text-align: center;
    }

    /* Mobile Modal Styles */
    .modal {
      padding: 0.5rem;
    }
    
    .modal-content {
      max-height: 95vh;
      width: 100%;
      border-radius: 8px;
    }
    
    .modal-body {
      flex-direction: column;
      min-height: auto;
    }
    
    .modal-image {
      width: 100%;
      min-height: 200px;
      border-radius: 8px 8px 0 0;
      border-bottom-left-radius: 0;
    }
    
    .modal-info {
      width: 100%;
      padding: 1.5rem 1rem;
    }
    
    .modal-title {
      font-size: 1.3rem;
    }
    
    .modal-description {
      font-size: 0.9rem;
      margin-bottom: 1.5rem;
    }
    
    .modal-close {
      top: 12px;
      right: 16px;
      font-size: 1.5rem;
    }
    
    .modal-bottom-nav {
      bottom: -60px;
      gap: 1rem;
    }
    
    .modal-prev, .modal-next {
      width: 44px;
      height: 44px;
      font-size: 1.8rem;
    }
  }

  /* Galaxy A13 5G and similar devices (720px width) */
  @media (max-width: 720px) and (min-width: 481px) {
    .modal {
      padding: 0.75rem;
    }
    
    .modal-content {
      max-width: 95vw;
      max-height: 92vh;
      border-radius: 10px;
    }
    
    .modal-body {
      min-height: 300px;
    }
    
    .modal-image {
      min-height: 250px;
    }
    
    .modal-info {
      padding: 1.75rem 1.25rem;
    }
    
    .modal-title {
      font-size: 1.4rem;
    }
    
    .modal-description {
      font-size: 0.95rem;
      margin-bottom: 1.75rem;
    }
    
    .modal-close {
      top: 14px;
      right: 20px;
      font-size: 1.75rem;
    }
    
    .modal-bottom-nav {
      bottom: -65px;
      gap: 1.25rem;
    }
    
    .modal-prev, .modal-next {
      width: 48px;
      height: 48px;
      font-size: 2rem;
    }
  }

  /* Hero Section */
  .hero {
    text-align: center;
    padding: 2rem 2rem;
    padding-top: 5rem;
    background-color: var(--section-bg);
  }
  
  .hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--title-color);
  }
  
  .hero p {
    max-width: 600px;
    margin: 1rem auto;
    color: var(--subtext-color);
  }
  
  /* Sections */
  .section {
    padding: 2.5rem 2rem;
    background-color: var(--section-bg);
    color: var(--text-color);
    transition: background-color 0.3s ease;
  }
  
  .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--title-color);
  }
  
  /* Section Paragraphs */
  .section p,
  #about p,
  #contact p {
    color: var(--subtext-color);
    transition: color 0.3s ease;
  }
  
  /* Contact section specific background */
  #contact.section {
    background-color: var(--contact-bg);
    transition: background-color 0.3s ease;
  }
  
  /* Grid Layout */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  /* Cards */
  .card {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: var(--card-bg);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 5px transparent;
  }
  
  .card:hover {
    transform: scale(1.05);
  }
  
  .card svg {
    width: 48px;
    fill: #333;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .card:hover svg {
    scale: 0;
  }
  
  .card__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  
  .card:hover .card__content {
    opacity: 1;
    pointer-events: auto;
  }
  
  .card__title {
    margin: 0;
    font-size: 24px;
    color: var(--title-color);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  
  .card__description {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--subtext-color);
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
  }
  
  /* Button */
  button {
    background: transparent;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--text-color);
    margin-top: 20px;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    font-weight: 500;
  }
  
  button:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
  }

  /* Demo Button Styles */
  .demo-btn {
    background-color: rgba(89, 78, 208, 0.9);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .demo-btn:hover {
    background-color: #594ED0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(89, 78, 208, 0.4);
  }

  /* Modal Demo Button Styles */
  .modal-info .demo-btn {
    background-color: #594ED0;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-block;
  }

  .modal-info .demo-btn:hover {
    background-color: #4a3fd0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(89, 78, 208, 0.3);
  }
  

  
/* Card Modal Popup Styles */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}
.modal-content {
  background: var(--bg-color);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #232b43;
  border-radius: 6px;
  font-size: 1.7rem;
  color: var(--text-color);
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.modal-close:hover {
  background: #2d3756;
  color: #fff;
  box-shadow: 0 4px 16px rgba(89, 78, 208, 0.18);
}
.modal-body {
  display: flex;
  flex-direction: row;
  min-height: 320px;
  flex: 1;
}
.modal-image {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  min-height: 320px;
  overflow: hidden;
}
.modal-image img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: var(--card-bg);
  display: block;
}
.modal-info {
  width: 50%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-title {
  font-size: 1.5rem;
  color: var(--title-color);
  margin-bottom: 1rem;
}
.modal-description {
  color: var(--subtext-color);
  margin-bottom: 2rem;
}
/* Modern modal navigation button style */
.modal-prev, .modal-next {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(34, 34, 34, 0.85);
  color: #EFF7FB;
  font-size: 2.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  outline: none;
  position: static;
  margin: 0;
}

.modal-prev:hover, .modal-next:hover {
  background: #594ED0;
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(89, 78, 208, 0.18);
}

.modal-prev:active, .modal-next:active {
  transform: scale(0.98);
}

.modal-prev:disabled, .modal-next:disabled {
  opacity: 0.3;
  cursor: default;
  background: rgba(34, 34, 34, 0.5);
}

.modal-bottom-nav {
  position: absolute;
  left: 50%;
  bottom: -70px;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 2200;
}

.modal-bottom-nav .modal-prev,
.modal-bottom-nav .modal-next {
  position: static;
  margin: 0;
}
  

  
.card:hover .card__title,
.card:hover .card__description {
  color: #EFF7FB;
}

@media (max-width: 720px) {
  .modal-content {
    max-width: 95vw;
    width: 95vw;
    min-width: unset;
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
  }
  .modal-body {
    flex-direction: column;
    min-height: unset;
    overflow-y: visible;
    max-height: none;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 0;
  }
  .modal-image {
    width: 100%;
    background: transparent;
    border-radius: 12px 12px 0 0;
    border-bottom-left-radius: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .modal-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: transparent;
  }
  .modal-info {
    width: 100%;
    padding: 1.25rem 1rem;
    overflow-y: auto;
    flex: 1 1 auto;
    background: var(--bg-color);
    margin-top: 0;
    max-height: 60vh;
    box-sizing: border-box;
  }
  .modal-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--title-color);
    position: static;
    z-index: 1;
  }
  .modal-description {
    font-size: 0.95rem;
  }
}