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

:root {
    --primary: #93a58d;
    --secondary: #ad7b7e;
    --accent: #f86944;
    --purple: #9b59b6;
    --blue: #3498db;
    --green: #2ecc71;
    --yellow: #ffffaa;
    --orange: #e67e22;
    --dark: #323232;
	--white: #fff;
    --light: #fff5f8;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans HK", sans-serif;
	font-weight: 400;
    background: linear-gradient(180deg, #fff 0%, #fff 100%);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    position: relative;
	background-image: url("../images/bg.gif");
	background-position: center;
	background-repeat: repeat;
	background-size: cover;
	background-attachment: fixed;
}

/* White border overlay */
body::before {
    content: '';
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--primary);
    pointer-events: none;
    z-index: 9999;
    border-radius: 0;
	transition: all 0.3s ease;
}

body.scrolled::before {
	content: '';
    position: fixed;
    border: 2px solid var(--primary);
	top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
	pointer-events: none;
    z-index: 9999;
    border-radius: 0;
}

/* Circle Transition Animations */
.circle-transition {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: none;
}

/* Initial loading circle - starts big and shrinks */
.circle-transition.initial {
    width: 300vmax;
    height: 300vmax;
    opacity: 1;
    animation: shrinkCircle 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Navigation circle - starts small and grows */
.circle-transition.active {
    opacity: 1;
    animation: growCircle 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes shrinkCircle {
    0% {
        width: 300vmax;
        height: 300vmax;
        opacity: 1;
    }
    100% {
        width: 0;
        height: 0;
        opacity: 1;
    }
}

@keyframes growCircle {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300vmax;
        height: 300vmax;
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    backdrop-filter: blur(10px);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 0px 0px var(--shadow);
    transition: all 0.3s ease;
    border-radius: 0px;
    margin: 15px;
	background-image: url("../images/top_bar.jpg");
	background-position: top;
	background-repeat: no-repeat;
	background-size: cover;

}

.nav.scrolled {
    padding: 0.5rem 1rem;
    box-shadow: 0 0px 0px var(--shadow);
	margin: 0px;
}

.nav-logo {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
	font-size: 0.9rem;
    text-decoration: none;
    color: var(--white);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--yellow), var(--yellow));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--yellow);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* Footer */
.footer {
    background: #81937b;
    color: white;
    text-align: center;
    padding: 2rem;

}

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}









@media (max-width: 768px) {
    body::before {
        top: 11px;
        left: 11px;
        right: 11px;
        bottom: 11px;
    }
    
    .nav {
        margin: 11px;
		padding: 0.5rem 1.5rem;
    }
    
	.nav.scrolled {
		padding: 0.5rem 1rem;
		box-shadow: 0 0px 0px var(--shadow);
	}
	
    .nav-menu {
        position: fixed;
        top: 48px;
        left: -105%;
		height: 100vh;
		opacity: 0.95;
        flex-direction: column;
		text-align: center;
        background: #81937b;
        width: calc(100% - 0px);
        margin-left: 0px;
        padding: 2rem;
        box-shadow: 0 0px 0px #000;
        transition: left 0.3s ease;
        gap: 1rem;
        border-radius: 0px;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
  
    .nav-logo-img {
        height: 30px;
    }


}

@media (max-width: 480px) {
	body::before {
        top: 7px;
        left: 7px;
        right: 7px;
        bottom: 7px;
    }
    
    .nav {
        margin: 7px;
    }
}




/* Print Styles */
@media print {
    .nav {
        display: none !important;
    }
}
