* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  color: #f5f5f5;
  line-height: 1.6;
  background: #0a1f3a;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.header {
  background: #091c34;
  border-bottom: 1px solid #112e4a;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

#nav-menu a {
  margin-left: 20px;
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 500;
  transition: color 0.3s ease;
}
#nav-menu a:hover,
#nav-menu a.active {
  color: #2563eb;
}

#hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
#hamburger span {
  display: block;
  height: 3px;
  background: #2563eb;
  border-radius: 3px;
  transition: all 0.3s ease;
}
#hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#hamburger.active span:nth-child(2) {
  opacity: 0;
}
#hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  #nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #091c34;
    flex-direction: column;
    padding: 20px 0;
    display: none;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 999;
  }
  #nav-menu.open {
    display: flex;
  }
  #nav-menu a {
    margin: 15px 0;
  }
  #hamburger {
    display: flex;
  }
}

.hero {
  padding: 100px 0;
  text-align: center;
}
.hero h2 span {
  color: #2563eb;
}
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}
.btn:hover {
  background: #1e40af;
}

.section {
  padding: 70px 0;
}
h3 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #fff;
}
.skills li {
  display: inline-block;
  margin: 5px 8px 5px 0;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.2);
  color: #fff;
  font-weight: 500;
  transition: transform 0.3s, background 0.3s;
}

.skills li:hover {
  background: #2563eb;
  transform: translateY(-2px);
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.project-card {
  position: relative;
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #112e4a;
  cursor: pointer;
  border: 1px solid #1f3a5a;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.footer {
  text-align: center;
  padding: 30px 0;
  background: #091c34;
  color: #f5f5f5;
}

.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.fade-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 15px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 100;
}
.back-to-top:hover {
  background: #1e40af;
}

.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: #112e4a;
  margin: 80px auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  position: relative;
  animation: slideDown 0.4s ease;
  color: #f5f5f5;
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}
#modal-tech li {
  display: inline-block;
  margin: 5px 5px 0 0;
  padding: 5px 10px;
  border-radius: 5px;
  background: #2563eb;
  list-style: none;
  color: #fff;
}
.modal-images img {
  max-width: 100%;
  margin-bottom: 15px;
  border-radius: 6px;
}

#top-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  z-index: 1001;
  cursor: pointer;
}
#sparkle {
  transform-origin: center;
  animation: sparkle-glow 2s infinite alternate;
  transition: transform 0.3s;
}
@keyframes sparkle-glow {
  0% { r: 4; opacity: 0.6; transform: translate(0, 0); }
  50% { r: 6; opacity: 1; transform: translate(-2px, 2px); }
  100% { r: 5; opacity: 0.8; transform: translate(1px, -1px); }
}
#top-logo:hover #sparkle {
  animation: sparkle-hover 1s infinite alternate;
}
@keyframes sparkle-hover {
  0% { transform: translate(0,0); }
  25% { transform: translate(2px,-1px); }
  50% { transform: translate(-1px,2px); }
  75% { transform: translate(1px,1px); }
  100% { transform: translate(0,0); }
}

#contact h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
}

.contact-block {
  background: rgba(18, 46, 74, 0.8);
  border-left: 5px solid #2563eb;
  padding: 20px 25px;
  margin-bottom: 25px;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-block p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #f5f5f5;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.contact-block h4 {
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 1.3rem;
  font-weight: 600;
}

.contact-block.fade-in {
  opacity: 1;
  transform: translateY(0);
}
.contact-block {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

#modal-badges {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-badge {
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeBounce 0.6s forwards;
}

.modal-badge i {
  font-style: normal;
}

.modal-image-wrapper {
    margin-bottom: 15px;
    text-align: center;
}
.modal-image-caption {
    color: #fff;
    font-size: 0.9rem;
    margin-top: 5px;
}
.modal-project-img {
    max-width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.modal-project-img:hover {
    transform: scale(1.05);
}

@keyframes fadeBounce {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  50% {
    opacity: 1;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-indicator.coming-soon { color: #FBBF24; }
.live-dot.coming-soon-dot { background-color: #FBBF24; }

.tooltip-icon {
  position: relative;
  cursor: pointer;
  margin-left: 5px;
}
.tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #2563eb;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 10;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltip-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.project-more {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 500;
    opacity: 0.8;
}

.live-indicator {
    position: absolute;
    top: 12px;
    right: 15px;
    background-color: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.facebook-btn {
  background: #1877F2;
  margin-left: 10px;
}

.facebook-btn:hover {
  background: #145dbf;
}

#modal-buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

#modal-buttons a {
  flex: 1 1 48%;
  text-align: center;
}

@media (max-width: 400px) {
  #modal-buttons a {
    flex: 1 1 100%; 
  }
}

.hero-bullets {
    list-style: none;  
    padding-left: 0;
    margin: 20px auto;
    max-width: 600px;
    color: #f5f5f5;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-bullets li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.bullet-icon {
    display: inline-block;
    color: #2563eb; 
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero-bullets li {
        font-size: 1rem;
    }
    .bullet-icon {
        font-size: 1rem;
    }
}
