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

/* Bubble Animation */
.bubbles {
    display: flex;
    width: 100%;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    z-index: 1;
    pointer-events: none;

    /* Default values for duration and y value (For Desktop) */
    --transform-duration: 8s;
    --transform-y: -100vh;
}

.bubbles img {
    opacity: 0;
    animation-name: bubble;
    animation-timing-function: linear;
    animation-duration: var(--transform-duration);
    animation-iteration-count: infinite;
    filter: blur(0.5px);
    transition: transform 0.1s ease-out;
}

@keyframes bubble {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(var(--transform-y));
        opacity: 0;
    }
}

/* Delay for each bubble separately (Desktop View)*/
.bubbles img:nth-child(1) {
    animation-delay: 2s;
}

.bubbles img:nth-child(2) {
    animation-delay: 5s;
}

.bubbles img:nth-child(3) {
    animation-delay: 3s;
}

.bubbles img:nth-child(4) {
    animation-delay: 6s;
}

.bubbles img:nth-child(5) {
    animation-delay: 1s;
}

.bubbles img:nth-child(6) {
    animation-delay: 4s;
}

.bubbles img:nth-child(7) {
    animation-delay: 7s;
}

/* Delay for each bubble separately (Mobile View) */
@media screen and (max-width: 650px) {
    .bubbles {
        --transform-duration: 12s;
        --transform-y: -100vh;
    }

    .bubbles img:nth-child(1) {
        animation-delay: 0s;
    }

    .bubbles img:nth-child(2) {
        animation-delay: 10s;
    }

    .bubbles img:nth-child(3) {
        animation-delay: 6s;
    }

    .bubbles img:nth-child(4) {
        animation-delay: 12s;
    }

    .bubbles img:nth-child(5) {
        animation-delay: 2s;
    }

    .bubbles img:nth-child(6) {
        animation-delay: 8s;
    }

    .bubbles img:nth-child(7) {
        animation-delay: 13s;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #000000;
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite, glow 2s ease-in-out infinite alternate;
    margin: 0 auto 20px;
}

.loading-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-subtitle {
    font-size: 1rem;
    opacity: 0.7;
    animation: fadeInOut 3s ease-in-out infinite;
}

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

@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    100% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.6); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

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

/* Floating particles for loading */
.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 40%; animation-delay: 0.5s; }
.particle:nth-child(3) { left: 60%; animation-delay: 1s; }
.particle:nth-child(4) { left: 80%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { transform: translateY(50vh) scale(1); opacity: 1; }
}

/* Container with Scroll Snap */
.container {
    /* scroll-snap-type: y mandatory; */
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    /* Disable scroll snap temporarily for parallax testing */
    scroll-snap-type: none;
    /* Ensure galaxy can show through */
    position: relative;
    z-index: 1;
}

/* Section Base Styles */
section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.section-content {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    position: relative;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

/* Special styling for quote section title */
.quote-section .section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #e0e0e0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 3;
    position: relative;
    transition: transform 0.1s ease-out;
}

.character-name {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.character-intro {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1s forwards;
}

/* Typing Animation */
.character-intro::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.1s ease-out;
}

.star {
    position: absolute;
    font-size: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.star-3 {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.star-4 {
    top: 70%;
    right: 25%;
    animation-delay: 3s;
}

.star-5 {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: white;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Bio Section */
.bio-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
}

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

.bio-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease, transform 0.1s ease-out;
    opacity: 0;
    transform: translateY(50px);
}

.bio-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.bio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.bio-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
}

.quote-container {
    max-width: 600px;
    margin: 0 auto;
}

.quote-display {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.quote-display::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    pointer-events: none;
}

.quote-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.quote-btn {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #e0e0e0;
    padding: 1.2rem 2.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.quote-btn:hover .btn-glow {
    left: 100%;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
}

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

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
}

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

.contact-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Easter Egg */
.easter-egg {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.easter-egg:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.easter-egg span {
    font-size: 1.5rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.easter-egg-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.message-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.message-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.message-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.close-message {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-message:hover {
    color: #333;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Scroll-triggered animations */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .character-name {
        font-size: 3.5rem;
    }
    
    .character-intro {
        font-size: 1.2rem;
    }
    
    .bio-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .easter-egg {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .easter-egg span {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .section-content {
        width: 95%;
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .character-name {
        font-size: 2.5rem;
    }
    
    .quote-display {
        padding: 2rem 1rem;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .bio-card {
        padding: 1.5rem;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1.2rem;
    }
    
    .gallery-overlay p {
        font-size: 0.9rem;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bio-card,
    .quote-display,
    .gallery-overlay {
        border: 2px solid currentColor;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .message-content {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .message-content h3 {
        color: #ffffff;
    }
    
    .message-content p {
        color: #cccccc;
    }
} 