/*
 * Neon Electric Executive Theme
 * Modern styling for a personal website reflecting professionalism with vibrant neon accents.
 */

:root {
  --bg-dark: #0a102a;
  --panel-dark: #131b3a;
  --primary: #00e5ff;
  --secondary: #ff46d1;
  --text-primary: #e0eaff;
  --text-secondary: #97a5c9;
  --border-radius: 12px;
}

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

html, body {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  position: relative; 
}

/* Navigation */
nav#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: rgba(10, 16, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  text-decoration: none;
}
nav .logo .accent {
  color: var(--secondary);
}

nav .nav-menu {
  list-style: none;
  display: flex;
}

nav .nav-menu li + li {
  margin-left: 0.8rem;
}

nav .nav-menu a {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

nav .nav-menu a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-dark);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 30px;
  height: 22px;
  cursor: pointer;
  position: relative;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle-label span {
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle-label span::before {
  content: '';
  top: -8px;
}
.nav-toggle-label span::after {
  content: '';
  top: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 6rem 1rem 4rem;
  background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.25), transparent 60%), radial-gradient(circle at 70% 70%, rgba(255, 70, 209, 0.25), transparent 60%), var(--bg-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  gap: 2rem;
}

.hero-content {
  flex: 1 1 50%;
  max-width: 600px;
  text-align: left;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.7);
}

.hero-tagline {
  font-size: 1.3rem;
  margin-top: 1rem;
  color: var(--secondary);
  text-shadow: 0 0 15px rgba(255, 70, 209, 0.7);
}

.hero-text {
  margin-top: 1.3rem;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-dark);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.6);
}

.hero-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--border-radius);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
  text-align: center;
}

.section-text {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* About Cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--panel-dark);
  padding: 1.2rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}
.about-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin-bottom: 0.8rem;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-icon {
  flex-shrink: 0;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  text-shadow: 0 0 8px rgba(255, 70, 209, 0.5);
}
.about-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.about-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-point {
  position: absolute;
  left: -7px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 10px var(--primary);
}
.timeline-content {
  background: var(--panel-dark);
  border-radius: var(--border-radius);
  padding: 1.2rem 1.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}
.timeline-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--primary);
}
.timeline-dates {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Speaking Section */
.speaking-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.speaking-item {
  flex: 1 1 250px;
  background: var(--panel-dark);
  border-radius: var(--border-radius);
  padding: 1.2rem 1.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}
.speaking-item h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}
.speaking-item ul {
  list-style: none;
  color: var(--text-primary);
}
.speaking-item li {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}
.speaking-item li i {
  margin-right: 0.6rem;
  font-size: 1.1rem;
  color: var(--primary);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}
.speaking-item li span .event-city {
  color: var(--secondary);
}

/* Awards & Certificates */
.awards-grid, .certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.award-item {
  background: var(--panel-dark);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.awards-section .award-item {
  border-left: 4px solid var(--primary);
}
.certificates-section .award-item {
  background: rgba(19, 27, 58, 0.7);
  border-left: 4px solid var(--secondary);
}
.award-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 229, 255, 0.3);
}
.award-icon {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 0.7rem;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}
.award-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  white-space: normal;
  word-wrap: break-word;
}
.award-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.subsection-title {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  text-shadow: 0 0 8px var(--secondary);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.skill-category {
  background: var(--panel-dark);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}
.skill-category h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}
.skill-category ul {
  list-style: none;
  padding-left: 1rem;
  color: var(--text-primary);
}
.skill-category li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Gallery */
.gallery-container {
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
  width: 100%;
  max-width: 100vw;
}
.gallery-track {
  display: flex;
  width: max-content; 
  animation: galleryScroll 80s linear infinite;
  gap: 1.5rem;
  padding: 1rem 0;
}
.gallery-track:hover {
  animation-play-state: paused;
}
.gallery-item {
  flex: 0 0 auto;
  width: 320px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(145deg, #0a0f2c, #111a44);
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(255, 70, 209, 0.25);
}
.gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
@keyframes galleryScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}

/* Media Section */
.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.media-video {
  flex: 1 1 55%;
  min-width: 300px;
  background: var(--panel-dark);
  border-radius: var(--border-radius);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  padding: 1rem;
}
.video-link {
  position: relative;
  display: block;
}
.video-thumbnail {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.85;
  pointer-events: none;
  text-shadow: 0 0 15px var(--primary);
}
.media-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.media-articles {
  flex: 1 1 40%;
  min-width: 280px;
}
.media-articles h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.article-card {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--panel-dark), rgba(10, 15, 44, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: var(--border-radius);
  padding: 1.2rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.article-card:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
  border-color: rgba(0, 229, 255, 0.3);
}
.article-card:nth-child(even) {
  border-left-color: var(--secondary);
}
.article-icon {
  font-size: 2.2rem;
  margin-right: 1.2rem;
  flex-shrink: 0;
}
.article-details h4 a {
  color: var(--text-primary);
  text-decoration: none;
}
.article-details p.article-source {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service-card {
  background: var(--panel-dark);
  border-radius: var(--border-radius);
  padding: 1.8rem 1.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255, 70, 209, 0.25);
}

/* Contact Form - Corrected Alignment */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  background: var(--panel-dark);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--primary);
}

/* Row for City and State */
.form-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.form-row .half {
  flex: 1;
}

.form-button {
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
}

/* Responsive Fix for the City/State Row */
@media (max-width: 768px) {
  nav .nav-menu {
    position: absolute; /* Changed from fixed to absolute to prevent sticking */
    left: 0;
    right: 0;
    top: 100%; /* Sits exactly below the navbar */
    background: rgba(10, 16, 42, 0.98);
    flex-direction: column;
    align-items: center;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0; /* No padding when closed */
  }

  nav .nav-menu li {
    margin: 0.8rem 0;
    width: 100%;
    text-align: center;
  }
  
  nav .nav-menu li + li {
    margin-left: 0;
  }

  .nav-toggle-label {
    display: block;
  }
  
  /* Only expands enough to show the links, not the whole screen */
  .nav-toggle:checked ~ .nav-menu {
    max-height: 400px; 
    padding: 1rem 0; 
  }

  /* Hero Mobile Fix: Photo first, Name second */
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    order: -1; 
    margin-bottom: 1.5rem;
  }
  .hero-content {
    order: 1;
  } /* <--- THIS WAS THE MISSING BRACKET CAUSING THE ISSUES */

/* Social icons - Center Fix */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0 1.5rem;
  width: 100%;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--primary);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-dark);
}

/* Footer & AI Note - Center Fix */
.ai-note, .footer {
  text-align: center;
  width: 100%;
}

/* AI Note & Footer */
.ai-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  padding: 0 1rem;
}

.footer {
  background: rgba(10, 16, 42, 0.9);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  nav .nav-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    background: rgba(10, 16, 42, 0.98);
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-toggle-label {
    display: block;
  }
  .nav-toggle:checked ~ .nav-menu {
    max-height: 600px;
    padding: 1rem 0; 
  }
  .form-row {
    flex-direction: column;
  }
  .gallery-item {
    width: 260px;
  }
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}