* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-snap-type: y mandatory; */
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

header {
    background-color: transparent; /*Set to transparent initially */
    color: white;
    padding: 1rem 0 4rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    /* Removed initial box-shadow */
    transition: background-color 0.2s, box-shadow 0.2s; /*Added transition for smooth change */
}



nav {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.3rem;
    font-family: Oswald, Anton, sans-serif;
    cursor: pointer;
    transition: color 0.3s;
    margin: 0;
}

nav h1:hover {
    color: #e4a476;
}

.nav-actions {
    display: flex; /* Use Flexbox to align items horizontally */
    align-items: center;
    gap: 1.5rem; /* Spacing between the icons and the CTA button */
}

.nav-link {
    color: white; 
    text-decoration: none;
    font-size: 1.5rem; /* Adjust icon size */
    transition: color 0.3s;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #e4a476;
}

/* Placeholder style for the new links until actual icons are used */
.icon-placeholder {
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.cta-button {
    background-color: #e4a476;
    color: black;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.95rem;
}

.cta-button:hover {
    background-color: #8897af;
    transform: translateY(-2px);
}

main {
    margin: 0;
    padding: 0;
}

article {
    min-height: 100vh;
    /* scroll-snap-align: start;
    scroll-snap-stop: always; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    /* max-width: 1200px; */
    margin: 0 auto;
}

article h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #23233F;
    text-align: left;
}

article h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color:#23233F;
}

article p {
    font-size: 1rem;
    margin-right: 5rem;
    margin-bottom: 1rem;
    color: #000000;
}

article ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

article ul li {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

/* **BOLD CHANGE**: Style for the header once the user scrolls */
header.scrolled {
    background-color:  rgba(35, 35, 63, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#article-home {
    background: linear-gradient(135deg, #1a1a32 0%, #23233F 100%);
    color: white;
}

#article-home h2 {
    text-align: left;
}

#article-home h3 {
   color: #e4a476;
    font-size: 3rem;
    padding-top: 9rem;
    text-align: right;
    padding-right: 3rem;
}

#article-home h2,
#article-home p {
    color: white;
    padding-top: 9rem;
    text-align: left;
}
#article-home .quote {
    text-align: left;
    color: #8897af;
}

#article-people {
    background: linear-gradient(135deg, #e4a476 0%, #e4c2aa 100%);
}

#article-processes {
    background: linear-gradient(135deg, #6468a9 0%, #a5a8cf 100%);
}

#article-technology {
    background: linear-gradient(135deg, #c9d1de 0%, #8897af 100%);
}

#article-about {
    background: linear-gradient(135deg, #23233F 0%, #1a1a32 100%);
}

#article-about h2,
#article-about p {
    color: white;
}

button {
    background-color: #8733db;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

button:hover {
    background-color: #8897af;
}

footer {
    background-color: #23233F;
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.scroll-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.scroll-dot-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #7a7a7a;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.scroll-dot.active {
    background-color: #e4a476;
    transform: scale(1.3);
}

.scroll-dot:hover {
    background-color: #6468a9;
}

.scroll-label {
    position: absolute;
    right: 2rem;
    background-color: #8897af;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgb(140, 0, 255, 0.2);
}

.scroll-dot-container:hover .scroll-label {
    opacity: 1;
}

.headshot {
    width: 75%; 
    height: auto;
    max-width: 350px;
    margin-top: 2rem;
    margin-bottom: -70px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.instagram-button {
    width: 30px;
    height: 30px;
}

/* Hamburger Menu and Mobile Layout */
/* Hide the desktop menu (.nav-actions) by default (mobile view) */
.nav-actions {
    display: none; 
    align-items: center;
    gap: 1.5rem; /* Spacing between the icons and the CTA button */
}

/* 1. Mobile Toggle Button Styling (Always visible by default) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200; /* Ensure it is above the header and nav links */
    margin-top: -3px;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

/* 2. Mobile Menu Styling (Hidden by default) */
.nav-links-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(35, 35, 63, 0.95); /* Dark, semi-transparent overlay */
    z-index: 150;
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.nav-links-mobile.open {
    display: flex; /* Show when 'open' class is added by JavaScript */
}

.nav-links-mobile .nav-actions {
    display: flex;
    flex-direction: column; /* Stack the links vertically in mobile menu */
    gap: 2.5rem;
    padding-top: 5rem;
}

.nav-links-mobile .mobile-nav-link-wrapper {
    display: block;
    padding: 1rem 2rem;
    text-align: center; /* Center the icon */
}

.nav-links-mobile .cta-button {
    padding: 1rem 2rem;
}

.nav-links-mobile .nav-link {
    width: 60px;
    height: 60px;
}

.nav-links-mobile .nav-link,
.nav-links-mobile .cta-button {
    font-size: 1.5rem;
    /* padding: 1rem 2rem; */
}

/* 3. Hamburger Animation when open */
.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg);
}


/* 4. Desktop Styles (Overrides mobile styles when screen is wider than 768px) */
@media screen and (min-width: 768px) {
    /* Hide the hamburger icon on desktop */
    .menu-toggle {
        display: none;
    }
    /* Hide the mobile menu on desktop */
    .nav-links-mobile {
        display: none;
    }

    /* Show the navigation links horizontally on desktop
    .nav-links-mobile {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        display: block;
    }  */

    /* Ensure the inner actions are still horizontal on desktop
    .nav-links-mobile .nav-actions {
        flex-direction: row;
        gap: 1.5rem;
        padding-top: 0;
    }  */

    /* Explicitly show the desktop menu container and set layout */
    .nav-actions {
        display: flex; /* Show the desktop menu */
        flex-direction: row;
        gap: 1.5rem;
        padding-top: 0;
    } 

    /* Reset button/link font size for desktop */
    .nav-links-mobile .nav-link,
    .nav-links-mobile .cta-button {
        font-size: 0.95rem;
        padding: 0;
    }
}


/* Big screens */
@media screen and (min-width: 1200px) {
    article {
        padding-left: 15rem; 
        padding-right: 15rem;
    }
}