/* General Styles */
body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background-color: white;
    color: black;
    padding-top: 80px; /* Offset for the fixed header */
}

header {
    text-align: center;
    margin: 20px 0;
}

header h1 {
    font-size: 2.5rem;
    color: white;
}

/* Fixed Header Styles */

.fixed-header {
    display: flex;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    z-index: 4; /* Ensure it stays on top */
    background: black; 
}

.fixed-header .logo img {
    height: 100px;
    margin-left: 20px;
    margin-right: auto;
    flex-shrink: 1;
}

.contact-button {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
    width: 100%;
    margin-top: -20px;
}
.contact-us,
.menu-button {
    padding: 5px;
    margin-left: 10px; /* Adds space between the contact-us and menu */
}

.contact-us {
    position: fixed;
    font-family: Raleway, sans-serif;
}

.menu-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 5; /* Ensure it stays on top */
    transition: transform 0.3s ease; /* Add transition for rotation */
    margin-top:-20px; 
}

.menu-toggle.active {
    transform: rotate(45deg); /* Rotate when active */
}

.menu-line {
    width: 30px;
    height: 4px;
    background-color: black;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Add transition for lines */
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg); /* Transform top line */
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0; /* Hide middle line */
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); /* Transform bottom line */
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 10; /* Ensure it stays on top */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a,
.dropdown-menu .back-button {
    color: white;
    text-decoration: none;
    padding: 10px; /* Reduced padding for smaller highlight boxes */
    font-size: 24px;
    text-align: center;
    display: table;
    font-family: Raleway, sans-serif;
}

.dropdown-menu a:hover,
.dropdown-menu .back-button:hover {
    color: green; /* Change text color to green */
}

/* Move the back button to the right */
.back-button {
    position: absolute;
    top: 20px;
    right: 20px; /* Moved to the right side */
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Contact us button styling */
.contact-us button {
    background-color: white; /* Default white background */
    color: black; /* Black text color */
    border: 1px solid white; /* Border matching the background */
    padding: 9px 20px; /* Padding for the button */
    font-size: 15px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 4px; /* Rounded corners */
    transition: background-color -1.3s ease, color 0.3s ease; /* Smooth transitions */
    font-family: Raleway, sans-serif;
}

.contact-us button.black-bg {
    background-color: black; /* Black background for carousel */
    color: white; /* White text color */
    border: 1px solid black; /* Border matching the background */
    font-family: Raleway, sans-serif;
}

.contact-us button:hover {
    background-color: white; /* Maintain white background on hover */
    color: green; /* Text color turns green on hover */
}

.contact-us button.black-bg:hover {
    background-color: black; /* Maintain black background on hover */
    color: green; /* Text color turns green on hover */
}
/* Portfolio Grid Styles */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 100px 20px 20px; /* Adjusted padding to account for fixed header */
    box-sizing: border-box;
   align-items: center; 
   margin: 0 200px
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .fixed-header .logo img {
        height: 50px;
    }

    .contact-us button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .menu-button .menu-toggle {
        width: 45px;
        height: 45px;
    }

    .menu-line {
        width: 25px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .fixed-header .logo img {
        height: 40px;
    }

    .contact-us button {
        font-size: 12px;
        padding: 7px 14px;
    }

    .menu-button .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .menu-line {
        width: 20px;
        height: 3px;
    }

    .dropdown-menu a,
    .dropdown-menu .back-button {
        font-size: 20px;
    }
}


@media (max-width: 480px) {
    .fixed-header .logo img {
        height: 2.813rem; /* Further adjust for even smaller screens */
    }

    .contact-us button {
        font-size: 12px; /* Adjust font size for smaller screens */
        padding: 7px 14px; /* Adjust padding for smaller screens */
        margin-top: 1.25rem;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        margin-top: 0.063rem;
    }

    .menu-line {
        width: 20px;
        height: 3px;
    }
}



project-card {
    background-color: #fff;
    color: black;
    border-radius: 50px ;
    overflow: hidden;
    width: 100%; /* Use 100% of the slide width */
    max-width: 300px; /* Limit the card width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.2s ease-in-out;
    text-align: center;
}

.project-card:hover {
    transform: scale(1.05); /* Adds hover scaling effect */
}

/* Card Image */
.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Card Body */
.card-body {
    padding: 20px;
    background:white;
    border-radius: 0 0 10px 10px;
    height: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
    margin-top: 50px;
}

.info{
  display: flex; 
  flex-direction: column;
  align-items: center;
}
.infoblock{
  text-align: center;
  line-height: 20px;
}


/* Tablets / small laptops */
@media (max-width: 768px) {
  /* remove big side margins & tighten padding */
  .portfolio-container {
    margin: 0 20px;
    padding: 80px 10px 20px;
  }

  /* slightly smaller section title */
  header h1 {
    font-size: 2rem;
    margin: 10px 0;
  }

  /* allow card bodies to expand naturally */
  .card-body {
    height: auto;
    padding: 15px;
  }

  /* shorter images so cards aren’t too tall */
  .project-card img {
    height: 200px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .portfolio-container {
    margin: 0 10px;
    padding: 60px 10px 20px;
  }

  /* really small title */
  header h1 {
    font-size: 1.5rem;
    margin: 8px 0;
  }

  /* shrink logo more */
  .fixed-header .logo img {
    height: 35px;
  }

  /* even shorter card images */
  .project-card img {
    height: 150px;
  }

  /* compact card body */
  .card-body {
    padding: 10px;
  }

  /* tighten up text spacing */
  .card-text {
    margin-top: 20px;
    font-size: 0.9rem;
  }
}
