/* ==========================================================================
   Techizer - Global Styles
   ========================================================================== */

:root {
  /* Colors */
  --primary: #0a58ca; /* Deep Blue for Trust/Tech */
  --primary-hover: #084298;
  --secondary: #003344; /* Darker Blue/Teal for footer matching screenshot */
  --accent: #38bdf8; /* Bright Cyan for highlights */
  --accent-dark: #0284c7; /* Darker Cyan for light backgrounds */
  --light-bg: #f8fafc; /* Off-white background */
  --white: #ffffff;
  --text-main: #334155; /* Main reading text */
  --text-light: #64748b; /* Secondary text */
  --border-color: #e2e8f0;

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

  /* Layout */
  --container-width: 1300px;
  --nav-height: 80px;

  /* Transitions & Shadows */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

ul {
  list-style: none;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary);
}
.text-accent {
  color: var(--accent-dark);
}
.text-accent-light {
  color: var(--accent);
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-size: 1rem;
}

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

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

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

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

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

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img, .footer-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.nav-link {
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)),
    url("https://images.unsplash.com/photo-1551076805-e18690c5e451?q=80&w=2000&auto=format&fit=crop")
      center/cover no-repeat;
  color: var(--white);
  padding-top: var(--nav-height);
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 1s ease-out;
}

.hero-tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: rgba(56, 189, 248, 0.2);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 4rem 0 2rem;
  --text-light: rgba(255, 255, 255, 0.75);
}

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

.footer-col h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo img {
  filter: brightness(0) invert(1);
}

.footer-text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer-contact i {
  color: var(--accent);
  margin-top: 5px;
}

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

.footer-bottom a {
  transition: color 0.3s ease;
}

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

.footer-socials a {
  color: var(--text-light);
  font-size: 1.25rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.email-link {
  transition: color 0.3s ease;
}

.email-link:hover {
  color: var(--accent) !important;
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: white;
  transform: scale(1.1);
}

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

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

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    overflow-y: auto;
    z-index: 1001; /* Ensure it's above other elements */
  }

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

  .nav-link {
    font-size: 1.25rem;
    padding: 0.5rem 0;
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 1rem;
    margin-left: 0 !important;
  }

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

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

  .slider-controls {
    display: none !important; /* Hide arrows on mobile for cleaner UI and to avoid text overlap */
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.45rem; /* Reduced further to avoid overlap with slider arrows */
  }
  
  .hero p {
    font-size: 1.05rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .trust-banner {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .footer-bottom {
    padding: 1.5rem 0;
  }
}

/* ==========================================================================
   Legacy Port Specific Utilities
   ========================================================================== */
.tech-card {
  background: var(--white);
  border-radius: 10px;
  padding: 3rem 2rem 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  margin-top: 3rem;
  transition: var(--transition);
}
.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.tech-badge {
  position: absolute;
  top: -2rem;
  left: 2rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  border: 5px solid var(--secondary);
  z-index: 2;
}
.stats-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.stats-label {
  font-size: 0.9rem;
  font-weight: 500;
}
.cert-badge {
  background: var(--white);
  border-radius: 50px;
  padding: 1rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.why-card {
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 2.5rem 1rem;
  border: 1px solid rgba(0,0,0,0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Utility Classes */
.text-white {
  color: #ffffff !important;
}

.section-dark .section-title,
.section-dark h2 {
  color: #ffffff !important;
}

.section-dark .section-subtitle,
.section-dark p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Premium Technology Cards */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.tech-card-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 70%);
    pointer-events: none;
}

.tech-card-premium:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.tech-icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.tech-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    filter: blur(15px);
    opacity: 0.4;
    z-index: -1;
}

.tech-card-premium h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tech-list-single {
    grid-template-columns: 1fr;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.tech-card-premium:hover .tech-item {
    color: rgba(255, 255, 255, 0.9);
}

.tech-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

/* ==========================================================================
   Scroll Progress Indicator
   ========================================================================== */
.progress-wrap {
  position: fixed;
  right: 2.3rem; /* Aligned slightly off center over WhatsApp */
  bottom: 6.5rem; /* Above the WhatsApp float */
  height: 50px;
  width: 50px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  box-shadow: inset 0 0 0 2px rgba(10, 88, 202, 0.15);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 200ms linear;
  background-color: var(--white);
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-wrap::after {
  position: absolute;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f062"; /* fa-arrow-up */
  text-align: center;
  line-height: 50px;
  font-size: 1.15rem;
  color: var(--primary);
  left: 0;
  top: 0;
  height: 50px;
  width: 50px;
  cursor: pointer;
  display: block;
  z-index: 1;
  transition: all 200ms linear;
}

.progress-wrap:hover::after {
  color: var(--white);
}

.progress-wrap::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  z-index: 0;
  opacity: 0;
  transform: scale(0.4);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-wrap:hover::before {
  opacity: 1;
  transform: scale(1);
}

.progress-wrap svg path {
  fill: none;
}

.progress-wrap svg.progress-circle path {
  stroke: var(--primary);
  stroke-width: 4;
  box-sizing: border-box;
  transition: all 200ms linear;
}

@media (max-width: 768px) {
  .progress-wrap {
    right: 1.5rem;
    bottom: 5.5rem;
    height: 44px;
    width: 44px;
  }
  .progress-wrap::after {
    line-height: 44px;
    font-size: 1rem;
    height: 44px;
    width: 44px;
  }
  .progress-wrap::before {
    height: 44px;
    width: 44px;
  }
}
