/* ===================================================
   1. GLOBAL STYLES
   =================================================== */

/* Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Questrial", sans-serif;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    color: white; /* Default text color */
   
}

a {
    text-decoration: none;
    color: inherit;

}

body a {
    -webkit-tap-highlight-color: transparent;
        -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}
body {
    padding-top: 60px; /* Matches header height */
}

/* ===================================================
   2. HEADER TAB
   =================================================== */
.header { 
    background-color: #0F0F0F;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Push elements to opposite sides */
    padding: 0 1rem;
    border-bottom: 1px solid #ccc;
    flex-wrap: wrap; /* Enable wrapping for smaller screens */
    position: fixed; /* Fix header at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's above other elements */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Left Side (Logo + Headings) */
.left-container {
    display: flex;
    align-items: center; /* Align items vertically */
    gap: 20px; /* Space between logo and headings */
}

/* Logo */
.logo {
    display: flex;
    align-items: center; /* Align vertically */
    gap: 10px; /* Space between logo and text */
}

.logo-image {
    width: 135px; /* Adjust based on your design */
    height: auto;
    object-fit: contain;
}

/* Navigation Headings */
.headings {
    display: flex;
    gap: 15px;
    align-items: center; /* Align vertically with the logo */
}

.headings a {
    transition: 0.5s ease color;
}

.headings a:hover {
    color: #F21A4C;

}

/* Social Icons Effect */
.rightheadings {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* Push to the right */
}

.rightheadings a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease-in-out;
}

.rightheadings img {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.rightheadings a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 8px #C32B4F;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.rightheadings a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #F91229;
    border-radius: 50%;
    top: 100%;
    left: 0;
    transition: top 0.6s ease-in-out;
}

.rightheadings a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.rightheadings a:hover::after {
    top: 0;
}

/* ====== SIMPLE BUTTON (No Effects) ====== */
.button-container {
    margin-left: 15px; /* Space between icons and button */
}

.button-container button {
    font-family: "poppins",sans-serif;
    padding: 8px 15px;
    background-color: #F91229;

    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.button-container button:hover {
    background-color: #E41212;
}
@media (max-width:850px) {
     .button-container {
        display: none;
    }
}
/* ===================================================
   2. HAMBURGER MENU + RESPONSIVENESS
   =================================================== */

/* Hamburger Menu */
.hamburger-menu {
    margin-left: 20px;
    width: 25px;
     cursor: pointer;
      display: none;
    
}

/* Show Hamburger Menu on Small Screens */
@media (max-width: 1150px) {
    .hamburger-menu {
        display: flex;
        align-items: center;
        cursor: pointer;
        font-size: 1.7rem;

    }
    .headings {
        display: none;
    }


}
/* Dropdown Menu */
.dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align all items to the left */
    text-align: left; /* Ensure text aligns left */
    position: fixed;
    top: 60px;
    right: -450px; /* Initially hidden */
    width: 450px; /* Default width for large screens */
    height: calc(100vh - 60px);
    background-color: #2B2B2B;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
    transition: right 0.5s ease-in-out;
    background-color: #2B2B2B;
}

/* Show menu when active */
.dropdown-menu.active {
    right: 0;
}

/* Media queries for smaller screens */

/* For screens smaller than 1150px, reduce dropdown width */
@media (max-width: 1150px) {
    .dropdown-menu {
        width: 400px; /* Narrower width */
    }
}

/* For screens smaller than 1000px, further reduce width */
@media (max-width: 1000px) {
    .dropdown-menu {
        width: 350px; /* Even narrower */
    }
}

/* For screens smaller than 850px, further reduce width */
@media (max-width: 850px) {
    .dropdown-menu {
        width: 300px; /* Narrow width for mobile devices */
    }
}

/* For screens smaller than 600px, make the dropdown even narrower */
@media (max-width: 600px) {
    .dropdown-menu {
        width: 270px; /* Further narrow the width */
    }
}




/* Center dropdown header */
.dropdown-header {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    width: 100%;
    padding: 10px 0; /* Add some spacing */
}

/* Center and resize the dropdown logo */
.dropdown-logo {
    display: block;
    width: 120px; /* Adjust width */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain;
    margin: 0 auto; /* Center the logo horizontally */
}


/* Ensure dropdown menu items take full width */
.dropdown-menu a {
    display: flex; /* Make links flexible */
    align-items: center; /* Align text properly */
    justify-content: space-between; /* Space between text and arrow */
    width: 100%; /* Ensure full width */
    padding: 15px 20px;
    text-align: left;

    color: white;
    transition: background 0.3s, color 0.3s;
}

/* Hover Effect for Main Dropdown Items */
.dropdown-menu a:hover {
   background-color: #F91229; /* Red background */
    color: white;
}

/* Ensure the dropdown list itself takes full width */
.dropdown-list {
    display: none;
    flex-direction: column;
    width: 100%;
    list-style: none;
    padding-left: 0;
    margin-left: 0.5rem;
}

/* Show Dropdown List when Active */
.dropdown-list.active {
    display: flex;
}

/* Dropdown Arrows */
.drop-arrow {
    transition: transform 0.3s ease-in-out;
}

/* Show dropdown when hovering */
.projects-dropdown:hover .drop-arrow,
.services-dropdown:hover .drop-arrow,
.about-dropdown:hover .drop-arrow {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

/* Change SVG Arrow Color on Hover */
.projects-dropdown:hover .drop-arrow path,
.services-dropdown:hover .drop-arrow path,
.about-dropdown:hover .drop-arrow path {
    fill: white; /* Change arrow color to white */
}
.projects-dropdown, .services-dropdown, .about-dropdown {
      width: 100%;
    text-align: left;
    
    cursor: pointer;
    position: relative;
}



/* ===================================================
   3. DROPDOWN MENU 
   =================================================== */


/* ==== Headings Dropdown ==== */
.headings-dropdown {
    position: relative;
    display: inline-block;
}

/* Style for dropdown list */
.headings-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2B2B2B;
    min-width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 999;
}

/* Dropdown items */
.headings-dropdown-list li {
    list-style: none;
}

.headings-dropdown-list a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

/* Hover effect */
.headings-dropdown-list a:hover {
   background-color: #F91229;
    color: white;
}

/* Show dropdown when active */
.headings-dropdown.active .headings-dropdown-list {
    display: block;
}

/* Rotate Arrow when active */
.headings-dropdown.active .drop-arrow {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}
