/* --- Global Styles & Variables --- */
:root {
    --primary-color: #e7e7c9;
    --primary-hover-color: #efefb2e9;
    --background-color: #e9ebecef;
    --text-color: #1e1f1c;
    --white-color: #fffdfd;
    --light-gray-color: #EAEAEA;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #e5e3e3ef;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover-color);
}

ul {
    list-style: none;
}

/* --- Navigation Bar --- */
.navbar {
    background: linear-gradient(90deg, rgba(26, 88, 93, 0.8) 0%, rgba(3, 154, 152, 0.8) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2px 2px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}
.dashboard-btn {
  display: inline-block;
  background: linear-gradient(150deg, #83bed0e9, #0dada7f8);
  color: #494949c5;
  padding: 8px 22px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 2px 4px 15px rgba(188, 189, 191, 159);
  text-decoration: none;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link-item-item {
    font-weight: 500;
    color:#e5e3e3ef;
    transition: color 0.3s ease;
}

.nav-link-item-item:hover {
    color: rgba(194, 202, 246, 0.9);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
}

.dropdown-menu, .dropdown-submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(84, 81, 81, 0.9);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-submenu {
    top: 0;
    right: 100%;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(2);
}

.dropdown-submenu-toggle {
    position: relative;
}

.dropdown-submenu-toggle:hover + .dropdown-submenu,
.dropdown-submenu:hover {
     opacity: 1;
     visibility: visible;
     transform: translateY(2);
}

.dropdown-menu a, .dropdown-submenu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #e5e3e3ef;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu a:hover, .dropdown-submenu a:hover {
    background-color: rgba(3, 154, 152, 0.8);
    color: var(--primary-color);
}
/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-menu {
        gap: 1.5rem;
    }
    #screen-hight {
    height: 50vh;
}
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -115%;
        top: 70px; /* Adjust based on navbar height */
        flex-direction: column;
        background-color: rgba(64, 120, 120, 0.9);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
        width: 100%;
    }
    
    .dropdown-menu, .dropdown-submenu {
        position: static;
        box-shadow: none;
        width: 90%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* Hide by default on mobile */
        padding-left: 1rem;
    }

    .dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu-toggle:hover + .dropdown-submenu,
    .dropdown-submenu:hover {
        display: block;
    }

    .hero-tagline {
        font-size: 2.5rem;
    }
    
    .modal-content {
        margin: 25% auto;
    }
    #screen-hight {
    height: 50vh;
}
      .about-section {
        padding: 25px 20px;
      }
}