/* 
 * Style: main.css
 * Global styles, custom color variables, animations, navbar, footer, and utility classes
 * Optimized for a clean, professional consultancy look (manpro 360)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..700;1,400..700&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Color Archetype: Professional Polish (Luxury Serif & Warm Alabaster Slate) */
  --primary: #2b2d42;         /* Luxurious deep slate indigo */
  --primary-light: #3d405b;   /* Soft slate navy */
  --secondary: #8d99ae;       /* Elegant silver slate grey */
  --secondary-hover: #2b2d42; /* Deep slate on hover */
  --accent: #3d405b;          /* Technology Accent */
  --dark: #2b2d42;            /* Deep indigo slate */
  --light: #fdfcfb;           /* Warm Alabaster / soft off-white background */
  --hover-bg: #f8f5f2;        /* Soft warm beige hover */
  --white: #ffffff;
  --text-primary: #3c3c3c;     /* Polished charcoal gray */
  --text-secondary: #6d727a;   /* Muted warm slate grey */
  --text-light: #8d99ae;       /* Muted silver slate */
  --border-color: #eeeae6;     /* Warm off-white border */
  --shadow-sm: 0 1px 2px rgba(43, 45, 66, 0.03);
  --shadow-md: 0 4px 12px rgba(43, 45, 66, 0.05);
  --shadow-lg: 0 12px 24px rgba(43, 45, 66, 0.08);
  --shadow-xl: 0 24px 36px rgba(43, 45, 66, 0.12);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--light);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.25;
}

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

button, .btn {
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-normal);
}

/* Base Layout Helpers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* Header & Navbar Style */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

header.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-title span {
  color: var(--secondary);
}

.logo-subtitle {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  position: relative;
  padding: 8px 0;
}

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

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

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

/* Call to Action Button in Nav */
.nav-cta {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: none;
}

.nav-cta:hover {
  background-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition-normal);
}

/* Mobile responsive menu */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 120px 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    z-index: 1005;
  }

  .nav-menu.active {
    right: 0;
  }

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-normal);
  text-align: center;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

.btn-accent {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: none;
}

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

/* Scroll Animation Base Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.reveal-left.revealed, .reveal-right.revealed {
  transform: translateX(0);
}

.reveal-scale.revealed {
  transform: scale(1);
}

/* Stagger list items animations dynamically with index */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--secondary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--secondary);
  margin: 16px auto 0;
  border-radius: 1px;
}

.section-title.left::after {
  margin: 16px 0 0;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

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

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

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-title {
    font-size: 28px;
  }
}

/* Cards & Styling Components */
.card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background-color: var(--hover-bg);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  z-index: 999;
  font-size: 30px;
  transition: var(--transition-normal);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Shake Animation for WhatsApp Button */
@keyframes shake {
  0%, 100% { transform: translateY(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateY(-3px) scale(1.03); }
  20%, 40%, 60%, 80% { transform: translateY(3px) scale(1.03); }
}

.whatsapp-float.shake {
  animation: shake 2.5s ease-in-out infinite;
}

/* Footer Section */
footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 40px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
}

.footer-logo-title span {
  color: var(--secondary);
}

.footer-logo-subtitle {
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.footer-title {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.65);
}

.footer-link:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.footer-contact-item svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Badge overlay / decoration */
.badge-secondary {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}
