/* BASE RESET AND GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Josefin Sans', Arial, sans-serif;
    margin: 0;
    padding-top: 100px; 
    overflow-x: hidden;
    background-color: #f4f4f4;
}

/* ======================================================= */
/* *** 1. DEFAULT STATE (Transparent on Top) *** */
/* ======================================================= */

.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* PADDING IS 30px TOP & BOTTOM */
    padding: 27px 0; 
    
    background-color: rgba(255, 255, 255, 0);
    box-shadow: none;
    transition: all 0.4s ease-in-out;
    border-bottom: 1px solid white;
}

/* CRITICAL FIX 1: Container must be the positioning context AND fill height */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; 
    height: 100%; 
}

/* CRITICAL FIX 2: Force the .row to fill the height and become a Flex container */
.header-area .row {
    display: flex;
    height: 100%;
    
    /* Align all content inside the row to the bottom */
    align-items: flex-end; 
}

/* CRITICAL FIX 3: Force the .col-12 to stretch and become a Flex container */
.header-area .col-12 {
    display: flex;
    height: 100%;
    align-items: flex-end; /* Align the main-nav to the bottom of the col-12 */
}

/* Nav container setup: Must stretch to full height of the col-12 */
.main-nav {
    display: flex;
    justify-content: space-between;
    width: 100%; 
    height: auto; /* Should be fine now as parents are doing the work */
    align-items: flex-end;
    
    /* Now that the parent .col-12 is aligning to the bottom, 
       the logo and button-container should be at the bottom. */
}

/* 🎯 YOUR MANUAL POSITIONING CODE APPLIED HERE */
.button-container {
    /* YOUR REQUESTED POSITIONING PROPERTIES */
    position: relative;
    top: 27px; /* Adjust this value to move buttons up/down */
    right: 0px; /* Adjust this value to shift buttons right/left */
    left: 250px; /* Adjust this value to shift buttons left/right */
    
    /* Keep the display and alignment for internal structure */
    display: flex; 
    justify-content: flex-end; 
    align-items: flex-end; 
    margin-left: auto; 
}

/* Ensure the logo is also aligned to the bottom (it is a sibling to button-container inside main-nav) */
.header-area .main-nav .logo {
    align-self: flex-end;
}


/* ======================================================= */
/* *** CUSTOM BUTTON AND HOVER STYLES (Unchanged) *** */
/* ======================================================= */

.element--hover {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* ✅ subtle shadow */
    background-color: inherit; 
    padding: 10px 10px;
    height: auto;
    line-height: normal;
    text-align: center;
    border-radius: 8rem;
    margin: 0 5px; 
    cursor: pointer;
    transition: all 0.3s ease; 
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
}

.element--hover:hover {
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1),
                0 1px 6px rgba(0, 0, 0, .05),
                0 8px 8px rgba(0, 0, 0, .1), 
                0 16px 16px rgba(0, 0, 0, .1), 
                8px 32px 32px rgba(0, 0, 0, .15), 
                8px 64px 64px rgba(0, 0, 0, .15);
    transform: scale(1.05) translateY(-0.5rem);
}

.element--hover:active {
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1),
                0 1px 6px rgba(0, 0, 0, .05),
                0 8px 8px rgba(0, 0, 0, .1), 
                0 16px 16px rgba(0, 0, 0, .1), 
                8px 16px 16px rgba(0, 0, 0, .15), 
                8px 32px 32px rgba(0, 0, 0, .15);
}

a.active,
.element--hover:hover {
    color: #354950 !important;
}

/* Dropdown Styles (Unchanged) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 215px;
    border-radius: 0px 0px 17px 17px;
    z-index: 2000;
    left: 0;
    top: 100%; 
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 0px; 
    background: rgba(131, 208, 244, 0.95); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); 
    overflow: hidden; 
}

.dropdown-content a {
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    display: block; 
    margin: 4px 0;
    border-bottom: 1px dotted #000;
    transition: color 600ms cubic-bezier(.33,.11,.02,.99);
    text-transform: uppercase; 
    font-size: 14px; 
    white-space: nowrap;
}

.dropdown-content a:hover {
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Request a Sample Button */
.main-white-button a {
    background-color: #ffffff !important;
    color: #1a2a4b !important;
    font-weight: 700;
    border-radius: 20px; 
    padding: 8px 20px;
    margin-left: 15px; 
    display: inline-flex;
    align-items: center;
    transition: all 0.3s; 
    transform: none !important; 
    box-shadow: none !important;
}

.main-white-button a:hover {
    background-color: #005676 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1),
                0 1px 6px rgba(0, 0, 0, .05),
                0 8px 8px rgba(0, 0, 0, .1), 
                0 16px 16px rgba(0, 0, 0, .1), 
                8px 32px 32px rgba(0, 0, 0, .15), 
                8px 64px 64px rgba(0, 0, 0, .15);
    transform: scale(1.05) translateY(-0.5rem);
}

.main-white-button a i {
    margin-right: 5px;
}

.logo img {
    width: 150px; 
    height: auto; 
}

.logo {
  display: flex;
  align-items: flex-end;
  position: relative;
  width: 150px;
}

.logo img {
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease-in-out;
  position: absolute;
  bottom: -15px;   /* align to bottom of container */
  left: 0;
}

/* Default state: show white logo */
.logo-default { opacity: 1; }
.logo-scrolled { opacity: 0; }

/* Scrolled state: swap to cyan logo */
.header-area.header-scrolled .logo-default { opacity: 0; }
.header-area.header-scrolled .logo-scrolled { opacity: 1; }



/* ======================================================= */
/* *** 2. SCROLLED STATE (Solid White) *** */
/* ======================================================= */

.header-area.header-scrolled {
    padding: 27px 0; 
    background-color: #ffffff;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-area.header-scrolled .element--hover,
.header-area.header-scrolled .main-nav .logo a {
    color: #1e1e1e;
}

.header-area.header-scrolled .main-white-button a {
    background-color: #005676 !important;
    color: #ffffff !important;
}

.header-area.header-scrolled .main-white-button a:hover {
    background-color: #83D0F4 !important; 
    color: #003E2F !important;
}