html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #020411;
    color: white;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    background: none;
}

nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 25px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    transition: all 0.4s ease;
    padding: 10px;
}

nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

spline-viewer {
    width: 100%;
    height: 100vh;
    display: block;
    clip-path: inset(0 0 70px 0);
    margin-bottom: -70px;
}

.section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #020411;
}

.contact-container {
    text-align: center;
    padding: 50px;
}

.contact-container h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-container p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.icon-link {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1) opacity(0.7);
    font-size: 60px;
}

.icon-link img {
    width: 40px;
    height: 40px;
}

.icon-link:hover {
    transform: translateY(-10px);
    filter: brightness(0) invert(1) opacity(1);
    drop-shadow: 0 0 10px rgba(79, 172, 254, 0.8);
}

.contact-footer {
    margin-top: 80px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.projects-container {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #4facfe;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.projects-container h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.promo-text strong {
    color: #4facfe;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.skill-tags span {
    border: 1px solid rgba(79, 172, 254, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(79, 172, 254, 0.05);
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    background: rgba(79, 172, 254, 0.2);
    border-color: #4facfe;
    transform: translateY(-3px);
}

.cta-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}
.reference-container {
    max-width: 1000px;
    width: 90%;
    text-align: center;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #4facfe #020411;
}

.ref-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.ref-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
}

.ref-card i {
    color: #4facfe;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.ref-card:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: #4facfe;
    transform: translateX(5px);
}

.ref-card:hover i {
    opacity: 1;
}

.reference-grid::-webkit-scrollbar {
    width: 6px;
}
.reference-grid::-webkit-scrollbar-track {
    background: #020411;
}
.reference-grid::-webkit-scrollbar-thumb {
    background: #4facfe;
    border-radius: 10px;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #020411;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(79, 172, 254, 0.1);
    border-top: 3px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

#loader p {
    color: #4facfe;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.loaded #loader {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    body, #main-wrapper {
        overflow-y: auto !important;
        height: auto;
    }

    .section {
        height: auto;
        min-height: 100vh;
        padding: 80px 20px; 
    }

    .hero-text h1 {
        font-size: 2rem; 
    }

    .reference-grid {
        grid-template-columns: 1fr; 
        max-height: none; 
    }

    nav {
        top: 0;
        padding: 15px 0;
        background: rgba(2, 4, 17, 0.95);
    }

    nav a {
        margin: 0 10px;
        font-size: 11px;
    }
}