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

html{
  scroll-behavior:smooth;
}

:root{
  --bg:#f8fafc;
  --text:#0f172a;
  --muted:#475569;
  --card:#ffffff;
  --dark-card:#1e293b;
  --blue:#2563eb;
  --cyan:#06b6d4;
  --green:#22c55e;
  --border:#dbe3ef;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#020617;
    --text:#f8fafc;
    --muted:#cbd5e1;
    --card:#0f172a;
    --dark-card:#1e293b;
    --border:#334155;
  }
}

body{
  font-family:'Inter',sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(6,182,212,.18), transparent 32%),
    var(--bg);
  color:var(--text);
}

/* NAVBAR */

.navbar{
  transition:.3s ease;
}

.navbar:hover{
  box-shadow:0 22px 55px rgba(15,23,42,.12);
}
.navbar{
  width:90%;
  max-width:1180px;
  margin:14px auto;
  padding:14px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;

  position:sticky;
  top:12px;
  z-index:1000;

  background:rgba(255,255,255,.72);
  backdrop-filter:blur(18px);
  border:1px solid rgba(148,163,184,.18);
  border-radius:999px;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
}
@media (prefers-color-scheme: dark){
  .navbar{
    background:rgba(15,23,42,.72);
    border:1px solid rgba(148,163,184,.18);
  }
}
.logo{
  display:flex;
  align-items:center;
  text-decoration:none;
}

.logo img{
  height:64px;
  width:auto;
  object-fit:contain;
}
.logo-text{
  display:flex;
  flex-direction:column;
  margin-left:12px;
  line-height:1;
}

.logo-title{
  font-size:1.2rem;
  font-weight:800;
  color:var(--text);
  letter-spacing:-0.5px;
}

.logo-subtitle{
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:2px;
  color:var(--muted);
  margin-top:4px;
}
.nav-links{
  display:flex;
  gap:28px;
}

.nav-links a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
}

.nav-links a:hover{
  color:var(--blue);
}

/* HERO */

.hero{
  width:90%;
  max-width:1200px;
  margin:60px auto;

  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;

  align-items:center;
}

.hero-content{
  max-width:620px;
}

.hero-image{
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-image img{
  width:100%;
  max-width:620px;
  height:auto;

  filter:drop-shadow(
    0 25px 50px rgba(37,99,235,.18)
  );

  animation:floatHero 5s ease-in-out infinite;
}

.badge,
.section-label{
  color:var(--cyan);
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:800;
  margin-bottom:16px;
}

.hero h1{
  font-size:clamp(2.8rem,5vw,4.8rem);
  line-height:1.05;
  letter-spacing:-2px;
  margin-bottom:22px;
  max-width:850px;
}

.subtitle{
  color:#334155;
  line-height:1.8;
  font-size:1.08rem;
  max-width:720px;
}

.hero-buttons{
  margin-top:30px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.btn{
  padding:14px 24px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
}

.primary{
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  color:white;
  box-shadow:0 14px 30px rgba(37,99,235,.18);
}

.secondary{
  border:1px solid #64748b;
  color:#0f172a;
  background:rgba(255,255,255,.45);
}

/* HERO CARD */

.hero-card{
  background:rgba(255,255,255,.82);
  border:1px solid var(--border);
  border-radius:28px;
  padding:28px;
  box-shadow:0 24px 60px rgba(15,23,42,.12);
}

.hero-card h3{
  margin-bottom:20px;
  color:#0f172a;
}

.status{
  background:#1e293b;
  padding:15px 18px;
  border-radius:16px;
  margin-bottom:12px;
  color:#e2e8f0;
  font-weight:600;
}

.status.active,
.active{
  background:linear-gradient(135deg,var(--blue),var(--green));
  color:white;
}

/* SECTIONS */

.section{
  width:90%;
  max-width:1180px;
  margin:auto;
  padding:65px 0;
}

.section h2,
.about h2{
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1.1;
  letter-spacing:-1px;
  margin-bottom:34px;
}

/* SERVICES */

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

.card{
  background:rgba(255,255,255,.82);
  border:1px solid var(--border);
  padding:28px;
  border-radius:26px;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  transition:
  transform .35s ease,
  box-shadow .35s ease,
  border-color .35s ease;
  cursor:pointer;
  overflow:hidden;
  position:relative;
}
.card::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.25),
      transparent
    );

  opacity:0;
  transition:.35s ease;
}

.card:hover::before{
  opacity:1;
}
.card:hover{
  transform:
    translateY(-10px)
    scale(1.03);

  box-shadow:
    0 25px 60px rgba(37,99,235,.18);

  border-color:#93c5fd;
}

/* ABOUT */

.about{
  width:90%;
  max-width:1180px;
  margin:auto;
  padding:65px 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:42px;
  align-items:center;
}

.about p{
  color:#334155;
  line-height:1.8;
  font-size:1.06rem;
}

/* CONTACT */

.contact{
  padding-bottom:80px;
}

.contact-form{
  display:grid;
  gap:16px;
  max-width:850px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  background:white;
  border:1px solid #64748b;
  border-radius:16px;
  padding:16px;
  color:#0f172a;
  font-size:1rem;
  outline:none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.contact-form textarea{
  height:150px;
  resize:none;
}

.contact-form button{
  border:none;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  color:white;
  padding:16px;
  border-radius:16px;
  font-size:1rem;
  font-weight:800;
  cursor:pointer;
}

/* FOOTER */

.footer{
  width:90%;
  max-width:1180px;
  margin:40px auto 0;
  padding:45px 0 25px;
  border-top:1px solid var(--border);
}

.footer-container{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:34px;
  align-items:flex-start;
}

.footer-logo{
  display:flex;
  align-items:center;
  gap:14px;
}

.footer-logo img{
  height:58px;
  width:auto;
  object-fit:contain;
}

.footer-logo h3{
  color:var(--text);
  margin-bottom:6px;
  font-size:1.2rem;
}

.footer-logo p{
  color:#334155;
  line-height:1.6;
  max-width:330px;
}

.footer h4{
  color:var(--text);
  margin-bottom:14px;
  font-size:1rem;
}

.footer-links,
.footer-contact,
.footer-social{
  display:flex;
  flex-direction:column;
}

.footer a{
  color:#475569;
  text-decoration:none;
  margin-bottom:10px;
  font-weight:600;
  transition:.3s;
}

.footer a:hover{
  color:var(--blue);
  transform:translateX(4px);
}

.footer-bottom{
  margin-top:35px;
  padding-top:20px;
  border-top:1px solid var(--border);
  text-align:center;
}

.footer-bottom small{
  color:#64748b;
}
/* MOBILE */

@media(max-width:900px){

  .hero{
  grid-template-columns:1fr;
}

.hero-image{
  margin-top:20px;
}
 
  .portfolio-grid{
  grid-template-columns:1fr;
}
  .navbar{
    padding:12px 18px;
    border-radius:24px;
    flex-direction:column;
    gap:14px;
  }

  .logo img{
    height:52px;
  }

  .logo-text{
    margin-left:10px;
  }

  .logo-title{
    font-size:1.05rem;
  }

  .logo-subtitle{
    font-size:.62rem;
  }

  .nav-links{
    display:flex;
    width:100%;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
  }

  .nav-links a{
    font-size:.9rem;
  }

 .hero{
  width:90%;
  max-width:1200px;
  margin:60px auto;
  
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:60px;
}
  .hero-content{
  flex:1;
  max-width:620px;
}

.hero-image{
  flex:1;
  display:flex;
  justify-content:flex-end;
}

.hero-image img{
  width:100%;
  max-width:560px;
  height:auto;
}
  .grid,
  .about{
    grid-template-columns:1fr;
  }

  .section,
  .about{
    padding:50px 0;
  }
}
/* SMOOTH ANIMATIONS */

.hero-content,
.hero-card,
.card,
.about,
.contact-form,
footer{
  opacity:0;
  transform:translateY(24px);
  animation:fadeUp .8s ease forwards;
}

.hero-card{
  animation-delay:.15s;
}

.card:nth-child(1){
  animation-delay:.1s;
}

.card:nth-child(2){
  animation-delay:.2s;
}

.card:nth-child(3){
  animation-delay:.3s;
}

.card:nth-child(4){
  animation-delay:.4s;
}

.about{
  animation-delay:.2s;
}

.contact-form{
  animation-delay:.2s;
}

@keyframes fadeUp{
  to{
    opacity:1;
    transform:translateY(0);
  }
}
.btn,
.contact-form button{
  transition:.3s ease;
}

.btn:hover,
.contact-form button:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 38px rgba(37,99,235,.22);
}
/* PORTFOLIO */

.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.portfolio-card{
  background:rgba(255,255,255,.82);
  border:1px solid var(--border);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 20px 45px rgba(15,23,42,.08);

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.portfolio-card:hover{
  transform:translateY(-10px);
  box-shadow:0 28px 70px rgba(37,99,235,.16);
}

.portfolio-card img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}

.portfolio-content{
  padding:24px;
}

.portfolio-content h3{
  margin-bottom:12px;
  color:#0f172a;
}

.portfolio-content p{
  color:#475569;
  line-height:1.7;
}
/* FIX PORTFOLIO MOBILE */

@media(max-width:900px){
  
  .hero{
    flex-direction:column;
    text-align:left;
  }
  
  .hero-image{
    justify-content:center;
  }
  
  .hero-image img{
    max-width:100%;
  }
  .footer-container{
  grid-template-columns:1fr;
  gap:26px;
  text-align:center;
}

.footer-logo{
  justify-content:center;
  flex-direction:column;
}

.footer-logo p{
  margin:auto;
}

.footer-links,
.footer-contact,
.footer-social{
  align-items:center;
}

  .portfolio-grid{
    grid-template-columns:1fr;
    gap:24px;
  }

  .portfolio-card{
    width:100%;
    border-radius:24px;
  }

  .portfolio-card img{
    height:220px;
  }

  .portfolio-content h3{
    font-size:1.5rem;
  }

  .portfolio-content p{
    font-size:1rem;
    line-height:1.6;
  }

}
.menu-toggle{
  display:none;
  background:none;
  border:none;
  font-size:2rem;
  color:var(--text);
  cursor:pointer;
}

/* MOBILE HAMBURGER MENU FIX */

@media(max-width:900px){

  .why-grid{
  grid-template-columns:1fr;
}

  .navbar{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    padding:14px 18px;
    border-radius:28px;
  }

  .logo{
    display:flex;
    align-items:center;
    justify-content:flex-start;
  }

  .logo img{
    height:52px;
  }

  .menu-toggle{
    display:block;
    margin-left:auto;
  }

  .nav-links{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:center;
    gap:16px;
    padding:18px 0 8px;
  }

  .nav-links.active{
    display:flex !important;
  }

  .nav-links a{
    font-size:1rem;
    font-weight:700;
  }
}
/* WHY CHOOSE US */

.why-section{
  width:90%;
  max-width:1180px;
  margin:auto;
  padding:90px 0;
}

.why-section h2{
  font-size:clamp(2rem,5vw,3.5rem);
  margin-bottom:50px;
  color:var(--text);
}

.why-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.why-card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:28px;
  padding:32px;
  transition:.35s;
  backdrop-filter:blur(14px);
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.why-card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 40px rgba(37,99,235,.12);
}

.why-icon{
  font-size:2.3rem;
  margin-bottom:20px;
}

.why-card h3{
  color:var(--text);
  margin-bottom:14px;
  font-size:1.2rem;
}

.why-card p{
  color:#475569;
  line-height:1.8;
}

/* HERO IMAGE */

.hero-image{
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
}

.hero-image img{
  width:70%;
  max-width:360px;
  object-fit:contain;

  filter:drop-shadow(
    0 30px 60px rgba(37,99,235,.18)
  );

  animation:floatHero 5s ease-in-out infinite;
}

/* Floating animation */

@keyframes floatHero{

  0%{
    transform:translateY(0px);
  }

  50%{
    transform:translateY(-12px);
  }

  100%{
    transform:translateY(0px);
  }

}

/* MOBILE */

@media(max-width:900px){

  .hero-image{
    margin-top:20px;
  }

  .hero-image img{
    max-width:100%;
  }

}

/* FINAL HERO LAYOUT FIX */

.hero{
  width:90%;
  max-width:1200px;
  margin:60px auto 80px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

.hero-content{
  max-width:620px;
}

.hero-image{
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-image img{
  width:100%;
  max-width:620px;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 30px 60px rgba(37,99,235,.20));
}

/* MOBILE HERO FIX */

@media(max-width:900px){
  .hero{
    grid-template-columns:1fr;
    margin:40px auto 60px;
    gap:30px;
  }

  .hero-image{
    justify-content:center;
  }

  .hero-image img{
    max-width:100%;
  }
}
.form-message{
  margin-top:12px;
  font-weight:700;
  color:#475569;
}

.form-message.success{
  color:#16a34a;
}

.form-message.error{
  color:#dc2626;
}
/* STATS SECTION */

.stats-section{
  width:90%;
  max-width:1180px;
  margin:20px auto 50px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.stat-card{
  background:rgba(255,255,255,.82);
  border:1px solid var(--border);
  border-radius:24px;
  padding:28px;
  text-align:center;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
}

.stat-card h3{
  font-size:2.4rem;
  color:var(--blue);
  margin-bottom:8px;
}

.stat-card p{
  color:#475569;
  font-weight:700;
}

@media(max-width:900px){
  .stats-section{
    grid-template-columns:1fr 1fr;
  }
}
/* TECHNOLOGIES SECTION */

.tech-section{
  width:90%;
  max-width:1180px;
  margin:auto;
  padding:80px 0;
}

.tech-section h2{
  font-size:clamp(2rem,5vw,3.5rem);
  margin-bottom:34px;
  color:var(--text);
}

.tech-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
}

.tech-item{
  background:rgba(255,255,255,.82);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  text-align:center;
  font-weight:800;
  color:#334155;
  box-shadow:0 14px 35px rgba(15,23,42,.07);
  transition:.3s ease;
}

.tech-item:hover{
  transform:translateY(-6px);
  color:var(--blue);
  border-color:#93c5fd;
}

@media(max-width:900px){
  .tech-grid{
    grid-template-columns:repeat(2,1fr);
  }
}
/* TESTIMONIALS SECTION */

.testimonials-section{
  width:90%;
  max-width:1180px;
  margin:auto;
  padding:80px 0;
}

.testimonials-section h2{
  font-size:clamp(2rem,5vw,3.5rem);
  margin-bottom:34px;
  color:var(--text);
}

.testimonials-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.testimonial-card{
  background:rgba(255,255,255,.82);
  border:1px solid var(--border);
  border-radius:26px;
  padding:30px;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  transition:.3s ease;
}

.testimonial-card:hover{
  transform:translateY(-8px);
  box-shadow:0 25px 60px rgba(37,99,235,.14);
}

.stars{
  color:#f59e0b;
  font-size:1.1rem;
  margin-bottom:18px;
  letter-spacing:2px;
}

.testimonial-card p{
  color:#334155;
  line-height:1.8;
  margin-bottom:20px;
}

.testimonial-card h4{
  color:var(--text);
  font-size:1rem;
}

@media(max-width:900px){
  .testimonials-grid{
    grid-template-columns:1fr;
  }
}
/* FLOATING CONTACT BUTTON */

.floating-quote{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:2000;

  background:linear-gradient(135deg,var(--blue),var(--cyan));
  color:white;
  text-decoration:none;

  padding:14px 22px;
  border-radius:999px;
  font-weight:800;

  box-shadow:0 18px 40px rgba(37,99,235,.28);
  transition:.3s ease;
}

.floating-quote:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 55px rgba(37,99,235,.35);
}

@media(max-width:900px){
  .floating-quote{
    right:16px;
    bottom:16px;
    padding:12px 18px;
    font-size:.9rem;
  }
}
