/* css/style.css */
:root {
  /* Colors */
  --c-primary: #0F172A;
  /* Deep Slate Navy */
  --c-primary-light: #1E293B;
  --c-primary-dark: #020617;
  --c-accent: #AB0E70;
  /* Premium Magenta */
  --c-accent-hover: #8F005B;
  --c-secondary: #06B6D4;
  /* Electric Cyan */
  --c-bg: #F8FAFC;
  --c-surface: #FFFFFF;
  --c-text: #334155;
  --c-heading: #0F172A;
  --c-border: #E2E8F0;

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--c-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

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

.section {
  padding: 5rem 0;
}

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

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-gray {
  background-color: #F1F5F9;
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--c-primary);
}

.text-accent {
  color: var(--c-accent);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--c-text);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-subtitle {
  color: #CBD5E1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--c-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}

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

.section-dark .btn-outline {
  color: white;
  border-color: white;
}

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


/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition);
}

.navbar.scrolled .nav-container {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  display: block;
}

.navbar.scrolled .logo img {
  height: 46px;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--c-primary-light);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--c-accent);
  transition: var(--transition);
}

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

.nav-links .btn {
  color: white;
}

.nav-links .btn::after {
  display: none;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--c-primary);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  padding-top: 200px;
  padding-bottom: 200px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7)), url('../assets/hero-bg.jpg') center/cover no-repeat;
  color: white;
  position: relative;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-tagline {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(171, 14, 112, 0.15);
  color: var(--c-accent);
  border-radius: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(171, 14, 112, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero h1 span {
  color: var(--c-accent);
}

.hero p {
  font-size: 1.25rem;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
}

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

/* Features/Services Overlay */
.hero-features {
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--c-accent);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(171, 14, 112, 0.1);
  color: var(--c-accent);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--c-heading);
}

.feature-content p {
  color: var(--c-text);
  font-size: 0.95rem;
}

/* Main Content Padding Top Adjustment due to absolute features */
.intro-section {
  padding-top: 10rem;
}

/* Introduction Section (Why Us) */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.intro-text h2 span {
  color: var(--c-accent);
}

.intro-list {
  list-style: none;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.intro-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.intro-list i {
  color: var(--c-accent);
  font-size: 1.25rem;
}

.intro-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 500px;
  background: var(--c-primary-light);
}

.intro-image img {
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--c-primary);
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--c-accent);
}

.experience-badge .years {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--c-accent);
}

.experience-badge .text {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Core Services Overview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-overview-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--c-border);
}

.service-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  height: 250px;
  background-color: var(--c-primary-light);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-overview-card:hover .service-img img {
  transform: scale(1.05);
}

.service-icon-float {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: var(--c-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 10px rgba(171, 14, 112, 0.4);
  z-index: 2;
  border: 4px solid white;
  transition: var(--transition);
}

.service-overview-card:hover .service-icon-float {
  transform: scale(1.1);
}

.service-details {
  padding: 3rem 2.5rem 2.5rem;
}

.service-details h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-details p {
  color: var(--c-text);
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-primary);
  font-weight: 600;
}

.service-link:hover {
  color: var(--c-accent);
  gap: 0.75rem;
}

/* Value Props / Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.trust-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.trust-item i {
  font-size: 2.5rem;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.trust-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--c-text);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: white;
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: #CBD5E1;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Footer */
footer {
  background-color: var(--c-primary-dark);
  color: #CBD5E1;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .logo {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-about .logo img {
  height: 60px;
}

.footer-about p {
  margin-bottom: 1.5rem;
  max-width: 320px;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--c-accent);
  color: white;
}

.footer-heading {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--c-accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.footer-contact i {
  color: var(--c-accent);
  margin-top: 0.25rem;
  font-size: 1.25rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1500px) {
  .hero-features {
    margin-top: -60px;
  }

  .intro-section {
    padding-top: 10rem;
  }
}

@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero {
    padding-bottom: 150px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-features {
    margin-top: -60px;
  }

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

  .intro-image {
    order: -1;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background-color: white;
    width: 100%;
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    align-items: center;
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: block;
  }

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

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

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

  .hero h1 {
    font-size: 2.5rem;
  }

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

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

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

/* ==========================================
   Visual Timeline & Qualifications
   ========================================== */
.about-qualifications-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--c-border);
  top: 0;
  bottom: 0;
  left: 20px;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 1rem 1rem 1.5rem 3rem;
  position: relative;
  background-color: transparent;
  width: 100%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--c-surface);
  border: 4px solid var(--c-accent);
  top: 1.5rem;
  left: 12px;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover::after {
  background-color: var(--c-accent);
  transform: scale(1.2);
}

.timeline-date {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--c-accent);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--c-heading);
}

.timeline-content p {
  color: var(--c-text);
  font-size: 0.95rem;
}

/* Certificate Card */
.cert-card {
  background: var(--c-surface);
  border-radius: 1rem;
  border: 1px solid var(--c-border);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent);
}

.cert-preview-container {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1.414; /* A4 format */
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  cursor: pointer;
  background-color: var(--c-bg);
}

.cert-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.cert-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.cert-preview-overlay i {
  color: white;
  font-size: 1.5rem;
  background: var(--c-accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(171, 14, 112, 0.4);
}

.cert-preview-container:hover .cert-preview-overlay {
  opacity: 1;
}

.cert-preview-container:hover .cert-preview-overlay i {
  transform: scale(1);
}

.cert-preview-container:hover .cert-preview-img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cert-modal.active {
  display: flex;
  opacity: 1;
}

.cert-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cert-modal.active .cert-modal-content {
  transform: scale(1);
}

.cert-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--c-surface);
}

.cert-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 2.25rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.cert-modal-close:hover {
  color: var(--c-accent);
  transform: rotate(90deg);
}

.cert-modal-caption {
  color: white;
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Trust item card interactivity helper */
.trust-item.cert-trigger {
  transition: var(--transition);
}

.trust-item.cert-trigger:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent);
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
  .about-qualifications-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
}

@media (max-width: 768px) {
  .timeline::after {
    left: 15px;
  }
  .timeline-item {
    padding-left: 2.5rem;
    padding-bottom: 1.25rem;
  }
  .timeline-item::after {
    left: 7px;
    top: 1.5rem;
  }
  .cert-modal-content img {
    max-height: 70vh;
  }
  .cert-modal-close {
    top: -40px;
    right: 5px;
  }
}