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

:root {
    --space-black: #0a0e27;
    --space-dark: #1a1f3a;
    --space-blue: #2d3561;
    --nebula-purple: #6366f1;
    --nebula-pink: #ec4899;
    --nebula-cyan: #06b6d4;
    --star-white: #f8fafc;
    --planet-gray: #4a5568;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --bamboo-green: #10b981;
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--space-black);
    overflow-x: hidden;
    position: relative;
}

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

/* Starfield Background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: var(--shadow-glow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--star-white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.panda-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

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

.logo-text {
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nebula-purple), var(--nebula-cyan));
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--nebula-cyan);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    z-index: 1;
}

.planet-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.panda-planet {
    animation: rotate-planet 60s linear infinite;
    filter: drop-shadow(0 0 50px rgba(99, 102, 241, 0.4));
}

@keyframes rotate-planet {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.asteroid {
    position: absolute;
    animation: float-asteroid 20s ease-in-out infinite;
    opacity: 0.7;
}

.asteroid-1 {
    top: 10%;
    left: 15%;
    animation-duration: 15s;
}

.asteroid-2 {
    top: 70%;
    right: 20%;
    animation-duration: 20s;
    animation-delay: 5s;
}

.asteroid-3 {
    bottom: 15%;
    left: 70%;
    animation-duration: 25s;
    animation-delay: 10s;
}

@keyframes float-asteroid {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 30px) rotate(270deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-pink), var(--nebula-cyan));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-pink));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s backwards;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.6);
    border-color: var(--nebula-cyan);
}

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

/* About Section */
.about {
    position: relative;
    padding: 8rem 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, var(--space-dark) 50%, transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-illustration svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(72, 187, 120, 0.3));
    animation: float 4s ease-in-out infinite;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--nebula-cyan), var(--bamboo-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-panda-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-panda-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.4)) 
            drop-shadow(0 0 50px rgba(16, 185, 129, 0.3));
    animation: float 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.about-panda-image:hover {
    transform: scale(1.05);
}

/* Projects Page */
.projects-page {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    z-index: 1;
}

.page-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project-card {
    background: var(--space-dark);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--nebula-cyan);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

.project-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.project-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-icon-img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.project-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--star-white);
    margin: 0;
}

.project-status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--bamboo-green);
    border: 1px solid var(--bamboo-green);
}

.status-development {
    background: rgba(99, 102, 241, 0.2);
    color: var(--nebula-purple);
    border: 1px solid var(--nebula-purple);
}

.status-planned {
    background: rgba(236, 72, 153, 0.2);
    color: var(--nebula-pink);
    border: 1px solid var(--nebula-pink);
}

.project-card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.project-card-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--nebula-cyan);
}

.project-card-arrow {
    color: var(--nebula-cyan);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-arrow {
    transform: translateX(5px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: var(--space-dark);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-glow);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--nebula-purple);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--nebula-purple);
    transform: rotate(90deg);
}

/* Image Slider */
.modal-slider {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--space-blue);
    overflow: hidden;
}

.slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-pink));
    font-size: 6rem;
    position: relative;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.slider-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    z-index: 5;
}

.slider-btn:hover {
    background: rgba(99, 102, 241, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: 1rem;
}

.slider-btn-next {
    right: 1rem;
}

.modal-body {
    padding: 2rem 3rem 3rem;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section-title {
    color: var(--nebula-cyan);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.feature-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
}

.feature-icon {
    color: var(--bamboo-green);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: var(--nebula-cyan);
    font-weight: 500;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-button {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-button-primary {
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-pink));
    color: white;
    border: 2px solid transparent;
}

.modal-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--nebula-cyan);
}

.modal-button-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal-button-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(99, 102, 241, 0.5);
}

.modal-button-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--nebula-purple);
}

/* Legal Page */
.legal-page {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    z-index: 1;
}

.legal-content {
    max-width: 900px;
    margin: 2rem auto;
    background: rgba(26, 31, 58, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.legal-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
    color: var(--nebula-cyan);
}

.legal-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--nebula-purple);
}

.legal-content h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--star-white);
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    color: var(--text-secondary);
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--nebula-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--bamboo-green);
}

/* Footer */
.footer {
    position: relative;
    background: var(--space-dark);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: 4rem 0 2rem;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--nebula-purple), var(--nebula-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--nebula-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--space-dark);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(99, 102, 241, 0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-illustration {
        order: -1;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-slider {
        height: 250px;
    }

    .slider-slide {
        font-size: 4rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modal-title {
        font-size: 2rem;
    }

    .modal-features {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--space-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--space-blue);
    border-radius: 6px;
    border: 2px solid var(--space-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nebula-purple);
}

/* Selection */
::selection {
    background: var(--nebula-purple);
    color: white;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--nebula-cyan);
    outline-offset: 4px;
}

/* Animations for fade-in elements */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--nebula-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 768px) {
    .about-panda-container {
        max-width: 250px;
    }
}