/* N2Z Technology - Modern CSS Framework */
:root {
  --primary-color: #1a73e8;
  --primary-dark: #1557b0;
  --secondary-color: #34a853;
  --accent-color: #ea4335;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-light: #9aa0a6;
  --background: #ffffff;
  --surface: #f8f9fa;
  --border: #dadce0;
  --shadow: rgba(60, 64, 67, 0.3);
  --shadow-light: rgba(60, 64, 67, 0.15);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  
  --border-radius: 8px;
  --border-radius-large: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.nav-menu a:hover {
  background-color: var(--surface);
  color: var(--primary-color);
}

/* Hero Section - Default (for other pages, less prominent) */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  background-image: url('/assets/images/datacenter-static.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

/* Other pages hero - smaller, less prominent */
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Homepage Hero Section - With Photo Background, Full Prominence */
.hero.homepage-hero {
  background: 
    linear-gradient(135deg, rgba(26, 115, 232, 0.2) 0%, rgba(21, 87, 176, 0.3) 100%),
    url('/assets/images/data-center-hero.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  background-blend-mode: overlay, normal;
  padding: 6rem 2rem;
  min-height: 500px;
}

/* Homepage hero text - clean, no effects */
.hero.homepage-hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 600;
}

.hero.homepage-hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
  font-weight: 400;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.7) 100%);
  z-index: 1;
}

/* Radial vignette overlay for homepage text readability */
.hero.homepage-hero::before {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  animation: dataFlow 8s infinite linear;
  z-index: 2;
}

@keyframes dataFlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* Floating Data Particles */

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(59, 130, 246, 0.6);
  border-radius: 50%;
  animation: floatParticle 12s infinite linear;
}

.hero-particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  background: rgba(74, 222, 128, 0.6);
}

.hero-particle:nth-child(2) {
  left: 20%;
  animation-delay: 2s;
  background: rgba(59, 130, 246, 0.6);
}

.hero-particle:nth-child(3) {
  left: 30%;
  animation-delay: 4s;
  background: rgba(139, 92, 246, 0.6);
}

.hero-particle:nth-child(4) {
  left: 70%;
  animation-delay: 1s;
  background: rgba(245, 158, 11, 0.6);
}

.hero-particle:nth-child(5) {
  left: 80%;
  animation-delay: 3s;
  background: rgba(16, 185, 129, 0.6);
}

.hero-particle:nth-child(6) {
  left: 90%;
  animation-delay: 5s;
  background: rgba(59, 130, 246, 0.6);
}

@keyframes floatParticle {
  0% {
    top: 100%;
    opacity: 0;
    transform: translateX(0px);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: -10%;
    opacity: 0;
    transform: translateX(50px);
  }
}

/* Global hero text styles removed - now handled by specific page classes */

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

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

/* Sections */
.section {
  padding: 5rem 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border-radius: var(--border-radius-large);
  padding: 2rem;
  box-shadow: 0 4px 16px var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px var(--shadow);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-secondary);
}

/* Stats */
.stats {
  background: var(--surface);
  padding: 4rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

.hidden { display: none; }

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Image Sections */
.image-section {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.image-section img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(26, 115, 232, 0.9), rgba(52, 168, 83, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.service-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius-large);
  margin-bottom: 1.5rem;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 4px solid var(--primary-color);
  box-shadow: 0 4px 16px var(--shadow-light);
}

.tech-graphic {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 2rem auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.1));
}

.background-pattern {
  background-image: url('/assets/images/tech-dashboard.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .image-section img {
    height: 250px;
  }
  
  .service-image {
    height: 200px;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .tech-graphic {
    max-width: 100%;
  }
  
  .background-pattern {
    background-attachment: scroll;
  }
}