/*--------------- CSS Custom Properties --------------- */
:root {
  --terminal-green: #00ff00;
  --terminal-amber: #ffb000;
  --terminal-blue: #00b4ff;
  --terminal-cyan: #00ffff;
  --terminal-magenta: #ff00ff;
  --terminal-gray: #cccccc;
  --terminal-bg: #000000;
  --terminal-text: #ffffff;
  --terminal-border: #333333;
}

/*--------------- Floating Particles --------------- */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  color: var(--terminal-green);
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 100;
  opacity: 1.0;
  animation: float-particle 15s infinite linear;
  user-select: none;
  text-shadow: 0 0 10px currentColor;
}

.particle:nth-child(odd) {
  color: var(--terminal-amber);
  animation-duration: 20s;
  opacity: 0.95;
}

.particle:nth-child(3n) {
  color: var(--terminal-blue);
  animation-duration: 25s;
  opacity: 0.9;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1.0;
  }
  90% {
    opacity: 1.0;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/*--------------- basic styling --------------- */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Roboto Mono" !important;
  background: var(--terminal-bg) !important;
  color: var(--terminal-text) !important;
}

.section-spacing {
  margin: 100px 0;
}

@media (max-width: 768px) {
  .section-spacing {
    margin: 50px 0;
  }
}

/*--------------- expertise grid --------------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 1200px) {
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.expertise-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.expertise-card:hover {
  border-color: var(--terminal-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
}

.expertise-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.expertise-card h4 {
  color: var(--terminal-green);
  margin: 1rem 0;
  font-size: 1.2rem;
}

.expertise-card p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tech-tag {
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid var(--terminal-blue);
  color: var(--terminal-blue);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.subtitle {
  color: var(--terminal-amber) !important;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--terminal-green), var(--terminal-amber));
  color: var(--terminal-bg);
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
  color: var(--terminal-bg);
  text-decoration: none;
}

@media (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .expertise-card {
    padding: 1.5rem;
  }
}

/*--------------- reusable components --------------- */
.page-subtitle {
  font-weight: normal !important;
  font-size: 1.3rem !important;
  margin-top: 0.5rem !important;
}

.green-link {
  color: var(--terminal-green);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.green-link:hover {
  opacity: 0.8;
  color: var(--terminal-green);
  text-decoration: none;
}

/*--------------- professional about page --------------- */
.professional-summary {
  max-width: 1100px;
  margin: 0 auto;
}

.summary-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--terminal-blue);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.summary-section h4 {
  color: var(--terminal-green);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.terminal-prompt {
  color: var(--terminal-amber);
  font-weight: bold;
  margin-right: 0.5rem;
}

.expertise-list {
  list-style: none;
  padding: 0;
}

.expertise-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: grey;
}

.expertise-list li:before {
  content: "▶";
  color: var(--terminal-green);
  position: absolute;
  left: 0;
}

.expertise-list li strong {
  color: white;
}

.highlight {
  color: var(--terminal-blue);
  font-weight: bold;
}

.highlight-cyan {
  color: var(--terminal-cyan);
  font-weight: bold;
}

.highlight-magenta {
  color: var(--terminal-magenta);
  font-weight: bold;
}

.highlight-gray {
  color: var(--terminal-gray);
  font-weight: bold;
}

.company {
  color: var(--terminal-amber);
  font-weight: bold;
}

.tagline {
  color: grey !important;
  font-weight: bold;
}

.tagline-green {
  color: var(--terminal-green) !important;
  font-weight: bold;
}

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

.metric {
  text-align: center;
  padding: 1.5rem;
  background: rgba(136, 136, 136, 0.05);
  border: 1px solid #888888;
  border-radius: 8px;
}

.metric .number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--terminal-green);
  margin-bottom: 0.5rem;
}

.metric .number.amber {
  color: var(--terminal-amber);
}

.metric .number.blue {
  color: var(--terminal-blue);
}

.metric .number.cyan {
  color: var(--terminal-cyan);
}

.metric .number.magenta {
  color: var(--terminal-magenta);
}

.metric .label {
  font-size: 0.9rem;
  color: #888888;
}

.metric .label.highlight {
  color: white;
}

.background-section {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--terminal-blue);
  border-radius: 8px;
}

.education-section {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--terminal-blue);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .summary-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .impact-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .metric {
    padding: 1rem;
  }
}

/*--------------- typewriter effect --------------- */
.line {
  width: 24em;
  top: 50%;
  margin: auto;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transform: translateY(-50%);
  padding-right: 0;
}

.anim-typewriter {
  animation: typewriter 5s steps(40) 0.3s 1 normal both,
    blinkTextCussor 500ms steps(40) infinite normal;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 16.5em;
  }
}

@media (max-width: 768px) {
  @keyframes typewriter {
    from {
      width: 0;
    }
    to {
      width: 21.5em;
    }
  }
  
  @keyframes mobile-text-reveal {
    0% {
      opacity: 0;
      transform: translateY(10px);
      border-right-color: transparent;
    }
    100% {
      opacity: 1;
      transform: translateY(0);
      border-right-color: transparent;
    }
  }
  
  @keyframes mobile-cursor-blink {
    0%, 50% {
      border-right-color: rgba(255, 255, 255, 0.75);
    }
    51%, 100% {
      border-right-color: transparent;
    }
  }
  
  @keyframes mobile-text-cursor-blink {
    0%, 50% {
      opacity: 1;
    }
    51%, 100% {
      opacity: 0;
    }
  }
}

@keyframes blinkTextCussor {
  from {
    border-right-color: rgba(255, 255, 255, 0.75);
  }
  to {
    border-right-color: transparent;
  }
}

/*--------------- navigation --------------- */
nav {
  width: 100%;
  background: #0f0f0f;
  height: 80px;
  position: fixed;
  z-index: 10;
}

nav #brand {
  float: left;
  display: block;
  margin-left: 82px;
  line-height: 80px;
  font-weight: bold;
}

nav #brand a {
  color: #fff;
  transition: all 0.3s ease-out;
}

nav #brand a:hover {
  text-decoration: none;
}

nav #menu {
  float: left;
  right: 80px;
  position: fixed;
}

nav #menu li {
  padding-left: 40px;
  display: inline-block;
  cursor: pointer;
  font-weight: 300;
  line-height: 80px;
  position: relative;
  transition: all 0.3s ease-out;
}

nav #menu li span {
  font-weight: 700;
}

nav #menu li a {
  color: #fff;
}

nav #menu li a:hover {
  text-decoration: none;
}

#toggle {
  position: absolute;
  right: 21px;
  top: 11px;
  font-weight: 300;
  z-index: 2;
  width: 48px;
  height: 48px;
  cursor: pointer;
  float: right;
  transition: all 0.3s ease-out;
  visibility: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn {
  position: absolute;
  right: 16px;
  font-weight: 300;
  z-index: 2;
  cursor: pointer;
  top: -2px;
  line-height: 80px;
}

#resize {
  z-index: 1;
  top: 0px;
  position: fixed;
  background: #0f0f0f;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: all 1s ease-out;
}

#resize #menu {
  height: 90px;
  position: absolute;
  left: 45%;
  transform: translateX(-40%);
  text-align: center;
  display: table-cell;
  vertical-align: center;
}

#resize #menu li {
  display: block;
  text-align: center;
  padding: 10px 0;
  font-size: 50px;
  min-height: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

#resize li:nth-child(1) {
  margin-top: 140px;
}

#resize #menu li a {
  color: #fff;
}

#resize #menu li a:hover {
  text-decoration: none;
}

#resize.active {
  visibility: visible;
  opacity: 1;
}

#resize.active ~ .hero {
  visibility: hidden;
  opacity: 0;
}

@media (max-width: 768px) {
  #toggle {
    visibility: visible;
    opacity: 1;
    margin-top: -3px;
    margin-right: -5px;
  }

  nav #brand {
    margin-left: 24px;
  }

  #menu a {
    font-size: 20px;
    font-weight: 300;
  }

  #resize li span {
    font-weight: bolder;
  }

  nav #menu {
    display: none;
  }
}

@media (min-width: 768px) {
  #resize {
    visibility: hidden !important;
  }
}

/*--------------- hero section --------------- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-weight: lighter;
  text-align: center;
  letter-spacing: -2px;
  line-height: 58px;
}

/*--------------- terminal window --------------- */
.terminal-window {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  width: 800px;
  max-width: 90vw;
  margin: 0 auto;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.red {
  background: #ff5f57;
}

.terminal-button.yellow {
  background: #ffbd2e;
}

.terminal-button.green {
  background: #28ca42;
}

.terminal-body {
  padding: 3rem 2.5rem;
}

.terminal-prompt {
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-weight: 300;
  text-align: left;
  opacity: 0.6;
}

.ascii-art {
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  color: var(--terminal-green);
  margin: 0;
  line-height: 1.2;
  white-space: pre;
  overflow-x: auto;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 26px;
  }
  
  .terminal-window {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    margin: 0 1rem;
    border-radius: 8px;
  }
  
  .anim-typewriter {
    font-size: 18px !important;
  }
  
  .line {
    font-size: 18px !important;
    border-right: none !important;
  }
  
  .line::after {
    content: "|";
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2em;
    animation: mobile-text-cursor-blink 1s infinite !important;
  }
  
  .terminal-prompt {
    margin-bottom: 3rem;
    display: block;
  }
  
  /* Mobile ping page alignment only */
  .container-fluid .col-lg-8 {
    width: 96%;
    margin: 0 auto;
    padding-left: 15px;
  }
  
  .container-fluid .col-lg-8 h3[style*="margin-left"],
  .container-fluid .col-lg-8 p[style*="margin-left"] {
    margin-left: 0 !important;
  }
  
  #contact-form {
    margin: 5% 0 !important;
    width: 100% !important;
  }
  
  #contact-form ul {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  #contact-form ul li {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  #contact-form label {
    padding-left: 0 !important;
  }
  
  #contact-form .send {
    margin-left: 0 !important;
  }
  
  .terminal-header {
    padding: 8px 12px;
  }
  
  .terminal-button {
    width: 10px;
    height: 10px;
  }
  
  .terminal-body {
    padding: 1.5rem 1rem;
  }
  
  .terminal-prompt {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .line {
    width: 100% !important;
    font-size: 1.2rem;
  }
}

/* Desktop ping page alignment */
@media (min-width: 769px) {
  .ping-page #contact-form {
    margin-left: calc(1.4% + 50px) !important;
  }
}

/*--------------- scroll down icon animation --------------- */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 100px;
  display: block;
  text-align: center;
  font-size: 20px;
  z-index: 0;
  text-decoration: none;
  text-shadow: 0;
  width: 13px;
  height: 13px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  -webkit-transform: translate(-50%, 0) rotate(45deg);
  transform: translate(-50%, 0) rotate(45deg);
  animation: fade_move_down 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

.scroll-down-2 {
  position: relative;
  left: 50%;
  bottom: 0px;
  display: block;
  text-align: center;
  font-size: 20px;
  z-index: 0;
  text-decoration: none;
  text-shadow: 0;
  width: 13px;
  height: 13px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  -webkit-transform: translate(-50%, 0) rotate(45deg);
  transform: translate(-50%, 0) rotate(45deg);
  animation: fade_move_down 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes fade_move_down {
  0% {
    transform: translate(0, -20px) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(0, 20px) rotate(45deg);
    opacity: 0;
  }
}

/*--------------- projects section --------------- */
h6 {
  text-align: center;
}

.vertical {
  margin-top: 40px;
  border-left: 1px solid rgb(107, 99, 99);
  height: 60px;
  position: absolute;
  left: 50%;
}

.project {
  height: 500px;
}

/* Base project area styling */
.project-area {
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

.project-area::after {
  font-family: "Roboto Mono";
  font-size: 36px;
  position: relative;
  color: var(--terminal-text);
  display: block;
  top: 50%;
  right: 0;
  bottom: 0;
}

.area1 {
  background-image: url("assets/data-analytics.jpg");
}

.area1::after {
  content: "data analytics.";
  left: -110%;
}

.area2 {
  background-image: url("assets/location-intelligence.jpeg");
}

.area2::after {
  content: "location intelligence.";
  left: 120%;
}

.area3 {
  background-image: url("assets/IOT.jpg");
}

.area3::after {
  content: "internet of things.";
  left: -120%;
}

.area4 {
  background-image: url("assets/digital-media.jpeg");
}

.area4::after {
  content: "digital arts.";
  left: 130%;
}

@media (max-width: 991px) {
  .project {
    width: 90% !important;
    margin: 14px auto;
  }

  .vertical {
    display: none;
  }

  .area1 {
    position: relative;
  }

  .area1::after {
    content: "data analytics.";
    font-family: "Roboto Mono";
    font-size: 36px;
    position: absolute;
    color: #fff;
    text-shadow: 2px 2px black;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center; /* Center-aligned text */
    display: flex;
    justify-content: center;
  }

  .area2 {
    position: relative;
  }

  .area2::after {
    content: "location intelligence.";
    font-family: "Roboto Mono";
    font-size: 36px;
    position: absolute;
    color: #fff;
    text-shadow: 2px 2px black;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center; /* Center-aligned text */
    display: flex;
    justify-content: center;
  }

  .area3 {
    position: relative;
  }

  .area3::after {
    content: "internet of things.";
    font-family: "Roboto Mono";
    font-size: 36px;
    position: absolute;
    color: #fff;
    text-shadow: 2px 2px black;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center; /* Center-aligned text */
    display: flex;
    justify-content: center;
  }

  .area4 {
    position: relative;
  }

  .area4::after {
    content: "digital arts.";
    font-family: "Roboto Mono";
    font-size: 36px;
    position: absolute;
    color: #fff;
    text-shadow: 2px 2px black;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center; /* Center-aligned text */
    display: flex;
    justify-content: center;
  }
}

/*--------------- footer section --------------- */
.collab {
  text-align: right;
}

.collab p {
  font-weight: lighter !important;
  margin-bottom: 20px;
}

.hr {
  background: rgba(255, 255, 255, 0.2);
  height: 1px;
}

.info h4 {
  font-size: 18px;
  font-weight: lighter;
}

.info p {
  color: grey;
  font-weight: lighter;
}

.info li {
  font-weight: lighter;
  color: #fff;
  font-size: 18px;
  padding-left: 20px;
}

#li::before {
  display: inline-block;
  content: "";
  border-radius: 100%;
  height: 4px;
  width: 4px;
  margin-right: 6px;
  background: var(--terminal-blue);
}

#me::before {
  display: inline-block;
  content: "";
  border-radius: 100%;
  height: 4px;
  width: 4px;
  margin-right: 6px;
  background: var(--terminal-amber);
}

#tw::before {
  display: inline-block;
  content: "";
  border-radius: 100%;
  height: 4px;
  width: 4px;
  margin-right: 6px;
  background: var(--terminal-blue);
}

#be::before {
  display: inline-block;
  content: "";
  border-radius: 100%;
  height: 4px;
  width: 4px;
  margin-right: 6px;
  background: var(--terminal-green);
}

#media,
#address {
  text-align: right;
}

#media ul {
  list-style: none;
}

#media ul li {
  display: inline-block;
}

@media (max-width: 768px) {
  .collab,
  #personal,
  #media,
  #address {
    text-align: center;
  }

  .info ul {
    margin: 0 0 0 -22px;
    padding: 0;
  }
}

.wow.fadeInUp {
  list-style-type: none;
}

/*--------------- work page --------------- */

.hero-content {
  margin-left: 0%;
}

.hero-content p {
  font-weight: 300;
  line-height: 36px;
  color: grey;
}

.hero-content h6 {
  text-align: left;
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 50px;
    width: 96%;
    margin: 0 auto;
  }
}

/*---------------about page --------------- */

.about {
  height: 500px;
  margin-top: 40px;
  margin-bottom: 80px;
}

.image {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 2px solid #333333;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.image::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 13px;
  pointer-events: none;
  border: 2px solid transparent;
  background: 
    linear-gradient(90deg, 
      rgba(0, 255, 255, 0.4) 0%, 
      rgba(0, 255, 255, 0.2) 8%, 
      rgba(0, 255, 255, 1) 12%, 
      rgba(255, 255, 255, 1) 15%, 
      rgba(0, 255, 255, 1) 18%, 
      rgba(0, 255, 255, 0.3) 25%, 
      rgba(0, 255, 255, 0.1) 35%, 
      rgba(0, 255, 255, 0.6) 45%, 
      rgba(255, 255, 255, 0.8) 48%, 
      rgba(0, 255, 255, 0.6) 51%, 
      rgba(0, 255, 255, 0.2) 60%, 
      rgba(0, 255, 255, 0.4) 75%, 
      rgba(0, 255, 255, 0.1) 85%, 
      rgba(0, 255, 255, 0.3) 100%
    ) border-box,
    linear-gradient(45deg, 
      rgba(0, 255, 255, 0.1) 0%, 
      transparent 20%, 
      rgba(0, 255, 255, 0.15) 40%, 
      transparent 60%, 
      rgba(0, 255, 255, 0.1) 80%, 
      transparent 100%
    ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: subtract;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
  background-size: 400% 100%, 200% 200%;
  animation: electricity-flow 10s linear infinite, electricity-ambient 6s ease-in-out infinite alternate;
  z-index: 2;
}



@keyframes electricity-flow {
  0% {
    background-position: -400% 0, 0% 0%;
  }
  100% {
    background-position: 400% 0, 100% 100%;
  }
}

@keyframes electricity-ambient {
  0% {
    filter: brightness(0.8) saturate(1.2);
  }
  50% {
    filter: brightness(1.2) saturate(1.5);
  }
  100% {
    filter: brightness(0.9) saturate(1.1);
  }
}

/* Cloud Computing Vector Illustration */
.cloud-vector {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.cloud-infrastructure {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 350px;
}

/* Main Cloud */
.main-cloud {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, var(--terminal-blue) 0%, var(--terminal-cyan) 100%);
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(0, 180, 255, 0.3);
  animation: cloud-float 6s ease-in-out infinite;
  z-index: 2;
}

.main-cloud::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--terminal-blue) 0%, var(--terminal-cyan) 100%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.2);
}

.main-cloud::after {
  content: '';
  position: absolute;
  top: -15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--terminal-blue) 0%, var(--terminal-cyan) 100%);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.2);
}

/* Side Clouds */
.side-cloud-1, .side-cloud-2 {
  position: absolute;
  width: 60px;
  height: 40px;
  background: linear-gradient(135deg, var(--terminal-green) 0%, var(--terminal-cyan) 100%);
  border-radius: 25px;
  opacity: 0.7;
  animation: cloud-float 8s ease-in-out infinite;
}

.side-cloud-1 {
  top: 30px;
  left: 30px;
  animation-delay: -2s;
}

.side-cloud-2 {
  top: 80px;
  right: 20px;
  animation-delay: -4s;
}

.side-cloud-1::before, .side-cloud-2::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 15px;
  width: 25px;
  height: 25px;
  background: inherit;
  border-radius: 50%;
}

/* Data Centers */
.data-center {
  position: absolute;
  bottom: 80px;
  width: 25px;
  height: 40px;
  background: linear-gradient(180deg, var(--terminal-amber) 0%, #ffb000 100%);
  border-radius: 3px;
  animation: server-pulse 3s ease-in-out infinite;
}

.data-center-1 {
  left: 60px;
}

.data-center-2 {
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -1s;
}

.data-center-3 {
  right: 60px;
  animation-delay: -2s;
}

.data-center::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 3px;
  right: 3px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.6), 0 12px 0 rgba(255, 255, 255, 0.4);
}

/* Connection Lines */
.connection-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--terminal-green) 50%, transparent 100%);
  animation: data-flow 4s linear infinite;
}

.connection-1 {
  top: 90px;
  left: 85px;
  width: 100px;
  transform: rotate(15deg);
}

.connection-2 {
  top: 90px;
  right: 85px;
  width: 100px;
  transform: rotate(-15deg);
  animation-delay: -2s;
}

.connection-3 {
  bottom: 120px;
  left: 50%;
  width: 80px;
  transform: translateX(-50%) rotate(90deg);
  animation-delay: -1s;
}

/* Floating Icons */
.cloud-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  color: var(--terminal-green);
  font-size: 14px;
  font-family: 'Roboto Mono', monospace;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: icon-float 5s ease-in-out infinite;
  z-index: 5;
}

.icon-1 {
  top: 35px;
  left: 100px;
  animation-delay: -1s;
}

.icon-2 {
  top: 230px;
  left: 25px;
  animation-delay: -3s;
}

.icon-3 {
  top: 210px;
  right: 25px;
  animation-delay: -2s;
}

.icon-4 {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -4s;
}

/* Tech Labels */
.tech-label {
  position: absolute;
  font-family: 'Roboto Mono', monospace;
  font-size: 9px;
  color: var(--terminal-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
  animation: label-glow 4s ease-in-out infinite;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  z-index: 10;
}

.label-aws {
  top: 5px;
  left: 65px;
  color: var(--terminal-amber);
}

.label-terraform {
  top: 5px;
  right: 5px;
  color: var(--terminal-magenta);
  animation-delay: -1s;
}

.label-docker {
  bottom: 5px;
  left: 5px;
  color: var(--terminal-cyan);
  animation-delay: -2s;
}

.label-azure {
  bottom: 5px;
  right: 5px;
  color: var(--terminal-blue);
  animation-delay: -3s;
}

/* Animations */
@keyframes cloud-float {
  0%, 100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes server-pulse {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(255, 176, 0, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 176, 0, 0.6);
  }
}

@keyframes data-flow {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes icon-float {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes label-glow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 10px currentColor;
  }
}

/* Enhanced Infrastructure Components */

/* API Gateway */
.api-gateway {
  position: absolute;
  top: 20px;
  left: 30px;
  width: 40px;
  height: 25px;
  background: linear-gradient(45deg, var(--terminal-magenta) 0%, var(--terminal-blue) 100%);
  border-radius: 4px;
  animation: gateway-pulse 4s ease-in-out infinite;
  z-index: 3;
}

.api-gateway::before {
  content: 'API';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Microservices */
.microservice {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--terminal-green) 0%, var(--terminal-cyan) 100%);
  border-radius: 4px;
  animation: service-pulse 3s ease-in-out infinite;
  z-index: 3;
}

.microservice-1 {
  top: 250px;
  left: 200px;
}

.microservice-2 {
  top: 270px;
  left: 230px;
  animation-delay: -1s;
}

.microservice-3 {
  top: 290px;
  left: 260px;
  animation-delay: -2s;
}

.microservice::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* Load Balancer */
.load-balancer {
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 15px;
  background: linear-gradient(90deg, var(--terminal-amber) 0%, var(--terminal-green) 100%);
  border-radius: 8px;
  animation: balancer-flow 2s linear infinite;
}

.load-balancer::before {
  content: 'LB';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: black;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Database Cluster */
.database {
  position: absolute;
  width: 30px;
  height: 15px;
  background: linear-gradient(180deg, var(--terminal-blue) 0%, var(--terminal-cyan) 100%);
  border-radius: 15px;
  animation: db-activity 4s ease-in-out infinite;
}

.database-1 {
  bottom: 30px;
  left: 30px;
}

.database-2 {
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -1s;
}

.database-3 {
  bottom: 30px;
  right: 30px;
  animation-delay: -2s;
}

.database::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.4), 0 6px 0 rgba(255, 255, 255, 0.2);
}

.database-1::after {
  content: 'RDS';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5px;
  color: var(--terminal-cyan);
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

.database-2::after {
  content: 'Aurora';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4px;
  color: var(--terminal-cyan);
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

.database-3::after {
  content: 'Postgres';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3px;
  color: var(--terminal-cyan);
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* CDN Nodes */
.cdn-node {
  position: absolute;
  width: 15px;
  height: 15px;
  background: linear-gradient(45deg, var(--terminal-magenta) 0%, var(--terminal-amber) 100%);
  border-radius: 50%;
  animation: cdn-ping 5s ease-in-out infinite;
}

.cdn-1 {
  top: 60px;
  left: 15px;
}

.cdn-2 {
  top: 260px;
  right: 15px;
  animation-delay: -2s;
}

.cdn-3 {
  bottom: 100px;
  left: 15px;
  animation-delay: -3s;
}

.cdn-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

/* Message Queue */
.message-queue {
  position: absolute;
  top: 120px;
  right: 50px;
  width: 35px;
  height: 20px;
  background: linear-gradient(135deg, var(--terminal-cyan) 0%, var(--terminal-blue) 100%);
  border-radius: 3px;
  animation: queue-process 3s linear infinite;
  z-index: 3;
}

.message-queue::before {
  content: 'MQ';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Container Orchestration */
.k8s-cluster {
  position: absolute;
  top: 180px;
  left: 300px;
  width: 60px;
  height: 40px;
  border: 2px solid var(--terminal-blue);
  border-radius: 5px;
  background: rgba(0, 180, 255, 0.1);
  animation: cluster-scale 6s ease-in-out infinite;
  z-index: 3;
}

.k8s-cluster::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 12px;
  height: 8px;
  background: var(--terminal-green);
  border-radius: 2px;
  box-shadow: 15px 0 0 var(--terminal-green), 30px 0 0 var(--terminal-green),
              0 12px 0 var(--terminal-amber), 15px 12px 0 var(--terminal-amber), 30px 12px 0 var(--terminal-amber);
}

.k8s-cluster::after {
  content: 'K8s';
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 8px;
  color: var(--terminal-blue);
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Monitoring & Observability */
.monitoring {
  position: absolute;
  top: 40px;
  right: 80px;
  width: 25px;
  height: 25px;
  border: 2px solid var(--terminal-amber);
  border-radius: 50%;
  background: rgba(255, 176, 0, 0.1);
  animation: monitor-scan 4s linear infinite;
}

.monitoring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 1px solid var(--terminal-amber);
  border-radius: 50%;
}

.monitoring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 1px;
  background: var(--terminal-amber);
  animation: radar-sweep 2s linear infinite;
  transform-origin: left center;
}

/* Security Layer */
.security-shield {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 25px;
  background: linear-gradient(180deg, var(--terminal-magenta) 0%, var(--terminal-blue) 100%);
  border-radius: 10px 10px 5px 5px;
  animation: shield-glow 5s ease-in-out infinite;
}

.security-shield::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
}

.security-shield::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: white;
}

/* Enhanced Connection Lines */
.advanced-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--terminal-cyan) 30%, var(--terminal-blue) 70%, transparent 100%);
  animation: advanced-data-flow 3s linear infinite;
}

.conn-api-lb {
  top: 52px;
  left: 50%;
  width: 30px;
  transform: translateX(-50%);
}

.conn-lb-services {
  top: 85px;
  left: 40px;
  width: 80px;
  transform: rotate(25deg);
  animation-delay: -0.5s;
}

.conn-services-db {
  bottom: 70px;
  left: 50px;
  width: 70px;
  transform: rotate(-30deg);
  animation-delay: -1s;
}

.conn-cloud-mq {
  top: 120px;
  right: 100px;
  width: 40px;
  transform: rotate(-45deg);
  animation-delay: -1.5s;
}

/* Additional Animations */
@keyframes gateway-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
  }
}

@keyframes service-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes balancer-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes db-activity {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  }
}

@keyframes cdn-ping {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 10px currentColor;
  }
}

@keyframes queue-process {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 0%;
  }
}

@keyframes cluster-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 180, 255, 0.3);
  }
}

@keyframes monitor-scan {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes radar-sweep {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes shield-glow {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
  }
}

@keyframes advanced-data-flow {
  0% {
    background-position: -100% 0;
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: 200% 0;
    opacity: 0.6;
  }
}

/* Additional Infrastructure Components */

/* Compute Instances */
.compute-instance {
  position: absolute;
  width: 18px;
  height: 12px;
  background: linear-gradient(90deg, var(--terminal-green) 0%, var(--terminal-amber) 100%);
  border-radius: 2px;
  animation: compute-activity 3s ease-in-out infinite;
  z-index: 3;
}

.compute-1 {
  top: 80px;
  left: 150px;
}

.compute-2 {
  top: 200px;
  left: 120px;
  animation-delay: -1s;
}

.compute-3 {
  top: 180px;
  left: 200px;
  animation-delay: -2s;
}

.compute-1::before {
  content: 'EC2';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6px;
  color: black;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

.compute-2::before {
  content: 'ECS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6px;
  color: black;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

.compute-3::before {
  content: 'EKS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6px;
  color: black;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* NoSQL Databases */
.nosql-db {
  position: absolute;
  width: 25px;
  height: 12px;
  background: linear-gradient(45deg, var(--terminal-magenta) 0%, var(--terminal-cyan) 100%);
  border-radius: 6px;
  animation: nosql-sync 4s ease-in-out infinite;
}

.nosql-1 {
  bottom: 80px;
  left: 100px;
}

.nosql-2 {
  bottom: 60px;
  right: 100px;
  animation-delay: -2s;
}

.nosql-1::before {
  content: 'Mongo';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

.nosql-2::before {
  content: 'Dynamo';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Serverless Functions */
.serverless {
  position: absolute;
  width: 20px;
  height: 8px;
  background: linear-gradient(135deg, var(--terminal-cyan) 0%, var(--terminal-blue) 100%);
  border-radius: 4px;
  animation: lambda-invoke 2s ease-in-out infinite;
  z-index: 3;
}

.lambda-1 {
  top: 100px;
  left: 150px;
}

.lambda-2 {
  top: 160px;
  left: 100px;
  animation-delay: -0.5s;
}

.lambda-3 {
  top: 140px;
  left: 190px;
  animation-delay: -1s;
}

.lambda-1::before {
  content: 'λ';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: white;
  font-weight: bold;
}

.lambda-2::before {
  content: 'Step';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

.lambda-3::before {
  content: 'Batch';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Storage Solutions */
.storage {
  position: absolute;
  width: 22px;
  height: 18px;
  background: linear-gradient(180deg, var(--terminal-amber) 0%, var(--terminal-green) 100%);
  border-radius: 3px;
  animation: storage-access 5s ease-in-out infinite;
}

.storage-1 {
  top: 250px;
  left: 80px;
}

.storage-2 {
  top: 260px;
  right: 60px;
  animation-delay: -1.5s;
}

.storage-1::before {
  content: 'S3';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7px;
  color: black;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

.storage-2::before {
  content: 'EBS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6px;
  color: black;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Cache Layer */
.cache {
  position: absolute;
  width: 28px;
  height: 14px;
  background: linear-gradient(90deg, var(--terminal-blue) 0%, var(--terminal-magenta) 100%);
  border-radius: 7px;
  animation: cache-hit 3s ease-in-out infinite;
}

.cache-1 {
  top: 60px;
  left: 250px;
}

.cache-2 {
  top: 280px;
  left: 180px;
  animation-delay: -1s;
}

.cache-1::before {
  content: 'Redis';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

.cache-2::before {
  content: 'Memcache';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* VPC Network */
.vpc {
  position: absolute;
  top: 240px;
  left: 130px;
  width: 140px;
  height: 90px;
  border: 1px dashed var(--terminal-cyan);
  border-radius: 8px;
  background: rgba(0, 255, 255, 0.02);
  animation: network-pulse 6s ease-in-out infinite;
  z-index: 1;
}

.vpc::after {
  content: 'VPC';
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 7px;
  color: var(--terminal-cyan);
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Auto Scaling Groups */
.autoscaling {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--terminal-green);
  border-radius: 50%;
  background: rgba(0, 255, 0, 0.1);
  animation: scaling-pulse 4s ease-in-out infinite;
  z-index: 3;
}

.asg-1 {
  top: 140px;
  left: 120px;
}

.asg-2 {
  top: 200px;
  right: 120px;
  animation-delay: -2s;
}

.autoscaling::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--terminal-green);
  border-radius: 50%;
}


/* Event Processing */
.event-bridge {
  position: absolute;
  top: 330px;
  left: 200px;
  width: 35px;
  height: 8px;
  background: linear-gradient(90deg, var(--terminal-cyan) 0%, var(--terminal-green) 100%);
  border-radius: 4px;
  animation: event-flow 3s linear infinite;
  z-index: 3;
}

.event-bridge::before {
  content: 'Events';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5px;
  color: black;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Data Pipeline */
.data-pipeline {
  position: absolute;
  top: 20px;
  left: 320px;
  width: 30px;
  height: 12px;
  background: linear-gradient(135deg, var(--terminal-blue) 0%, var(--terminal-amber) 100%);
  border-radius: 2px;
  animation: pipeline-flow 4s linear infinite;
}

.data-pipeline::before {
  content: 'ETL';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Network Gateways */
.nat-gateway {
  position: absolute;
  top: 100px;
  right: 40px;
  width: 18px;
  height: 18px;
  background: linear-gradient(90deg, var(--terminal-amber) 0%, var(--terminal-cyan) 100%);
  border-radius: 2px;
  animation: gateway-traffic 3s ease-in-out infinite;
}

.nat-gateway::before {
  content: 'NAT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5px;
  color: black;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Additional Animations */
@keyframes compute-activity {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes nosql-sync {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 0, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
  }
}

@keyframes lambda-invoke {
  0%, 80%, 100% {
    opacity: 0.6;
  }
  40% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  }
}

@keyframes storage-access {
  0%, 100% {
    opacity: 0.8;
  }
  25%, 75% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(255, 176, 0, 0.4);
  }
}

@keyframes cache-hit {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(0, 180, 255, 0.5);
  }
}

@keyframes network-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  }
}

@keyframes scaling-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes security-check {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
  }
}

@keyframes event-flow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

@keyframes pipeline-flow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 300% 0%;
  }
}

@keyframes gateway-traffic {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 176, 0, 0.5);
  }
}

/* AWS Organizations */
.aws-organizations {
  position: absolute;
  top: 320px;
  left: 50px;
  width: 80px;
  height: 25px;
  border: 2px solid var(--terminal-amber);
  border-radius: 12px;
  background: rgba(255, 176, 0, 0.08);
  animation: org-management 7s ease-in-out infinite;
  z-index: 3;
}

.aws-organizations::before {
  content: 'Organizations';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5px;
  color: var(--terminal-amber);
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

.aws-organizations::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--terminal-amber);
  border-radius: 50%;
  box-shadow: 12px 0 0 -2px var(--terminal-amber), 
              24px 0 0 -2px var(--terminal-amber),
              36px 0 0 -2px var(--terminal-amber);
}

/* CloudWatch Monitoring */
.cloudwatch {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, var(--terminal-blue) 0%, var(--terminal-cyan) 100%);
  border-radius: 50%;
  animation: cloudwatch-metrics 5s ease-in-out infinite;
  z-index: 3;
}

.cloudwatch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 50%;
  border-top: 2px solid transparent;
  animation: metrics-spin 3s linear infinite;
}

.cloudwatch::after {
  content: 'CW';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  color: var(--terminal-cyan);
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Enhanced IAM Security */
.iam-enhanced {
  position: absolute;
  top: 300px;
  right: 50px;
  width: 35px;
  height: 25px;
  background: linear-gradient(135deg, var(--terminal-magenta) 0%, var(--terminal-amber) 100%);
  border-radius: 5px;
  animation: iam-policy-check 6s ease-in-out infinite;
  z-index: 3;
}

.iam-enhanced::before {
  content: '🔐';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
}

.iam-enhanced::after {
  content: 'IAM';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Additional Animations */
@keyframes org-management {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(255, 176, 0, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 176, 0, 0.4);
  }
}

@keyframes cloudwatch-metrics {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(0, 180, 255, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 180, 255, 0.6);
  }
}

@keyframes metrics-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes iam-policy-check {
  0%, 100% {
    opacity: 0.9;
  }
  25% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
  }
  75% {
    box-shadow: 0 0 20px rgba(255, 176, 0, 0.4);
  }
}

/* Google Cloud Platform */
.gcp-cloud {
  position: absolute;
  top: 50px;
  right: 100px;
  width: 45px;
  height: 30px;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
  border-radius: 20px;
  animation: gcp-services 6s ease-in-out infinite;
  z-index: 2;
}

.gcp-cloud::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 10px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
  border-radius: 50%;
}

.gcp-cloud::after {
  content: 'GCP';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  color: #4285f4;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Cloudflare Edge */
.cloudflare {
  position: absolute;
  top: 20px;
  right: 150px;
  width: 35px;
  height: 20px;
  background: linear-gradient(90deg, #f38020 0%, #f48120 100%);
  border-radius: 10px;
  animation: edge-protection 4s ease-in-out infinite;
  z-index: 3;
}

.cloudflare::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  border-radius: 8px;
  animation: cf-wave 2s linear infinite;
}

.cloudflare::after {
  content: 'CF';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7px;
  color: white;
  font-weight: bold;
  font-family: 'Roboto Mono', monospace;
}

/* Additional Animations */
@keyframes gcp-services {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.4);
  }
}

@keyframes edge-protection {
  0%, 100% {
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(243, 128, 32, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(243, 128, 32, 0.6);
  }
}

@keyframes cf-wave {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* CLI Text Integration */
.cli-text {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  z-index: 5;
  opacity: 0.7;
}

.cli-line {
  white-space: nowrap;
  display: flex;
}

.cli-command-container {
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.75);
  width: 0;
  padding-right: 1ch;
  animation: typewriter-terraform 4s steps(50) forwards,
             blink-cursor 1s step-end infinite;
}

.cli-prompt {
  color: var(--terminal-green);
}

.cli-command {
  color: var(--terminal-amber);
}

.cli-flag {
  color: var(--terminal-blue);
}

.cli-output {
  color: var(--terminal-cyan);
}

@keyframes typewriter-terraform {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-cursor {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: rgba(255, 255, 255, 0.75);
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .cloud-infrastructure {
    max-width: 350px;
    height: 280px;
    padding: 10px;
  }
  
  .tech-label {
    font-size: 8px;
    padding: 1px 3px;
    letter-spacing: 0.3px;
  }
  
  .cloud-icon {
    font-size: 12px;
    width: 16px;
    height: 16px;
  }
  
  .icon-2 {
    top: 200px;
    left: 20px;
  }
  
  .icon-3 {
    top: 180px;
    right: 20px;
  }
  
  .cdn-2 {
    top: 220px;
  }
  
  .monitoring {
    top: 30px;
    right: 70px;
    width: 20px;
    height: 20px;
  }
  
  .api-gateway, .load-balancer, .message-queue {
    font-size: 7px;
  }
  
  .k8s-cluster::after {
    font-size: 7px;
  }
}

/*--------------- contact form --------------- */

#contact-form {
  margin: 5% 1.4%;
}

#contact-form ul {
  list-style: none;
  border-radius: 5px;
  margin-bottom: 40px;
}

#contact-form li {
  padding: 10px;
}

#contact-form li:last-of-type {
  border-bottom: none;
}

#contact-form label {
  display: block;
  font-size: 0.8em;
  color: var(--terminal-text);
  padding-left: 5px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 5px;
  border: none;
  resize: vertical;
  background: transparent;
  color: #fff;
  font-weight: bolder;
}

input:focus {
  outline: none;
  border: none;
}

textarea:focus {
  outline: none;
  border: none;
}

.textarea {
  border-bottom: 1px solid var(--terminal-blue);
}

.send {
  margin-left: 50px;
  text-transform: uppercase;
  padding: 20px 30px;
  background: transparent;
  color: var(--terminal-green);
  font-size: 14px;
  letter-spacing: 2px;
  border: 1px solid var(--terminal-green);
  transition: all 0.3s ease;
}

.send:hover {
  background: var(--terminal-green);
  color: var(--terminal-bg);
}

@media (max-width: 768px) {
  #contact-form {
    margin: 5% -8%;
    width: 98%;
  }
}

/*--------------- project page --------------- */

.map_met_screenshot {
  background: url("assets/map_met_screenshot.jpg") no-repeat 40% 100%;
  filter: brightness(0.8);
  clip-path: polygon(0% 15%, 15% 0%, 85% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%);
}

.bicycle_theft_board_screenshot {
  background: url("assets/bicycle_theft_board_screenshot.jpg") no-repeat 40%
    100%;
  filter: brightness(0.8);
  clip-path: polygon(0% 15%, 15% 0%, 85% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%);
}

.prev,
.next p {
  color: grey;
}

.prev p {
  text-align: left;
}

.next p {
  text-align: right;
}

/*--------------- blog styling --------------- */

/* Blog Table Styling */
.blog-table-container {
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--terminal-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
  background: transparent;
}

.blog-table thead {
  background: rgba(0, 255, 0, 0.1);
  border-bottom: 2px solid var(--terminal-green);
}

.blog-table th {
  padding: 1rem;
  text-align: left;
  color: var(--terminal-green);
  font-weight: 600;
  border-right: 1px solid var(--terminal-border);
  letter-spacing: 0.5px;
}

.blog-table th:last-child {
  border-right: none;
}

.blog-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--terminal-border);
  border-right: 1px solid var(--terminal-border);
  color: var(--terminal-text);
  vertical-align: top;
}

.blog-table td:last-child {
  border-right: none;
}

.blog-table tbody tr:hover {
  background: none;
}

.blog-title-link {
  color: var(--terminal-text);
  text-decoration: none;
  font-weight: 400;
  line-height: 1.4;
  display: block;
  transition: all 0.3s ease;
  text-shadow: none;
}

.blog-title-link:hover {
  color: var(--terminal-text);
  text-decoration: underline;
}

.publish-date {
  color: var(--terminal-amber);
  font-weight: 400;
  white-space: nowrap;
  text-shadow: none;
}

.read-time {
  color: var(--terminal-blue);
  font-weight: 400;
  white-space: nowrap;
  text-shadow: none;
}

.tags-cell {
  line-height: 1.6;
}

.table-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.7);
  color: var(--terminal-green);
  font-size: 0.65rem;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--terminal-green);
  margin: 0.1rem 0.2rem 0.1rem 0;
  font-weight: 500;
}

.table-tag-amber {
  color: var(--terminal-amber);
  border-color: var(--terminal-amber);
}

.table-tag-blue {
  color: var(--terminal-blue);
  border-color: var(--terminal-blue);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .blog-table-container {
    margin: 1rem -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .blog-table {
    font-size: 0.8rem;
  }
  
  .blog-table th,
  .blog-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .table-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    margin: 0.1rem 0.2rem 0.1rem 0;
  }
}
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-section {
  margin: 3rem 0;
}

.blog-section h2 {
  color: var(--terminal-green);
  font-size: 1.8rem;
  margin: 2.5rem 0 1.5rem 0;
  border-bottom: 1px solid var(--terminal-border);
  padding-bottom: 0.5rem;
}

.blog-section h3 {
  color: var(--terminal-amber);
  font-size: 1.4rem;
  margin: 2rem 0 1rem 0;
}

.blog-section h4 {
  color: var(--terminal-blue);
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem 0;
}

.blog-section p {
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

.blog-meta {
  color: var(--terminal-gray);
  font-size: 0.9rem;
  margin: 2rem 0;
}

.code-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.code-block h4 {
  color: var(--terminal-cyan);
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.code-block code {
  color: var(--terminal-green);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-divider {
  border: none;
  height: 1px;
  background: var(--terminal-border);
  margin: 3rem 0;
}

.blog-footer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}

/* Mobile optimization for blog */
@media (max-width: 768px) {
  .blog-content {
    padding: 0 1rem;
  }
  
  .blog-section h2 {
    font-size: 1.5rem;
  }
  
  .blog-section h3 {
    font-size: 1.3rem;
  }
  
  .code-block {
    padding: 1rem;
    font-size: 0.8rem;
  }
  
  .blog-section p {
    font-size: 1rem;
  }
}

/*--------------- launch button --------------- */
/* For mobile phones: */
@media only screen and (max-width: 600px) {
  div[class*="launchb"] {
    text-align: center;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
  }

  .btn-two::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 50px;
    bottom: 0;
    left: 0;
    z-index: 1;
    transition: all 0.3s;
    border: 1px solid var(--terminal-green);
  }
  .btn-two::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 50px;
    bottom: 0;
    left: 0;
    z-index: 1;
    transition: all 0.3s;
    border: 1px solid var(--terminal-green);
  }

  .btn-two::after {
    left: -24px;
    width: 100px;
    animation: rotatecw 2s infinite linear;
  }
  
  .btn-two::before {
    left: -24px;
    width: 100px;
    animation: rotateccw 3s infinite linear;
  }

  .btn-two:hover::after {
    left: -24px;
    width: 100px;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
  }
  .btn-two:hover::before {
    left: -24px;
    width: 100px;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
  }
}

/* For all resolutions other than mobile phones: */
@media only screen and (min-width: 600px) {
  div[class*="launchb"] {
    text-align: center;
    width: 200px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
  }

  .btn-two::before,
  .btn-two::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 50px;
    bottom: 0;
    left: 50px;
    z-index: 1;
    transition: all 0.3s;
    border: 1px solid var(--terminal-green);
    animation-iteration-count: infinite;
    animation-timing-function: linear;
  }

  .btn-two::after {
    animation: rotatecw 2s infinite linear;
  }

  .btn-two::before {
    animation: rotateccw 3s infinite linear;
  }

  .btn-two:hover::after,
  .btn-two:hover::before {
    left: 50px;
    width: 100px;

    animation-iteration-count: infinite;
    animation-timing-function: linear;
  }
}
.launchb-1 {
  background: #000000;
}


.btn-two:hover::after {
  animation-name: rotatecw;
  animation-duration: 2s;
}
.btn-two:hover::before {
  animation-name: rotateccw;
  animation-duration: 3s;
}

@keyframes rotatecw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateccw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

/*--launch button css ends here --*/
