/* ==========================================================================
   Rexavio Media - Global Styles
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Branding Colors */
  --color-blue-dark: #07386d;
  --color-blue-primary: #0b4c93;
  --color-blue-light: #0088cc;
  
  --color-green-dark: #127254;
  --color-green-primary: #1a936f;
  --color-green-light: #7bc043;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-blue-primary) 0%, var(--color-blue-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-green-primary) 0%, var(--color-green-light) 100%);
  --gradient-brand: linear-gradient(135deg, var(--color-blue-primary) 0%, var(--color-green-primary) 100%);
  
  /* Neutrals */
  --color-bg-main: #f8fafc;
  --color-bg-card: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #f1f5f9;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 25px 35px -5px rgba(11, 76, 147, 0.15), 0 15px 15px -5px rgba(11, 76, 147, 0.05);

  /* Utilities */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

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

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

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

ul {
  list-style: none;
}

/* ==========================================================================
   Typography & Reusables
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: -1;
  transition: opacity var(--transition-normal);
  opacity: 0;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(11, 76, 147, 0.2);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(11, 76, 147, 0.4);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(26, 147, 111, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(26, 147, 111, 0.4);
}

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

.btn-outline:hover {
  background: var(--color-blue-primary);
  color: white;
  box-shadow: 0 10px 25px rgba(11, 76, 147, 0.3);
  transform: translateY(-4px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-slow);
}

header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 1);
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  height: 100%;
}

.logo-container img {
  height: 140px;
  width: auto;
  position: absolute;
  top: 0;
  left: 0;
  background: white;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  letter-spacing: -0.5px;
  margin-left: 150px;
}

.logo-text span {
  color: var(--color-green-primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text-main);
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-brand);
  transition: width var(--transition-fast);
}

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

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

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

/* ==========================================================================
   Hero Section & Particles
   ========================================================================== */
#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: url('../images/hero_bg_abstract.png') no-repeat center center/cover;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(7, 56, 109, 0.95) 0%, rgba(7, 56, 109, 0.5) 100%);
  z-index: 1;
}

/* Decorative elements */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  animation: float 15s ease-in-out infinite;
}
.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--color-blue-light);
  opacity: 0.15;
  top: 5%;
  right: -10%;
  animation-delay: 0s;
}
.shape-2 {
  width: 350px;
  height: 350px;
  background: var(--color-green-light);
  opacity: 0.15;
  bottom: 0;
  left: -10%;
  animation-delay: 5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(30px, -50px) rotate(10deg) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-5deg) scale(0.9);
  }
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

.hero-content {
  text-align: left;
  max-width: 750px;
  margin: 0;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero h1 span {
  background: linear-gradient(135deg, #4ade80 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 700px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.hero .btn-outline:hover {
  background: #ffffff;
  color: var(--color-blue-dark);
  border-color: #ffffff;
}

/* ==========================================================================
   Services Cards
   ========================================================================== */
.services-section {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-slow);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(11, 76, 147, 0.15);
  border-color: rgba(11, 76, 147, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: rgba(11, 76, 147, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-blue-primary);
  margin-bottom: 20px;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: white;
}

.service-card.green:hover .service-icon {
  background: var(--gradient-secondary);
  color: white;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.service-card ul {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.service-card ul li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-green-primary);
  font-weight: bold;
}

/* ==========================================================================
   About Section & Lists
   ========================================================================== */
.about-section, .why-choose-us, .industries-section {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.about-image {
  background: var(--gradient-brand);
  border-radius: var(--border-radius);
  padding: 5px;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--border-radius) - 5px);
  display: block;
}

/* Feature Lists (Why Choose Us) */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-bg-card);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.feature-item:hover {
  transform: translateX(5px);
}

.feature-icon {
  color: var(--color-green-primary);
  font-size: 1.2rem;
  background: rgba(26, 147, 111, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-text {
  font-weight: 600;
  color: var(--color-text-main);
}

/* Industries Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.industry-tag {
  background: white;
  border: 1px solid rgba(11, 76, 147, 0.1);
  padding: 15px;
  text-align: center;
  border-radius: var(--border-radius);
  font-weight: 500;
  color: var(--color-blue-primary);
  transition: all var(--transition-fast);
}

.industry-tag:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, transparent, rgba(11, 76, 147, 0.03));
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-info {
  background: var(--gradient-brand);
  color: white;
  padding: 50px 40px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.info-item i {
  font-size: 1.5rem;
  margin-top: 2px;
}

.info-item p {
  font-size: 1.1rem;
}

.info-item a {
  color: white;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 4px;
}

.info-item a:hover {
  text-decoration-color: white;
}

.contact-form-container {
  padding: 50px 40px;
}

.contact-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--color-blue-primary);
}

.contact-form-container p {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue-light);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--color-blue-dark);
  color: white;
  padding: 60px 0 20px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-brand span {
  color: var(--color-green-light);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--color-green-primary);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  /* Retained for backward compatibility if missed any */
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Media Queries (Responsive Design)
   ========================================================================== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .about-content { grid-template-columns: 1fr; }
  .about-image { order: -1; margin-bottom: 30px; }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left var(--transition-normal);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li a {
    font-size: 1.5rem;
  }

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

  .hero { padding: 140px 0 80px 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; }
  .btn { text-align: center; width: 100%; }
}
