/* ============================================
   IRON Digital Solutions — Global Styles
   ============================================ */

/* --- Reset & Base --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --blue: #046bd2;
  --blue-hover: #045cb4;
  --dark: #111111;
  --heading: #1e293b;
  --body: #334155;
  --light-bg: #F0F5FA;
  --white: #FFFFFF;
  --border: #D1D5DB;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1rem; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Sections --- */
section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p,
.section-dark li {
  color: var(--white);
}

.section-dark .subtitle {
  color: #94a3b8;
}

.section-light {
  background: var(--light-bg);
}

.section-white {
  background: var(--white);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* CTA button in nav */
.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--blue-hover) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
  background: url('images/jai-hero.jpg') center center / cover no-repeat;
  background-color: var(--dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.7) 0%, rgba(10, 10, 20, 0.5) 60%, rgba(10, 10, 20, 0.65) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero .highlight {
  color: var(--blue);
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #94a3b8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(4, 107, 210, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero.has-bg {
  background-size: cover;
  background-position: center;
}

.page-hero.has-bg::before {
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.92) 0%, rgba(10, 10, 20, 0.78) 60%, rgba(10, 10, 20, 0.88) 100%);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 650px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 107, 210, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark-outline {
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--border);
}

.btn-dark-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--blue);
}

.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-dark:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(4, 107, 210, 0.15);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--body);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card-dark p {
  color: #94a3b8;
}

.card-dark h3 {
  color: var(--white);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--body);
}

.section-dark .section-header p {
  color: #94a3b8;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: var(--blue);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.5;
}

.testimonial p {
  font-style: italic;
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.testimonial-role {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.3;
  display: block;
  margin-bottom: 1rem;
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* --- Feature List --- */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.feature-list li:hover {
  background: rgba(4, 107, 210, 0.05);
}

.feature-list .check {
  color: var(--blue);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.section-dark .feature-list li:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

/* --- Portfolio Scroll --- */
.portfolio-scroll {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0 0;
}

.portfolio-track {
  display: flex;
  gap: 1.5rem;
  animation: portfolioScroll 30s linear infinite;
  width: max-content;
}

.portfolio-track:hover {
  animation-play-state: paused;
}

.portfolio-item {
  flex-shrink: 0;
  width: 400px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: scale(1.02);
  border-color: var(--blue);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.04);
}

.portfolio-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

@keyframes portfolioScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .portfolio-item {
    width: 300px;
  }

  .portfolio-item img {
    height: 190px;
  }

  .portfolio-track {
    animation-duration: 20s;
  }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.stagger > .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger > .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger > .fade-in:nth-child(5) { transition-delay: 0.4s; }

/* --- Stat bar --- */
.stat-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blue);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
  background: #111 url('images/jai-cta.jpg') center / cover no-repeat;
  position: relative;
  min-height: 300px;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.8);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* --- 3D Service Carousel --- */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.carousel-wrap:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  padding: 1rem 0;
}

.carousel-card {
  flex: 0 0 300px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(0.82);
  opacity: 0.35;
}

.carousel-card.active {
  transform: scale(1.08);
  opacity: 1;
  background: rgba(4, 107, 210, 0.08);
  border-color: rgba(4, 107, 210, 0.3);
  box-shadow: 0 8px 40px rgba(4, 107, 210, 0.15);
}

.carousel-card.near {
  transform: scale(0.92);
  opacity: 0.65;
}

.carousel-card.far {
  transform: scale(0.85);
  opacity: 0.45;
}

.carousel-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.carousel-card h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.carousel-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--blue);
  transform: scale(1.3);
}

/* --- SEO Services List --- */
.seo-services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.seo-service-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease;
}

.seo-service-item:hover {
  background: rgba(4, 107, 210, 0.06);
}

.seo-service-item:nth-child(odd) {
  border-right: 1px solid rgba(255,255,255,0.06);
}

.seo-service-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  min-width: 50px;
}

.seo-service-content h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.seo-service-content p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* --- Two-col layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-text h2 {
  margin-bottom: 1rem;
}

.two-col-text p {
  margin-bottom: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-signals,
  .quick-facts-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .card-grid.four-col {
    grid-template-columns: 1fr;
  }
  .trust-signals {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  .seo-services-list {
    grid-template-columns: 1fr;
  }
  .seo-service-item:nth-child(odd) {
    border-right: none;
  }
  .carousel-card {
    flex: 0 0 260px;
  }
  section {
    padding: 3.5rem 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    right: 0;
  }

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

  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .page-hero {
    padding: 7rem 0 3rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stat-bar {
    gap: 2rem;
  }

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

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
}
