/*
--- Base Styles & Reset ---
*/


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

html, body {
    overflow-x: hidden;
    width: 100%;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background-color: #0d0d0d;
    color: #e6e6e6;
    line-height: 1.6;
    scroll-behavior: smooth;
    width: 100%;
}

.main-content {
    flex-grow: 1;
}

a {
    color: #e6e6e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f7b731;
}




                    /*
                        --- Header ---
                    */



.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(13, 13, 13, 0.9);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}




                    /*
                        --- Navigation ---
                    */



.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.main-nav ul li a.active::after,
.main-nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f7b731;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    transform: scaleX(1);
}



                    /*
                        --- Hamburger Menu ---
                    */



.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #e6e6e6;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background-color: #e6e6e6;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}



                    /*
                        --- Hero Section ---
                    */



.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: url('/newmoban/_external/demo.mobanwang.com/mb/lo202506/202506090/html/images/Hero-img.png') no-repeat center center/cover;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-title, .hero-subtitle, .btn {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4em;
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-in-out;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    animation: fadeIn 1.2s ease-in-out;
}



                    /*
                        --- Buttons ---
                    */



.btn {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #e6e6e6;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: fadeIn 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: #f7b731;
    border-color: #f7b731;
    color: #0d0d0d;
}

.btn .btn-text,
.btn .loader-ring {
    transition: opacity 0.3s ease;
}

.btn .loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-radius: 50%;
    opacity: 0;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .loader-ring {
    width: 20px;
    height: 20px;
    border-top-color: #fff;
    border-left-color: #fff;
    animation: spin 1s linear infinite;
    opacity: 1;
}



                    /*
                        --- Keyframe Animations ---
                    */



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



                    /*
                        --- Footer ---
                    */



.main-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #1a1a1a;
}

.main-footer p {
    font-size: 14px;
    margin-bottom: 15px;
}

.social-links a {
    font-size: 20px;
    margin: 0 10px;
}



                    /*
                        --- Portfolio Section ---
                    */



.portfolio-section {
    padding: 100px 20px;
    text-align: center;
}

.section-title {
    font-size: 3em;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: #fff;
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}



                    /*
                        --- About Section ---
                    */



.about-section {
    padding: 100px 20px;
    text-align: center;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.about-photo {
    flex: 1 1 300px;
}

.about-photo img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.about-text {
    flex: 2 1 400px;
}

.about-text h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #f7b731;
}

.about-text p {
    font-size: 1.1em;
    margin-bottom: 15px;
}



                    /*
                        --- Contact Section ---
                    */



.contact-section {
    padding: 100px 20px;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

.contact-info, .contact-form-container {
    flex: 1 1 400px;
}

.contact-info h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #f7b731;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info ul li i {
    color: #f7b731;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}



                    /*
                        --- Form Styles ---
                    */



.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    background-color: #222;
    color: #e6e6e6;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f7b731;
}

.contact-form-container .btn {
    width: 100%;
    text-align: center;
}



                    /*
                        --- Toast Notifications ---
                    */



.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1.2em 2em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    z-index: 1000;
    font-weight: bold;
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast.active {
    transform: translateX(0);
}

.toast.hidden {
    display: none;
}

.toast i {
    font-size: 1.5em;
}

.toast p {
    margin: 0;
}

.success-toast {
    background-color: #4CAF50;
}

.error-toast {
    background-color: #f44336;
}



                    /*
                        --- Media Queries (Responsiveness) ---
                    */



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

    .logo {
        position: static;
        margin-right: auto;
    }

    .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 13, 13, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul li {
        margin: 20px 0;
    }

    .menu-toggle {
        display: block;
        position: static;
        margin-left: auto;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-text {
        text-align: center;
    }

    .section-title {
        font-size: 2em;
    }

    .toast {
        right: 50%;
        transform: translateX(120%) translateX(50%);
    }

    .toast.active {
        transform: translateX(50%);
    }
}