/* ===============================
   GLOBAL STYLES
   =============================== */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: #0b0c10;
    color: #e6e6e6;
    line-height: 1.8;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #fff;
}

/* Neon Glow Effects */
.neon-glow-strong {
    text-shadow: 0 0 6px #00C6D7, 0 0 15px #007BFF;
}

.neon-glow-subtle {
    text-shadow: 0 0 3px #00C6D7, 0 0 6px rgba(0, 123, 255, 0.6);
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0; left: 0;
}

/* Section Formatting */
section {
    padding: 100px 40px;
    text-align: center;
}

/* ===============================
   NAVIGATION
   =============================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #222;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}
.logo {
    font-size: 1.5em;
    text-shadow: 0 0 5px #00C6D7;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-links li {
    margin-left: 25px;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover {
    color: #00C6D7;
    text-shadow: 0 0 10px #007BFF;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #fff;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        border-top: 1px solid #333;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links li {
        text-align: center;
        margin: 15px 0;
    }
    .nav-toggle {
        display: block;
    }
}

/* ===============================
   HERO SECTION
   =============================== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(10,10,10,0.7));
    box-sizing: border-box;
}
.hero-content h1 {
    font-size: 3.5em;
    text-shadow: 0 0 10px #007BFF;
}
.hero-content .subtitle {
    font-size: 1.2em;
    max-width: 700px;
    margin: 1em auto 2em;
}
.cta-button {
    background: transparent;
    border: 2px solid #00C6D7;
    color: #fff;
    padding: 15px 35px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 0 8px #007BFF, inset 0 0 6px #007BFF;
}
.cta-button:hover {
    background: #007BFF;
    box-shadow: 0 0 20px #007BFF, inset 0 0 10px #007BFF;
}

/* Typewriter Cursor */
#typewriter-title::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: #00C6D7;
}
@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content .subtitle {
        font-size: 1em;
    }
}

/* ===============================
   SECTIONS
   =============================== */
.wireframe {
    background: linear-gradient(145deg, rgba(10,10,10,0.95), rgba(20,20,20,0.85));
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
}

/* Services */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}
.service-card {
    flex: 1 1 300px;
    transition: all 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.4);
}
.service-card i {
    font-size: 2.5em;
    color: #00C6D7;
}
.tagline {
    font-style: italic;
    color: #aaa;
    margin-bottom: 10px;
}

/* About */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
    gap: 30px;
}
.about-container img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid #00C6D7;
    box-shadow: 0 0 20px #007BFF;
}
.linkedin-button {
    display: inline-block;
    margin-top: 15px;
    background: #0077b5;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}
.linkedin-button:hover {
    background: #fff;
    color: #0077b5;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact */
.contact-email a {
    color: #00C6D7;
    text-decoration: none;
}
.contact-email a:hover {
    text-shadow: 0 0 10px #007BFF;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid rgba(0, 123, 255, 0.4);
  box-shadow: 0 -5px 20px rgba(0, 123, 255, 0.15);
}

footer .logo {
  color: #fff;
  font-size: 1.4em;
  text-shadow: 0 0 5px #007BFF, 0 0 10px #007BFF;
  margin-bottom: 8px;
}

footer p {
  color: #aaa;
  margin: 4px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }
    .services-container, .about-container {
        flex-direction: column;
    }
    .about-container {
        text-align: center;
    }
}

/* --- Client Portal Page --- */
.portal-container {
    max-width: 500px;
    margin: 100px auto;
    text-align: center;
}

.login-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    background-color: rgba(20, 20, 20, 0.9);
    color: #fff;
    border-radius: 5px;
    font-size: 1em;
    transition: border 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 10px #007BFF;
    outline: none;
}

.error-message {
    color: #ff4d4d;
    margin-top: 15px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* --- Console-style Typewriter (Blue Themed) --- */

/* --- Console-style Typewriter (Blue Themed) --- */
.console-text {
  font-family: 'Source Code Pro', 'Courier New', monospace;
  font-size: 2.2em;
  color: #00aaff; /* Blue glow */
  text-shadow: 0 0 6px #00aaff, 0 0 12px #00aaff;
  letter-spacing: 0.05em;
  background-color: rgba(0, 0, 0, 0.35);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  position: relative;
  z-index: 2; /* ensures it's above the scanlines */

  /* --- NEW STYLES FOR WRAPPING --- */
  max-width: 100%;             /* Ensures the box doesn't overflow its parent */
  box-sizing: border-box;       /* Includes padding in the width calculation */
  word-wrap: break-word;        /* Allows long words to break and wrap */
  text-align: center;           /* Keeps text centered if it wraps */
}

/* Blinking block cursor */
.console-text::after {
  content: '▮';
  display: inline-block;
  animation: blink 0.8s infinite;
  color: #00aaff;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- MOBILE CONSOLE TEXT FIXES --- */
@media (max-width: 768px) {
  .console-text {
    font-size: 1.6em;
    padding: 8px 15px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .console-text {
    font-size: 1.3em;
    padding: 6px 12px;
  }
}

/* Blinking block cursor */
.console-text::after {
  content: '▮';
  display: inline-block;
  animation: blink 0.8s infinite;
  color: #00aaff;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Scanline Overlay for the Hero Section --- */
#hero {
  position: relative;
  overflow: hidden; /* ensures scanlines don’t spill outside the hero area */
}

#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1; /* scanlines behind text but above particles */
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 170, 255, 0.05),
    rgba(0, 170, 255, 0.05) 1px,
    transparent 2px,
    transparent 3px
  );
  opacity: 0.35; /* adjust this*
}


/* --- Highlighted Technical Terms --- */
.glow-term {
  position: relative;
  color: #00aaff;
  text-shadow: 0 0 4px #00aaff, 0 0 8px rgba(0, 170, 255, 0.7);
  transition: all 0.3s ease;
  cursor: default;
}

/* Hover interaction: subtle neon pulse */
.glow-term:hover {
  color: #33ccff;
  text-shadow: 0 0 8px #33ccff, 0 0 16px #33ccff, 0 0 32px rgba(51, 204, 255, 0.8);
  transition: all 0.25s ease-in-out;
}

/* Optional animation: soft pulsing for a “living” effect */
@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 6px #00aaff, 0 0 12px rgba(0, 170, 255, 0.8);
  }
  50% {
    text-shadow: 0 0 10px #33ccff, 0 0 20px rgba(51, 204, 255, 0.8);
  }
}

.glow-term {
  animation: glowPulse 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s); /* allows stagger if you want */
}