/* ========================================
   Rethink Software - Common Styles
   Shared across all pages
   ======================================== */

/* CSS Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #202124;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================
   Navigation Bar
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #202124;
    text-transform: none;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #5f6368;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #202124;
}

.nav-links a.active {
    color: #202124;
    font-weight: 600;
}

/* ========================================
   Hamburger Menu Button
   ======================================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #202124;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    transition: right 0.3s ease;
    padding: 5rem 2rem 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links a {
    text-decoration: none;
    color: #5f6368;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.mobile-menu-links a:hover {
    color: #202124;
}

.mobile-menu-links a.active {
    color: #202124;
    font-weight: 600;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Footer
   ======================================== */
footer {
    margin-top: auto;
    padding-bottom: 20px;
    padding-top: 20px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #9aa0a6;
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    footer {
        font-size: 0.75rem;
        padding: 15px 20px;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .mobile-menu {
        width: 85%;
    }
}
