/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: hsl(348, 100%, 70%);
    --secondary-color: hsl(207, 90%, 54%);
    --background-dark: hsl(220, 13%, 18%);
    --background-darker: hsl(217, 19%, 12%);
    --text-light: hsl(0, 0%, 95%);
    --text-gray: hsl(0, 0%, 70%);
    --border-color: hsla(0, 0%, 100%, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--background-darker) 0%, var(--background-dark) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    display: none;
}

@media (min-width: 768px) {
    .custom-cursor {
        display: block;
    }
}

/* Particle Background */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#particles-canvas {
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.floating-planets {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.planet {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.planet-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.planet-img.loaded {
    opacity: 1;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Planet Positioning and Animations */
.planet-1 {
    top: 4rem;
    right: 4rem;
    width: 18rem;
    height: 18rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid rgba(255, 255, 255, 0.2);
    animation: float1 8s ease-in-out infinite, orbit1 6s ease-in-out infinite;
}

.planet-2 {
    bottom: 6rem;
    left: 3rem;
    width: 14rem;
    height: 14rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 192, 203, 0.3);
    animation: float2 20s linear infinite, orbit2 12s ease-in-out infinite;
}

.planet-3 {
    top: 8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 10rem;
    height: 10rem;
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(173, 216, 230, 0.4);
    animation: swing 12s ease-in-out infinite, orbit3 15s ease-in-out infinite;
}

.planet-4 {
    bottom: 33%;
    right: 8rem;
    width: 12rem;
    height: 12rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(144, 238, 144, 0.3);
    animation: float4 7s ease-in-out infinite, orbit4 10s ease-in-out infinite;
}

.planet-5 {
    top: 66%;
    left: 25%;
    width: 9rem;
    height: 9rem;
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(128, 128, 128, 0.5);
    animation: float5 25s linear infinite, orbit5 18s ease-in-out infinite;
}

.planet-6 {
    top: 50%;
    right: 25%;
    width: 11rem;
    height: 11rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(221, 160, 221, 0.4);
    animation: pendulum 10s ease-in-out infinite, orbit6 14s ease-in-out infinite;
}

/* Planet Animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(30px); }
}

@keyframes orbit1 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(30px); }
}

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

@keyframes orbit2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes swing {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    25% { transform: translateX(-75%) translateY(0px); }
    75% { transform: translateX(-25%) translateY(0px); }
}

@keyframes orbit3 {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    25% { transform: translateX(-75%) translateY(0px); }
    75% { transform: translateX(-25%) translateY(0px); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes orbit4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

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

@keyframes orbit5 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

@keyframes pendulum {
    0%, 100% { transform: translateX(0px); }
    25% { transform: translateX(20px); }
    75% { transform: translateX(-20px); }
}

@keyframes orbit6 {
    0%, 100% { transform: translateX(0px); }
    25% { transform: translateX(20px); }
    75% { transform: translateX(-20px); }
}

.planet:hover {
    transform: scale(1.1);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 4xl;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleAppear 0.8s ease-out 0.8s both;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: subtitleAppear 0.6s ease-out 1s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    animation: buttonsAppear 0.5s ease-out 1.2s both;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(255, 107, 107, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}

.shuffle-icon {
    display: inline-block;
    transition: transform 0.8s ease-in-out;
}

.shuffle-icon.spinning {
    transform: rotate(360deg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAppear 0.8s ease-out 1.4s both;
}

.scroll-line {
    width: 2px;
    height: 4rem;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    border-radius: 1px;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes titleAppear {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtitleAppear {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes buttonsAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scrollAppear {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateY(0px); }
    50% { opacity: 0.5; transform: translateY(10px); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
}

.about-content {
    display: grid;
    gap: 4rem;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.hobby-card.mystery {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(59, 130, 246, 0.1));
    border-color: rgba(255, 107, 107, 0.3);
}

.hobby-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hobby-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hobby-card p {
    color: var(--text-gray);
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-details p {
    color: var(--text-gray);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-gray);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-planets {
        display: none;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .planet {
        display: none;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .hobbies-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-links {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}