/* Base Styles */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  /* Enable smooth touch scrolling on mobile */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

:root {
  /* Animation */
  --fade-duration: 1s;
  --fade-ease: ease-out;

  --deep-space: #0a0f1e;
  --neon-cyan: #00f7ff;
  --magenta-pink: #ff00ff;
  --electric-purple: #9d00ff;
  --deep-purple: #6a0dad;
  
  /* Grayscale */
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  
  /* Borders */
  --border-radius: 0.5rem;
  --border-color: rgba(0, 247, 255, 0.1);
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glow: 0 0 15px rgba(0, 247, 255, 0.5);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-300);
  background-color: var(--deep-space);
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Sections */
section {
  position: relative;
  padding: 6rem 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 247, 255, 0.1);
  overflow: hidden;
}

/* Remove extra padding from first section */
section:first-of-type {
  padding-top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700; /* Slightly reduced for modern feel */
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 3rem; /* Standardized H1 */
  background: linear-gradient(to right, var(--neon-cyan), var(--magenta-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.25rem; /* Adjusted for better hierarchy */
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  bottom: -10px;
  left: 0;
  background: linear-gradient(to right, var(--neon-cyan), var(--magenta-pink));
  border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--gray-300);
  font-size: 1rem; /* Standardized body font size */
  line-height: 1.6; /* Standardized line height */
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--magenta-pink);
  text-decoration: underline;
}

/* Navbar Styles */
.navbar {
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Navigation Links */
.nav-links li a {
  font-weight: 600;
  padding: 0.5rem 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

/* Mobile Menu - Hidden by default */
.mobile-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10, 15, 30, 0.98);
  border-top: 1px solid rgba(0, 247, 255, 0.2);
  padding: 1rem;
  z-index: 1001;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.mobile-menu.active {
  display: block !important;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 247, 255, 0.1);
}

.mobile-menu ul li:last-child {
  border-bottom: none;
}

.mobile-menu ul li a {
  color: #cbd5e1;
  font-size: 1rem;
  display: block;
  transition: color 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: #00f7ff;
}

/* Show mobile menu button on smaller screens */
@media (max-width: 1279px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* Responsive Layout Fixes */
@media (max-width: 1024px) {
  .container {
    padding: 0 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

/* Responsive Headings */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem; /* Adjusted for mobile */
  }
  h2 {
    font-size: 1.5rem; /* Adjusted for mobile */
  }
  
  /* Fix grid layouts on mobile */
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Ensure proper padding on mobile */
  main {
    padding-top: 6rem;
  }
  
  /* Hero section mobile fix */
  #home {
    padding-top: 7rem !important;
  }
  
  /* Fix card padding on mobile */
  .service-card,
  article {
    padding: 1.25rem;
  }
  
  /* Footer responsive */
  footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
}

/* Blog Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeIn var(--fade-duration) var(--fade-ease) forwards;
  animation-delay: var(--fade-delay, 0s);
}

/* Layout */

/* Blog Page Styles */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header .text-meta {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.article-header h1 {
    margin-bottom: 1rem;
}

.article-header p {
    max-width: 700px;
    margin: 0 auto;
}

article ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

article ul li {
    margin-bottom: 0.75rem;
}

.highlight-box {
    background: rgba(0, 247, 255, 0.1);
    border-left: 3px solid var(--neon-cyan);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.cta-box {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.cta-box h2 {
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.blog-section {
    padding-top: 8rem;
}


.hero {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  margin: 0.5rem;
}

.btn-primary {
  background: linear-gradient(45deg, var(--neon-cyan), var(--magenta-pink));
  color: var(--deep-space);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--magenta-pink), var(--neon-cyan));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 247, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-outline:hover::before {
  transform: translateX(0);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: var(--deep-space);
  border-bottom: 1px solid rgba(0, 247, 255, 0.2);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo span {
  color: var(--neon-cyan);
}

.logo:hover {
  color: var(--neon-cyan);
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li {
  margin-left: 2.5rem;
  position: relative;
}

.nav-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-cyan);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-links {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links li {
    margin: 0.5rem 1rem;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  background: transparent;
  margin-top: 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    var(--deep-space) 0%, 
    rgba(10, 15, 30, 0.9) 50%,
    rgba(10, 15, 30, 0.8) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray-300);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  margin: 0.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--gray-300);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Services Section */
.services {
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  padding: 5rem 0;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--neon-cyan);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  color: var(--magenta-pink);
  transform: translateY(-5px);
}

/* Testimonials Section */
.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 247, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: left;
  margin: 1rem;
  max-width: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 247, 255, 0.1);
  border-color: var(--neon-cyan);
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--gray-200);
}

.testimonial-rating {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--neon-cyan);
  margin-top: 1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 247, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 247, 255, 0.05), rgba(255, 0, 255, 0.05));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 247, 255, 0.1);
  border-color: var(--neon-cyan);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--neon-cyan);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

/* Portfolio Section */
.portfolio {
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 15, 30, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-overlay p {
  color: var(--gray-300);
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
  margin-bottom: 0;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

/* About Section */
.about {
  background: rgba(0, 0, 0, 0.2);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.skills {
  margin-top: 2rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(45deg, var(--neon-cyan), var(--magenta-pink));
  border-radius: 4px;
  transition: width 1s ease;
}

/* Contact Section */
.contact {
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--neon-cyan);
  margin-top: 0.25rem;
}

.contact-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: white;
}

.contact-text p,
.contact-text a {
  color: var(--gray-300);
  margin-bottom: 0;
}

.contact-text a:hover {
  color: var(--neon-cyan);
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 247, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gray-300);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 247, 255, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 3rem 0 1.5rem;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo span {
  background: linear-gradient(45deg, var(--neon-cyan), var(--magenta-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: var(--gray-400);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-400);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(45deg, var(--neon-cyan), var(--magenta-pink));
  color: white;
  transform: translateY(-3px);
}

.footer-links h3,
.footer-newsletter h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links h3::after,
.footer-newsletter h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(45deg, var(--neon-cyan), var(--magenta-pink));
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--neon-cyan);
  transform: translateX(5px);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
}

.newsletter-btn {
  background: linear-gradient(45deg, var(--neon-cyan), var(--magenta-pink));
  color: var(--deep-space);
  border: none;
  border-radius: 0.5rem;
  padding: 0 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 247, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 247, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 247, 255, 0);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.text-gradient::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  border-radius: 2px;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* Chat widget styles */

/* Fix background canvas layering */
#bgCanvas { z-index: -1 !important; pointer-events: none; }

/* Navbar override styling to ensure visibility */
.navbar { background: rgba(10,15,30,0.95) !important; }
/* Force nav links visible override removed to allow mobile collapse */
.navbar { background: rgba(10,15,30,0.95) !important; }

/* Mobile menu display - see main mobile-menu styles above */

/* Chat widget fixed positioning overrides */
#chat-toggle, #chat-window { right: 1rem !important; left: auto !important; }

/* Header and spacing adjustments */
h1, h2, h3, h4, h5, h6 { margin-bottom: 1rem !important; }

/* Section header text alignment */
.section-header h2, .section-header p { text-align: center !important; }

/* Chat widget styles */
#chat-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  background: linear-gradient(135deg, #00f7ff 0%, #0066ff 100%);
  color: #0a0f1e;
  padding: 1rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 247, 255, 0.4), 0 0 30px rgba(0, 247, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#chat-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 247, 255, 0.5), 0 0 40px rgba(0, 247, 255, 0.3);
}
#chat-toggle::before {
  content: "💬";
  font-size: 1.1rem;
}
#chat-window {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  left: auto;
  width: 340px;
  max-height: 450px;
  background: #0a0f1e;
  border: 2px solid #00f7ff;
  border-radius: 1rem;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 247, 255, 0.2);
}
#chat-window.open {
  display: flex;
}
#chat-header {
  background: linear-gradient(135deg, #00f7ff 0%, #0066ff 100%);
  color: #0a0f1e;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#chat-messages {
  flex: 1;
  padding: 0.5rem;
  overflow-y: auto;
  background: var(--gray-900);
}
.chat-msg {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
}
.chat-msg.user {
  background: var(--gray-800);
  align-self: flex-end;
}
.chat-msg.bot {
  background: var(--gray-700);
  align-self: flex-start;
}
#chat-input-area {
  display: flex;
  border-top: 1px solid var(--neon-cyan);
}
#chat-input {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: var(--gray-900);
  color: var(--gray-300);
}
#chat-send {
  background: var(--neon-cyan);
  border: none;
  padding: 0 0.75rem;
  cursor: pointer;
}
#chat-close {
  cursor: pointer;
}

/* Chat widget responsive */
@media (max-width: 480px) {
  #chat-window {
    width: calc(100vw - 2rem);
    right: 1rem;
    left: 1rem;
    max-height: 60vh;
  }
  
  #chat-toggle {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Typing indicator animation */
.typing-indicator span {
  animation: blink 1.4s infinite both;
  font-size: 1.5rem;
  line-height: 1;
}
.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

