
:root {
  
  --primary-navy: #001f3f; 
  --primary-charcoal: #333333; 
  --accent-blue: #007bff; 
  --accent-green: #00ff88; 
  --accent-orange: #ff6b35; 
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #6c757d;
  --text-primary: #001f3f;
  --text-secondary: #333333;
  --text-light: #ffffff;
  --error: #dc3545;
  --success: #28a745;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  --font-heading: 'Orbitron', monospace; 
  --font-accent: 'Rajdhani', sans-serif; 

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-loose: 1.7;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  --z-nav: 1000;
  --z-modal: 1050;
  --z-dropdown: 1060;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

.lead {
  font-size: var(--font-size-lg);
  font-weight: 300;
}

.small {
  font-size: var(--font-size-sm);
}

.text-muted {
  color: var(--dark-gray) !important;
}

.text-primary { color: var(--primary-navy) !important; }
.text-secondary { color: var(--primary-charcoal) !important; }
.text-accent { color: var(--accent-blue) !important; }
.text-light { color: var(--text-light) !important; }

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-padding {
  padding: var(--space-2xl) 0;
}

.d-flex {
  display: flex;
}

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.row[class*='g-'] > [class*='col-']:has([class*='card']) { 
  display: flex !important; 
  flex-direction: column !important; 
}
[class*='card'] { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
}

.btn-custom {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom {
  background-color: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
}

.btn-primary-custom:hover {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary-custom {
  background-color: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-secondary-custom:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-outline-custom:hover {
  background-color: var(--primary-navy);
  color: var(--white);
}

.card-custom {
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-blue);
}

.card-custom .card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-custom .card-body {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-custom .card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card-custom .card-text {
  color: var(--dark-gray);
  flex-grow: 1;
}

.form-custom .form-control {
  border: 1px solid #ced4da;
  border-radius: var(--border-radius-sm);
  padding: var(--space-sm) var(--space-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  font-size: var(--font-size-base);
}

.form-custom .form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.form-custom .form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-custom .btn-submit {
  margin-top: var(--space-md);
}

.navbar-custom {
  background-color: rgba(0, 31, 63, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-sm) 0;
  transition: all var(--transition-normal);
}

.navbar-custom .navbar-brand {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--white);
}

.navbar-custom .navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md) !important;
  transition: color var(--transition-normal);
  position: relative;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
  color: var(--accent-blue);
}

.navbar-custom .navbar-toggler {
  border: none;
  padding: var(--space-sm);
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--accent-blue);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-navy);
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--border-radius-md);
  }
}

.footer-custom {
  background-color: var(--primary-charcoal);
  color: var(--text-light);
  padding: var(--space-xl) 0;
}

.footer-custom a {
  color: var(--light-gray);
  transition: color var(--transition-normal);
}

.footer-custom a:hover {
  color: var(--accent-blue);
}

.hero-custom {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.7)), url('../images/abstract_futuristic_digital_landscape.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-custom h1 {
  font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-5xl));
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-custom {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-custom::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-blue);
  transform: translateX(-50%);
}

.timeline-item-custom {
  position: relative;
  margin: var(--space-2xl) 0;
  width: 50%;
}

.timeline-item-custom:nth-child(odd) {
  left: 0;
}

.timeline-item-custom:nth-child(even) {
  left: 50%;
}

.timeline-item-custom::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--white);
  z-index: 1;
}

.timeline-item-custom:nth-child(odd)::before {
  right: -8px;
}

.timeline-item-custom:nth-child(even)::before {
  left: -8px;
}

.timeline-content-custom {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.timeline-content-custom::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item-custom:nth-child(odd) .timeline-content-custom::before {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--white);
}

.timeline-item-custom:nth-child(even) .timeline-content-custom::before {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--white) transparent transparent;
}

.glitch-custom {
  position: relative;
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

@media (min-width: 768px) {
  .container-custom {
    padding: 0 var(--space-lg);
  }

  .hero-custom h1 {
    font-size: var(--font-size-5xl);
  }

  .timeline-item-custom {
    width: 45%;
  }

  .timeline-item-custom:nth-child(even) {
    left: 55%;
  }
}

@media (min-width: 1024px) {
  .container-custom {
    padding: 0 var(--space-xl);
  }

  .navbar-custom {
    padding: var(--space-md) 0;
  }
}

* {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.btn-custom:active {
  transform: scale(0.98);
}

.card-custom img {
  transition: transform var(--transition-normal);
}

.card-custom:hover img {
  transform: scale(1.05);
}

*:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

body,
h1, h2, h3, h4, h5, h6,
p, .card-text {
  text-shadow: none; 
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: var(--font-size-lg);
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-pagination-bullet-active {
  background: var(--accent-blue);
}

#threejs-canvas {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.lazy-load-placeholder {
  background: linear-gradient(90deg, var(--light-gray) 25%, var(--white) 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}