/* ==========================================
   FORTIVEST - Professional & Classic Design System
   ========================================== */

/* ==========================================
   CSS CUSTOM PROPERTIES
   ========================================== */
:root {
  /* Premium Color Palette - Black, White, Gold */
  --gold: hsl(45, 100%, 51%);
  --gold-dark: hsl(43, 100%, 45%);
  --gold-light: hsl(48, 100%, 65%);
  --gold-accent: hsl(38, 90%, 55%);

  --black: hsl(0, 0%, 0%);
  --black-soft: hsl(0, 0%, 10%);
  --black-medium: hsl(0, 0%, 20%);

  --white: hsl(0, 0%, 100%);
  --white-soft: hsl(0, 0%, 98%);
  --off-white: hsl(0, 0%, 96%);

  /* Neutral Grays */
  --gray-50: hsl(0, 0%, 98%);
  --gray-100: hsl(0, 0%, 95%);
  --gray-200: hsl(0, 0%, 90%);
  --gray-300: hsl(0, 0%, 80%);
  --gray-400: hsl(0, 0%, 65%);
  --gray-500: hsl(0, 0%, 50%);
  --gray-600: hsl(0, 0%, 40%);
  --gray-700: hsl(0, 0%, 30%);
  --gray-800: hsl(0, 0%, 20%);
  --gray-900: hsl(0, 0%, 10%);

  /* Semantic Colors */
  --success: hsl(142, 70%, 45%);
  --warning: hsl(45, 100%, 50%);
  --danger: hsl(0, 85%, 55%);
  --info: hsl(200, 95%, 50%);

  /* Text Colors */
  --text-primary: var(--black);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --text-inverse: var(--white);
  --text-gold: var(--gold-dark);

  /* Background Colors */
  --bg-primary: var(--white);
  --bg-secondary: var(--off-white);
  --bg-dark: var(--black);
  --bg-dark-soft: var(--black-soft);

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 4px 20px rgba(255, 193, 7, 0.3);

  /* Z-Index Scale */
  --z-background: -1;
  --z-base: 1;
  --z-elevated: 10;
  --z-header: 100;
  --z-modal: 1000;
}

/* ==========================================
   GLOBAL RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
  color: var(--gold);
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--gold);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold);
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--gold-dark);
}

p {
  margin-bottom: var(--space-md);
  color: var(--black);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

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

a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2,
.glass-panel h3 {
  display: inline-block;
  transition: all 0.3s ease;
  cursor: default;
}

.section-title h2:hover,
.glass-panel h3:hover {
  transform: translateY(-4px);
  text-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* ==========================================
   BUTTON STYLES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: var(--shadow-gold);
  border: 2px solid var(--gold);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold), var(--shadow-lg);
}

.btn-glass {
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  text-decoration: none;
}

.btn-glass:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  text-decoration: none;
}

/* ==========================================
   PREMIUM BACKGROUND - LIGHT GOLDEN TINT
   ========================================== */
#bg-canvas {
  display: none;
}

/* Removed overlay to allow section backgrounds to show properly */

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */
@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

/* ==========================================
   NAVIGATION STYLES
   ========================================== */
.nav-content {
  padding: var(--space-md) 0;
}

.logo h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-links a {
  color: var(--gold);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

.mobile-menu {
  display: none;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(30px);
  padding: var(--space-lg);
  border-top: 1px solid var(--glass-border);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-menu a {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 500;
  display: block;
  padding: var(--space-sm);
}

/* ==========================================
   HERO SECTION - PREMIUM BLACK & GOLD
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  background: hsl(40, 30%, 92%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content h1,
.hero-content h2,
.hero-content h3 {
  color: var(--gold);
}

.hero-content p {
  color: var(--black);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--black);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

/* ==========================================
   SECTION BACKGROUNDS (ALTERNATING WHITE/OFF-WHITE)
   ========================================== */
.section:nth-child(odd) {
  background: var(--white);
}

.section:nth-child(even) {
  background: var(--off-white);
}

/* Specific sections with warm beige/cream background */
#offerings,
#case-studies,
#leadform {
  background: hsl(40, 30%, 92%) !important;
}

/* Features section with background image */
#features {
  background-image: url('../images/home_bg.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
}

/* Optional: Add dark overlay for better text readability */
#features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

#features .container {
  position: relative;
  z-index: 1;
}

#features .section-title h2,
#features .section-title p {
  color: var(--gold) !important;
}

/* Feature cards have white backgrounds, so text should be black */
#features .feature-card h4 {
  color: var(--gold-dark) !important;
}

#features .feature-card p {
  color: var(--black) !important;
}

/* CyberSeva Impact section with inverted background image */
#impact {
  background-image: url('../images/home_bg.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
  transform: scaleY(-1);
}

/* Flip content back to normal */
#impact>* {
  transform: scaleY(-1);
}

/* Alternative approach: Add dark overlay for better text readability */
#impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

#impact .container {
  position: relative;
  z-index: 1;
}

#impact h2 {
  color: var(--gold) !important;
}

#impact .glass-card {
  background: hsl(40, 30%, 92%) !important;
  border: 1px solid var(--gray-200) !important;
}

#impact .glass-card h3,
#impact .glass-card h4 {
  color: var(--black) !important;
}

#impact .impact-item h4 {
  color: var(--gold-dark) !important;
}

#impact .impact-item p {
  color: var(--black) !important;
}

/* ==========================================
   OFFERINGS & CASE STUDIES
   ========================================== */
.offering-item {
  padding: var(--space-lg);
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 230, 0.9));
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.offering-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 245, 215, 0.95));
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cloud-feature {
  text-align: center;
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 230, 0.9));
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
}

.cloud-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-study-list {
  list-style: none;
  padding: 0;
}

.case-study-list li {
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.impact-item {
  padding: var(--space-md);
}

/* ==========================================
   FORM STYLES
   ========================================== */
.form-group {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================
   MODAL STYLES
   ========================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: scaleIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.close-modal:hover {
  color: var(--accent-cyan);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--black);
  padding: var(--space-lg) 0;
  border-top: 2px solid var(--gold);
}

.footer p {
  color: var(--gold) !important;
  margin: 0;
}

.footer h3,
.footer h4,
.footer h5 {
  color: var(--gold) !important;
}

.footer a {
  color: var(--gold) !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 0.8;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

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

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

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

  .hero {
    min-height: 90vh;
    padding-top: 80px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {

  .grid-2,
  .grid-3 {
    gap: var(--space-md);
  }

  .btn {
    width: 100%;
  }
}