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

/* Ensure body/html take full height */
html, body {
    width: 100%;
    height: 100%;
    font-family: sans-serif;

  }

/* General overflow fix */
body {
    font-family: 'open sans', sans-serif;
    color: #5f33d9;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    width: 100%;
    background-color: #111;
}


/* Hero Section */
  .hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1em;
    text-align: center;
    z-index: -1;
} 

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
} 

/* Header */
header {
    position: fixed;
    top: 0;
    left: 85px;  /* Match the sidebar width */
    width: calc(100% - 85px);  /* Subtract sidebar width from total width */
    padding: 1em;
    background: rgba(0, 0, 0, 0.767);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.logo h1 a {
    font-family: "Fleur De Leah", cursive;
    font-weight: 400;
    font-size: 1.5em;
    margin: 0;
    color: #e8b510;
    text-decoration: none;
}




.logo h1 a:hover {
    text-decoration: underline;
    color: #eede29;
    font-weight: 900;
}

/* Navigation */
nav ul {
    list-style: none;
    /* margin: 0; */
    /* padding: 0; */
    display: flex;
    /* By default, links are in a row */
    flex-direction: row;
    /* Ensures horizontal alignment */
    gap: 1em;
}

nav ul li a {
    color: #11891d;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    padding: 0.5em;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Hamburger button */
.hamburger {

    display: none;
    /* Hidden on larger screens */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 5;
    /*Keep above nav*/
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: 0.3s;
}

.header-faded {
    pointer-events: none; /* Disable pointer events when header is faded */
}

/* Responsive settings */
@media (max-width: 820px) {

    header {
        left: 0;  /* Reset to full width on mobile */
        width: 100%;  /* Reset to full width on mobile */
    }

    .curve-text {
        bottom: 40%;
        /* Adjust position of text for smaller screens */
        left: 50%;
        /* Center horizontally */
        transform: translateX(-50%);
        text-align: center;
        font-size: 1rem;
    }

    /* Hide nav links and show hamburger at small screens */
    nav {
        position: absolute;
        top: 0px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    /* Hide nav by default */
    nav ul {
        flex-direction: column;
        gap: 0.5em;
        padding: 4em;
        margin: 1em;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* When nav is shown (.show class added), slide it down */
    nav.show {
        transform: translateY(0);
    }

    /* Transform hamburger into X when nav is open */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
}

/* Fade header on scroll */
header {
    transition: opacity 0.3s ease;
}

/* Fixed background container */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}


.heading-container {
    position: fixed;
    left: 4em;
    text-align: left;
    z-index: -1;
}

.typewriter-heading {
    position: fixed;
    left: 4.8em;
    top: 3.5em;
    color: #ffffff;
    font-size: 2.5em;
    border: none;
    /* background-color: #0f4f0298; */
    /* box-shadow: 10px 5px 5px rgba(105, 103, 103, 0.687); */
    padding: 0.3em;
    border-radius: 6px;
    animation: blink-cursor 0.7s steps(1) infinite;
    text-align: center;
}

.page-title {
    width: 100%;
    position: fixed;
    text-align: center;
    top: 3.5em;
    color: #d3ff96;
    font-size: 3.5em;
    border: none;
    padding: 0.3em;
    z-index: -1;
}



#tab {
    position: fixed;
    top: 2.5em;
    color: #000000;
    font-size: 4em;
    border: none;
    background-color: #0f4f0298;
    box-shadow: 10px 5px 5px rgba(105, 103, 103, 0.687);
    padding: 0.3em;
    border-radius: 6px;
    z-index: -1;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* opacity: 0.8; */
}

.bg-image.show {
    opacity: 1;
    /* Keep the image fully visible */
    /* filter: brightness(85%); */
}

.dark-container {
    background-color: #111;
}

.dark-divider {
    display: none;
}

/* Only visible in dark mode */
body.dark-mode .dark-divider {
    display: block;
    width: 70%;          /* Not full width, e.g., 40% of the container */
    margin: 0 auto;    /* Centers horizontally, with 2em vertical space */
    color: #111;
    border: none;        /* Remove default <hr> styling */
    height: 1px;         /* Make it a thin line */
    background-color: #4e4e4e; /* Pick a color that stands out in dark mode */
  }

#section3 {
    padding: 10em 0;
    position: relative;
    z-index: 1;
   background-color: #aebbb0;
  
 }

 .row {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 auto;
    /* no 'gap' if you want your border to be continuous */
  }
  
  .column {
    box-sizing: border-box;
    flex: 1 0 33.333%; /* 3 columns on large screens */
    min-width: 250px;
    padding: 35px;
    font-family: 'Roboto', sans-serif;
    font-size: 19px;
    color: #000;
    /* Put the right border on every column by default */
    border-right: 1px solid #ffffff;
  }
  
  /* Remove the right border from every 3rd column 
     (i.e. the last one in each row of 3) on large screens */
  .column:nth-child(3n) {
    border-right: none;
  }
  
  body.dark-mode #section3  h1{
    color: #beffb7;
 }
 body.dark-mode .column{
    color: #ffffff;
 }

 #section3 h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #11891d;
    font-size: 1.5em;
 }
  /* 
    MEDIUM SCREENS (e.g., 900px):
    => 2 columns per row 
    => remove border on every 2nd column
  */
  @media (max-width: 900px) {
    .column {
      flex: 1 0 50%; /* 2 columns now */
      border-right: 1px solid #ffffff;
    }
    /* Remove right border on every 2nd item */
    .column:nth-child(2n) {
      border-right: none;
    }
  }
  
  /* 
    SMALL SCREENS (e.g., 600px):
    => 1 column 
    => remove all borders
  */
  @media (max-width: 600px) {
    .column {
      flex: 1 0 100%; /* single column */
      border-right: none; /* remove line entirely */
    }
}

/* Section container */
#icon-parallax {
    position: relative;
    width: 100%;
    padding: 4em 0;          /* Some vertical spacing */
    background: #aebbb0;     /* Light background so icons stand out */
  }

  body.dark-mode #icon-parallax {
    background: #111;  
  }
  
  /* Icon Row */
  .icon-row {
    display: flex;
    justify-content: space-around; /* Spread them out horizontally */
    align-items: center;
    max-width: 1200px;            /* Optional: to limit row width */
    margin: 110px auto;               /* Center the row container */
  }
  
  /* Icons themselves */
  .icon-row i {
    font-size: 4rem;   /* Adjust size */
    color: #292929;       /* Default icon color */
    transition: transform 0.1s ease; 
    text-align: center;
    /* small transition for smoothness, but not too slow */
  }

  body.dark-mode #icon1 {
    color: #5eeb0c;
  } 

  body.dark-mode #icon2 {
    color: #eb0c0c;
  } 

  body.dark-mode #icon3 {
    color: #ebbb0c;
  } 

  .icon-row i p{
    font-size: 0.9rem;   /* Adjust size */
    font-family: cursive;
    color: #004205;       /* Default icon color */
    transition: transform 0.2s ease; 
    padding: 1rem;
  }

  body.dark-mode .icon-row i p{
    color: #a5beff; 
  }
  
  /* Responsive adjustments (optional) */
  @media (max-width: 600px) {
    .icon-row i {
      font-size: 2.5rem;  /* Slightly smaller icons on small screens */
    }
}

/* Portfolio Section Container */
#portfolio {
    max-width: auto;          /* Adjust the max-width or remove if you want full width */
    margin: 0 auto;
    text-align: center;
    background-color: #aebbb0; 
    padding: 10em 1em;     /* Example background color */
  }

  body.dark-mode #portfolio {
    background-color: #111; 
  }
  
  @media (max-width: 1030px) {
    #portfolio {
      padding: 4em 1em;           /* Spacing around the section */
    }
  }
  #portfolio h2 {
    margin-bottom: 2em;
    font-size: 5em;
    color: #ca2929;              /* Adjust text color as needed */
  }

  .gradient-text {
    /* Apply a gradient background */
    background: linear-gradient(to right, #2f32ff, #dd2476);
  
    /* Clip the background to the text shape */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  
    /* For some non-WebKit browsers (less supported, but good to include) */
    background-clip: text;
  }

  .gradient-text:hover {
    /* Apply a gradient background */
    background: linear-gradient(to right, #ef2121, #02a93a);
  
    /* Clip the background to the text shape */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  
    /* For some non-WebKit browsers (less supported, but good to include) */
    background-clip: text;
  }
  
  /* Flex container to display items side by side */
  .portfolio-flex {
    display: flex;
    flex-wrap: wrap;             /* Allows items to wrap on smaller screens */
    gap: 6em;                    /* Spacing between items */
    justify-content: center;     /* Centers items horizontally */
  }
  
  /* Wrap each portfolio image in a container so it can overflow without pushing other elements */

 .portfolio-item {
    flex: 1 1 400px;             
    max-width: 400px;          
    box-sizing: border-box;
  }
  
  /* Base image style */
  .portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease; /* Smooth zoom transition */
  }
  
  /* Zoom on hover without reflow */
  .portfolio-item img:hover {
    transform: scale(1.07); /* Slight zoom: adjust to taste (e.g., 1.05, 1.2) */
  }
  
  /* Text under the image */
  .portfolio-item p {
    margin-top: 0.5em;
    font-weight: 600;
    font-size: 1.1em;
    /* You can center or left-align if desired */
  }
  
  .portfolio-item p a {
    color: #000000;              /* Link color */
    text-decoration: none;
  }  

  body.dark-mode .portfolio-item p a {
    color: #ebc60e;         
    text-decoration: none;
  } 
  
  .portfolio-item p a:hover {
    text-decoration: underline;
  }
  
  /* Responsive tweak (optional) */
  @media (max-width: 600px) {
    .portfolio-flex {
      gap: 1em;
    }
    .portfolio-item {
      max-width: 100%;           /* Let items be full width on very small screens */
    }
  }

.image-text-section {
  display: flex;
  align-items: center; /* Vertically center content */
  justify-content: space-between; /* Distribute space between image and text */
  max-width: 100%;
  margin: 0 auto;
  padding: 4em 1em; /* Reduce padding for better mobile responsiveness */
  background-color: #000000; /* Optional background color */
}

.image-container {
  position: relative;
  width: 40%;
  margin: 0 auto;
  overflow: hidden;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
   padding:3em;
  transition: opacity 0.3s ease;
}

.default-img {
  opacity: 1;
  z-index: 1;
}

.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.image-container:hover .default-img {
  opacity: 0;
}

.image-container:hover .hover-img {
  opacity: 1;
}

.text-container {
  text-align: center;
  padding: 8em;
  flex: 1;
  color: #ffffff;
}

.text-container h2 {
  font-size: 3em;
  color: #1d8603;
}

.text-container p {
  text-align: left;
  font-size: 1.5em;
  color: #9c97ff;
}

@media (max-width: 920px) {
  .image-text-section {
    flex-direction: column; /* Stack image above text */
    padding: 1em;
  }

  .image-container {
    width: 100%; /* Full width for small screens */
    margin: 0 auto;
  }
  
  .image-container img {
  display: block;
  width: 100%;
  height: auto;
   padding:5em;
  transition: opacity 0.3s ease;
}

  .text-container {
    margin: 1em 0 0 0; /* Add margin between image and text */
  }
}

@media (max-width: 580px) {
  .image-text-section {
    text-align: center; /* Center all content */
    flex-direction: column; /* Ensure stacked layout */
    align-items: center; /* Center items horizontally */
    padding: 1em;
  }

  .image-container {
    width: 90%; /* Slightly smaller than full width for spacing */
    margin: 0 auto;
  }
  
  .image-container img {
  display: block;
  width: 100%;
  height: auto;
   padding:3em;
  transition: opacity 0.3s ease;
}

  .default-img,
  .hover-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Ensure no cropping */
  }

  .text-container {
    margin-top: 1em;
    text-align: center;
    padding: 0 1em;
    width:100%;
  }

  .text-container h2 {
    font-size: 1.5em; /* Smaller heading for small screens */
  }

  .text-container p {
    font-size: 1em;
  }
}

.containercontact {
    background-color: #111;
    align-items: center;
  }

 .contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5em;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  body.dark-mode .contact-section {
    background-color: #111;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .contact-section h2 {
    text-align: center;
    margin-bottom: 1em;
    font-size: 1.8em;
    color: #333;
  }

  body.dark-mode .contact-section h2 {
    color: #ffffff;
  }
  
  #contactForm {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }
  
  /* Row container for side-by-side fields */
  .form-row {
    display: flex;
    gap: 1em; /* Space between columns */
  }
  
  /* General form group styling */
  .form-group {
    display: flex;
    flex-direction: column;
    flex: 1; /* Ensures each group shares available space */
  }
  
  /* Labels and inputs */
  .form-group label {
    font-weight: 600;
    margin-bottom: 0.3em;
    color: #333;
  }

  .form-group select{
    font-size: 17px;
   padding: 0.5em; 
  }

  body.dark-mode .form-group label {
    color: #ffffff;
  }
  .form-group label span {
    color: red; /* Required field indicator */
  }
  .form-group input,
  .form-group textarea {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
    resize: vertical;
  }
  
 body.dark-mode .form-group input,
  body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  border: 1px solid #afafaf;
  background-color: #afafaf;
}
  
  /* Submit button */
  button[type="submit"] {
    align-self: flex-start;
    padding: 0.6em 1.2em;
    background-color: #11891d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: background-color 0.3s;
  }
  button[type="submit"]:hover {
    background-color: #0e6817;
  }
  
  /* Mobile: stack First/Last name vertically */
  @media (max-width: 600px) {
    .form-row {
      flex-direction: column;
    }
  }


/* Curve styling */
.curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 20;
    color: #aebbb0;
}

.curve svg {
    display: block;
    width: 100%;
    height: auto;
    transform: scaleY(0.7); /* 1.2 = 20% taller wave */
    transform-origin: bottom; /* Ensures scaling “anchors” from the bottom */
  }

/* Add these new badge styles */
.badges {
    position: absolute;
    bottom: 7%;
    left: 15%;
    width: 200px;
    height: 200px;
    background: #552F87;
    border-radius: 100%;
    color: #FFF;
    line-height: 25px;
    text-align: center;
    text-transform: uppercase;
    font-family: "Open Sans", sans-serif;
    z-index: 9998;
    animation: swing 3s ease-in-out infinite;
    transform-origin: center;
}

.firstLine {
    font-size: 20px;
    font-weight: 300;
    padding-top: 50px;
}

.secondLine {
    font-size: 32px;
    line-height: 32px;
    font-weight: 600;
}

.thirdLine {
    font-size: 22px;
    line-height: 28px;
    font-weight: 300;
}

.fourthLine {
    font-size: 10px;
    font-weight: 300;
    position: relative;
    top: -10px;
}

.badges:before {
    content: '';
    position: absolute;
    top: 90px;
    left: 90px;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    box-shadow: 0px -100px #552F87,20px -98px #552F87,39px -94px #552F87,56px -85px #552F87,71px -72px #552F87,
                83px -57px #552F87,93px -40px #552F87,98px -20px #552F87,100px 0px #552F87,
                -20px -98px #552F87,-39px -94px #552F87,-71px -72px #552F87,
                -56px -85px #552F87,-83px -57px #552F87,-93px -40px #552F87,-98px -20px #552F87,-100px 0px #552F87,
                0px 100px #552F87,-20px 98px #552F87,-39px 94px #552F87,-56px 85px #552F87,
                -71px 72px #552F87,-83px 57px #552F87,-93px -40px #552F87,-98px 20px #552F87,-93px 40px #552F87,
                20px 98px #552F87,39px 94px #552F87,56px 85px #552F87,
                71px 72px #552F87,83px 57px #552F87,93px 40px #552F87,98px 20px #552F87;
}

.badges .spikes {
    display: none;
}

@keyframes swing {
    0% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

/* Add responsive styles for mobile */
@media (max-width: 370px) {
    .badges {
        display: none;
    }
}

@media (max-width: 820px) {
    .badges {
        bottom: 12%;
    }
}


.button0 {
    position: fixed;
    bottom: 5%;
    right: 5%;
    z-index: 100000;

}

#button1 {
    text-decoration: none;
    background-color: #74e885;
    border: 2px solid rgb(22, 124, 10);
    border-radius: 9px;
    font-size: 30px;
    padding: 0 1em;
    color: #d9333e;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    transition: all 0.25s;
    z-index: 9999999;
}

#button1:hover {
    background-color: #9bf5a8;
    color: rgb(255, 255, 255);
    box-shadow: 0 0.5em 0.5em -0.4em rgb(119, 218, 108);
    transform: translateY(-0.20em);
    cursor: pointer;
}




/* Footer Styling */
footer {
    background: #001402fd;
    color: #aaa;
    padding: 4em;
    width: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Footer Container */
.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* align-items: flex-start; */
    width: 100%;
    /* margin: auto; */
    flex-wrap: wrap;
    z-index: 999;
}

/* Left Column */
.footer-left {
    display: flex;
    flex-direction: column;

}



.contact-info p {
    margin: 1.5em 0;
    font-size: 1.3em;
}

.contact-info a {
    color: #aaa;
    text-decoration: none;
    display: inline-flex;
    /* Changed from flex to inline-flex */
    align-items: center;
    padding: 0.3em 0.5em;
    /* Reduced padding */
}

.contact-info a:hover {
    color: #fff;
}

.globe-section h2 {
    text-align: center;
    padding: 2em 1em;
  }
  
  .globe-section {
      width: 100%;
      height:800px;
      background-color: black;
  }
  

/* Center Column */
.footer-center {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}

.footer-links ul {
    list-style: none;
    gap: 0.5em 1em;
    padding: 0;
    margin: 0 0 1em 0;
}

#space {
    display: flex;
    flex-direction: column;
}

/* .footer-links ul li {
    width: 50%; 
} */

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 1.3em;
    transition: color 0.3s;
    padding: 0.3em 0.5em;
    /* Reduced padding */
    display: inline-block;
    /* Changed from default to inline-block for better control */
    width: max-content;
    /* Ensures link width fits content */
}

.footer-links ul li a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Right Column */
.footer-right {
    display: flex;
    flex-direction: column;
}

.social-media ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* gap: 1.9em; */
}

.social-media ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 1.7em;
    transition: color 0.3s, transform 0.3s;
    padding: 0.7em 0.3em;
    display: inline-block;
    /* Changed from default to inline-block */
    width: max-content;
    /* Ensures link width fits content */
}

.social-media ul li a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 2em;
    font-size: 0.9em;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 820px) {

    #button1 {
        font-size: 17px;
        padding: 0.2em;
    }

    footer {
        padding: 2em;
    }

    .footer-container {
        flex-direction: column;
        /* Stack columns vertically */
        align-items: flex-start;
        /* Align items to the start */
    }

    .footer-left,
    .footer-center,
    .footer-right {
        /* Ensure footer-center is included */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* .footer-right {
         justify-content: right;
    } */

    .footer-links ul {
        display: flex;
        flex-direction: row;
        /* Align links horizontally */
        flex-wrap: wrap;
        font-size: small;
        justify-content: center;
        /* Changed from right to start for better alignment */
        /* Removed margin-left: -10px; */
        gap: 0.1em;
        /* Maintain gap for smaller screens */
    }


    .social-media ul {
        display: flex;
        flex-direction: row;
        /* Changed to row for horizontal alignment on smaller screens */
        flex-wrap: wrap;
        /* justify-content: flex-start;  */
        gap: 0.5em;
        /* Reduce gap for smaller screens */
        margin-top: 0;
        /* Removed negative margins */
        margin-left: 0;
        /* Removed negative margins */
    }

    .social-media ul li a {
        font-size: 0.9em;
    }

    .typewriter-heading {
        position: fixed;
        top: 4.5em;
        left: 1em;
        color: #ffffff;
        font-size: 1.5em;
        border: none;
        /* background-color: #0f4f0298; */
        /* box-shadow: 10px 5px 5px rgba(105, 103, 103, 0.687); */
        padding: 0.1;
        border-radius: 6px;
        animation: blink-cursor 0.7s steps(1) infinite;
        text-align: left;
    }

    /* Fixed background container */
    .fixed-background {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 90%;
        overflow: hidden;
        z-index: -2;
    }

    .hero {
        position: relative;
        height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 1em;
        text-align: center;
    }

    .curve-text {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        width: 150px;
        height: 190px;
        font-size: 10px;
        line-height: 1.6;
        position: absolute;
        bottom: -15px;
        left: 80px;
        /* transform: translateX(-30%); */
        z-index: 20;
        text-align: center;
        color: #ffffff;
        background: rgba(54, 36, 1, 0.818);
        /* padding: 3em 1em; */
        border-radius: 2px;
    }
}


nav ul li {
    position: relative;
    /* This allows the child dropdown to position relative to its parent */
}




/* Dropdown Menu */
nav ul li ul.dropdown {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    left: -25px;
    background: rgba(0, 0, 0, 0.9);
    list-style: none;
    padding: 0.5em 0;
    border-radius: 5px;
    z-index: 10;
}

nav ul li ul.dropdown li {
    padding: 0.5em 0.5em;
}

nav ul li ul.dropdown li a {
    border-radius: 5px;
    padding: 0.5em;
    color: #fff;
    text-decoration: none;
    display: block;
}

nav ul li ul.dropdown li a:hover {
    /* padding: 0.1em; */
    background: #11891d;
    color: #fff;
}

/* Show Dropdown on Hover (Desktop) */
nav ul li:hover>ul.dropdown {
    display: block;
    /* Show dropdown on hover */
}

/* Responsive Design */
@media (max-width: 820px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li ul.dropdown {
        position: static;
        /* Reset position for mobile */
        display: none;
        /* Hidden by default */
    }

    nav ul li ul.dropdown.show {
        display: block;
        /* Show dropdown when toggled */
    }

    nav ul li a {
        padding: 1em;
    }
}


/* Gradient Overlay Styling */
.gradient-overlay {
    position: absolute;
    /* Positions the overlay relative to .hero */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Match the height of .fixed-background */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.388),
            rgba(0, 0, 0, 0.432),
            rgba(0, 0, 0, 0.356),
            rgba(0, 0, 0, 0.298),
            rgba(0, 0, 0, 0.256));
    /* Customize gradient direction and colors */
    z-index: -1;
    /* Places the overlay above .fixed-background but below content */
    pointer-events: none;
    /* Ensures the overlay doesn't interfere with underlying elements */
}

/* Update gradient overlay in dark mode */
body.dark-mode .gradient-overlay {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.3));
}

body.dark-mode .gradient-overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.432),
            rgba(0, 0, 0, 0.432),
            rgba(0, 0, 0, 0.432),
            rgba(0, 0, 0, 0.432),
            rgba(0, 0, 0, 0.432));
    z-index: -1;
    pointer-events: none;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 97px;            /* Widen sidebar so toggle doesn't stick out */
    height: 100vh;
    background-color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em 0;
    z-index: 9999;
    overflow-y: auto; 
  }

  /* Push main content to the right */
.main-content {
    margin-left: 95px;         /* Matches sidebar width */
    padding: 0em;               /* Add some gap from left */
  }
  
  /* ===== DARK MODE TOGGLE ===== */
.settings-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #333333;
    padding: 0.5em;
    margin-bottom: 2em; 
    border-radius: 5px;
    width: 90%;
  }
  
  
  /* Toggle Switch */
  .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin-right: 0.5em;
  }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #aaa;
    transition: 0.4s;
    border-radius: 34px;
  }
  .slider:before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 4px;
    background-color: #fff;
    transition: 0.4s;
    border-radius: 50%;
  }
  /* Checkbox checked */
  input:checked + .slider {
    background-color: #74e885;
  }
  input:checked + .slider:before {
    transform: translateX(20px);
  }
  
  /* Toggle Label */
  .toggle-label {
    color: #fff;
    font-size: 0.9em;
  }
  
  /* Social Icons at Bottom */
  .social-icons {
    margin-top: auto;        /* Push icons to bottom */
    display: flex;
    flex-direction: column;
    gap: 2.5em;
    margin-bottom: 1em;
  }
  
  /* By default, we remove color from generic .social-icons a i
     so each brand class sets its color individually. */
  .social-icons a i {
    font-size: 2rem;
    color: inherit;  /* We'll inherit from the brand class below */
    transition: transform 0.3s;
  }
  
  /* Brand Colors */
  .social-icons a.facebook {
    color: #1877f2;    /* Facebook Blue */
  }
  .social-icons a.x {
    color: #ffffff;    /* Old Twitter Blue or black for X brand, your choice */
  }
  .social-icons a.youtube {
    color: #ff0000;    /* YouTube Red */
  }
  .social-icons a.email {
    color: #ade5ff;    /* Gmail-like red */
  }
  
  /* Hover effect: scale up slightly */
  .social-icons a:hover i {
    transform: scale(1.5);
  }
  
  /* DARK MODE OVERRIDES */
  body.dark-mode {
    background: #11111160; 
    color: #fff; 
  }
  body.dark-mode header {
    background: rgba(0, 0, 0, 0.496);
  }
  body.dark-mode nav ul li a {
    color: #ccc;
  }
  body.dark-mode .hero,
  body.dark-mode .footer-container {
    background-color: #111;
    color: #111;
    /* z-index: 9999;#11111160 */
  }
  
  @media (max-width: 820px) {
    .sidebar {
      display: none; /* or transform: translateX(-100%); for a hidden slide-out */
    }
    .main-content {
      margin-left: 0; /* so content goes full-width when sidebar is hidden */
    }
  }

  /* Dark mode for non-image sections */
body.dark-mode #section3 {
    background-color: #111;
    color: #fff;
}

body.dark-mode footer {
    background: #000;
    color: #fff;
}

/* Update footer links in dark mode */
body.dark-mode .footer-links ul li a,
body.dark-mode .contact-info a,
body.dark-mode .social-media ul li a {
    color: #fff;
}

body.dark-mode .footer-links ul li a:hover,
body.dark-mode .contact-info a:hover,
body.dark-mode .social-media ul li a:hover {
    color: #74e885;
}

/* Dark mode for curve section */
body.dark-mode .curve {
    color: #111;
}

body.dark-mode .curve-text {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

/* Dark mode for dropdown menu */
body.dark-mode nav ul li ul.dropdown {
    background: rgba(0, 0, 0, 0.95);
}

body.dark-mode nav ul li ul.dropdown li a:hover {
    background: #74e885;
    color: #000;
}
body.dark-mode nav ul li a:hover {
    color: #74e885;  /* Same green color used in footer */
    text-decoration: none;  /* Remove underline if you prefer */
}

body.dark-mode .typewriter-heading {
    color: #40ff00;
}