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

@font-face {
    font-family: 'Nexa';
    src: url('Nexa-ExtraLight.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Nexa';
    src: url('Nexa-Heavy.ttf') format('truetype');
    font-weight: 700;
}

body {
    background-color: #1a1a1d;
    background-image: url("Assets/BG.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Nexa', sans-serif;
    color: white;
    font-weight: 300;
}

h1,
h2,
h3,
h4,
b {
    font-weight: 700;
}


/* Login Overlay */

.main-login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.login-box {
    background-color: #2c2f33;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #3c5c77;
    box-shadow: 0 0 20px rgba(60, 92, 119, 0.5);
}

.login-box h1 {
    margin-bottom: 10px;
}

.login-box p:nth-child(2) {
    margin-bottom: 20px;
}

.login-box p:nth-child(1) {
    margin-top: 20px;
}

.login-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #3c5c77;
    background-color: #23272a;
    color: white;
    border-radius: 5px;
    font-family: 'Nexa';
}

.login-box button,
.main-form button {
    padding: 10px 20px;
    border: none;
    background-color: #3c5c77;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.login-box button:hover,
.main-form button:hover {
    background-color: #4a7295;
}

.login-box a {
    color: #8cb3d9;
    text-decoration: none;
    font-size: 14px;
}


/* Main Layout */

#main-content {
    display: none;
}


/* Hidden by default */

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.main-body {
    display: flex;
    width: 95%;
    max-width: 1800px;
    margin: 20px auto;
    gap: 20px;
}

.main-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    height: 400px;
    background-color: rgba(44, 47, 51, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid #3c5c77;
}

.main-sidebar h3 {
    margin-bottom: 15px;
    color: #8cb3d9;
}

.main-sidebar ul {
    list-style: none;
}

.main-sidebar li a {
    text-decoration: none;
    color: white;
    padding: 8px 0;
    display: block;
    transition: color 0.3s;
}

.main-sidebar li a:hover {
    color: #8cb3d9;
}

.main-container {
    flex: 1;
    min-width: 0;
}


/* Sidebar Toggle Button (Hamburger) */

#sidebar-toggle-btn {
    display: none;
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 1002;
    width: 50px;
    height: 50px;
    background-color: rgba(60, 92, 119, 0.8);
    border: 1px solid #8cb3d9;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    flex-direction: column;
    justify-content: space-around;
    padding: 10px;
    transition: left 0.4s ease-in-out;
}

#sidebar-toggle-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}


/* Overlay for when sidebar is open */

#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0s 0.4s;
}

#sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-in-out;
}


/* Content Section */

.content-section {
    background-color: rgba(35, 39, 42, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid #3c5c77;
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
}

.section-header {
    font-size: 2.5em;
    color: #8cb3d9;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3c5c77;
}

.sub-section-header {
    font-size: 1.8em;
    margin-top: 25px;
    margin-bottom: 15px;
}


/* Welcome Header */

.main-welcome {
    position: relative;
    width: 100%;
    height: 450px;
    text-align: center;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-welcome-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
}

.main-welcome h1,
.main-welcome h2 {
    text-shadow: 0 0 10px black;
}

.main-welcome h1 {
    font-size: 3em;
}

.main-welcome h2 {
    font-size: 1.5em;
    font-weight: 300;
}


/* Section 1: About */

.intro-name {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.intro-pfp {
    width: 300px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin: auto
}

.intro-text {
    margin: auto;
    text-align: center;
    width: 60%;
}

.intro-text h3 {
    color: #8cb3d9;
}

.intro-who {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.intro-details {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.details-list {
    list-style: none;
    padding: 0;
}

.details-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #3c5c77;
    font-size: 1.1em;
}

.details-list li:last-child {
    border-bottom: none;
}

.details-list li span:first-child {
    font-weight: 700;
    color: #8cb3d9;
    margin-right: 20px;
}

.history-timeline {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.history-card {
    flex: 1;
    text-align: center;
    max-width: 300px;
    min-width: 250px;
}

.history-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.history-arrow {
    width: 50px;
}

.ref-sheet {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
}

.model-items {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.model-card {
    flex: 1;
    max-width: 300px;
    min-width: 250px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.model-card img {
    max-width: 100%;
    height: 320px;
    object-fit: contain;
    margin-bottom: 10px;
}

.model-card h4 {
    color: #8cb3d9;
    margin-bottom: 5px;
    min-height: 40px;
}


/* Section 2: Preferences */

.preferences-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.preference-box {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.pref-columns {
    display: flex;
    gap: 20px;
}

.pref-columns>div {
    flex: 1;
}

.preference-box h3 {
    color: #8cb3d9;
    margin-bottom: 10px;
}

.preference-box ul {
    list-style: none;
}

.preference-box li {
    margin-bottom: 5px;
}

.full-width {
    grid-column: 1 / -1;
}

.hobbies-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}


/* Section 3: Media */

.slider-container {
    margin-bottom: 30px;
}

.slider-container h3 {
    font-size: 1.5em;
    color: #8cb3d9;
    margin-bottom: 10px;
}

.slider-wrapper {
    position: relative;
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    gap: 20px;
}

.slider::-webkit-scrollbar {
    height: 8px;
}

.slider::-webkit-scrollbar-track {
    background: #23272a;
    border-radius: 10px;
}

.slider::-webkit-scrollbar-thumb {
    background: #3c5c77;
    border-radius: 10px;
}

.atf-card,
.music-card,
.games-card,
.credit-card {
    flex: 0 0 auto;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.atf-card {
    width: 180px;
}

.atf-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.atf-title {
    padding: 10px;
    font-weight: 300;
    font-size: 0.9em;
}

.main-waifu {
    text-align: center;
}

.main-waifu img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.main-waifu h3 {
    font-size: 1.5em;
    color: #8cb3d9;
}

.games-card {
    width: 220px;
    padding-bottom: 10px;
}

.games-card h4 {
    color: #8cb3d9;
    padding: 10px 5px 5px;
}

.games-card ul {
    list-style: none;
    font-size: 0.8em;
}

.games-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
}

.music-card {
    width: 220px;
}

.music-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
}

.music-card h4 {
    color: #8cb3d9;
    padding: 10px 5px 5px;
}

.music-card ul {
    list-style: none;
    padding: 0 10px 10px;
    font-size: 0.8em;
}

.music-other {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.music-other-col {
    flex: 1;
    min-width: 280px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.music-other-col h3 {
    color: #8cb3d9;
    margin-bottom: 10px;
}

.music-other-col ul {
    list-style: none;
}

.pre-btn,
.nxt-btn {
    border: none;
    width: 40px;
    height: 100%;
    position: absolute;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.0);
    cursor: pointer;
    z-index: 8;
    transition: background 0.3s;
}

.pre-btn:hover,
.nxt-btn:hover {
    background: rgba(60, 92, 119, 0.7);
}

.pre-btn {
    left: 0;
    border-radius: 10px 0 0 10px;
}

.nxt-btn {
    right: 0;
    border-radius: 0 10px 10px 0;
}

.pre-btn img,
.nxt-btn img {
    width: 20px;
    filter: invert(1);
}

.pre-btn img {
    transform: rotate(180deg);
}


/* Iframe Toggle Section */

.iframe-container {
    text-align: center;
}

.toggle-iframe-btn {
    padding: 12px 25px;
    border: none;
    background-color: #3c5c77;
    color: white;
    font-family: --------------------------------------'Nexa';
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

.toggle-iframe-btn:hover {
    background-color: #4a7295;
}

.iframe-wrapper {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-in-out;
}

.iframe-wrapper.active {
    display: block;
    max-height: 800px;
}


/* Section 4: Tech */

.main-pc-laptop {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.spec-card {
    flex: 1;
    min-width: 300px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.spec-card ul {
    list-style: none;
}

.spec-card li {
    margin-bottom: 8px;
}

.spec-card b {
    font-weight: 700;
    color: #8cb3d9;
}

.main-tech-prefs {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tech-pref-col {
    flex: 1;
    min-width: 300px;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.tech-item img {
    width: 40px;
    height: 40px;
}

.tech-item h4 {
    color: #8cb3d9;
}


/* Section 5: Cars */

.cars-category h3 {
    color: #8cb3d9;
    font-size: 1.5em;
    margin-bottom: 10px;
    margin-top: 10px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.car-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.car-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.car-card p {
    padding: 10px;
}

.racing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.racing-item {
    text-align: center;
}

.racing-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 5px #000);
}


/* Section 6: Bottom Text */

.community-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.community-box {
    flex: 1;
    min-width: 300px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.tags-list {
    list-style: none;
    font-size: 1.1em;
}

.tags-list li {
    margin-bottom: 12px;
}

.tag-label {
    color: #8cb3d9;
    font-weight: 700;
}

.contents-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.content-type {
    flex: 1;
    min-width: 200px;
}

.content-type h3 {
    color: #8cb3d9;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.content-type ul {
    list-style: none;
}

.content-type li {
    margin-bottom: 8px;
}

.credit-card {
    width: 200px;
    padding-bottom: 10px;
}

.credit-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.credit-card h4 {
    color: #8cb3d9;
    padding: 10px 5px 5px;
}

.credit-card a {
    color: #8cb3d9;
    text-decoration: none;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.photo-gallery img {
    width: 100%;
    border-radius: 10px;
}

hr {
    height: 4px;
    background-color: #3c5c77;
    border: none;
    margin: 25px auto;
    width: 100%;
}

.main-thank {
    text-align: center;
    padding: 40px 0;
}

.main-thank h1 {
    font-size: 3em;
    color: #8cb3d9;
}

.main-thank-you-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    margin-top: 20px;
    border-radius: 16px;
    ;
}


/* Logout Button in Sidebar */

.logout-button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    border: none;
    background-color: #c94a4a;
    color: white;
    font-family: 'Nexa';
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #a83e3e;
}


/* Responsive */

@media(max-width: 1200px) {
    .main-container {
        width: 100%;
    }
    .main-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 280px;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        padding-top: 160px;
    }
    .main-sidebar.active {
        transform: translateX(0);
    }
    #sidebar-toggle-btn {
        display: flex;
    }
    #sidebar-toggle-btn.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    #sidebar-toggle-btn.active span:nth-child(2) {
        opacity: 0;
    }
    #sidebar-toggle-btn.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    .intro-name {
        flex-wrap: wrap;
    }
    .intro-text {
        width: 100%;
    }
}

@media(max-width: 768px) {
    .history-arrow {
        transform: rotate(90deg);
    }
    .preferences-grid {
        grid-template-columns: 1fr;
    }
    .main-thank h1 {
        font-size: 2em;
    }
    .main-welcome {
        height: 350px;
    }
}

@media(max-width: 600px) {
    .intro-name {
        flex-direction: column;
        text-align: center;
    }
    .main-welcome h1 {
        font-size: 2em;
    }
    .main-welcome h2 {
        font-size: 1.2em;
    }
    .section-header {
        font-size: 2em;
    }
    .atf-card,
    .music-card,
    .games-card {
        width: 150px;
    }
    .atf-card img,
    .music-card img,
    .games-card img {
        height: 200px;
    }
    .main-thank h1 {
        font-size: 1.5em;
    }
    .main-welcome {
        height: 280px;
    }
}
