/* ============================================
   FortifyNetworks - Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary-color: #7ed957;
  --primary-dark: #00b388;
  --secondary-color: #ff014e;
  --accent-blue: #007bff;
  --accent-yellow: #ffb400;
  --dark-bg: #122846;
  --dark-bg-light: rgba(18, 40, 70, 0.98);
  --text-light: #e6eefa;
  --text-white: #ffffff;
  --shadow-sm: 0 2px 12px 0 rgba(0, 20, 60, 0.07);
  --shadow-md: 0 6px 32px 0 rgba(0, 20, 60, 0.13);
  --shadow-lg: 0 10px 40px 0 rgba(0, 20, 60, 0.2);
  --transition: all 0.3s cubic-bezier(0.33, 1.02, 0.47, 0.98);
  --border-radius: 12px;
  --border-radius-lg: 18px;
}

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

html {
  scroll-behavior: smooth;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Header & Navigation --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(18, 40, 70, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.logo-area {
  display: flex;
  align-items: center;
}

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

.main-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav .current a::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav .current a {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(18, 40, 70, 0.85) 0%, rgba(0, 179, 136, 0.3) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-light);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-light);
  margin-top: 2rem;
  opacity: 0.9;
  line-height: 1.8;
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(126, 217, 87, 0.3);
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(126, 217, 87, 0.5);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.cta-btn:active {
  transform: translateY(-1px);
}

/* --- About Section --- */
.about-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--dark-bg-light);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.about-image-main {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-white);
}

.about-title span {
  color: var(--primary-color);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-service-btn {
  display: block;
  padding: 1rem 1.5rem;
  background: rgba(126, 217, 87, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.about-service-btn:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateX(10px);
}

/* --- Latest News Section (IT Solutions) --- */
.latest-news-section {
  background: var(--dark-bg-light);
  border-radius: var(--border-radius-lg);
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  max-width: 1400px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.latest-news-section .centered {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 2.2rem;
  letter-spacing: -1px;
  font-family: 'Poppins', 'Mulish', Arial, sans-serif;
  position: relative;
}

.latest-news-section .centered::after {
  content: '';
  display: block;
  margin: 1.1rem auto 0 auto;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  opacity: 0.7;
}

.news-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}

.news-column {
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  border: 1.5px solid rgba(126, 217, 87, 0.1);
  transition: var(--transition);
}

.news-column:hover {
  transform: translateY(-5px);
  border-color: rgba(126, 217, 87, 0.3);
  box-shadow: var(--shadow-md);
}

.news-column h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  font-family: 'Poppins', 'Mulish', Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.news-column h3 span:not(.news-icon) {
  flex: 1;
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.news-icon {
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 60, 46, 0.13));
}

.news-column p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.news-date {
  display: block;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Fade-in animation for news columns */
.fade-in-news {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  animation: fadeInNews 0.9s cubic-bezier(0.33, 1.02, 0.47, 0.98) forwards;
}

.fade-in-news:nth-child(1) { animation-delay: 0.1s; }
.fade-in-news:nth-child(2) { animation-delay: 0.2s; }
.fade-in-news:nth-child(3) { animation-delay: 0.3s; }
.fade-in-news:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInNews {
  to {
    opacity: 1;
    transform: none;
  }
}

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

.news-column:hover .animate-icon svg,
.news-column:focus .animate-icon svg {
  transform: scale(1.18) rotate(-8deg);
  filter: drop-shadow(0 2px 8px rgba(126, 217, 87, 0.33));
  transition: transform 0.25s cubic-bezier(0.33, 1.02, 0.47, 0.98), filter 0.25s;
}

.news-column .animate-icon svg {
  transition: transform 0.25s cubic-bezier(0.33, 1.02, 0.47, 0.98), filter 0.25s;
}

/* --- Section Divider --- */
.section-divider {
  width: 100%;
  height: 100px;
  overflow: hidden;
  position: relative;
}

.section-wave {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
}

/* --- About Expanded Section --- */
.about-expanded {
  padding: 6rem 2rem;
  background: var(--dark-bg-light);
}

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

.section-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border: 1.5px solid rgba(126, 217, 87, 0.1);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(126, 217, 87, 0.3);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

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

.stat-card {
  background: rgba(126, 217, 87, 0.1);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* --- Contact Section --- */
.contact-section {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-container {
  background: var(--dark-bg-light);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-container h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 1rem;
}

.contact-container > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1rem;
}

.required {
  color: var(--secondary-color);
  margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 2px solid rgba(126, 217, 87, 0.2);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(230, 238, 250, 0.5);
}

/* --- CTA Section --- */
.cta-section {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
}

.cta-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 2rem;
}

/* --- Footer --- */
.footer-section {
  position: relative;
  background: var(--dark-bg);
  color: var(--text-light);
  padding-top: 100px;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-social ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.footer-social img {
  width: 32px;
  height: 32px;
  transition: var(--transition);
  filter: brightness(0.8);
}

.footer-social a:hover img {
  transform: scale(1.2);
  filter: brightness(1);
}

.footer-copy {
  text-align: center;
  color: var(--text-light);
  opacity: 0.8;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(18, 40, 70, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .news-columns {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }

  .news-column {
    max-width: 100%;
  }

  .news-column:not(:last-child)::after {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-container {
    padding: 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .about-section,
  .about-expanded,
  .contact-section {
    padding: 3rem 1rem;
  }

  .about-card,
  .contact-container {
    padding: 2rem 1.5rem;
  }

  .latest-news-section {
    padding: 1.5rem 1rem;
  }
}
