/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0b1120;
  color: #fff;
  line-height: 1.6;
}
/* ===== HEADER ===== */

/* ===== LOGO ===== */

.logo-container{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo-img{
  width:68px;
  height:68px;
  object-fit:cover;
  border-radius:50%;
  border:2px solid #00c6ff;
  box-shadow:0 0 18px rgba(0,198,255,0.5);
  transition:0.4s ease;
  background:#000;
}

.logo-img:hover{
  transform:scale(1.08);
}

.logo{
  font-size:2.2rem;
  font-weight:700;
  color:#fff;
  line-height:1.1;
  white-space:nowrap;
}

.logo span{
  color:#00c6ff;
}

/* ===== MOBILE ===== */

@media(max-width:768px){

  .logo-container{
    gap:10px;
  }

  .logo-img{
    width:52px;
    height:52px;
  }

  .logo{
    font-size:1.9rem;
  }

}

/* ===== SMALL PHONE ===== */

@media(max-width:480px){

  .logo-img{
    width:46px;
    height:46px;
  }

  .logo{
    font-size:1.5rem;
  }

}

/* NAV */

nav{
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a{
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover{
  color: #00aaff;
}

/* BUTTON */

.btn{
  background: linear-gradient(90deg,#00c6ff,#0072ff);
  padding: 12px 22px;
  border-radius: 40px;
  color: white !important;
}

/* MENU BUTTON */

.menu-toggle{
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ===== MOBILE ===== */

@media(max-width: 768px){

  .menu-toggle{
    display: block;
  }

  nav{
    position: absolute;
    top: 90px;
    right: -100%;
    width: 260px;
    background: #06142b;
    flex-direction: column;
    padding: 30px;
    border-radius: 20px;
    transition: 0.4s;
    gap: 20px;
  }

  nav.active{
    right: 20px;
  }

  .logo{
    font-size: 1.5rem;
  }

  .hero-content h1{
    font-size: 2.7rem;
  }

  .hero-content p{
    font-size: 1rem;
  }
}

/* Section Heading */
.sub-title {
  color: #09c4c0;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 600;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.service-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #94a3b8;
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 0 8%;
}

/* Card Style */
.card {
  background: #111827;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.4s;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: #9ca3af;
}

/* Hover Effect */
.card:hover {
  transform: translateY(-10px);
  border-color: #15faee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Card base animation */
.card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Glow border effect */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  background: linear-gradient(120deg, #0a8fad, transparent) border-box;
  opacity: 0;
  transition: 0.4s;
}

/* Hover Animation */
.card:hover {
  transform: translateY(-12px) scale(1.04);
}

.card:hover::before {
  opacity: 1;
}

/* Icon animation */
.card h3 {
  transition: 0.3s;
}

.card:hover h3 {
  transform: translateX(5px);
}

/* Smooth fade (fallback if AOS fails) */
.card {
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== PREMIUM GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding-top: 30px;
}

.gallery img {
  width: 100%;
  height: 220px; /* FIX HEIGHT */
  object-fit: cover; /* IMPORTANT */
  border-radius: 14px;
  transition: all 0.4s ease;
  cursor: pointer;
}

/* Hover Effect */
.gallery img:hover {
  transform: scale(1.05);
  filter: brightness(0.7);
}

/* ===== LOADER ===== */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #020617;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #333;
  border-top: 5px solid #0976a9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 26px;
  font-weight: 700;
}

.logo span {
  color: #0b7599;
}

/* NAVBAR LINKS */
nav a{
  position:relative;
  text-decoration:none;
  color:#fff;
  font-size:17px;
  font-weight:600;
  padding:10px 5px;
  transition:0.4s ease;
  overflow:hidden;
}

/* GLOW UNDERLINE */
nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0%;
  height:3px;
  background:linear-gradient(90deg,#00bfff,#00ffff);
  border-radius:10px;
  transition:0.4s ease;
  box-shadow:0 0 15px #00bfff;
}

/* HOVER EFFECT */
nav a:hover{
  color:#00d9ff;
  transform:translateY(-3px);
  text-shadow:0 0 12px rgba(0,191,255,0.8);
}

nav a:hover::after{
  width:100%;
}

/* ACTIVE LINK */
nav a.active{
  color:#00d9ff;
}

nav a.active::after{
  width:100%;
}

/* BUTTON ANIMATION */
.btn{
  padding:12px 24px;
  border-radius:40px;
  background:linear-gradient(45deg,#00bfff,#0066ff);
  color:#fff !important;
  font-weight:700;
  transition:0.4s ease;
  box-shadow:0 0 20px rgba(0,191,255,0.5);
  position:relative;
  overflow:hidden;
}

/* SHINE EFFECT */
.btn::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:rgba(255,255,255,0.25);
  transform:skewX(-25deg);
  transition:0.7s;
}

.btn:hover::before{
  left:120%;
}

/* BUTTON HOVER */
.btn:hover{
  transform:translateY(-4px) scale(1.05);
  box-shadow:0 0 30px rgba(0,191,255,0.8);
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e') center/cover no-repeat;
  position: relative;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 600px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
}

.hero p {
  margin: 15px 0;
  color: #cbd5f5;
}

/* ===== SERVICES ===== */
.services {
  padding: 80px 8%;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  padding: 30px;
  width: 280px;
  border-radius: 12px;
  transition: 0.4s;
  border: 1px solid rgba(255,255,255,0.1);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: #94a3b8;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #0a6294;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 80px 8%;
  text-align: center;
}

.gallery {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery img {
  width: 320px;
  border-radius: 12px;
  transition: 0.4s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* ===== STATS ===== */
.stats {
  display: flex;
  justify-content: space-around;
  padding: 60px 10%;
  background: linear-gradient(to right, #020617, #111827);
  text-align: center;
}

.stat-box h2 {
  font-size: 2.5rem;
  color: #0f7baa;
}

.stat-box p {
  color: #cbd5f5;
}

/* ===== ABOUT HOME ===== */
.about-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 15px;
  color: #94a3b8;
}

.about-img {
  flex: 1;
}

.about-img img {
  width: 100%;
  border-radius: 12px;
}

/* ===== RATING ===== */
.rating {
  padding: 60px;
  text-align: center;
  background: #020617;
}

.rating-box {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 12px;
  display: inline-block;
}

.rating-box h3 {
  font-size: 1.5rem;
  color: #0d74a8;
}

.stars {
  font-size: 1.3rem;
  margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .about-home {
    flex-direction: column;
  }
}
/* ===== STATS HOVER EFFECT ===== */
.stat-box {
  transition: 0.4s;
}

.stat-box:hover {
  transform: translateY(-8px);
}

/* ===== GALLERY GRID (PRO LOOK) ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding-top: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: 0.4s ease;
}

/* ===== IMAGE OVERLAY EFFECT ===== */
.gallery img:hover {
  transform: scale(1.1);
  filter: brightness(0.7);
}

/* ===== HERO TEXT ANIMATION ===== */
.hero-content h1 {
  animation: slideUp 1s ease forwards;
}

.hero-content p {
  animation: slideUp 1.5s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CTA ANIMATION ===== */
.cta {
  transition: 0.3s;
}

.cta:hover {
  transform: scale(1.02);
}

/* ===== CTA ===== */
.cta {
  padding: 60px;
  text-align: center;
  background: linear-gradient(135deg, #199cb9, #117aa3);
  color: #000;
}

.cta h2 {
  font-size: 2rem;
}

.cta p {
  margin: 10px 0 20px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #020617;
  color: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .hero h1 {
    font-size: 2rem;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #020617;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    display: none;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    left: 5%;
  }
}