/* ==========================================================================
   Zayraiq Technology Solutions - Global Styles
   ========================================================================== */

:root {
  /* Colors */
  --primary: #DE1A1A;
  /* Brand Red */
  --primary-dark: #B31212;
  /* Dark Red */
  --secondary: #212529;
  /* Deep Charcoal Focus */
  --bg-color: #FFFFFF;
  /* Pure White Background */
  --text-main: #334155;
  /* Slate body text */
  --text-light: #64748B;
  /* Light Slate */
  --white: #FFFFFF;
  --accent-red: #DE1A1A;
  /* Brand Red */

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

  /* Layout */
  --container-width: 1200px;
  --border-radius: 12px;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --glass-bg: #FFFFFF;
  --glass-border: 1px solid rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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-dark);
}

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(222, 26, 26, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(222, 26, 26, 0.4);
}

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

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

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: var(--glass-border);
  transition: var(--transition);
}

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

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

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

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

.nav-links a {
  color: var(--secondary);
  font-weight: 500;
  font-family: var(--font-heading);
}

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

.nav-links .nav-btn {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  text-align: center;
  transition: var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links .nav-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(222, 26, 26, 0.3);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-about p {
  color: #94A3B8;
  margin-top: 1rem;
}

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

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

.footer-links a {
  color: #94A3B8;
}

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

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

/* ==========================================================================
   Animations & Interaction
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Hide for mobile initially */
  }

  .mobile-menu-btn {
    display: block;
  }

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

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