:root {
    --electric-blue: #00A8E8;
    --dark-blue: #00171F;
    --dark-bg: #000000;
    --light-bg: #FFFFFF;
    --text-light: #FFFFFF;
    --text-dark: #090909;
    --text-muted: #888888;
    --color-accent: #FFC700;
    --font-family: 'MADE Outer Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: var(--dark-bg);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-weight: 500;
    line-height: 1.2;
}

p {
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

.center-text {
    text-align: center;
}

/* Header & Navbar */
#header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

#navbar .logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
}

#navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
}

#navbar ul li a {
    color: var(--text-muted);
    padding: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

#navbar ul li a:hover {
    color: var(--text-light);
}

/* Section Styling */
section {
    padding: 6rem 0;
    text-align: center;
}

.dark-section {
    background: var(--dark-bg);
    color: var(--text-light);
}

.light-section {
    background: var(--light-bg);
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 70px; /* Navbar height */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../imgs/water-system.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero .main-headline {
    font-family: 'MADE Outer Sans Black', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--text-light);
}

.hero .subtext {
    font-family: 'MADE Outer Sans Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    color: var(--color-accent);
    max-width: 600px;
    margin: 1rem auto 2rem auto;
}

@font-face {
    font-family: 'MADE Outer Sans Medium';
    src: url('../fonts/MADE Outer Sans Medium PERSONAL USE.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.btn {
    font-family: 'MADE Outer Sans Medium', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    letter-spacing: 1px;
    background-color: transparent;
    border: 2px solid transparent;
}

/* Hero Button Styles */
.hero .btn {
    background-color: var(--electric-blue);
    color: var(--text-light);
    border-color: var(--electric-blue);
    border-radius: 30px;
    font-family: var(--font-family);
    font-weight: 500;
}

.hero .btn:hover {
    background-color: var(--light-bg);
    color: var(--text-dark);
    border-color: var(--light-bg);
}

.light-section .btn {
    color: var(--text-dark);
}

.btn:hover {
    color: var(--electric-blue);
}

/* Philosophy Section */
#philosophy h2 {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

#philosophy .small-text {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Systems Section */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-top: 3rem;
}

.system-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.system-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--electric-blue);
    transform: translateX(-101%);
    transition: transform 0.4s ease;
}

.system-card:hover {
    border-color: rgba(0, 191, 255, 0.5);
}

.system-card:hover::before {
    transform: translateX(0);
}

.system-card h3 {
    font-size: 1.5rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

/* Technology Section */
#technology h2 {
    margin-bottom: 3rem;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.tech-list li {
    padding: 1rem 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

/* Manifesto Section */
#manifesto .manifesto-text {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

#manifesto p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Final CTA */
#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

#contact .btn {
    background-color: var(--text-dark);
    color: var(--text-light);
    border-color: var(--text-dark);
    border-radius: 30px;
    font-family: var(--font-family);
    font-weight: 500;
}

#contact .btn:hover {
    background-color: var(--light-bg);
    color: var(--text-dark);
    border-color: var(--text-dark);
}

/* Contact Form Styles */
.contact-form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    text-align: left;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    background: #f0f0f0;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.form-group:focus-within {
    border-color: var(--electric-blue);
}

.form-group svg {
    margin-right: 1rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-dark);
}

.form-group textarea {
    resize: vertical;
    padding-top: 0.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-form .btn {
    width: 100%;
    cursor: pointer;
    font-size: 1.1rem;
}


/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
#sandwich-btn {
    display: none;
}

@media(max-width: 768px) {
    .hero .main-headline {
        font-size: 2.5rem;
    }
    #philosophy h2, #manifesto .manifesto-text {
        font-size: 2rem;
    }

    #navbar .container {
        flex-direction: row;
        height: auto;
        padding: 1rem 2rem;
    }

    #navbar ul {
       padding-top: 0.5rem;
       display: none;
       width: 100%;
       flex-direction: column;
       text-align: center;
       background: #000;
       position: absolute;
       top: 70px;
       left: 0;
       max-height: 0;
       overflow: hidden;
       transition: max-height 0.3s ease-in-out;
    }

    #navbar ul.show {
        display: flex;
        max-height: 100vh;
    }

    #navbar ul li {
        padding: 1rem 0;
    }
    
    section {
        padding: 4rem 0;
    }

    #sandwich-btn {
        display: block;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0.5rem;
    }

    #sandwich-btn span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background: var(--text-light);
        transition: all 0.3s ease-in-out;
    }

    #sandwich-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #sandwich-btn.open span:nth-child(2) {
        opacity: 0;
    }

    #sandwich-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }


}
