/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500&display=swap');

/* Reset default browser spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
    background-color: #f0f4f8; /* A light background for the page body */
}

/* --- Main Header Container --- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #008B8B; /* UPDATED COLOR */
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7rem;
  margin: 0;
  
  /* --- Updated NEON EFFECT --- */
  border-bottom: 2px solid #006666; /* UPDATED BORDER COLOR */
  box-shadow: 0 0 5px #006666, 
              0 0 15px #006666; /* UPDATED SHADOW COLOR */
}

.header__logo img {
  height: 40px;
}

/* --- Squircle Navigation --- */
.nav-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-wrapper {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    max-width: 700px;
    width: 100%;
    align-items: center;
}

.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
}

#squircle {
    transition: left 500ms ease-in-out, transform 500ms ease-in-out;
    position: absolute;
    top: 50%; 
    margin-top: -45px;
    width: 80px;
    height: 80px;
    background-color: #FFFFFF; /* Changed to white to pop */
    border-radius: 25px;
    z-index: 0; /* Behind icons */
    will-change: transform, left;
    transform: rotate(180deg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.icon-wrapper {
    transition: transform 400ms 200ms;
    cursor: pointer;
    z-index: 1;
    padding-top: 12px;
    padding-bottom: 8px;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.icon-wrapper svg {
    display: block;
    width: 32px;
    height: 32px;
    stroke: #333333; /* Darker color for better readability */
    transition: stroke 0.3s;
}

.icon-wrapper.active {
    transform: scale(1.1);
}

.icon-wrapper.active svg {
    stroke: #008B8B !important; /* Active icon is the main theme color */
}

/* --- Navigation Text Styling --- */
.nav-text {
    color: #333333; /* Darker color for better readability */
    font-size: 12px;
    font-family: 'Ubuntu', sans-serif;
    margin-top: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
    font-weight: 500;
}

.icon-wrapper:hover .nav-text,
.icon-wrapper.active .nav-text {
    opacity: 1;
    color: #000000; /* Black for active/hover text */
}

/* Simple placeholder for logo */
.header__logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
}

/* --- Mobile Styles --- */
@media (max-width: 900px) {
    .nav-wrapper, #squircle {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
        position: absolute !important;
        right: 1rem !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1200 !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

.hamburger span {
    display: block;
    height: 4px;
    width: 28px;
    margin: 5px auto;
    background: #fff; /* Changed to white */
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17,24,39,0.98);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.mobile-nav.open {
    display: flex;
}
.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.mobile-nav .icon-wrapper {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 700;
}
.close-mobile-nav {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

@media (min-width: 901px) {
    .mobile-nav {
        display: none !important;
    }
}
