@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&display=swap');

:root {
  /* Dark mode base colors */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #f5f5f5;
  --text-secondary: #b3b3b3;
  
  /* Accent colors for different domains */
  --accent-writing: #9c27b0;    /* Purple for writing */
  --accent-media: #e91e63;      /* Pink for media production */
  --accent-tech: #2196f3;       /* Blue for tech & AI */
  --accent-gaming: #4caf50;     /* Green for gaming */
  --accent-business: #ff9800;   /* Orange for entrepreneurship */
  --accent-privacy: #7b1fa2;    /* Purple for privacy & open source */
  --accent-design: #00bcd4;     /* Teal for UI/UX design */
  
  /* UI elements */
  --card-bg: rgba(30, 30, 30, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

html {
    height: 100%;
    overflow: hidden; /* Prevents the top-level scrollbar */
}

body {
    height: 100%; /* Makes the body fill the html element */
    overflow-y: auto; /* Allows the body to have its own scrollbar */
    overflow-x: hidden !important; /* Keeps your original rule */

    /* Your other body styles are below */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(
        135deg,
        var(--bg-primary) 0%,
        #1a1a2e 50%,
        var(--bg-primary) 100%
    );
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: fadeIn 0.5s ease-out forwards, gradientShift 15s ease infinite;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

body {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    #1a1a2e 50%,
    var(--bg-primary) 100%
  );
  background-attachment: fixed;
  background-size: 400% 400%;
  animation: fadeIn 0.5s ease-out forwards, gradientShift 15s ease infinite;
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

body > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Fix unwanted gap above header on all pages */
body > header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body > .stars-bg,
body > .bg-element {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9999;
  background: transparent !important;
  box-shadow: none !important;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 !important;
  padding: 0.5rem 5% !important;
  min-height: 64px;
}

.logo {
  font-family: 'Cinzel', serif;  /* Changed from 'Playfair Display' to 'Cinzel' */
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  letter-spacing: 1px;  /* Added letter spacing for better readability */
  margin-right: auto;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right, 
    var(--accent-writing), 
    var(--accent-media)
  );
  transform: scaleX(0.7);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

.logo a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: var(--accent-writing);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  position: static;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  flex-direction: row;
  transform: none;
  transition: none;
  z-index: auto;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  flex-grow: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40%;
  height: 2px;
  background: linear-gradient(to right, var(--accent-tech), var(--accent-writing));
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
}

.nav-links a.active {
  color: var(--text-primary);
}

/* Hero Section */
#hero {
  position: relative;
  min-height: 87vh;
  height: 87vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.stars-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

#star-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content,
.hero-icons-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 3.5rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(90deg, var(--accent-writing), var(--accent-tech), var(--accent-media));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
    white-space: normal;
  }
}

/* Add a subtle animation to the title */
@keyframes titleGlow {
  0% {
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.3);
  }
  25% {
    text-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
  }
  75% {
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
  }
  100% {
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.3);
  }
}

.hero-content h1 {
  animation: titleGlow 10s infinite, gradient 10s ease infinite;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-content p strong {
  font-weight: 600;
  color: var(--accent-writing);
}

.cta-button {
  background: #fff;
  color: #000;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 0;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border 0.3s;
  outline: none;
  position: relative;
  z-index: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
}

.cta-button:hover, .cta-button:focus {
  background: #eaeaea;
  color: #000;
  border: none;
  transform: none;
  box-shadow: none;
}

/* Skill Categories */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-category {
  background-color: var(--card-bg);
  border-radius: 2rem !important;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  border-top: 3px solid transparent;
}

#writing {
  border-color: var(--accent-writing);
}

#media {
  border-color: var(--accent-media);
}

#tech {
  border-color: var(--accent-tech);
}

#business {
  border-color: var(--accent-business);
}

#open-source {
  border-color: var(--accent-privacy);
}

#design {
  border-color: var(--accent-design);
}

.skill-category:hover {
  transform: translateY(-10px);
}

.skill-category h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.skill-showcase {
  margin-top: 1.5rem;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

/* Animation keyframes */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Interactive Book Preview */
.book-preview {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.book-cover {
  position: absolute;
  width: 70%;
  height: 90%;
  top: 5%;
  left: 15%;
  background: linear-gradient(45deg, #7b1fa2, #9c27b0);
  border-radius: 2px 10px 10px 2px;
  box-shadow: 5px 5px 20px rgba(0,0,0,0.3);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 2;
}

.book-cover::after {
  content: "My Writing";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.book-pages {
  position: absolute;
  width: 68%;
  height: 88%;
  top: 6%;
  left: 16%;
  background-color: #f5f5f5;
  border-radius: 0 5px 5px 0;
  padding: 20px;
  color: #333;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
  overflow: hidden;
}

/* Video Player */
.video-player {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-thumbnail {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assets/video-thumbnail.jpg');
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--accent-media);
  border-radius: 50%;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.play-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent white;
}

/* Code Snippet */
.code-snippet {
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  padding: 15px;
  box-sizing: border-box;
}

.code-snippet pre {
  margin: 0;
  height: 100%;
  overflow: auto;
}

.code-snippet code {
  font-family: 'Fira Code', monospace;
  color: #e0e0e0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Business Card */
.business-card {
  width: 90%;
  height: 80%;
  margin: 10% auto;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  border-radius: 2rem !important;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  color: white;
  position: relative;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.company-logo {
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  margin-bottom: 15px;
}

.business-card h4 {
  margin: 10px 0;
  font-size: 1.2rem;
}

.business-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Projects Grid */
.projects-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  margin: 0 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-tech);
  transition: width 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  color: var(--text-primary);
}

.filter-btn:hover::after, .filter-btn.active::after {
  width: 80%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 2rem !important;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-image {
  height: 200px;
  background-color: #333;
  background-size: cover;
  background-position: center;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.project-link {
  display: inline-block;
  padding: 8px 20px;
  color: var(--text-primary);
  text-decoration: none;
  border: 2px solid var(--accent-tech);
  border-radius: 15px;
  font-weight: 500;
  background-color: transparent;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-link:hover {
  background-color: var(--accent-tech);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

/* Category-specific button colors */
.project-card[data-category="writing"] .project-link {
  border-color: var(--accent-writing);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card[data-category="writing"] .project-link:hover {
  background-color: var(--accent-writing);
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
}

.project-card[data-category="media"] .project-link {
  border-color: var(--accent-media);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card[data-category="media"] .project-link:hover {
  background-color: var(--accent-media);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.project-card[data-category="social"] .project-link {
  border-color: var(--accent-business);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card[data-category="social"] .project-link:hover {
  background-color: var(--accent-business);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

/* Scroll Reveal Animation */
.container > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.container > *.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Navigation */
.burger {
  display: none;
}
@media (max-width: 900px) {
  .burger {
    display: block;
  }
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px;
  transition: all 0.3s ease;
}
  /* --- CORRECTED MOBILE NAVIGATION STYLES --- */
  @media (max-width: 900px) {
    .burger {
      display: block;
    }
    .nav-close {
      display: flex;
    }

    .nav-links {
      position: fixed !important;
      top: 0 !important;
      right: -100%; /* Start the menu off-screen */
      width: 100%;
      height: 100vh !important;
      background: rgba(18, 18, 18, 0.98) !important;
      display: flex;
      flex-direction: column;
      align-items: center;      /* Center all items horizontally */
      justify-content: center;  /* Center all items vertically */
      transition: right 0.5s cubic-bezier(.77, 0, .18, 1);
      padding: 0;
      box-sizing: border-box;
    }

    .nav-links.nav-active {
      right: 0; /* Slide the menu into view */
    }

    .nav-links li {
      width: 100%;
      margin: 1rem 0;
      text-align: center;
      opacity: 1;
    }
    
    /* Replace your existing .nav-links li a rule with this */
    .nav-links li a {
      display: block;
      width: 100%;
      padding: 1rem;
      box-sizing: border-box; /* This is important */
      text-align: center;
    }
  }

/* ---- END OF BLOCK ---- */

.nav-links.nav-active {
    right: 0; /* Slide the menu into view */
}
@media (max-width: 900px) {
  .nav-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: rgba(30,30,30,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
  }
  .nav-close:hover, .nav-close:focus {
    background: rgba(60,60,60,0.95);
    color: #ff4081;
    outline: none;
  }
  .nav-links li {
    opacity: 1;
    margin: 1.5rem 0;
    font-size: 1.3rem;
  }
}

.nav-active {
  transform: translateX(0%);
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

/* About Section Enhancements */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-text h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent-writing);
  font-size: 1.3rem;
}

.achievements-list, .skills-list {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.achievements-list li, .skills-list li {
  margin-bottom: 0.5rem;
  position: relative;
}

.achievements-list li::before {
  content: '•';
  color: var(--accent-writing);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

.skills-list li::before {
  content: '•';
  color: var(--accent-tech);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent-writing); /* Reduced from 3px to 1px */
}

.image-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}
/* Remove the previous scroll fixes that didn't work */
section {
  position: relative;
}

#about, #skills, #projects, #startup, #contact {
  padding-top: 20px; /* Add some spacing between sections */
}

/* Reset the hero section */
/* #hero {
  height: 60vh;
  padding-top: 0;
} */

/* Active navigation link */
.nav-links a.active {
  color: var(--text-primary);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-tech);
}

/* Page content styling */
.page-content {
  padding-top: 80px; /* Space for the fixed header */
  min-height: calc(100vh - 200px); /* Ensures footer stays at bottom */
}

/* Simplify section styling for individual pages */
.page-content section {
  padding: 40px 0;
}

/* Remove unnecessary scroll fixes */
.section-anchor {
  display: none;
}

/* Project Page Styles */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background-color: var(--card-bg);
  color: var(--text-secondary);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--accent-tech);
  color: white;
}

/* Startup Page Styles */
.startup-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.startup-tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent-business);
  margin-bottom: 2rem;
}

.startup-mission, .startup-impact, .startup-approach, .startup-future {
  margin-bottom: 2rem;
}

.startup-mission h4, .startup-impact h4, .startup-approach h4, .startup-future h4 {
  color: var(--accent-business);
  margin-bottom: 0.5rem;
}

.startup-highlights {
  padding-left: 1.2rem;
}

.startup-highlights li {
  margin-bottom: 0.5rem;
  position: relative;
}

.startup-highlights li::before {
  content: '•';
  color: var(--accent-business);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

.startup-link {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--accent-business);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.startup-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.startup-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.startup-image-main img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.startup-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Contact Page Styles */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-method {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--card-bg);
  border-radius: 2rem !important;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  min-height: 180px; /* Ensure all cards have consistent height */
}

.contact-method i {
  font-size: 2rem;
  color: var(--accent-tech);
  margin-bottom: 1rem;
}

.contact-method h4 {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--card-bg);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  color: white;
}

.social-icon:nth-child(1):hover {
  background-color: #1DA1F2; /* Twitter */
}

.social-icon:nth-child(2):hover {
  background-color: #0077B5; /* LinkedIn */
}

.social-icon:nth-child(3):hover {
  background-color: #333; /* GitHub */
}

.social-icon:nth-child(4):hover {
  background-color: #E1306C; /* Instagram */
}

.social-icon:nth-child(5):hover {
  background-color: #FF0000; /* YouTube */
}

.availability {
  margin-top: 2rem;
}

.availability h4 {
  color: var(--accent-tech);
  margin-bottom: 0.5rem;
}

.availability ul {
  padding-left: 1.2rem;
}

.availability li {
  margin-bottom: 0.5rem;
  position: relative;
}

.availability li::before {
  content: '•';
  color: var(--accent-tech);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

.contact-form {
  background: rgba(30, 30, 30, 0.85);
  border-radius: 2rem !important;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(33,150,243,0.12), 0 1.5px 8px rgba(0,0,0,0.18);
  max-width: 700px;
  margin: 2rem auto 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 1.2rem;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.10); /* lighter, glassy */
  color: #f5f5f5;
  border: 1.5px solid #666;
  border-radius: 14px;
  padding: 18px 20px 12px;
  font-size: 1rem;
  margin-bottom: 0;
  transition: border 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 2px 12px rgba(33,150,243,0.10);
  display: block;
  min-height: 20px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #d0d0d0;
  opacity: 1;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #3fa9f5;
  background: rgba(255,255,255,0.16);
  box-shadow: 0 0 0 3px rgba(63,169,245,0.18);
  outline: none;
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 2rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.contact-form h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--accent-tech), var(--accent-writing));
}
.submit-btn {
  background: linear-gradient(135deg, var(--accent-tech), var(--accent-writing));
  color: white;
  border: none;
  padding: 16px 30px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn i {
  font-size: 1.1rem;
}
/* Additional About Page Styles */
.intro-paragraph {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-writing);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.page-content {
  padding-top: 80px; /* Ensure content starts below the fixed header */
  min-height: calc(100vh - 200px);
}

/* Make sure images in the about section display properly */
.about-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent-writing); /* Reduced from 3px to 1px */
}

/* Ensure proper spacing in the about section */
#about .container {
  padding-top: 2rem;
}

/* Fix for content fading issue */
.no-fade {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

/* Ensure about page content is always visible */
#about .container * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Override any animations that might be causing issues */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-content section {
  animation: fadeIn 0.5s ease forwards;
}

/* Special handling for about page */
.about-page .page-content {
  display: block !important;
  opacity: 1 !important;
}

.about-page #about {
  display: block !important;
  opacity: 1 !important;
}

/* Page Index Styling */
.page-index {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent-writing);
}

.page-index h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent-writing);
}

.index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.index-links li {
  position: relative;
}

.index-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  display: inline-block;
}

.index-links a:hover {
  color: var(--accent-writing);
}

.index-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-writing);
  transition: width 0.3s ease;
}

.index-links a:hover::after {
  width: 100%;
}

/* Add smooth scrolling for the index links */
html {
  scroll-behavior: smooth;
}

/* Add some padding to section headings for better scrolling position */
.about-text h3 {
  padding-top: 1rem;
  scroll-margin-top: 100px;
}

#introduction {
  scroll-margin-top: 100px;
}

/* Enhanced Skills Page Styling */
.skills-page .skill-category {
  margin-bottom: 3rem;
  padding: 2.5rem;
}

.skill-description {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.skill-progress {
  margin-bottom: 2rem;
}

.skill-item {
  margin-bottom: 1.2rem;
}

.skill-item span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.progress-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

#writing .progress {
  background-color: var(--accent-writing);
}

#media .progress {
  background-color: var(--accent-media);
}

#tech .progress {
  background-color: var(--accent-tech);
}

#debate .progress {
  background-color: var(--accent-gaming);
}

#leadership .progress {
  background-color: var(--accent-business);
}

.progress {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
}

.skill-tools, .skill-achievements, .skill-experience {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
}

.skill-tools h4, .skill-achievements h4, .skill-experience h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.skill-tools ul, .skill-achievements ul, .skill-experience ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-tools li, .skill-achievements li, .skill-experience li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.skill-tools i, .skill-achievements i, .skill-experience i {
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
}

#writing .skill-tools i, #writing h4 {
  color: var(--accent-writing);
}

#media .skill-tools i, #media h4 {
  color: var(--accent-media);
}

#tech .skill-tools i, #tech h4 {
  color: var(--accent-tech);
}

#debate .skill-achievements i, #debate h4 {
  color: var(--accent-gaming);
}

#leadership .skill-experience i, #leadership h4 {
  color: var(--accent-business);
}

/* Animation for skill bars */
.skills-page .skill-category {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

.skills-page .progress {
  width: auto !important; /* Use the width set in the style attribute */
  transition: width 1.5s ease-in-out;
}

/* Override any animations that might be causing issues */
.skills-page section {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure the container is visible */
.skills-page .container {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Add this to your scripts.js file */
/* 
document.addEventListener('DOMContentLoaded', function() {
  if (document.querySelector('.skills-page')) {
    const skillCategories = document.querySelectorAll('.skill-category');
    
    const revealSkills = () => {
      skillCategories.forEach(category => {
        const categoryTop = category.getBoundingClientRect().top;
        const windowHeight = window.innerHeight;
        
        if (categoryTop < windowHeight - 100) {
          category.classList.add('revealed');
        }
      });
    };
    
    window.addEventListener('scroll', revealSkills);
    // Initial check
    setTimeout(revealSkills, 300);
  }
});
*/

.no-animations *:not(#page-overlay) {
  animation: none !important;
  /* The transition property has been removed to allow the nav menu to slide */
  opacity: 1 !important;
  visibility: visible !important;
}

/* Styling for Open Source & Privacy section */
#open-source .progress {
  background-color: #7b1fa2; /* A purple shade different from writing */
}

#open-source .skill-tools i, #open-source h4 {
  color: #7b1fa2;
}

/* Fix for contact page visibility */
.contact-content {
  opacity: 1 !important;
  visibility: visible !important;
}

#contact .container * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Add a class to the body for contact page */
body.contact-page .page-content {
  display: block !important;
  opacity: 1 !important;
}

/* Updated Signal icon styling for official logo */
.signal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;  /* Increased from 48px to 64px */
  height: 64px; /* Increased from 48px to 64px */
  margin-bottom: 1rem;
  margin-right: 0;
}

.signal-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Global fix for content fading issues */
.page-content {
  opacity: 1 !important;
  visibility: visible !important;
}

.page-content section {
  opacity: 1 !important;
  visibility: visible !important;
}

.page-content .container {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure all content is visible */
.projects-page .projects-grid,
.startup-page .startup-content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Disable problematic animations */
.no-animations .container > * {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Styling for UI/UX Design section */
#design .progress {
  background-color: #00bcd4; /* Teal color for design */
}

#design .skill-tools i, #design h4 {
  color: #00bcd4;
}

/* Page transition animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Add this class when navigating away */
.page-transition-out {
  animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

/* Base page transition animation */
body {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Custom animations for each page type */
body.about-page {
  animation: slideInFromLeft 1.0s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

body.skills-page {
  animation: expandIn 1.1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

body.projects-page {
  animation: gridReveal 0.8s ease-out forwards;
}

body.startup-page {
  animation: riseUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

body.contact-page {
  animation: fadeInBlur 0.6s ease-out forwards;
}

/* Define unique animations for each page */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes expandIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gridReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@keyframes riseUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  30% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInBlur {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Exit animations for each page type */
body.slide-out-right {
  animation: slideOutToRight 0.7s ease-in forwards;
}

body.contract-out {
  animation: contractOut 0.7s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

body.grid-collapse {
  animation: gridCollapse 0.5s ease-in forwards;
}

body.sink-down {
  animation: sinkDown 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

body.fade-out-blur {
  animation: fadeOutBlur 0.4s ease-in forwards;
}

/* Define exit animations */
@keyframes slideOutToRight {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  60% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateX(40px);
  }
}

@keyframes contractOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  60% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: scale(0.92);
  }
}

@keyframes gridCollapse {
  0% {
    opacity: 1;
    transform: translateY(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  }
}

@keyframes sinkDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateY(40px);
  }
}

@keyframes fadeOutBlur {
  from {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 0;
    filter: blur(10px);
  }
}

/* Styling for the organization CTA button */
.organization-cta {
  background: linear-gradient(135deg, var(--accent-business), var(--accent-tech));
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
  margin-top: 2rem;
}

.organization-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.organization-cta i {
  font-size: 0.9em;
}

.cta-container {
  margin: 2rem 0;
  text-align: center;
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-down span {
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 1px;
}

.scroll-down i {
  font-size: 1.2rem;
}

.scroll-down:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Section Styling */
section {
  padding: 60px 0;  /* Reduced from 100px */
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--accent-writing), var(--accent-tech));
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Intro Section */
#intro {
  background-color: transparent !important;
  margin-top: 0;
  padding-top: 80px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#intro.visible .intro-grid {
  opacity: 1;
  transform: translateY(0);
}

.intro-card {
  background-color: var(--card-bg);
  border-radius: 2rem !important;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: calc(var(--card-index) * 0.2s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--accent-tech);
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(33, 150, 243, 0.1);
}

.intro-card:nth-child(1) .intro-icon {
  color: var(--accent-writing);
  background: rgba(156, 39, 176, 0.1);
}

.intro-card:nth-child(2) .intro-icon {
  color: var(--accent-tech);
  background: rgba(33, 150, 243, 0.1);
}

.intro-card:nth-child(3) .intro-icon {
  color: var(--accent-business);
  background: rgba(255, 152, 0, 0.1);
}

.intro-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.intro-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.intro-link {
  color: var(--accent-tech);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-top: auto;
  transition: all 0.3s ease;
}

.intro-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.intro-link:hover i {
  transform: translateX(5px);
}

.intro-card:nth-child(1) .intro-link {
  color: var(--accent-writing);
}

.intro-card:nth-child(2) .intro-link {
  color: var(--accent-tech);
}

.intro-card:nth-child(3) .intro-link {
  color: var(--accent-business);
}

/* Featured Project Section */
#featured {
  background-color: transparent !important;
  padding: 30px 0;  /* Further reduced */
  margin-bottom: 48px !important;
}

#featured .container, #featured .section-content {
  background-color: transparent !important;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  #featured .container,
  #featured .section-content {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.featured-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.featured-image {
  border-radius: 2rem !important;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.featured-project:hover .featured-image img {
  transform: scale(1.05);
}

.featured-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-writing), var(--accent-media));
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.featured-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.featured-content p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.featured-stats {
  display: flex;
  margin-bottom: 30px;
}

.stat {
  margin-right: 40px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-tech);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Testimonials Section */
#testimonials {
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background-color: var(--card-bg);
  border-radius: 2rem !important;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-10px);
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  padding: 0 20px;
}

.testimonial-content p::before,
.testimonial-content p::after {
  content: '"';
  font-size: 2rem;
  color: var(--accent-writing);
  position: absolute;
  opacity: 0.3;
}

.testimonial-content p::before {
  left: 0;
  top: -10px;
}

.testimonial-content p::after {
  right: 0;
  bottom: -20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.author-info p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .featured-project {
    grid-template-columns: 1fr;
  }
  
  .featured-image {
    margin-bottom: 30px;
  }
}
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Force visibility for all sections */
section {
  opacity: 1 !important;
  visibility: visible !important;
}

#intro, #featured, #testimonials {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.container, .container > * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Enhanced Footer Styling */
footer {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    #1a1a2e 50%,
    var(--bg-primary) 100%
  );
  padding: 32px 0 40px;
  overflow: hidden;
  border-top: 1.5px solid rgba(255,255,255,0.07);
  box-shadow: 0 -8px 32px 0 rgba(33, 150, 243, 0.08);
  z-index: 2;
  position: relative;
  margin: 0;
}

footer::before {
  content: none !important;
}

.footer-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--accent-writing), var(--accent-tech));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.7;
}

/* Add social media icons if desired */
.footer-social {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-social a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--text-primary);
  transform: translateY(-3px);
}
/* Section Transitions */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Specific section transitions */

#intro {
  background-color: transparent !important;
  margin-top: 0;
  padding-top: 80px;
  position: relative;
  z-index: 2;
}

/* Background animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Add shimmer effect to section borders */
@keyframes borderShimmer {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.privacy-article {
    background: var(--card-bg);
    border-radius: 2rem !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border);
}

.privacy-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--card-border);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 0.5rem;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-tech);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-link:hover {
    gap: 0.8rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Articles Page Styling */
.articles-page .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: 2rem !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.article-card .article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--card-border);
}

.article-card .article-content {
    padding: 1.5rem;
}

.article-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.article-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-card .article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-card .article-meta i {
    margin-right: 0.5rem;
}

.article-card .article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-tech);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-card .article-link:hover {
    gap: 0.8rem;
    color: var(--text-primary);
}

/* Project Icons Carousel */
.project-icons-carousel {
  padding: 0 0 0 0 !important;
  margin: 0 !important;
}

.project-icons-carousel .container,
.project-icons-carousel .section-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#featured {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#featured .container,
#featured .section-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.project-icons-container {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll-infinite var(--scroll-duration, 30s) linear infinite;
}
@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(var(--scroll-distance, -1000px));
  }
}

.project-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-icon:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.project-icon i {
  font-size: 2.5rem;
  color: #fff;
  transition: all 0.3s ease;
}

.project-icon:hover i {
  transform: scale(1.2);
}

.project-icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-icon:hover::after {
  transform: scaleX(1);
}

.project-icons-carousel.double-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  padding: 4rem 0;
}

.project-icons-carousel.double-row .project-icons-container {
  width: max-content;
  display: flex;
  gap: 2rem;
}

.project-icons-carousel .row-ltr {
  animation: scroll-ltr 30s linear infinite;
}

.project-icons-carousel .row-rtl {
  animation: scroll-rtl 30s linear infinite;
}

@keyframes scroll-ltr {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.icon-google-fonts {
  width: 64px !important;
  height: 64px !important;
  display: block;
  margin: 0 auto;
}

.icon-gitlab {
  width: 64px !important;
  height: 64px !important;
  display: block;
  margin: 0 auto;
}

.icon-filmora {
  width: 64px !important;
  height: 64px !important;
  display: block;
  margin: 0 auto;
}

/* Curiosity Logos Section Styles */
#curiosity-logos {
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.05);
  text-align: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.curiosity-logo {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
  animation: jump 2s infinite, shiver 0.5s infinite;
}

@keyframes jump {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shiver {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
}

/* Bouncing Logos Section Styles */
#bouncing-logos {
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.05);
  text-align: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.bouncing-logo {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Hero Icons Overlay Styles */
.hero-icons-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2;
  pointer-events: none;
}
.hero-pop-icon {
  width: 48px;
  height: 48px;
  opacity: 0;
  position: absolute;
  bottom: 0;
  /* left will be set dynamically via JS */
  transform: translate(-50%, 0) scale(0.7);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 1;
}
.hero-pop-icon.active {
  opacity: 1;
  animation: heroPopInOutDown 2.1s cubic-bezier(0.77, 0, 0.265, 1.2) forwards;
}
@keyframes heroPopInOutDown {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(1);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -120px) scale(1.12);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 0) scale(1);
  }
}

.logo .aka-vastav {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.85em;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  vertical-align: middle;
} 

.gradient-btn {
  background: linear-gradient(90deg, rgba(33,150,243,0.32), rgba(156,39,176,0.28), rgba(233,30,99,0.28));
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(33, 150, 243, 0.15);
  opacity: 0.88;
  margin-left: 1rem;
}
.gradient-btn:hover, .gradient-btn:focus {
  background: linear-gradient(90deg, var(--accent-media), var(--accent-writing), var(--accent-tech));
  color: #fff;
  box-shadow: 0 8px 32px rgba(33, 150, 243, 0.35);
}

.cta-button.nav-small {
  padding: 0.4rem 1.1rem;
  font-size: 1rem;
  border-radius: 13px; /* Changed from 5px to make it rounder */
  line-height: 1.2;
  background: #fff;
  color: #000;
  border: none;
}
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  color: inherit;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  outline: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 1000;
  border-radius: 6px;
  margin-top: 0.5rem;
}

.dropdown-content a {
  color: #000;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

@media (max-width: 900px) {
  .dropdown-content {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
  }
}

.mega-dropdown {
  position: relative;
}

.mega-dropdown .dropbtn {
  background: none;
  color: inherit;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  outline: none;
}

.mega-dropdown-content {
  display: none;
  position: absolute;
  left: 50%;
  right: auto;
  top: 100%;
  transform: translateX(-50%);
  min-width: 600px;
  width: 800px;
  max-width: 95vw;
  background: rgba(30, 30, 40, 0.92);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 1000;
  padding: 1.2rem 1.5rem;
  gap: 2.5rem;
  justify-content: space-between;
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: dropdownFadeIn 0.25s;
}
@media (max-width: 900px) {
  .mega-dropdown-content {
    flex-direction: column;
    width: 100vw;
    left: 0;
    right: 0;
    transform: none;
    padding: 1rem;
    border-radius: 0;
    gap: 1rem;
    box-shadow: none;
    backdrop-filter: none;
    min-width: unset;
    max-width: 100vw;
  }
}

.mega-col a {
  display: inline-block;
  width: auto;
  min-width: 180px;
  box-sizing: border-box;
  padding: 1.1em 3.5em 1.1em 3.5em;
  margin: 0 0.5em;
  border-radius: 16px;
  line-height: 1.4;
  background-clip: padding-box;
  color: #fff;
  text-decoration: none;
  font-size: 1.08em;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s;
  border-bottom: none;
  border: none;
  outline: none;
}
.mega-col a:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin: 0;
}

.mega-col {
  min-width: 160px;
  flex: 1;
}

.mega-col h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-primary, #fff);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mega-col a {
  display: block;
  color: var(--text-secondary, #e0e0e0);
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mega-col a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.mega-dropdown-content {
  border-radius: 40px;
}

.mega-dropdown-content {
  background: rgba(24,24,24,0.85);
  color: var(--text-primary, #fff);
  border-radius: 40px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
} 

/* Service Page Styles */
.service-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none !important;
    z-index: -1;
    filter: blur(5px);
}

.service-hero-content {
    max-width: 800px;
    z-index: 1;
}

.service-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.service-hero p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.service-details {
    padding: 4rem 2rem;
    background: #fff;
}

.service-overview {
    margin-bottom: 4rem;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.service-process {
    margin-bottom: 4rem;
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

.service-technologies {
    margin-bottom: 4rem;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.tech-item span {
    display: block;
    color: #333;
    font-weight: 500;
}

.cta-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .cta-button {
    background: #fff;
    color: #007bff;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-section .cta-button:hover {
    transform: translateY(-3px);
}
/* Mobile Development Page Styles */
.platform-options {
    padding: 4rem 2rem;
    background: #0a0a0a;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.platform-card {
    background: #181818;
    border-radius: 30px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-10px);
}

.platform-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.platform-card.android i {
    color: #4CAF50;
}

.platform-card.ios i {
    color: #007aff;
}

.platform-card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
}

.platform-card p {
    margin-bottom: 1.5rem;
    color: #888;
}

.platform-card .cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.platform-card .cta-button:hover {
    background: #444;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: #0a0a0a;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #888;
    margin-bottom: 2rem;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.cta-section .cta-button:hover {
    background: #45a049;
}
.product-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 22px !important;
    transition: background 0.3s ease;
}

.product-sample-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-left: 0.5rem;
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    text-decoration: none;
    border-radius: 22px;
    transition: background 0.3s, color 0.3s;
    font-weight: 500;
}
.product-sample-btn:hover {
    background: #4CAF50;
    color: #fff;
}

.product-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.option-selector {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1.2rem;
    max-width: none;
    align-items: flex-start;
}
.option-group {
    margin-bottom: 0.7rem;
    width: 100%;
}
.option-label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
    display: block;
    font-size: 1rem;
    letter-spacing: 0.01em;
}
.option-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}
.option-btn {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: none;
    border-radius: 22px;
    font-weight: 600;
    font-size: 1.08rem;
    padding: 0.7rem 1.7rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    margin-bottom: 0;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    letter-spacing: 0.01em;
    outline: none;
    display: inline-block;
}
.option-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #4CAF50;
    box-shadow: 0 4px 16px rgba(76,175,80,0.08);
}
.option-btn.selected, input[type="radio"]:checked + .option-btn {
    background: #232f3e;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(35,47,62,0.10);
    border: none;
}
input[type="radio"][hidden] + .option-btn {}

.option-btn.disabled {
    opacity: 0.35 !important;
    background: #444 !important;
    color: #bbb !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.product-main {
    position: relative;
    z-index: 1;
}
.product-main::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    z-index: -1;
    border-radius: 40px;
    padding: 0;
    background: linear-gradient(120deg, #00ffe7, #7f52ff, #f05138, #00ffe7 90%);
    filter: blur(12px);
    opacity: 0.9;
    animation: neon-glow-gradient 8s linear infinite;
    background-size: 300% 300%;
    pointer-events: none;
    box-shadow: 0 0 0 6px rgba(0,0,0,0.01) inset;
    mask-image: linear-gradient(white, white), linear-gradient(white, white);
    mask-composite: exclude;
    -webkit-mask-image: linear-gradient(white, white), linear-gradient(white, white);
    -webkit-mask-composite: xor;
}
@keyframes neon-glow-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cart-btn,
.navbar-cart-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  margin-left: 1rem;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  box-shadow: none;
  padding: 0;
  vertical-align: middle;
}

.cart-btn:hover,
.navbar-cart-btn:hover,
.cart-btn:focus,
.navbar-cart-btn:focus {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.cart-btn i,
.navbar-cart-btn i {
  font-size: 1.25em;
  color: inherit;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* More Dropdown Styles (moved from inline <style> in HTML) */
.more-dropdown { position: relative; }
.more-dropdown-content {
  display: none;
  position: absolute;
  background: rgba(30, 30, 40, 0.85);
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 1000;
  right: 0;
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: dropdownFadeIn 0.25s;
}
.more-dropdown-content a {
  display: inline-block;
  width: auto;
  min-width: 180px;
  box-sizing: border-box;
  padding: 1.1em 3.5em 1.1em 3.5em;
  margin: 0 0.5em;
  border-radius: 16px;
  line-height: 1.4;
  background-clip: padding-box;
  color: #fff;
  text-decoration: none;
  font-size: 1.08em;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s;
  border-bottom: none;
  border: none;
  outline: none;
}
.more-dropdown-content a:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin: 0;
}
.more-dropdown:hover .more-dropdown-content,
.more-dropdown:focus-within .more-dropdown-content {
  display: block;
}
@media (max-width: 900px) {
  .more-dropdown-content {
    position: static;
    box-shadow: none;
    min-width: 100%;
    backdrop-filter: none;
  }
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-10px);}
  to { opacity: 1; transform: translateY(0);}
}

.mega-col a span, .more-dropdown-content a span {
  display: inline-block;
  padding-left: 1.2em;
  padding-right: 1.2em;
}

.mega-col a, .more-dropdown-content a {
  border-bottom: none !important;
}

.cart-btn i {
  font-size: 1.25em;
  color: inherit;
  line-height: 1;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
}

/* Force profile icon and initials to always be white everywhere */
.profile-avatar,
.profile-avatar * {
  color: #fff !important;
  fill: #fff !important;
}
.profile-avatar img {
  filter: brightness(100) invert(1) !important;
}

/* Profile icon button styles */
.profile-icon-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  transition: background 0.2s;
}

.profile-icon-btn:hover {
  background: rgba(255,255,255,0.08);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.profile-avatar img {
  filter: invert(1) brightness(2);
}

/* Auth modal styles */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20,20,30,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.auth-modal {
  background: #181828;
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 340px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  position: relative;
  color: #fff;
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Align cart button with profile icon in the navbar */
.cart-btn,
.navbar-cart-btn {
  background: none !important;
  border: none !important;
  color: #fff !important;
  font-size: 1.25rem !important;
  height: 40px !important;
  width: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transition: background 0.2s, color 0.2s !important;
  box-shadow: none !important;
  padding: 0 !important;
  vertical-align: middle !important;
}
.cart-btn:hover,
.navbar-cart-btn:hover,
.cart-btn:focus,
.navbar-cart-btn:focus {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}
.cart-btn i,
.navbar-cart-btn i {
  font-size: 1.25em !important;
  color: inherit !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.article-content {
  padding-top: 100px;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-buttons .cta-button,
  .hero-buttons .gradient-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    margin: 0 auto;
    display: block;
     /* --- Add these two lines to fix the overflow --- */
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.burger.nav-open {
  display: none !important;
}

@media (max-width: 900px) {
  .mega-dropdown-content {
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    background: rgba(30,30,40,0.98);
    box-shadow: none;
    border-radius: 0;
    min-width: 100vw;
    max-width: 100vw;
    z-index: 10001;
    animation: none;
    backdrop-filter: none;
  }
  .mega-dropdown.open .mega-dropdown-content {
    display: block;
  }
  .service-list {
    display: none;
    flex-direction: column;
    padding-left: 1.5rem;
    background: none;
  }
  .service-category.expanded .service-list {
    display: flex;
  }
  .service-category h4 {
    cursor: pointer;
    padding: 1rem;
    margin: 0;
    color: #fff;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* Desktop megamenu styles (always apply) */
.mega-dropdown-content {
  display: none; /* Changed from flex to none - only show when .open class is present */
  position: absolute;
  left: 50%;
  right: auto;
  top: 100%;
  transform: translateX(-50%);
  min-width: 600px;
  width: 800px;
  max-width: 95vw;
  background: rgba(30, 30, 40, 0.92);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 1000;
  padding: 1.2rem 1.5rem;
  gap: 2.5rem;
  justify-content: space-between;
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: dropdownFadeIn 0.25s;
}
.mega-col {
  min-width: 160px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mega-col h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-primary, #fff);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.mega-col a {
  display: block;
  color: var(--text-secondary, #e0e0e0);
  text-decoration: none;
  padding: 0.5rem 0;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mega-col a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

/* Mobile accordion styles (only apply on mobile) */
@media (max-width: 900px) {
  .mega-dropdown-content {
    display: none;
    position: static;
    background: rgba(30,30,40,0.98);
    box-shadow: none;
    border-radius: 0;
    min-width: 100vw;
    max-width: 100vw;
    padding: 0.5rem 0;
    z-index: 10001;
    flex-direction: column;
    gap: 0;
    animation: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .mega-dropdown.open .mega-dropdown-content {
    display: block;
  }
  .service-category {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 0;
  }
  .service-category h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
  }
  .service-list {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1.5rem 0.5rem 2.5rem;
    background: none;
  }
  .service-category.expanded .service-list {
    display: flex;
  }
  .service-list a {
    color: #fff;
    padding: 0.5rem 0;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 6px;
    transition: background 0.2s;
  }
  .service-list a:hover {
    background: rgba(255,255,255,0.08);
  }
  /* Hide desktop .mega-col on mobile */
  .mega-col { display: none !important; }
}

.mobile-logo,
.nav-close {
  display: none;
}

@media (max-width: 900px) {
  .mobile-logo,
  .nav-close {
    display: block;
  }
}

/* Megamenu should only open on click (desktop) */
.mega-dropdown-content {
  display: none;
  /* ...rest of your styles... */
}
.mega-dropdown.open .mega-dropdown-content {
  display: flex;
}


.mega-dropdown-content {
  gap: 3rem;
  padding: 2rem 2.5rem;
}
.mega-dropdown-content > div,
.mega-col {
  padding: 0 1rem;
}
.mega-dropdown-content h4 {
  margin-bottom: 1.2rem;
  font-size: 1.15rem;
}
.mega-dropdown-content .service-list a,
.mega-col a {
  min-width: 120px;
  max-width: 220px;
  width: 100%;
  /* The word-break properties that caused the issue have been removed */
  white-space: normal;
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
  border-radius: 8px;
  transition: background 0.2s;
  display: block;
  text-overflow: unset;
  -webkit-line-clamp: unset;
}
.mega-dropdown-content .service-list a:last-child,
.mega-col a:last-child {
  margin-bottom: 0;
}

.mega-dropdown-content .service-list a:hover,
.mega-col a:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin: 0;
}

.mega-dropdown-content {
  max-width: 95vw;
  min-width: 320px;
  width: 800px;
  box-sizing: border-box;
  overflow-x: auto;
}

@media (max-width: 1100px) {
  .mega-dropdown-content {
    width: 90vw;
    min-width: 0;
    padding: 1.2rem 0.5rem;
    gap: 1.2rem;
  }
}

/* --- Megamenu Responsive Position Fix --- */
.mega-dropdown-content {
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  min-width: 320px !important;
  max-width: 95vw !important;
  width: 800px !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
}

@media (max-width: 1100px) {
  .mega-dropdown-content {
    left: auto !important;
    right: 16px !important;
    transform: none !important;
    width: 95vw !important;
    min-width: 0 !important;
    padding: 1.2rem 0.5rem !important;
    gap: 1.2rem !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 900px) {
  .mega-dropdown-content {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100vw !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    padding: 1rem 0.2rem !important;
    gap: 0.5rem !important;
  }
}

/* --- Megamenu Responsive Position Fix (No Horizontal Scroll, Wider Menu) --- */
.mega-dropdown-content {
  width: auto !important;
  min-width: 320px !important;
  max-width: 1200px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  box-sizing: border-box !important;
  overflow-x: visible !important;
}

@media (max-width: 1300px) {
  .mega-dropdown-content {
    max-width: 98vw !important;
    padding: 1.2rem 0.5rem !important;
    gap: 1.2rem !important;
  }
}

@media (max-width: 900px) {
  .mega-dropdown-content {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    padding: 1rem 0.2rem !important;
    gap: 0.5rem !important;
  }
}

.mega-dropdown-content {
  max-width: 1500px !important;
  width: auto !important;
  min-width: 600px !important;
}


@media (max-width: 1600px) {
  .mega-dropdown-content {
    left: auto !important;
    right: 32px !important;
    transform: none !important;
    max-width: calc(100vw - 64px) !important;
  }
}

.mega-dropdown-content {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  max-width: calc(100vw - 64px) !important;
  min-width: 320px !important;
  width: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .mega-dropdown-content {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    padding: 1rem 0.2rem !important;
    gap: 0.5rem !important;
  }
}

.mega-dropdown-content {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  max-width: calc(100vw - 32px) !important;
  min-width: 220px !important;
  width: auto !important;
  box-sizing: border-box !important;
  gap: 2rem !important;
}


@media (max-width: 1200px) {
  .mega-dropdown-content {
    gap: 1rem !important;
    max-width: calc(100vw - 8px) !important;
  }

}

@media (max-width: 900px) {
  .mega-dropdown-content {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    padding: 1rem 0.2rem !important;
    gap: 0.5rem !important;
  }
}

/* Ensure first section is always below the fixed header */
body > header + section,
body > header + .page-content,
body > header + main,
body > .stars-bg + header + section,
body > .stars-bg + header + .page-content,
body > .stars-bg + header + main {
  padding-top: 80px !important;
}

body.nav-open {
  overflow: hidden !important;
}
/* ======================================================= */
/* === MOBILE NAVIGATION ACCORDION FIX (ADD TO END OF CSS) === */
/* ======================================================= */

@media (max-width: 900px) {
  /*
   * 1. STYLE THE MAIN DROPDOWN CONTAINER ('Services')
   */
  .nav-links .mega-dropdown-content {
    display: none; /* Hide by default */
    position: static !important; /* Forces it into the normal flow (KEY FIX) */
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0.5rem 0 0 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* When the 'Services' link is clicked, its parent 'li' gets the '.open' class. Show the content. */
  .nav-links .mega-dropdown.open > .mega-dropdown-content {
    display: block;
  }

  /*
   * 2. STYLE THE CATEGORIES INSIDE ('Development', 'Writing', etc.)
   */
  .nav-links .service-category {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .nav-links .service-category h4 {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    padding: 1rem 1.5rem;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-tap-highlight-color: transparent; /* Prevents flash on tap */
  }
  .nav-links .service-category h4:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Add a visual indicator for the expandable categories */
  .nav-links .service-category h4::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
  }
  
  .nav-links .service-category.expanded h4::after {
    content: '−'; /* Use a minus sign when expanded */
  }

  /*
   * 3. STYLE THE INNER SERVICE LISTS (the actual links)
   */
  .nav-links .service-list {
    display: none; /* Hide the links by default */
    list-style: none;
    padding: 0.5rem 0 0.5rem 2.5rem; /* Indent the links */
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0;
  }

  /* When a category gets the '.expanded' class, show its list of links */
  .nav-links .service-category.expanded > .service-list {
    display: block;
  }
  
  .nav-links .service-list a {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1rem;
    border-bottom: none !important; /* Remove any desktop underlines */
  }
}
/* ==========================================================================
   FINAL MOBILE NAVIGATION STYLES
   ========================================================================== */

@media (max-width: 900px) {
  /* --- Prevent the main page from scrolling when the menu is open --- */
  body.nav-open {
    overflow: hidden !important;
  }

  /* --- Style the Burger Menu Icon --- */
  .burger {
    display: block !important;
    position: relative;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002; /* Ensure it is above the menu overlay */
    outline: none;
  }

  .burger .line1,
  .burger .line2,
  .burger .line3 {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 3px; /* Slightly thinner lines */
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.77,0,.18,1);
    transform-origin: center;
  }
  .burger .line1 { top: 12px; }
  .burger .line2 { top: 20px; }
  .burger .line3 { top: 28px; }

  /* --- Animate Burger to an "X" when open --- */
  .burger.open .line1 {
    transform: translateY(8px) rotate(45deg);
  }
  .burger.open .line2 {
    opacity: 0;
  }
  .burger.open .line3 {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* --- Remove the old nav-close button entirely --- */
  .nav-close {
      display: none !important;
  }

  /* --- Style the navigation link container (the menu itself) --- */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100%; /* Start the menu off-screen */
    width: 100%;
    height: 100vh !important; /* Make it full height */
    background: rgba(18, 18, 18, 0.98) !important;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align menu items to the top */
    transition: right 0.5s cubic-bezier(.77, 0, .18, 1);
    padding: 6rem 1rem 3rem;
    box-sizing: border-box;
    overflow-y: auto !important; /* THIS IS THE KEY: Allows scrolling WITHIN the menu */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  /* When the menu is active, slide it into view */
  .nav-links.nav-active {
    right: 0;
  }
}

.login-left {
  min-height: 100vh !important;
  height: 100vh !important;
  margin-top: 0 !important;
  padding-top: 64px !important; /* Offset for fixed header */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: none !important;
  backdrop-filter: none !important;
}
.login-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
@media (max-width: 900px) {
  .nav-links li.nav-icons-wrapper { /* Target the new wrapper li */
    display: flex;
    flex-direction: row;
    justify-content: center; /* Center the new .nav-icons div */
    align-items: center;
    width: 100%;
    margin: 1rem 0; /* Adjust vertical margin as needed */
  }

  .nav-icons { /* Style the new wrapper div for the icons */
    display: flex;
    gap: 1rem; /* Space between cart and profile icon */
    align-items: center;
    justify-content: center;
    width: auto;
  }

  /* Ensure the buttons themselves don't have conflicting margins */
  .nav-icons .cart-btn,
  .nav-icons .profile-icon-btn {
    margin: 0 !important;
    padding: 0 !important;
  }
}
/* ======================================================= */
/* === MOBILE ACCORDION - FORCED STYLES === */
/* ======================================================= */
@media (max-width: 900px) {
    .nav-links .service-category h4 {
        background-color: rgba(255, 255, 255, 0.05) !important;
        margin: 4px 0 !important;
        border-radius: 8px !important;
        transition: background-color 0.3s ease, border-radius 0.3s ease !important;
    }

    .nav-links .service-category.expanded h4 {
        background-color: rgba(33, 150, 243, 0.2) !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .nav-links .service-list {
        background-color: rgba(255, 255, 255, 0.03) !important;
        padding: 0.5rem 1rem 1rem 2.5rem !important;
        margin-top: -8px !important;
        border-bottom-left-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
        z-index: -1 !important;
        position: relative !important;
    }

    .nav-links .service-list a {
        color: #d1d1d1 !important;
        padding-top: 0.8rem !important;
        padding-bottom: 0.8rem !important;
        font-weight: 500 !important;
    }

    .nav-links .service-category h4::after {
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    }

    .nav-links .service-category.expanded h4::after {
        transform: rotate(45deg) !important;
    }
    
}

/* --- FIXED MEGA MENU POSITIONING --- */
.mega-dropdown-content {
  display: none; /* Changed from flex to none - only show when .open class is present */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 600px;
  max-width: calc(100vw - 64px); /* Increased margin to prevent edge overflow */
  width: auto;
  background: rgba(30, 30, 40, 0.92);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 1000;
  padding: 1.2rem 1.5rem;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: dropdownFadeIn 0.25s;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .mega-dropdown-content {
    left: auto;
    right: 32px; /* Increased right margin */
    transform: none;
    max-width: calc(100vw - 64px); /* Increased margin */
    min-width: 320px;
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .mega-dropdown-content {
    position: static;
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    border-radius: 0;
    padding: 1rem 0.2rem;
    gap: 0.5rem;
    flex-direction: column;
    background: rgba(30,30,40,0.98);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Cart icon with badge */
.cart-btn {
  position: relative;
}

.cart-btn.has-items::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Add to Cart Button */
.add-to-cart-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-decoration: none;
    text-align: center;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.service-list li {
  position: relative;
}
.service-list a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1em 0.5em;
  box-sizing: border-box;
}

.service-list a, .service-list a * {
  pointer-events: auto !important;
}
li.service-category.expanded {
  pointer-events: none !important;
}
li.service-category.expanded .service-list a {
  pointer-events: auto !important;
}
  li.service-category.expanded * {
    pointer-events: auto !important;
  }
  li.service-category.expanded {
    pointer-events: auto !important;
  }



/* --- Modern Hamburger Icon --- */
.mobile-menu-toggle:hover {
  background: rgba(34,34,34,0.92);
}
.mobile-menu-toggle .bar {
  width: 28px;
  height: 3.5px;
  background: #fff;
  border-radius: 2px;
  margin: 3.5px 0;
  transition: all 0.35s cubic-bezier(.77,0,.18,1);
}
.mobile-menu-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Glassmorphism Overlay --- */


@keyframes slideInMenu {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.menu-icon {
  font-size: 1.3em;
  margin-right: 0.5em;
  opacity: 0.85;
}

#mobile-menu-close {
  background: rgba(34,34,34,0.7);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s, color 0.2s;
}
#mobile-menu-close:hover, #mobile-menu-close:focus {
  background: rgba(60,60,60,0.95);
  color: #ff4081;
  outline: none;
}

.mobile-menu-toggle:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-menu-toggle .bar {
  width: 20px;
  height: 2px;
  background: #333333;
  border-radius: 1px;
  margin: 4px auto;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle.open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Overlay */

/* Mobile Menu Navigation */

/* Close Button */
#mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #666666;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#mobile-menu-close:hover {
  background: #f8f9fa;
  color: #333333;
}

/* Cart and Profile Buttons */

/* Arrow Icons */

/* Mega Dropdown Content */


/* Responsive */

/* --- MODERN HAMBURGER ICON --- */
.burger {
  display: none; /* Hidden on desktop */
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10002; /* Ensure it's above the menu */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.burger .line1,
.burger .line2,
.burger .line3 {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(.77,0,.18,1);
  transform-origin: center;
}

.burger .line1 { top: 12px; }
.burger .line2 { top: 20px; }
.burger .line3 { top: 28px; }

/* --- Animate Burger to an "X" when open --- */
.burger.open .line1 {
  transform: translateY(8px) rotate(45deg);
}
.burger.open .line2 {
  opacity: 0;
}
.burger.open .line3 {
  transform: translateY(-8px) rotate(-45deg);
}


/* --- MODERN MOBILE MENU OVERLAY --- */
@media (max-width: 900px) {
  /* Show the burger on mobile */
  .burger {
    display: block;
  }

  /* Prevent the main page from scrolling when the menu is open */
  body.nav-open {
    overflow: hidden !important;
  }

  /* Style the navigation link container (the menu itself) */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100%; /* Start the menu off-screen */
    width: 100%;
    height: 100vh !important; /* Make it full height */
    /* Glassmorphism Effect */
    background: rgba(18, 18, 18, 0.8) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center; /* Center items vertically */
    transition: right 0.6s cubic-bezier(.77, 0, .18, 1);
    padding: 0;
    box-sizing: border-box;
    overflow-y: auto !important;
  }

  /* When the menu is active, slide it into view */
  .nav-links.nav-active {
    right: 0;
  }

  /* Style the links inside the menu */
  .nav-links li {
    width: 80%;
    margin: 1rem 0;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    animation: navLinkFade 0.5s ease forwards;
  }

  .nav-links.nav-active li {
      /* Stagger the animation of links */
      animation-delay: calc(0.3s + var(--animation-order) * 0.1s);
  }


  .nav-links li a {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem; /* Larger font for better touch interaction */
    color: #f5f5f5;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.3s, color 0.3s;
  }

  .nav-links li a:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
  }

  /* Keyframe animation for link fade-in */
  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0px);
    }
  }
}
/* Page Overlay for Mega Menu (Hostinger Style - Dimmer) */
#page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75); /* Increased from 0.65 to 0.85 for a much dimmer effect */
  z-index: 999; 
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none; 
}

#page-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* --- Multi-Color Moving Aura for Mega Menu (as per screenshot) --- */

.mega-dropdown.open .mega-dropdown-content {
  /* This animation will apply the moving, multi-colored glow */
  animation: moving-multi-color-aura 8s ease-in-out infinite;
  
  /* Ensures the glow follows the menu's rounded shape */
  border-radius: 18px; 
}

@keyframes moving-multi-color-aura {
  0% {
    box-shadow:
      -5px -5px 18px rgba(33, 150, 243, 0.7),   /* Blue at Top-Left */
      5px 5px 18px rgba(233, 30, 99, 0.8);      /* Pink at Bottom-Right */
  }
  25% {
    box-shadow:
      5px -5px 18px rgba(156, 39, 176, 0.8),  /* Purple at Top-Right */
      -5px 5px 18px rgba(33, 150, 243, 0.7);   /* Blue at Bottom-Left */
  }
  50% {
    box-shadow:
      5px 5px 18px rgba(0, 188, 212, 0.7),    /* Teal at Bottom-Right */
      -5px -5px 18px rgba(156, 39, 176, 0.8);  /* Purple at Top-Left */
  }
  75% {
    box-shadow:
      -5px 5px 18px rgba(233, 30, 99, 0.8),     /* Pink at Bottom-Left */
      5px -5px 18px rgba(0, 188, 212, 0.7);    /* Teal at Top-Right */
  }
  100% {
    box-shadow:
      -5px -5px 18px rgba(33, 150, 243, 0.7),   /* Blue at Top-Left */
      5px 5px 18px rgba(233, 30, 99, 0.8);      /* Pink at Bottom-Right */
  }
}
/*
/*
==========================================================================
   FINAL MEGA MENU POSITIONING (Right Aligned)
==========================================================================
*/
@media (min-width: 901px) {
  /* This makes the main NAV the positioning parent */
  nav {
    position: relative !important;
  }

  /* This removes positioning from the 'Services' list item */
  .mega-dropdown {
    position: static !important;
  }

  /* This aligns the menu to the right side of the screen with a safe margin */
  .mega-dropdown-content {
    right: 32px !important; /* Position 32px from the right edge */
    
    /* Reset conflicting properties */
    left: auto !important;
    transform: none !important;
  }
}
