/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: white;
    overflow-x: hidden;
}

/* Global Header */
.global-header {
    position: relative;
    background-color: white;
    width: 100%;
}

/* Logo container (two logos side by side) */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    height: clamp(60px, 8vw, 100px);
}

.logo-container {
    width: clamp(60px, 8vw, 100px);
    height: clamp(60px, 8vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Make second logo container larger */
.logo-container:nth-child(2) {
    width: clamp(120px, 15vw, 180px);
    height: clamp(80px, 10vw, 120px);
}

/* Rotating logo */
.rotating-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: rotateLogo 4s linear infinite;
    transition: transform 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
}

.rotating-logo:hover {
    animation-play-state: paused;
    transform: scale(1.2);
}

.rotating-logo:active {
    transform: scale(0.95);
}

/* Static second logo - larger size */
.static-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.static-logo:hover {
    transform: scale(1.1);
}

.static-logo:active {
    transform: scale(0.95);
}

@keyframes rotateLogo {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Navigation section */
.navigation {
    text-align: center;
    padding: clamp(60px, 10vw, 80px) 0 20px 0;
    background-color: white;
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    flex-direction: column;
    width: 30px;
    height: 30px;
    cursor: pointer;
    justify-content: space-around;
    padding: 5px 0;
    z-index: 101;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: rgb(255, 140, 0);
    transition: 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Active hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: rgb(255, 140, 0);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: rgb(255, 140, 0);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(15px, 4vw, 40px);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Navigation Link – updated with bigger font + 3D hover */
.nav-menu li a {
    color: rgb(255, 140, 0);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px; /* Bigger font */
    font-weight: 700;
    text-decoration: none;
    padding: 10px 14px;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.4;

    /* 3D interaction */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform-style: preserve-3d;
}

/* 3D Hover Lift Effect */
.nav-menu li a:hover {
    transform: translateZ(10px) scale(1.08);
    box-shadow: 0px 6px 15px rgba(0,0,0,0.15);
    opacity: 1;
}

/* Active link */
.nav-menu li.current-page a,
.nav-menu li a.active-link {
    font-weight: 700 !important;
    color: rgb(255, 140, 0) !important;
}

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Styles */
@media (max-width: 768px) {

    .hamburger { 
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 80px;
        transition: right 0.3s ease-in-out;
        z-index: 100;
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li a {
        padding: 20px 30px;
        font-size: 14px;
        width: 100%;
    }

    .global-header {
        margin-bottom: 20px;
    }
}

/* Small devices */
@media (max-width: 480px) {
    .logo {
        top: 15px;
        left: 15px;
        gap: 10px;
    }

    .logo-container {
        width: 50px;
        height: 50px;
    }

    .logo-container:nth-child(2) {
        width: 80px;
        height: 55px;
    }

    .hamburger {
        right: 15px;
        width: 28px;
        height: 28px;
    }

    .hamburger span {
        height: 3px;
    }

    .nav-menu {
        width: 90%;
        padding-top: 70px;
    }

    .nav-menu li a {
        padding: 15px 20px;
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .nav-menu { width: 100%; }

    .logo-container:nth-child(2) {
        width: 70px;
        height: 50px;
    }
}

/* Disable scroll when mobile menu open */
body.menu-open {
    overflow: hidden;
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .rotating-logo:hover {
        animation-play-state: running;
        transform: none;
    }
}
