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

:root {
  /* Brand Colors */
  --brand-blue: #3A3F8F;
  --brand-violet-start: #6A1B9A;
  --brand-violet-end: #8E24AA;
  --brand-yellow: #F4B400;
  
  /* Backgrounds */
  --bg-main: #FFFFFF;
  --bg-section: #F5F6FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  
  /* Text */
  --text-primary: #1F1F1F;
  --text-secondary: #4b5563;
  --text-light: #FFFFFF;
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-violet-start) 100%);
  --gradient-violet: linear-gradient(135deg, var(--brand-violet-start) 0%, var(--brand-violet-end) 100%);
  --gradient-hover: linear-gradient(135deg, #4b51a8 0%, #7b26b3 100%);
  
  /* UI Elements */
  --border-color: rgba(58, 63, 143, 0.1);
  --glass-shadow: 0 4px 20px 0 rgba(58, 63, 143, 0.08);
  --glass-shadow-hover: 0 10px 40px 0 rgba(58, 63, 143, 0.12);
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-blue);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.1rem;
}

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

ul {
  list-style: none;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.section-padding {
  padding: 100px 5%;
}

.bg-light-gray {
  background-color: var(--bg-section);
}

@media (max-width: 768px) {
  h2 { font-size: 2rem; }
  .section-padding { padding: 60px 20px; }
}

@media (max-width: 480px) {
  h2 { font-size: 1.7rem; }
  .section-padding { padding: 50px 15px; }
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand-yellow);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
}

.btn-primary:hover {
  background: #e0a600;
  box-shadow: 0 6px 20px rgba(244, 180, 0, 0.5);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: rgba(58, 63, 143, 0.05);
  transform: translateY(-2px);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(106, 27, 154, 0.3);
  box-shadow: var(--glass-shadow-hover);
  background: var(--bg-card-hover);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-normal);
  color: var(--text-light);
}

.navbar.scrolled {
  padding: 15px 5%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.navbar.scrolled .logo {
  color: var(--brand-blue);
}

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

.nav-links li a {
  font-weight: 500;
  color: inherit;
  opacity: 0.9;
}

.navbar.scrolled .nav-links li a {
  color: var(--text-secondary);
}

.nav-links li a:hover,
.nav-links li a.active {
  opacity: 1;
}

.navbar.scrolled .nav-links li a:hover {
  color: var(--brand-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
  color: var(--brand-blue);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border-left: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: -5px 0 20px rgba(0,0,0,0.05);
  }

  .nav-links li a {
    color: var(--text-primary);
  }

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

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background-image: url('../assets/img/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(58, 63, 143, 0.85) 0%, rgba(31, 31, 31, 0.9) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp 1s ease both;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 20px;
  animation: fadeUp 1s ease 0.4s both;
}

.hero .btn-secondary {
  color: #fff;
  border-color: #fff;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .hero-btns { flex-direction: column; width: 100%; max-width: 400px; }
  .hero-btns .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.05rem; }
}

/* About Section */
.about {
  position: relative;
}

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

.about-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  display: block;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
}

/* Services Array */
.services-section {
  background-color: var(--bg-section);
}

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

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

.service-card {
  padding: 40px 30px;
  text-align: left;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(58, 63, 143, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--brand-blue);
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--gradient-main);
  color: #fff;
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

/* Split sections (Network / Cyber, Energy, AI) */
.split-sections {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

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

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

.feature-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--border-color);
}

.feature-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .feature-split, .feature-split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* Mini Cards for Networking & Cyber */
.mini-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.mini-card {
  padding: 24px;
  border-radius: var(--border-radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
}

.mini-card i {
  font-size: 28px;
  color: var(--brand-violet-start);
  margin-bottom: 15px;
}

.mini-card h4 {
  color: var(--brand-blue);
}

@media (max-width: 600px) {
  .mini-cards-grid { grid-template-columns: 1fr; }
}

/* Training Section */
.training-section {
  background-color: var(--bg-section);
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.training-card {
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.training-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--brand-yellow);
  opacity: 0;
  transition: var(--transition-fast);
}

.training-card:hover::before {
  opacity: 1;
}

.training-card h3 {
  color: var(--text-primary);
  margin-bottom: 15px;
}

.training-card p {
  margin-bottom: 25px;
}

/* Stats section */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.stat-item text {
  display: block;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; text-align: center; }
  .stat-number { font-size: 2.2rem; }
}

/* Contact Section */
.contact-section {
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 50px;
  box-shadow: var(--glass-shadow);
}

.contact-info h3 {
  color: var(--brand-blue);
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item i {
  color: var(--brand-violet-start);
  font-size: 20px;
  margin-top: 5px;
}

.contact-item div h4 {
  color: var(--text-primary);
  margin-bottom: 5px;
}

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

.form-control {
  width: 100%;
  padding: 15px 20px;
  background: #FFFFFF;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control::placeholder {
  color: #9ca3af;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(58, 63, 143, 0.1);
}

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

@media (max-width: 900px) {
  .contact-wrapper { grid-template-columns: 1fr; padding: 30px; }
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 5% 30px;
  background: var(--text-primary); /* Dark Gray */
  color: var(--text-light);
}

footer p {
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #d1d5db;
}

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

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--brand-yellow);
  color: var(--text-primary);
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}
