/* Root variables for colors and fonts */
:root {
  --purple: #bf00ff;           /* electric purple accent */
  --bg-dark: #121212;          /* primary dark background */
  --text-light: #eeeeee;       /* main light text color */
  --text-muted: #bbbbbb;       /* secondary text (muted) */
  --bg-secondary: #1f1f1f;     /* slightly lighter dark (for cards/sections) */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;  /* smooth scrolling for anchor links */
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* Basic element resets */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--purple);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);  /* semi-transparent dark background */
  backdrop-filter: blur(5px);       /* subtle blur effect (if supported) */
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}
nav .logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--purple);
}
/* Nav links list */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.nav-links li {
  margin: 0 0.5rem;
}
.nav-links a {
  padding: 0.25rem 0.5rem;
  font-weight: 500;
}
/* Highlight current page link if needed (optional)
.nav-links a.active {
  border-bottom: 2px solid var(--purple);
}
*/

/* Hamburger menu button (hidden by default, shown on mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background: var(--text-light);
}

/* HERO / Header Section */
header#home {
  padding: 8rem 1.5rem 6rem;  /* extra top padding to compensate for fixed nav */
  text-align: center;
  background: var(--bg-dark);
  background-image: radial-gradient(at 50% 0%, rgba(191,0,255,0.2), transparent), 
                    radial-gradient(at 100% 100%, rgba(191,0,255,0.05), transparent);
  /* The above adds a faint glowing purple effect in corners for interest */
}
header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
header .tagline {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
header .availability {
  color: var(--purple);
  font-weight: bold;
}
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
.cta-button:hover {
  background: #a300cc; /* darken purple on hover */
}

/* ABOUT Section */
section#about {
  padding: 4rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
#about h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;  /* allow items to wrap on smaller screens */
}
.about-text {
  flex: 1 1 500px;
  /* ensures the about-text takes at least 500px or full width on smaller */
}
.about-text p {
  font-size: 1rem;
  margin-bottom: 1.2em;
}
.about-text p:first-child {
  font-size: 1.1rem;
}

.about-image img {
  max-width: 250px;
  width: 100%;
  border-radius: 8px;
  /* Optionally add a border or shadow to the image */
   border: 2px solid var(--purple); 
   box-shadow: 0 0 10px rgba(0,0,0,0.5); 
}

.about-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 60%;
}

.about-image {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
}


@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text, .about-image {
    flex: 1 1 100%;
  }

  .about-image img {
    max-width: 75%;
  }
}


/* SERVICES Section */
section#services {
  padding: 4rem 1.5rem;
}
#services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.services-list {
  display: grid;
  gap: 2rem;
  /* Auto-fit into columns, min 250px each, to adjust for responsiveness */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.service {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.service-icon i {
  color: var(--purple);
}
.service h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.service p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* PROJECTS Section */
section#projects {
  padding: 4rem 1.5rem;
  background: var(--bg-secondary);
}
#projects h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.projects-list {
  max-width: 1000px;
  margin: 0 auto;
}
.project {
  margin-bottom: 3rem;
}
.project h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  color: var(--purple);
}
.project-description {
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.project-demo {
  background: #222;
  border: 1px dashed #555;
  padding: 2rem;
  text-align: center;
  color: #555;
  margin-bottom: 0.5rem;
}
.project-demo:before {
  content: "Demo coming soon";
  color: #555;
}
.project-links a {
  font-size: 0.95rem;
}
.project-links a:hover {
  text-decoration: underline;
}


/* CONTACT Section */
section#contact {
  padding: 4rem 1.5rem;
}

#contact h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

#contact p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1rem;
  color: var(--text-light);
}

/* CONTACT Section — layout and alignment */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: flex-start;
}

/* Form container */
.contact-form {
  flex: 1 1 300px;
  max-width: 500px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #8000ff;
  box-shadow: 0 0 0 2px rgba(128, 0, 255, 0.2);
}

.submit-button {
  background-color: #8000ff;
  color: white;
  font-weight: bold;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.submit-button:hover {
  backg
}

.site-logo {
  height: 40px;        /* This is your friend. Adjust to taste. */
  width: auto;         /* Keeps the aspect ratio clean. */
  display: block;
  object-fit: contain;
}

.background-logo {
  position: absolute;
  top: 50%;
  margin-top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 80vh; /* Play with size if needed */
  width: auto;
  opacity: 0.07; /* Keeps it dreamy and in the background */
  z-index: 0; /* Ensure it's behind other stuff */
  pointer-events: none; /* Prevent it from hijacking clicks */
}



/* FOOTER */
footer {
  text-align: center;
  padding: 1rem 1.5rem;
  background: #000;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}
footer p {
  margin: 0;
}

/* Responsive Design Tweaks */
/* On smaller screens, adjust typography and layout */
@media (max-width: 600px) {
  header#home {
    padding: 6rem 1rem 4rem;
  }
  header h1 {
    font-size: 2.2rem;
  }
  header .tagline {
    font-size: 1rem;
  }
  .about-content {
    flex-direction: column;
  }
  .about-text, .about-image {
    flex: 1 1 auto;
    text-align: center;
  }
  .about-text {
    margin-bottom: 2rem;
  }
  .services-list {
    grid-template-columns: 1fr; /* stack services */
  }
  .project-demo {
    padding: 1.5rem;
  }
}

/* Responsive Navigation (Hamburger menu on small screens) */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
    display: none; /* hidden by default on mobile */
  }
  .nav-links li {
    margin: 0.5rem 0;
  }
  nav.open .nav-links {
    display: flex; /* show menu when nav has 'open' class */
  }
}
