/* ==========================================================================
   SCC IT Services - Static Site Styles
   Fonts: Jost, Space Grotesk (Google Fonts)
   Primary: #5E17EB | Secondary: #5914e3 | Accent: #f35d29
   ========================================================================== */

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

:root {
  --primary: #5E17EB;
  --primary-dark: #5914e3;
  --accent: #f35d29;
  --text-dark: #333;
  --text-darker: #111;
  --border-light: #e1e8ed;
  --bg-light: #f2f5f7;
  --bg-lighter: #FAFBFC;
  --white: #ffffff;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-darker);
  letter-spacing: -0.3px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .nav-link {
  color: var(--text-dark);
}

.site-header.scrolled .nav-link:hover {
  color: var(--primary);
}

.logo img {
  height: 50px;
  width: auto;
}

.logo .logo-light {
  display: block;
}

.logo .logo-dark {
  display: none;
}

.site-header.scrolled .logo .logo-light {
  display: none;
}

.site-header.scrolled .logo .logo-dark {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 8px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 23, 235, 0.35);
}

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

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

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

.btn-accent:hover {
  background: #e04d1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 93, 41, 0.35);
}

.nav-cta {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 6px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.site-header.scrolled .menu-toggle span {
  background: var(--text-dark);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a0540 0%, #2d0b6e 40%, #3d1199 70%, var(--primary) 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(94, 23, 235, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-content h1 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Stats Bar --- */
.stats-bar {
  padding: 80px 0;
  background: #ede8ff;
  position: relative;
}

.stats-bar .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.stats-image {
  flex: 1;
  max-width: 500px;
}

.stats-image img {
  border-radius: 12px;
}

.stats-content {
  flex: 1;
}

.stats-text {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}

.stats-text .highlight {
  color: var(--primary);
  font-weight: 700;
  font-size: 22px;
}

.stats-content h2 {
  font-size: 36px;
  margin-bottom: 24px;
  line-height: 1.25;
}

/* --- Services Section --- */
.services {
  padding: 100px 0 60px;
  background: #f7f7f8;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, #f0ebff 0%, #f7f7f8 100%);
  pointer-events: none;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  font-size: 42px;
}

.service-block {
  margin-bottom: 80px;
}

.service-block-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.service-block-header h3 {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1.15;
  color: var(--text-darker);
}

.service-block-header p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(94, 23, 235, 0.12);
  border-color: var(--primary);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  opacity: 0.6;
}

.service-card-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0;
}

/* --- Testimonials Section --- */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, #2d0b6e 0%, var(--primary) 50%, #7c3aed 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(243, 93, 41, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 20px;
}

.testimonials-header h2 {
  font-size: 42px;
  color: var(--white);
  margin-bottom: 28px;
}

.testimonial-tags {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.testimonial-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.tag-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 24px;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.quote-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.testimonial-author {
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
}

.testimonial-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background: #f9f9fb;
}

.contact .container {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  max-width: 400px;
}

.contact-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  margin-top: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  font-size: 38px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.contact-info h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 600;
}

.contact-info p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.contact-form-wrapper {
  flex: 1;
  max-width: 560px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-lighter);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 23, 235, 0.1);
}

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

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

.form-group .error-msg {
  display: none;
  font-size: 13px;
  color: #e53e3e;
  margin-top: 6px;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e53e3e;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
}

.form-status {
  display: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
}

.form-status.success {
  display: block;
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.form-status.error {
  display: block;
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

/* --- Tagline/Quote Section --- */
.tagline {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a0540 0%, #2d0b6e 50%, #4b15a8 100%);
  text-align: center;
}

.tagline p {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  font-style: italic;
  margin: 0 auto;
  line-height: 1.5;
  white-space: nowrap;
}

/* --- Footer --- */
.site-footer {
  padding: 30px 0;
  background: var(--text-darker);
  text-align: center;
}

.site-footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    max-width: 400px;
  }

  .stats-bar .container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .stats-image {
    max-width: 400px;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }

  .contact .container {
    flex-direction: column;
    gap: 48px;
  }

  .contact-info {
    max-width: 100%;
    text-align: center;
  }

  .contact-form-wrapper {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

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

  .main-nav .nav-link {
    color: var(--text-dark);
    font-size: 17px;
  }

  .main-nav .nav-link:hover {
    color: var(--primary);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .services-header h2,
  .testimonials-header h2 {
    font-size: 32px;
  }

  .service-block-header h3 {
    font-size: 32px;
  }

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

  .service-card {
    padding: 24px 18px;
  }

  .stats-content h2 {
    font-size: 28px;
  }

  .testimonial-card {
    flex: 0 0 calc(100% - 0px);
  }

  .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .contact-info h2 {
    font-size: 30px;
  }

  .tagline p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .stats-content h2 {
    font-size: 24px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 20px 14px;
  }

  .service-card-icon {
    width: 44px;
    height: 44px;
  }

  .service-card-name {
    font-size: 14px;
  }

  .service-block-header h3 {
    font-size: 28px;
  }

  .tagline p {
    font-size: 12px;
  }
}
