/* =============== RESET & BASE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100vh;
}

body {
    background: #0a0a1a;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    overflow: hidden;
    line-height: 1.6;
    height: 100vh;
}

/* =============== ANIMATED BACKGROUND =============== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(-10px) rotate(240deg); }
}

@keyframes glow {
    0%, 100% { opacity: 0.4; filter: blur(40px); }
    50% { opacity: 0.7; filter: blur(60px); }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(ellipse at top, #1a1b38 0%, #0a0a1a 40%, #000000 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    animation: float 15s ease-in-out infinite, glow 8s ease-in-out infinite;
}

.orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78, 14, 254, 0.3), transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(48, 62, 134, 0.25), transparent 70%);
    top: 30%;
    right: -5%;
    animation-delay: -5s;
}

.orb:nth-child(3) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 41, 99, 0.2), transparent 70%);
    bottom: -20%;
    left: 20%;
    animation-delay: -10s;
}

/* Starfield */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.star:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.star:nth-child(2) { top: 40%; left: 70%; animation-delay: 1s; }
.star:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.star:nth-child(4) { top: 80%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(5) { top: 15%; left: 85%; animation-delay: 1.5s; }
.star:nth-child(6) { top: 70%; left: 50%; animation-delay: 2.5s; }

/* =============== NAVIGATION =============== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 10, 26, 0.8);
    border-bottom: 1px solid rgba(98, 44, 248, 0.2);
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #622cf8, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    list-style: none;
}

nav ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #622cf8, #8b5cf6);
    transition: width 0.3s ease;
}

nav ul a:hover {
    color: white;
    background: rgba(98, 44, 248, 0.1);
}

nav ul a:hover::before {
    width: 80%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =============== MAIN CONTAINER =============== */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    height: 100vh;
    padding-top: 80px;
    gap: 2rem;
    max-width: 1800px;
    margin: 0 auto;
    padding-left: 3%;
    padding-right: 3%;
}

/* =============== LEFT SECTION =============== */
.left-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
}

.profile-showcase {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out;
}

.profile-image-main {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 5px solid rgba(98, 44, 248, 0.4);
    box-shadow: 0 25px 70px rgba(98, 44, 248, 0.5);
    transition: all 0.4s ease;
    object-fit: cover;
}

.profile-image-main:hover {
    transform: scale(1.08) rotate(3deg);
    border-color: #622cf8;
    box-shadow: 0 30px 90px rgba(98, 44, 248, 0.7);
}

.personal-info {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.name-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #622cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.title-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.location-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(98, 44, 248, 0.15);
    border: 1px solid rgba(98, 44, 248, 0.4);
    border-radius: 50px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    margin-bottom: 1rem;
}

.tagline {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #622cf8, #8b5cf6);
    color: white;
    box-shadow: 0 10px 30px rgba(98, 44, 248, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(98, 44, 248, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(98, 44, 248, 0.5);
}

.btn-secondary:hover {
    background: rgba(98, 44, 248, 0.15);
    border-color: #622cf8;
}

.UCjaguars{
    color: #622cf8;
}

/* =============== RIGHT SECTION =============== */
.right-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
    overflow: hidden;
    margin-bottom: 7rem;
}

.spline-showcase {
    margin-top: -12rem;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 480px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.planet-3d-main {
    width: 100%;
    max-width: 700px;
    height: 100%;
}

.biography-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.bio-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bio-content-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 1rem;
}

.bio-content-scroll::-webkit-scrollbar {
    width: 8px;
}

.bio-content-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.bio-content-scroll::-webkit-scrollbar-thumb {
    background: rgba(98, 44, 248, 0.4);
    border-radius: 10px;
}

.bio-content-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(98, 44, 248, 0.6);
}

.bio-text p {
    font-size: clamp(0.95rem, 1.3vw, 1rem);
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.2rem;
}

.info-columns { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.info-box {
    background: rgba(98, 44, 248, 0.05);
    border: 1px solid rgba(98, 44, 248, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.info-box h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    background: linear-gradient(135deg, #ffffff, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 0.2rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: clamp(0.9rem, 1.2vw, 0.5rem);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.info-box li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #622cf8;
    font-size: 1.2rem;
}

.info-box li:hover {
    transform: translateX(5px);
    color: #8b5cf6;
}

/* =============== ANIMATIONS =============== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* =============== PAGINATION =============== */
.pagination {
    position: fixed;
    bottom: 30px;
    left: 88%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 100;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(98, 44, 248, 0.4);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.pagination-btn:hover {
    background: rgba(98, 44, 248, 0.2);
    border-color: #622cf8;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(98, 44, 248, 0.5);
}

.pagination-btn span:first-child,
.pagination-btn span:last-child {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.pagination-btn.prev:hover span:first-child {
    transform: translateX(-3px);
}

.pagination-btn.next:hover span:last-child {
    transform: translateX(3px);
}

.pagination-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        overflow-y: auto;
        height: auto;
        padding-bottom: 3rem;
    }

    .spline-showcase {
        height: 300px;
    }

    .info-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    html, body {
        overflow-y: auto;
        height: auto;
    }

    .main-container {
        padding-top: 100px;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 3rem 2rem;
        gap: 1rem;
        transition: left 0.4s ease;
        border-right: 2px solid rgba(98, 44, 248, 0.3);
    }

    nav ul.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    nav ul a {
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        font-size: 1.3rem;
    }

    .spline-showcase {
        height: 250px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .pagination {
        bottom: 15px;
        gap: 1rem;
    }

    .pagination-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .pagination-text {
        display: none;
    }

    .pagination-btn span:first-child,
    .pagination-btn span:last-child {
        font-size: 1.5rem;
    }
}
