/* Global Reset and Colors */
:root {
    --primary-color: #111111;
    --accent-color: #D4AF37;
    --bg-white: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --text-main: #333333;
    --text-light: #777777;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #FFFFFF;
    --accent-color: #D4AF37;
    --bg-white: #111111;
    --bg-secondary: #1a1a1a;
    --text-main: #EEEEEE;
    --text-light: #AAAAAA;
    --box-shadow: 0 10px 30px rgba(255, 255, 255, 0.02);
    --box-shadow-hover: 0 15px 40px rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Header Styles */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.transparent-header {
    background-color: transparent;
    padding: 20px 0;
}

.transparent-header .header-nav-link {
    color: #ffffff;
}

.transparent-header .logo-text {
    color: #ffffff;
}

.solid-header {
    background-color: var(--primary-color);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.solid-header .header-nav-link {
    color: var(--bg-white);
}

.header-nav-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.navbar-logo {
    height: 56px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.solid-header .navbar-logo {
    filter: none;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.header-nav-lists {
    display: none;
    list-style: none;
}

.header-nav-list {
    margin: 0 15px;
}

.header-nav-link {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.header-active {
    color: var(--accent-color) !important;
}


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

.header-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.header-nav-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.navbar-logo {
    height: 56px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
    /* Optional: filter invert if dark theme needed, but since solid header is white, it works well. For transparent header over dark video, logo should ideally be white. If the user provided a transparent logo, it might be colored. I will add a drop shadow to ensure visibility over video just in case. */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.solid-header .navbar-logo {
    filter: none;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.header-nav-lists {
    display: none;
    list-style: none;
}

.header-nav-list {
    margin: 0 15px;
}

.header-nav-link {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.header-active {
    color: var(--accent-color) !important;
}

.header-btn-custom {
    padding: 12px 24px;
    background-color: transparent;
    color: var(--accent-color) !important;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header-btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    transition: var(--transition);
    z-index: -1;
}

.header-btn-custom:hover::before {
    width: 100%;
}

.header-btn-custom:hover {
    color: var(--primary-color) !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}
.theme-toggle-btn:hover {
    transform: scale(1.1);
}
.solid-header .theme-toggle-btn {
    color: var(--bg-white);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
:root:not([data-theme="dark"]) .sun-icon { display: none; }
:root:not([data-theme="dark"]) .moon-icon { display: block; }

/* Hamburger Menu for Mobile */
.header-hamburger-icon {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.header-hamburger-line-1,
.header-hamburger-line-2,
.header-hamburger-line-3 {
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

/* Mobile Menu Active State */
.show .header-hamburger-line-1 {
    transform: translateY(9px) rotate(45deg);
}

.show .header-hamburger-line-2 {
    opacity: 0;
}

.show .header-hamburger-line-3 {
    transform: translateY(-9px) rotate(-45deg);
}

ul.header-nav-lists.show {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

ul.header-nav-lists.show .header-nav-list {
    margin: 20px 0;
}

ul.header-nav-lists.show .header-nav-link {
    font-size: 24px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 44px;
    }
}

@media (min-width: 992px) {
    .header-nav-lists {
        display: flex;
        align-items: center;
    }
    .header-hamburger-icon {
        display: none;
    }
}
