* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  color: #fff;
}

/* Background video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 30, 0.7);
  z-index: -2;
}

/* Particle canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Header */
header {
  text-align: center;
  padding-top: 80px;
}

/* Logo animation */
.logo-container {
  margin-bottom: 5px;
  width: 100%;           /* Full width of parent */
  max-width: 300px;      /* Optional: max width of logo area */
  height: 100px;         /* Desired logo height */
  display: flex;         /* Flexbox for centering */
  justify-content: center; /* Horizontal centering */
  align-items: center;     /* Vertical centering */
  overflow: hidden;        /* Prevent overflow if logo is bigger */
  margin-left: auto;       /* Center container horizontally if needed */
  margin-right: auto;
}

.logo {
  width: 100%;           /* Fill container width */
  height: 100%;          /* Fill container height */
  object-fit: contain;   /* Keep aspect ratio */
  filter: drop-shadow(0 0 15px #00ffff);
  animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
  from {
    filter: drop-shadow(0 0 10px #00ffff);
    transform: scale(1);
  }
  to {
    filter: drop-shadow(0 0 25px #00ffff);
    transform: scale(1.1);
  }
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.3rem;
  color: #00ffff;
  text-shadow: 0 0 15px #00ffff;
}

/* Typing Text */
.typing-container {
  margin-top: 20px;
  font-size: 1.2rem;
  text-shadow: 0 0 10px #00ffff;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

.cursor {
  display: inline-block;
  animation: blink 0.8s infinite;
  color: #00ffff;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Scroll Button */
#scroll-btn {
  margin-top: 30px;
  background: transparent;
  border: 2px solid #00ffff;
  color: #00ffff;
  padding: 10px 25px;
  border-radius: 25px;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  transition: all 0.4s ease;
  text-shadow: 0 0 10px #00ffff;
  animation: pulseGlow 2s infinite alternate;
}

#scroll-btn:hover {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 25px #00ffff;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 10px #00ffff; }
  to { box-shadow: 0 0 30px #00ffff; }
}

/* Service Cards */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 60px 10%;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(40px);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(0, 255, 255, 0.2);
  border-color: #00ffff;
  box-shadow: 0 0 25px #00ffff;
}

/* Scroll-in animation */
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-out;
}

.service-card h2 {
  font-family: 'Orbitron', sans-serif;
  color: #00ffff;
  margin-bottom: 10px;
}

.service-card p {
  color: #ddd;
  font-size: 0.95rem;
}

/* Ensure all main content is above background elements */
header, main, footer, section {
  position: relative;
  z-index: 1;
}

/* Portfolio Section */
.portfolio {
  padding: 60px 10%;
  text-align: center;
  color: #fff;
}

.portfolio h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: #00ffff;
  margin-bottom: 15px;
}

.portfolio p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 40px;
}

/* Portfolio Grid */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.portfolio-item {
  position: relative;
  display: block;
  width: 220px;
  height: auto;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img {
  width: 90%;
  height: auto;
  object-fit: cover;
  display: flex;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 255, 255, 0.8);
  color: #000;
  font-weight: bold;
  text-align: center;
  padding: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay-text {
  opacity: 1;
}


/* Footer */
footer {
  text-align: center;
  padding: 30px 10px;
  background: rgba(0, 0, 0, 0.6);
}

footer .contact p {
  margin: 5px 0;
}

footer .copyright {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #aaa;
}
