/* ============================
   VARIABLES & RESET
   ============================ */
:root {
  --primary: #0a2647;
  --primary-light: #144272;
  --accent: #e85d00;
  --accent-light: #ff7a1f;
  --white: #ffffff;
  --light: #f4f7fb;
  --gray: #e8edf4;
  --text: #1a2332;
  --text-muted: #5a6a7e;
  --border: #dce4ee;
  --shadow-sm: 0 2px 8px rgba(10, 38, 71, 0.08);
  --shadow-md: 0 6px 24px rgba(10, 38, 71, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 38, 71, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --font-main: 'Inter', system-ui, sans-serif;
  --font-display: 'Rajdhani', 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

/* ============================
   UTILITY CLASSES
   ============================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--accent); }

.section {
  padding: 96px 0;
}

.section--gray {
  background: var(--light);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section__tag {
  display: inline-block;
  background: rgba(232, 93, 0, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 93, 0, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn--lg { padding: 16px 36px; font-size: 1rem; border-radius: 10px; }
.btn--full { width: 100%; }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.logo-agp {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar__cta {
  margin-left: 16px;
  flex-shrink: 0;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1e5a8e 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(232, 93, 0, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--navbar-height) + 64px);
  padding-bottom: 40px;
  max-width: 820px;
}

.hero__tag {
  display: inline-block;
  background: rgba(232, 93, 0, 0.2);
  color: #ffab6b;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(232, 93, 0, 0.3);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats bar */
.hero__stats {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 0;
  margin-top: auto;
}

.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================
   ABOUT
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-card--accent {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.about-card--accent h3,
.about-card--accent p {
  color: var(--white);
}

.about-card--accent p {
  opacity: 0.8;
}

.about-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-text .section__tag { margin-bottom: 12px; }

.about-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.value-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================
   PRODUCTS
   ============================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.product-card__link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: gap var(--transition);
}

.product-card__link:hover {
  color: var(--accent-light);
}

/* ============================
   SERVICES
   ============================ */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-item {
  display: flex;
  gap: 24px;
  padding: 36px 40px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.service-item:hover {
  background: var(--light);
}

.service-item:nth-child(even) {
  border-right: none;
}

.service-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.service-item__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(232, 93, 0, 0.18);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.service-item__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-item__body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================
   BRANDS
   ============================ */
.brands-marquee {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.brands-marquee::before,
.brands-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
}

.brands-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--light), transparent);
}

.brands-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--light), transparent);
}

.brands-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.brand-name {
  display: inline-block;
  padding: 12px 48px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.45;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: opacity var(--transition);
}

.brand-name:hover {
  opacity: 0.9;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================
   CONTACT
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__item h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.contact-info__item p,
.contact-info__item a {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-info__item a:hover { color: var(--accent); }

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 0, 0.12);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e53e3e;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a7e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.form-status {
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 24px;
}

.form-status.success { color: #2f855a; }
.form-status.error { color: #c53030; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}

.footer__brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p,
.footer__bottom a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer__bottom a:hover { color: var(--accent); }

/* ============================
   SCROLL TO TOP
   ============================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(232, 93, 0, 0.4);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ============================
   ANIMATIONS
   ============================ */
.animate-up {
  opacity: 0;
  transform: translateY(32px);
  animation: fadeUp 0.7s var(--transition) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: 2;
    flex-direction: row;
  }

  .about-card { flex: 1; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root { --navbar-height: 64px; }

  .section { padding: 64px 0; }

  .navbar__nav,
  .navbar__cta {
    display: none;
  }

  .navbar__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--primary);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .navbar__nav.open .nav-link {
    font-size: 1.4rem;
  }

  .navbar__toggle {
    display: flex;
    z-index: 1000;
  }

  .hero__stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .service-item {
    border-right: none !important;
  }

  .service-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .service-item:last-child {
    border-bottom: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-visual {
    flex-direction: column;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 24px 32px;
  }

  .footer__bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn--lg {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
  }
}
