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

html {
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    font-size: 16px;
    /* Base font-size */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: -1;
}

body {
    font-family: 'Geist', sans-serif;
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh; */
    background-color: var(--bg-color);
    color: var(--text-color);
    /* overflow: hidden; */
}

/* Root Variables */
:root {
    --bg-color: #111111;
    --text-color: #f4f4f9;
    --paragraph-color: #b5b5b5;
    --primary-color: #3498db;
    --secondary-color: #355879;
    --font-scale: 1.2;

    /* Fonts */
    --font-primary: 'Geist', system-ui,
        Avenir,
        Helvetica,
        Arial,
        sans-serif;
    --font-secondary: 'Geist', system-ui,
        Avenir,
        Helvetica,
        Arial,
        sans-serif;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Responsive Typography */
    --h1-size: clamp(1.8rem, 5vw, 2.5rem);
    --h2-size: clamp(1.5rem, 4vw, 2rem);
    --h3-size: clamp(1.5rem, 3vw, 1.75rem);
    --body-text-size: clamp(0.875rem, 2vw, 1rem);
    --small-text-size: clamp(0.75rem, 2vw, 0.875rem);

    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 600;
    --font-bold: 700;
}

/* Typography */
body {
    font-family: var(--font-primary);
    font-size: var(--body-text-size);
    font-weight: var(--font-regular);
    line-height: 1;
}

h1 {
    font-size: var(--h1-size);
    font-weight: var(--font-medium);
}

h2 {
    font-size: var(--h2-size);
    font-weight: var(--font-medium);
}

h3 {
    font-size: var(--h3-size);
    font-weight: var(--font-bold);
}

p,
a,
button {
    text-decoration: none;
    color: var(--paragraph-color);
    font-size: var(--body-text-size);
    font-weight: var(--font-regular);
}

strong{
    color: var(--text-color);
}

button #menu-toggle {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

/* Hide content initially */
#content {
    display: none;
}

/* Header */
header {
    /* navbar positioning and sizing */
    position: sticky;
    top: 0;
    height: 4rem;

    /* content layout */
    padding: 1rem 2rem;

    /* align-self: flex-start; */
    width: 100%;

    /* blur background */
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: height 0.3s ease-in-out;
}

header.expanded {
    height: 100vh;
    /* Expands to full screen when menu is open */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-content{
    max-width: 1200px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
}

.logo {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: bold;
    color: var(--text-color);
}

.logo:hover {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* Mobile Navigation */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
}

#home-link {
    display: none;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    #menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(17, 17, 17, 1);
        /* Dark overlay */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        list-style: none;
        opacity: 0;
        transform: translateY(-100%);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
    }

    header.expanded {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: height 0.3s ease-in-out;
    }

    #home-link{
        display: block;
    }
}

/* Main Content */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1;
    overflow: hidden;
    width: 100vw;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    width: 100%;
    display :flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-text {
    font-size: var(--small-text-size);
}

.footer-nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
