/* ============================================
   IronTide - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --navy: #0A1628;
  --navy-light: #0F2137;
  --cyan: #00D4FF;
  --cyan-hover: #22D3EE;
  --border: #1E3A5F;
  --text-light: #ffffff;
  --text-muted: #94A3B8;
  --text-dark: #64748B;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Background Effects */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.bg-glow-1 {
  top: 0;
  left: 25%;
  width: 400px;
  height: 400px;
  background: var(--cyan);
  opacity: 0.08;
}

.bg-glow-2 {
  bottom: 25%;
  right: 25%;
  width: 320px;
  height: 320px;
  background: var(--cyan);
  opacity: 0.06;
  filter: blur(100px);
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: 
    linear-gradient(var(--cyan) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyan) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: relative;
  z-index: 100;
  padding: 24px 0;
}

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

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

.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-logo span {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.nav-cta {
  padding: 10px 20px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--cyan-hover);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 10;
  padding: 80px 0 100px;
}

.hero-content {
  max-width: 800px;
}

.hero-content.text-center,
.hero-content[style*="text-align: center"] {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--cyan), #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 672px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background: var(--cyan-hover);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

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

.btn-secondary:hover {
  background: var(--navy-light);
  border-color: rgba(0, 212, 255, 0.5);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 40px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 14px;
  color: var(--text-dark);
}

/* Section Styles */
.section {
  position: relative;
  z-index: 10;
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-muted);
  max-width: 576px;
  margin: 0 auto;
}

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

.service-card {
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--navy-light), var(--navy));
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Why Us Section */
.why-us {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-us-content h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
}

.why-us-content > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-us-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.why-us-item .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-us-item .check svg {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

.why-us-item span {
  color: var(--text-muted);
}

.why-us-cta {
  padding: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--navy-light), var(--navy));
  border: 1px solid var(--border);
}

.why-us-cta h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.why-us-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.why-us-cta .btn {
  width: 100%;
}

/* CTA Section */
.cta-section {
  position: relative;
  z-index: 10;
  padding: 80px 0;
}

.cta-box {
  position: relative;
  padding: 64px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy), var(--navy-light));
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}

.cta-box .bg-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background: var(--cyan);
  opacity: 0.1;
  filter: blur(80px);
  border-radius: 50%;
}

.cta-box h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 576px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-logo span {
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-copy {
  font-size: 14px;
  color: var(--text-dark);
}

/* Page Header */
.page-header {
  position: relative;
  z-index: 10;
  padding: 80px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--cyan), #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* About Page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-values {
  padding: 40px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--navy-light), var(--navy));
  border: 1px solid var(--border);
}

.about-values h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.value-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.value-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.value-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--cyan);
}

.value-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--navy-light), var(--navy));
  border: 1px solid var(--border);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #0891B2);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
}

.team-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--cyan);
  font-size: 14px;
  margin-bottom: 16px;
}

.team-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .icon svg {
  width: 24px;
  height: 24px;
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Contact Form */
.contact-form {
  padding: 40px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--navy-light), var(--navy));
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-light);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dark);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

/* Services Page - Detailed */
.service-detail {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.service-detail:nth-child(even) .service-detail-inner {
  direction: rtl;
}

.service-detail:nth-child(even) .service-detail-inner > * {
  direction: ltr;
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-detail-icon svg {
  width: 40px;
  height: 40px;
}

.service-detail h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-detail > div > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 100px;
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.service-feature svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.animate {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .why-us {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-detail-inner {
    grid-template-columns: 1fr;
  }
  
  .service-detail:nth-child(even) .service-detail-inner {
    direction: ltr;
  }
  
  .service-features {
    padding-top: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-cta {
    display: none;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .cta-box {
    padding: 40px 24px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .why-us-cta {
    padding: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 40px 0 60px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .stat-item h3 {
    font-size: 32px;
  }
}
