/* ===========================
   Aritma Team — styles.css
   Includes: gradients, waves, scroll animations
   =========================== */

/* ===== GLOBAL ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --blue:#0a3cff;
  --red:#ff1a2e;
  --yellow:#ffeb3b;
  --muted:#f5f8ff;
  --text:#222;
  --card-shadow: 0 8px 28px rgba(15,20,40,0.08);
}

body{
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background: #fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
}

/* layout container */
.container{ width:90%; max-width:1200px; margin:0 auto; }

/* ===== NAVBAR ===== */
header{
  position:fixed; top:0; left:0; right:0;
  background: linear-gradient(90deg, var(--red), var(--blue));
  padding:12px 0; z-index:60;
  box-shadow: 0 6px 20px rgba(8,10,30,0.12);
}
.nav-bar{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.logo{ color:#fff; font-size:22px; font-weight:700; letter-spacing:0.2px; }
.logo span{ color:var(--yellow); margin-left:6px; font-weight:800; }
nav ul{ list-style:none; display:flex; gap:20px; align-items:center; margin-left:auto; }
nav a{ text-decoration:none; color:#fff; font-weight:600; transition:opacity .18s ease; }
nav a:hover{ opacity:.85; }

/* add some top space for fixed header */
.section{ padding-top:90px; padding-bottom:70px; }

/* ===== HERO ===== */
.hero{
  min-height:88vh;
  display:flex; align-items:center; justify-content:center; text-align:center;
  position:relative; padding-top:70px;
  background:
    linear-gradient(120deg, rgba(255,26,46,0.45), rgba(10,60,255,0.55)),
    url('https://images.unsplash.com/photo-1521791136064-7986c2920216?fit=crop&w=1600&q=80') center/cover no-repeat;
  color:#fff;
}

/* subtle overlay for depth */
.hero-overlay{
  position:absolute; inset:0; background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.03), transparent 40%);
  pointer-events:none;
}

/* hero content */
.hero-content{ max-width:820px; padding:48px 16px; z-index:2; }
.hero-title{ font-size:44px; line-height:1.02; margin-bottom:12px; font-weight:800; }
.hero-title span{ color:var(--yellow); display:inline-block; margin-left:6px; }
.hero-sub{ font-size:18px; margin-bottom:20px; opacity:0.95; }

/* primary button */
.btn-primary{
  display:inline-block; padding:12px 28px; border-radius:10px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  color:#fff; font-weight:700; text-decoration:none; letter-spacing:0.2px;
  box-shadow: 0 8px 24px rgba(10,60,255,0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover{ transform:translateY(-4px); box-shadow: 0 16px 36px rgba(10,60,255,0.16); }

/* hero wave bottom */
.wave-bottom{ position:absolute; left:0; right:0; bottom:-1px; line-height:0; transform:translateY(1px); }
.wave-bottom svg{ display:block; width:100%; height:80px; fill:#ffffff; opacity:0.95; }

/* ===== SECTION TITLES ===== */
.section-title{
  font-size:30px; font-weight:800; margin:8px 0 18px; text-align:center;
  background: linear-gradient(90deg, var(--red), var(--blue));
  -webkit-background-clip:text; color:transparent;
  display:inline-block;
  padding:0 6px;
}
.section-title + .subtitle{ text-align:center; margin-bottom:24px; color:#525252; }

/* small decorative wave at top of some sections */
.wave-top{ position:absolute; left:0; right:0; top:0; transform:translateY(-100%); pointer-events:none; }
.wave-top svg{ display:block; width:100%; height:48px; fill:transparent; }

/* ===== ABOUT ===== */
.about-text{
  max-width:880px; margin:16px auto 0 auto;
  font-size:17px; line-height:1.75; color:#404040;
  background:#fff; padding:22px; border-radius:12px; box-shadow:var(--card-shadow);
  border-left:6px solid transparent;
  border-image: linear-gradient(180deg, var(--red), var(--blue)) 1;
}

/* ===== SERVICES ===== */
.service-boxes{ display:flex; gap:22px; justify-content:center; flex-wrap:wrap; margin-top:28px; }
.service-box{
  width:300px; padding:24px; border-radius:14px;
  background: linear-gradient(180deg,#ffffff,#f7fbff);
  box-shadow:var(--card-shadow); border:1px solid rgba(10,60,255,0.06);
  transform:translateY(0); transition: transform .35s ease, box-shadow .35s ease;
  position:relative; overflow:hidden;
}
.service-box:hover{ transform:translateY(-12px); box-shadow: 0 20px 40px rgba(8,10,30,0.12); }

/* glowing accent bubble (subtle) */
.service-box::after{
  content:""; position:absolute; right:-20%; top:-30%; width:160%; height:160%;
  background: radial-gradient(circle at 10% 20%, rgba(10,60,255,0.12), transparent 16%),
              radial-gradient(circle at 80% 80%, rgba(255,26,46,0.06), transparent 10%);
  transform:rotate(20deg);
  pointer-events:none;
}

.service-icon{ display:block; width:56px; height:56px; margin-bottom:12px; stroke-width:2.2; color:var(--blue); transition:transform .25s ease, color .25s ease; }
.service-box:hover .service-icon{ transform:scale(1.08); color:var(--red); }

.service-box h3{
  margin-bottom:10px; font-size:20px;
  background: linear-gradient(90deg,var(--red),var(--blue));
  -webkit-background-clip:text; color:transparent;
}
.service-box p{ color:#333; line-height:1.6; font-size:15px; }

/* ===== CONTACT ===== */
.contact-box{
  max-width:480px; margin:14px auto 0; padding:26px; background:#fff;
  border-radius:12px; box-shadow:var(--card-shadow);
  border-top:6px solid transparent; border-image: linear-gradient(90deg,var(--red),var(--blue)) 1;
  text-align:center;
}
.contact-box p{ font-size:17px; margin:8px 0; color:#333; display:flex; align-items:center; justify-content:center; gap:10px; }
.contact-box i{ width:20px; height:20px; color:var(--blue); stroke-width:2.2; }

/* ===== FOOTER ===== */
footer{ background: linear-gradient(90deg,var(--red),var(--blue)); color:#fff; padding:16px 0; margin-top:30px; text-align:center; }

/* ===== ICON STYLES (section icons) ===== */
.section-icon{ width:36px; height:36px; vertical-align:middle; margin-right:8px; stroke-width:2.5; color:var(--blue); }

/* ===== RESPONSIVE ===== */
@media (max-width:900px){
  .hero-title{ font-size:34px; }
  .service-box{ width:100%; max-width:520px; }
  nav ul{ gap:12px; }
}

/* ===== SCROLL ANIMATIONS =====
   Use .anim-fade-in / .anim-slide-up on elements; they receive .in-view when visible
   ===== */
.anim-fade-in, .anim-slide-up {
  opacity:0; transform:translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}

/* slide-up slight difference */
.anim-slide-up { transform:translateY(28px); }

/* visible state */
.in-view { opacity:1; transform:translateY(0); }

/* reduce motion preference */
@media (prefers-reduced-motion: reduce){
  .anim-fade-in, .anim-slide-up, .btn-primary { transition:none !important; animation:none !important; transform:none !important; }
}

/* small utility spacing */
.mt-10{ margin-top:10px; }
