/* ---- RESET & GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #2c3e50;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #00ff66;
}

a:hover {
  opacity: 0.8;
}

/* Utility classes */
.section-subtitle {
  color: #cccccc;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.highlight {
  color: #00ff66; /* bright green accent */
}

/* --- NAVIGATION --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the entire nav */
  background-color: #333b50;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  /* Adjust spacing around the logo + moon as needed */
  margin-right: 2rem;
}

/* "E" text styling */
.logo-letter {
  font-size: 1.2rem;
  font-weight: 700;
  color: #00ff66;
  /* Reduced the negative margin so the letter overlaps the crescent more subtly */
  margin: 0;
}

/* Crescent moon container */
.moon {
  position: relative;
  display: flex;
  margin: 0.5rem;
  justify-content: center;
  align-items: center;
  /* Scaled down from 10rem x 10rem to 4rem x 4rem */
  width: 2.2rem;
  height: 2.2rem;
  background-color: transparent;
  /* Adjusted the inset values to match the new size */
  box-shadow: inset -2px 0.1px 0 0.01px #00ff66;
  border-radius: 50%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
   
}

.nav-links li a {
  text-decoration: none;
  color: #86909f;
  font-size: 0.85rem; /* smaller font size */
  transition: color 0.3s ease;
  font-family: "MyCustomFont";
  font-weight: normal; /* match whatever weight you used in @font-face */
}



.nav-links li a:hover, 
.nav-links li a.active {
  color: #00ff66;
}


@font-face {
  font-family: "MyCustomFont";
  src: url("fonts/Avenir-Light.woff2") format("woff2"),
       url("fonts/Avenir-Light.woff") format("woff");
  font-weight: normal; /* or 300, 700, etc. */
  font-style: normal;
}



/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 80vh;
  /* Make sure the path is correct for your folder structure */
  background: url('../images/hero-bg.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  /* Transparent overlay (same opacity everywhere) */
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(14, 23, 38, 0.7);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1; /* above overlay */
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1rem;
  color: #cccccc;
}

/* --- CHATBOT ICON & WINDOW --- */
.chatbot-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px; /* Ensure a square so the circle is perfect */
  cursor: pointer;
  z-index: 9999;
  border-radius: 50%; /* Make it round */
  overflow: hidden; /* Crop the image in a circle */
  border: 2px solid #00ff66;
  animation: pulse-glow 2.5s infinite;
}

.chatbot-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Chatbot window with rounded corners */
.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 300px;
  max-height: 400px;
  background-color: #333b50; /* same as header background */
  border: 1px solid #00ff66;
  border-radius: 10px;
  display: none; /* hidden by default */
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: height 0.3s ease;
  color: #f5f5f5;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.2);
  backdrop-filter: blur(5px);
}

.chatbot-header {
  background-color: #00ff66;
  color: #000;
  padding: 0.5rem;
  text-align: center;
  font-weight: 600;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.chatbot-messages {
  
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.8rem;
  background-color: #2a3345;
  scroll-behavior: smooth;
}

.bot-message {
  background-color: #2c3e50; /* dark teal-gray */
  color: #00ff66;
  padding: 0.6rem 0.8rem;
  border-radius: 8px 8px 8px 2px;
  align-self: flex-start;
  max-width: 80%;
  margin-bottom: 0.6rem;
}

.user-message {
  background-color: #1f2833;
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 8px 8px 2px 8px;
  align-self: flex-end;
  max-width: 80%;
  margin-bottom: 0.6rem;
  text-align: right;
}

/* Chatbot input area */
.chatbot-input {
  display: flex;
  border-top: 1px solid #00ff66;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
}

.chatbot-input input {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-bottom-left-radius: 10px;
  outline: none;
  background-color: #2c2c2c;
  color: #fff;
}

.chatbot-input button {
  background-color: #00ff66;
  color: #000;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  border-bottom-right-radius: 10px;
  font-size: 0.85rem;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 255, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 102, 0);
  }
}

.chatbot-label {
  position: fixed;
  bottom: 95px;
  right: 90px;
  background-color: #00ff66;
  color: #000;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  z-index: 9999;
  animation: fadeInUp 1s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.chatbot-minimize {
  background: none;
  border: none;
  color: #000;
  font-size: 1.2rem;
  font-weight: bold;
  position: absolute;
  right: 10px;
  top: 4px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.chatbot-minimize:hover {
  color: #333;
}

.typing-dots {
  display: inline-block;
  width: 2rem;
  text-align: left;
}

.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 1px;
  background-color: #00ff66;
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =================================== */
/* Transition Section Styling (OVERLAPPING) */
/* =================================== */

.transition-section1 {
  position: absolute;   /* Position it relative to the nearest positioned ancestor (likely body) */
  top: 100vh;           /* Place its top edge at the bottom of the first screen height (assuming #home is ~100vh) */
  left: 50%;            /* Center horizontally */
  width: 100%;          /* Make the container full width */
  transform: translate(-50%, -50%); /* Move left by half its width, and UP by half its own height */
  z-index: 10;          /* Ensure it sits on top of other page elements */
  padding: 0 20px;      /* Add horizontal padding if needed */
  box-sizing: border-box;
  /* Background color/image/height are removed - positioning is key */
}

/* The Overlay Content Box */
/* Add specificity just in case, but it might not be needed if .content-box is unique */
.transition-section1 .content-box {
  background-color: rgba(45, 51, 61, 0.9); /* Semi-transparent background */
  padding: 50px 40px;                     /* Inner spacing */
  max-width: 600px;                       /* Max width of the box */
  width: 100%;                            /* Responsive width */
  text-align: center;
  color: #f0f0f0;
  border-radius: 5px;                     /* Optional rounded corners */
  margin: 0 auto;                         /* Center the box within the absolute section */
  position: relative;                     /* For potential inner absolute elements */
  z-index: 1;                             /* Stacking context */
}


.transition-section {
  position: relative;
  z-index: 10;
  margin-top: -150px; /* pulls it up to overlap bottom of #home */
  margin-bottom: -150px; /* pushes into top of #professional */
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px; /* how tall you want it to be */
}

.transition-section .content-box {
  /*background-color: rgba(255, 255, 255, 0.05);*/
  background-color: rgba(59, 69, 84, 0.9); /* Semi-transparent background */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  max-width: 800px;
  color: white;
}

/* Styling the content inside the box (ensure specificity) */
.transition-section .logo {
  color: #2ecc71;
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 25px;
  line-height: 1;
}

.transition-section .content-box p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  line-height: 1.7;
  color: #bdc3c7;
  margin-bottom: 35px;
}

.transition-section .resume-button {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #2ecc71;
  color: #2ecc71;
  background-color: transparent;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.transition-section .resume-button:hover,
.transition-section .resume-button:focus {
  background-color: #2ecc71;
  color: #2d333d;
  outline: none;
}

/* =================================== */
/* End Transition Section Styling      */
/* =================================== */

/* --- Start of  PROFESSIONAL SECTION styles --- */
/* --- CLEANED CSS FOR #professional SECTION --- */

#professional {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  z-index: 1;
}

#professional .bg {
  position: absolute;
  top: -150px;
  height: calc(100% + 150px);
  width: 100%;
  background-image: url('../images/professional-bg.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
  will-change: transform;
}

#professional .content {
  position: relative;
  margin-top: 100px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 30px;
  text-align: center;
  color: white;
  box-sizing: border-box;
  background-color: transparent;
}

#professional .content::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 0;
  width: 100%;
  height: calc(100% + 150px);
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* --- End of PROFESSIONAL SECTION styles --- */
/* --- Inside your PROFESSIONAL SECTION styles --- */


/* Container for all skills */
.skills-container {
  max-width: 600px;
  width: 90%; /* Ensure it doesn't get too wide */
  margin: 2rem auto 0;
  text-align: left;
  padding: 0 10px; /* Add some horizontal padding */
}

/* Individual skill row */
.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem; /* Slightly more space */
  gap: 1rem; /* Space between label and bar */
}

.skill-label {
  width: 110px; /* Slightly wider if needed */
  flex-shrink: 0; /* Prevent label from shrinking */
  font-weight: 600;
  font-size: 0.9rem;
  color: #cccccc; /* Lighter color for better contrast maybe */
  text-align: right; /* Align text to the right, towards the bar */
  padding-right: 0.5rem; /* Space between text and bar start */
}

/* The background track of the skill bar */
.skill-bar {
  /*flex-grow: 1; /* Allow bar to take remaining space */
  width: 400px;
  background-color: #4a4a4a; /* Darker grey for the track */
  height: 12px; /* Slightly thicker bar */
  border-radius: 6px; /* Rounded corners */
  position: relative; /* Needed for absolute positioning if used, or just overflow */
  overflow: hidden; /* IMPORTANT: Keeps the percentage bar contained */
}

/* The colored fill part of the bar */
.skill-percentage {
  background-color: #00ff66; /* Your highlight green color */
  height: 100%; /* Fill the height of .skill-bar */
  border-radius: 6px; /* Match parent's rounding */
  width: 0%; /* <<< START AT 0% WIDTH FOR ANIMATION */
  display: block; /* Ensure it behaves like a block */
  /* Optional: Add a very subtle transition for browsers without JS */
  /*transition: width 0.5s ease-out;*/
}

/* --- PORTFOLIO SECTION --- */
#portfolio {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  z-index: 2;
}

#portfolio .content {
  min-height: 100vh; /* ✅ Force section to take full screen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /*align-items: center;*/
  z-index: 1;
  position: relative;
}

.portfolio-section {
  background-color: #0e1726;
  text-align: center;
  padding: 3rem 2rem;
}

.portfolio-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.portfolio-item {
  background-color: #1f1f1f;
  border-radius: 4px;
  overflow: hidden;
  width: 280px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.02);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-title {
  padding: 1rem;
  color: #00ff66;
  font-weight: 600;
}

/* --- PROJECT MODAL OVERLAY --- */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.project-modal-content {
  position: relative;
  background-color: #1f1f1f;
  border-radius: 6px;
  padding: 2rem;
  width: 80%;
  max-width: 800px;
  text-align: center;
  color: #fff;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #00ff66;
  color: #000;
  border: none;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-radius: 4px;
}

.project-slide {
  display: none; /* only show the active one */
  margin-bottom: 2rem;
}

.project-slide img {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 1rem 0;
  border-radius: 4px;
}

.project-slide.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.project-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.project-nav button {
  background-color: #00ff66;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
}

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

/* --- EXPERIENCE SECTION --- */

#experience {
  position: relative;
  z-index: 1;
}

#experience.parallax-container {
  height: auto;                /* Allow content height */
  min-height: 130vh;           /* Force a longer section for 5 items */
  overflow: visible;           /* Allow full content visibility */
}

.experience-section {
  background-color: #0e1726;
  padding: 3rem 2rem;
  text-align: center;
}

.experience-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.experience-timeline {
  position: relative;
  padding: 4rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
  overflow: visible;
}

/* --- EXISTING STYLES ABOVE --- */

/* --- EXPERIENCE TIMELINE FIXED DOT PLACEMENT --- */
.timeline-wrapper {
  position: relative;
  margin-top: 3rem;
  padding: 2rem 0;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #00ff66;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
  position: relative;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
  position: relative;
}

/* Place dot absolutely inside the wrapper, not inside the item */
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: #00ff66;
  border-radius: 50%;
  z-index: 3;
  border: 3px solid #1f1f1f;
}

.timeline-item.left .timeline-dot,
.timeline-item.right .timeline-dot {
  left: 50%; /* fixed dot placement on center line */
  transform: none;
}

.timeline-content {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 6px;
  color: #fff;
  position: relative;
  font-size: 0.65rem;
  z-index: 2;
}

.timeline-date {
  color: #00ff66;
  margin-bottom: 0.3rem;
}

.timeline-company {
  font-size: 1rem;             /* Smaller font */
  font-weight: bold;
  color: #00ff66;  
}

.timeline-role {
  font-size: 0.75rem;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    left: 0 !important;
    text-align: left;
    padding-left: 3rem;
  }

  .timeline-wrapper::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
    transform: none;
  }
}

/* --- BLOG SECTION --- */
.blog-section {
  background-color: #2c3e50;
  padding: 3rem 2rem;
  text-align: center;
}

.blog-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

.blog-card {
  background-color: #1f1f1f;
  border-radius: 4px;
  width: 300px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: scale(1.02);
}

.blog-card img {
  width: 100%;
  height: auto;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 1rem;
}

.blog-date {
  font-size: 0.8rem;
  color: #00ff66;
  margin: 0 1rem;
}

.blog-excerpt {
  margin: 0.5rem 1rem;
  color: #ccc;
}

.blog-card a {
  display: inline-block;
  margin: 1rem;
  background-color: #00ff66;
  color: #000;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
}

/* --- CONTACT SECTION --- */

.contact-section {
  background-color: #c5cddb;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.contact-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #2d364a;
  max-width: 900px;
  width: 100%;
  padding: 50px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;

}

.contact-info {
  width: 45%;
  color: #fff;
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #ddd;
}

.contact-email {
  font-size: 14px;
}

.social-icons a {
  color: #ffffff;
  font-size: 20px;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00ff66;
}

.contact-form {
  width: 60%;
  max-width: 90%;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.name-row {
  flex-direction: row;
  gap: 15px;
}

.name-row input {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: none;
  border-radius: 3px;
  background-color: #fff;
  font-size: 14px;
  
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #999;
  letter-spacing: 0.5px;
  opacity: 1; /* For Firefox */
}

.contact-form input::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder {
  font-family: 'Montserrat', sans-serif;
}

.contact-form input:-ms-input-placeholder,
.contact-form textarea:-ms-input-placeholder {
  font-family: 'Montserrat', sans-serif;
}

.contact-form input::-ms-input-placeholder,
.contact-form textarea::-ms-input-placeholder {
  font-family: 'Montserrat', sans-serif;
}


.contact-form textarea {
  height: 100px;
  resize: vertical;
}

.contact-form button {
  background: linear-gradient(135deg, #00c9a7, #4bffa5);
  color: #1f1f1f;
  border: none;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;  /* <-- explicitly set */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 201, 167, 0.3);
}

.contact-form button:hover {
  background: linear-gradient(135deg, #4bffa5, #00c9a7);
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 201, 167, 0.4);
}


@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    padding: 30px;
  }

  .contact-info, .contact-form {
    width: 100%;
    margin-bottom: 20px;
  }

  .name-row {
    flex: 1 1 0;  /* Allow equal shrinking/growing */
    min-width: 0; /* Important to prevent overflow */
  }
}



/* --- FOOTER --- */
.footer {
  background-color: #1f1f1f;
  text-align: center;
  padding: 1rem;
  color: #cccccc;
  font-size: 0.9rem;
}

.parallax-container {
  display: block; 
  position: relative;
  min-height: 100vh;
  overflow: visible;
}

.parallax-container .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  z-index: 0;
  background-repeat: no-repeat;
}

.parallax-container .content {
  position: relative;
  z-index: 2;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  padding: 60px 30px;
  box-sizing: border-box;
  text-align: center;
  background-color: rgba(0,0,0,0.3);
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
  .parallax-container {
    height: auto; /* Let height be driven by content */
  }
  .parallax-container .bg {
    /* Keeps the background proportionally filled */
    display: none /* ensure it appears */
  }
  .parallax-container .content {
    position: static;
    height: auto;
    background-color: #f0f0f0;
    color: #333;
    text-shadow: none;
  }
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #1f1f1f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  padding: 0.5rem 0;
  list-style: none;
  top: 100%;
  left: 0;
  z-index: 999;
  min-width: 160px;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.85rem;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a:hover {
  background-color: #00ff66;
  color: #000;
}
.bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0; /* <-- BACKGROUND should stay at the lowest layer */
}

.footer {
  background-color: #333b50;
  color: #f0f0f0;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid #00ff66;
}

.footer a {
  color: #00ff66;
  text-decoration: none;
}

.footer a:hover {
  opacity: 0.8;
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #00ff66;
  color: #000;
  width: 48px;
  height: 48px;
  border-radius: 50%; /* Perfectly round */
  text-align: center;
  font-size: 1.2rem;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  pointer-events: none; /* Prevent click when hidden */
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.show {
  opacity: 0.85;
  pointer-events: auto;
}

#back-to-top:hover {
  transform: rotate(360deg);
  opacity: 1;
}
/* --- Global Responsive Adjustments --- */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Ensuring images and videos scale */
img, video {
  max-width: 100%;
  height: auto;
}

/* Responsive adjustments for chatbot window */
@media (max-width: 600px) {
  .chatbot-window {
    width: 90%;
    right: 5%;
    bottom: 80px;
  }

  .chatbot-icon {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .chatbot-label {
    bottom: 70px;
    right: 70px;
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}

/* Additional responsive navigation adjustments */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 0.5rem 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Portfolio grid responsiveness */
@media (max-width: 768px) {
  .portfolio-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .portfolio-item {
    width: 90%;
    margin: 0 auto;
  }
}

#contact {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: url('../images/contact_bg_copy.png') center center / cover no-repeat fixed;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
 background: linear-gradient(
    to bottom right,
    rgba(44, 62, 80, 0.8),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 0;
}

.contact-container {
  position: relative;
  z-index: 2;
}
