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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #161920;
}

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

header {
    background-color: #101216;
    border-bottom: #007bff 4px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.header-banner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    height: 160px;
}

.header-left {
    position: relative;
    z-index: 2;
    padding-left: 40px;
}

.brand-text h1 {
    font-size: 2.5rem;
    color: #ffffff;
    letter-spacing: 1.5px;
}

.brand-text p {
    color: #0099ff;
    font-size: 0.95rem;
    font-weight: 600;
}

.header-right {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-image-box {
    height: 100%;
    width: 600px;
    background-image: url('../header-image3.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

nav {
    background: #101216;
    border-top: 1px solid #212630;
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 15px 20px;
    background: #101216;
    width: fit-content;
    margin: 0 auto;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #ffffff;
    margin-bottom: 4px;
    border-radius: 2px;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-list li a {
    color: #a0a6b8;
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-list li a:hover, .nav-list li a.active {
    color: #fff;
    background: #007bff;
}

main {
    background: #1c202a;
    padding: 40px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-height: 450px;
    border: 1px solid #282d3b;
}

h2 {
    color: #ffffff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    color: #007bff;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.card {
    background: #161920;
    border: 1px solid #282d3b;
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #007bff;
}

.contact-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161920;
    border: 1px solid #282d3b;
    padding: 18px 25px;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-row.center-row {
    justify-content: center;
    text-align: center;
}

.contact-row.center-stack {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.contact-row.center-stack .contact-info {
    align-items: center;
}

.contact-row.center-stack .contact-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-info strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.contact-info span {
    color: #0099ff;
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #101216;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid #282d3b;
    transition: all 0.3s ease;
}

.contact-icon-svg {
    stroke: #0099ff;
    transition: stroke 0.3s ease;
}

.contact-btn:hover {
    background-color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
}

.contact-btn:hover .contact-icon-svg {
    stroke: #ffffff;
}

footer {
    background: #101216;
    color: #7a8294;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #212630;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    color: #7a8294;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #007bff;
}

@media(max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .header-banner {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }
    .header-left {
        padding-left: 0;
        text-align: center;
        margin-bottom: 15px;
    }
    .header-image-box {
        width: 100vw;
        height: 120px;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    .nav-list.active {
        max-height: 300px;
    }
    .nav-list li {
        width: 100%;
        text-align: center;
    }
    .reference-slider-item {
        width: 200px;
        height: 130px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-right {
        justify-content: center;
        gap: 15px;
    }
}

@media(max-width: 600px) {
    .contact-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-info {
        align-items: center;
    }
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    background: rgba(18, 22, 33, 0.95);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.auth-card h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #0099ff;
    padding-bottom: 10px;
}

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

.form-group label {
    display: block;
    color: #cccccc;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: #0b0e14;
    border: 1px solid #2a3447;
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
}

.form-group input:focus {
    border-color: #0099ff;
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #0099ff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn:hover {
    background: #007acc;
}

.auth-error {
    color: #ff4d4d;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #aaaaaa;
    font-size: 14px;
}

.auth-link a {
    color: #0099ff;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.reference-slider-container {
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reference-slider-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: scrollSlider 50s linear infinite;
}

.reference-slider-track:hover {
    animation-play-state: paused; 
}

.reference-slider-item {
    width: 260px;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #2a3447;
    background: #0b0e14;
    flex-shrink: 0;
}

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

.reference-slider-item img:hover {
    transform: scale(1.05);
}

@keyframes scrollSlider {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}