/*
Theme Name: United Beauty Award
Theme URI: https://unitedbeautyaward.com
Description: One-page theme for United Beauty Award event
Author: Your Name
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uba
*/

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

:root {
    --primary-color: #D2EE4E;
    --secondary-color: #1a1a1a;
    --dark-bg: #202224;
    --text-color: #C7D2E9;
    --text-dark: #333;
    --bg-color: #fff;
    --accent-color: #f5f5f5;
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    /* Explicitly set base font size */
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling in landscape on iOS */
    -ms-text-size-adjust: 100%;
    /* Prevent font scaling in IE */
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-bg);
    -webkit-font-smoothing: antialiased;
    /* Better font rendering on Mac */
    -moz-osx-font-smoothing: grayscale;
    /* Better font rendering on Firefox Mac */
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1560px;
    margin: 0px auto;
    padding: 0px 30px;
    width: 100%;
}

@media (max-width: 1440px) {
    .container {
        max-width: 1120px;
        padding: 0 40px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1020px;
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
.btn {
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 8px 75px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 10px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    display: inline-block;
}

button:hover,
.btn:hover {
    background: #9ec230;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 214, 62, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Navigation */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.site-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0 auto;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    padding: 5px;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 5px;
}

.mobile-menu-toggle span:last-child {
    margin-bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.apply-btn {
    margin-right: auto;
}

/* Mobile Menu Container - Hidden on Desktop */
.mobile-menu-container {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .site-logo {
        z-index: 1001;
    }

    /* Hide desktop menu on mobile */
    .nav-menu {
        display: none;
    }

    /* Mobile Menu Container */
    .mobile-menu-container {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--dark-bg);
        z-index: 999;
        pointer-events: none;
        opacity: 0;
        transition: all 0.5s ease;
    }

    .mobile-menu-container.active {
        pointer-events: auto;
        opacity: 1;
        left: 0;
    }

    .mobile-menu-wrapper {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 100px 40px 0;
        overflow-y: hidden;
    }

    /* Mobile Navigation */
    .mobile-menu-nav {
        transform: translateX(-30px);
        opacity: 0;
        transition: all 0.4s ease 0.1s;
    }

    .mobile-menu-container.active .mobile-menu-nav {
        transform: translateX(0);
        opacity: 1;
    }

    .mobile-nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-menu li {
        border-bottom: 1px solid rgba(199, 210, 233, 0.1);
    }

    .mobile-nav-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0;
        font-size: 1.1rem;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--text-color);
        transition: color 0.3s ease;
    }

    .mobile-nav-menu a::after {
        content: '→';
        font-size: 1.5rem;
        color: var(--text-color);
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }

    .mobile-nav-menu a:hover {
        color: var(--primary-color);
        opacity: 1;
    }

    .mobile-nav-menu a:hover::after {
        opacity: 1;
    }

    /* Mobile Menu Contacts */
    .mobile-menu-contacts {
        padding: 30px 0 40px;
        border-top: 1px solid rgba(199, 210, 233, 0.1);
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.4s ease 0.2s;
    }

    .mobile-menu-container.active .mobile-menu-contacts {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-contacts-title {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 1px;
        color: rgba(199, 210, 233, 0.5);
        margin-bottom: 15px;
        text-transform: uppercase;
    }

    .mobile-contacts-info,
    .mobile-contacts-address {
        margin-bottom: 30px;
    }

    .mobile-contact-link {
        display: block;
        font-size: 1.1rem;
        color: var(--text-color);
        margin-bottom: 8px;
        transition: color 0.3s ease;
    }

    .mobile-contact-link:hover {
        color: var(--primary-color);
        opacity: 1;
    }

    .mobile-address-text {
        font-size: 0.95rem;
        color: rgba(199, 210, 233, 0.7);
        line-height: 1.5;
    }

    .mobile-contacts-social {
        display: flex;
        gap: 20px;
        margin-top: 25px;
    }

    .mobile-social-link {
        width: 50px;
        height: 50px;
        border: 1px solid rgba(199, 210, 233, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-color);
        transition: all 0.3s ease;
    }

    .mobile-social-link:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
        transform: translateY(-2px);
        opacity: 1;
    }

    .mobile-social-link svg {
        width: 20px;
        height: 20px;
    }

    section {
        padding: 60px 0;
    }

    .nav-container .btn {
        display: none;
    }
}