/* ===================================================
   AshlarTek — style.css
   Mobile-first responsive design
   =================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: #2D3748;
  background-color: #F8F9FA;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.25;
  color: #2D3748;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subheading {
  font-size: 1.1rem;
  color: #4A5568;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: #00BCD4;
  color: #fff;
  padding: 0.85rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
  background-color: #00A5BB;
  box-shadow: 0 4px 14px rgba(0, 188, 212, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: #00BCD4;
  padding: 0.7rem 1.6rem;
  border: 2px solid #00BCD4;
}

.btn-outline:hover {
  background-color: #00BCD4;
  color: #fff;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

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

.nav-logo img {
  height: 54px;
  width: auto;
}

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

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #4A5568;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #00BCD4;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #00BCD4;
}

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

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #4A5568;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #F8F9FA 60%, #e8f9fb 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  flex: 1 1 55%;
}

.hero-text h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: #2D3748;
}

.hero-text h1 .accent {
  color: #00BCD4;
}

.hero-text p {
  font-size: 1.15rem;
  color: #4A5568;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-graphic {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic img {
  width: 100%;
  max-width: 360px;
  opacity: 0.88;
  filter: drop-shadow(0 8px 24px rgba(0, 188, 212, 0.15));
}

/* ---------- About ---------- */
.about {
  padding: 5rem 0;
  background-color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-photo img {
  width: 100%;
  max-width: 340px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.about-content .subtitle {
  font-size: 1rem;
  color: #00BCD4;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-family: 'Montserrat', sans-serif;
}

.about-content p {
  font-size: 1.05rem;
  color: #4A5568;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0A66C2;
  padding: 0.6rem 1.4rem;
  border: 2px solid #0A66C2;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.linkedin-btn:hover {
  background-color: #0A66C2;
  color: #fff;
}

.linkedin-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Services ---------- */
.services {
  padding: 5rem 0;
  background-color: #F8F9FA;
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-header .section-subheading {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 188, 212, 0.12);
  border-color: #00BCD4;
}

.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card .icon svg {
  width: 24px;
  height: 24px;
  stroke: #00BCD4;
  stroke-width: 1.8;
  fill: none;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #4A5568;
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact {
  padding: 5rem 0;
  background-color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact > .container > p {
  font-size: 1.05rem;
  color: #4A5568;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.contact-email-btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-info {
  font-size: 0.95rem;
  color: #4A5568;
  margin-bottom: 1rem;
}

.contact-info a {
  color: #00BCD4;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: #00A5BB;
}

.contact-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #F8F9FA;
  color: #0A66C2;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-top: 0.5rem;
}

.contact-linkedin:hover {
  background-color: #0A66C2;
  color: #fff;
}

.contact-linkedin svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #2D3748;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.85rem;
}

/* ===================================================
   Responsive Breakpoints
   =================================================== */

/* Small phones handled by default (1-col) */

/* Tablet: ≥ 640px */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet/small desktop: ≥ 768px */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: auto 1fr;
  }

  .about-photo img {
    max-width: 280px;
  }

  .hero-text h1 {
    font-size: 3rem;
  }
}

/* Desktop: ≥ 1024px */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-text h1 {
    font-size: 3.25rem;
  }

  .about-photo img {
    max-width: 340px;
  }
}

/* Mobile nav: ≤ 767px */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }

  .nav-links.open {
    display: flex;
  }

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

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-graphic img {
    max-width: 240px;
  }

  .about-content {
    text-align: center;
  }

  .about-content p {
    margin-left: auto;
    margin-right: auto;
  }
}
