@import url("sections/header.css");
@import url("sections/contact.css");
@import url("sections/resume.css");
@import url("sections/home.css");
@import url("sections/about.css");
@import url("sections/edu.css");
@import url("sections/skills.css");
@import url("sections/projects.css");
@import url("sections/contact-section.css");
@import url("sections/footer.css");
@import url("sections/easter-eggs.css");

@font-face {
    font-family: CursiveFont;
    src: url(../Assets/Fonts/HouseScript.ttf);
}

@font-face {
    font-family: BoldFont;
    src: url(../Assets/Fonts/Pricedown.otf);
}

:root {
    --cursive-text: CursiveFont, sans-serif;
    --bold-text: BoldFont, sans-serif;
}

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

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

body {
    background-color: #121212;
    color: #f5f5f5;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #121212;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.loading-logo {
    margin-bottom: 3rem;
}

.loading-name {
    font-family: var(--cursive-text);
    font-size: 4rem;
    color: #fff;
    text-shadow:
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #fff,
        0 0 42px #b4952f,
        0 0 82px #b4952f,
        0 0 92px #b4952f,
        0 0 102px #b4952f;
    animation: logoFlicker 3s infinite alternate;
    margin-bottom: 0.5rem;
}

.loading-subtitle {
    font-family: var(--bold-text);
    font-size: 1.5rem;
    color: #b4952f;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(180, 149, 47, 0.5);
}

@keyframes logoFlicker {
    0%, 50%, 100% {
        text-shadow:
            0 0 4px #fff,
            0 0 11px #fff,
            0 0 19px #fff,
            0 0 40px #b4952f,
            0 0 80px #b4952f,
            0 0 90px #b4952f;
    }
    25%, 75% {
        text-shadow:
            0 0 2px #fff,
            0 0 5px #fff,
            0 0 8px #fff,
            0 0 15px #b4952f,
            0 0 25px #b4952f;
    }
}

.loading-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 2rem auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #b4952f;
    animation-duration: 2s;
}

.spinner-ring:nth-child(2) {
    border-right-color: #dfab00;
    animation-duration: 1.5s;
    animation-direction: reverse;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: #b4952f;
    animation-duration: 1s;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

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

.loading-text {
    font-size: 1.2rem;
    color: #f5f5f5;
    margin: 2rem 0 1rem;
    opacity: 0;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loading-progress {
    width: 300px;
    margin: 1rem auto 0;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #b4952f, #dfab00, #b4952f);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 2s infinite;
    box-shadow: 0 0 20px rgba(180, 149, 47, 0.5);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-percentage {
    text-align: center;
    color: #b4952f;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.main-content.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Media */
@media (max-width: 768px) {
    .loading-name {
        font-size: 3rem;
    }
    
    .loading-subtitle {
        font-size: 1.2rem;
    }
    
    .loading-spinner {
        width: 100px;
        height: 100px;
    }
    
    .loading-progress {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .loading-name {
        font-size: 2.5rem;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .loading-progress {
        width: 200px;
    }
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: #dfab00;
    z-index: 10000;
    transition: width 0.1s ease-out;
}

.section-title {
    font-family: var(--bold-text);
    font-size: 5rem;
    color: #b4952f;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    text-shadow: 
        0 0 10px rgba(180, 149, 47, 0.5),
        0 0 20px rgba(180, 149, 47, 0.3),
        0 0 30px rgba(180, 149, 47, 0.2);
}

.section-title::after {
    content: "";
    display: block;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #b4952f, #dfab00, #b4952f, transparent);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(180, 149, 47, 0.4);
}