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

:root {
    /* Miyazaki-inspired Colors */
    --sky-blue: #87CEEB;
    --grass-green: #90C695;
    --sakura-pink: #FFB7D5;
    --cloud-white: #F8F9FA;
    --sunset-orange: #FFB347;
    --forest-green: #6B8E6F;
    --magic-purple: #C8B6E2;
    --warm-cream: #FFF8DC;
    
    --primary-color: var(--grass-green);
    --secondary-color: var(--sakura-pink);
    --accent-color: var(--sunset-orange);
    --dark-bg: #E8F4F8;
    --light-bg: #FFFFFF;
    --text-light: #2C3E50;
    --text-dark: #5D6D7E;
    
    --gradient-1: linear-gradient(135deg, #87CEEB 0%, #FFB7D5 100%);
    --gradient-2: linear-gradient(135deg, #FFB347 0%, #FFB7D5 100%);
    --gradient-3: linear-gradient(135deg, #90C695 0%, #87CEEB 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', 'Comic Sans MS', 'Arial Rounded MT', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #E8F4F8 0%, #FFF8DC 50%, #FFE4E1 100%);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.8;
}

/* Particles Canvas Background - Now floating petals! */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, #B5E3FF 0%, #E8F4F8 30%, #FFF8DC 70%, #FFE4E1 100%);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid rgba(144, 198, 149, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-pulse {
    width: 12px;
    height: 12px;
    background: var(--sakura-pink);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 183, 213, 0.6);
}

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    font-weight: 900;
}

/* Soft Glow Effect - Miyazaki Style */
.glitch {
    position: relative;
    color: var(--grass-green);
    animation: gentle-float 4s ease-in-out infinite;
    text-shadow: 
        2px 2px 4px rgba(255, 183, 213, 0.3),
        -2px -2px 4px rgba(135, 206, 235, 0.3);
}

.glitch::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FFB7D5, #87CEEB, #90C695);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.7;
    animation: rainbow-shift 8s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes rainbow-shift {
    0%, 100% { 
        filter: hue-rotate(0deg);
    }
    50% { 
        filter: hue-rotate(30deg);
    }
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.fade-in {
    animation: fadeInUp 1s ease-out;
}

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

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #90C695 0%, #87CEEB 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(144, 198, 149, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(144, 198, 149, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--grass-green);
    border: 2px solid var(--sakura-pink);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #FFB7D5 0%, #FFB347 100%);
    color: white;
    border-color: var(--sunset-orange);
    transform: translateY(-5px) scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 30px; }
}

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

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 183, 213, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 183, 213, 0.2), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--sakura-pink);
    box-shadow: 0 15px 40px rgba(255, 183, 213, 0.3);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.feature-card:nth-child(2) .card-icon {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) .card-icon {
    animation-delay: 0.4s;
}

.card-glow {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover .card-glow {
    opacity: 1;
}

/* Animations Section */
.animation-demo {
    margin-bottom: 4rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.animation-demo h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Morphing Shapes */
.shapes-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem;
}

.shape {
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    animation: morph 4s ease-in-out infinite;
}

.shape-1 {
    border-radius: 50%;
    animation-name: morph1;
}

.shape-2 {
    animation-name: morph2;
    animation-delay: 0.5s;
}

.shape-3 {
    border-radius: 20px;
    animation-name: morph3;
    animation-delay: 1s;
    background: var(--gradient-2);
}

@keyframes morph1 {
    0%, 100% { border-radius: 50%; transform: rotate(0deg); }
    25% { border-radius: 20%; }
    50% { border-radius: 0%; transform: rotate(180deg); }
    75% { border-radius: 20%; }
}

@keyframes morph2 {
    0%, 100% { border-radius: 0%; transform: rotate(0deg) scale(1); }
    33% { border-radius: 50%; transform: rotate(120deg) scale(1.2); }
    66% { border-radius: 20%; transform: rotate(240deg) scale(0.8); }
}

@keyframes morph3 {
    0%, 100% { transform: rotate(0deg) skew(0deg); }
    25% { transform: rotate(90deg) skew(10deg); }
    50% { transform: rotate(180deg) skew(-10deg); }
    75% { transform: rotate(270deg) skew(10deg); }
}

/* Text Effects */
.text-effects {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.wave-text {
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    gap: 0.5rem;
}

.wave-text span {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-text span:nth-child(1) { animation-delay: 0s; }
.wave-text span:nth-child(2) { animation-delay: 0.1s; }
.wave-text span:nth-child(3) { animation-delay: 0.2s; }
.wave-text span:nth-child(4) { animation-delay: 0.3s; }
.wave-text span:nth-child(5) { animation-delay: 0.4s; }

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

.gradient-text {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

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

.neon-text {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 
        0 0 10px #00f2fe,
        0 0 20px #00f2fe,
        0 0 30px #00f2fe,
        0 0 40px #4facfe,
        0 0 70px #4facfe,
        0 0 80px #4facfe,
        0 0 100px #4facfe;
    animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.5;
    }
}

/* 3D Cube */
.cube-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    background: rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
}

.cube-face.front  { transform: rotateY(0deg) translateZ(100px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Loaders */
.loaders {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.loader {
    display: flex;
    gap: 10px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.dots div {
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.dots div:nth-child(1) { animation-delay: -0.32s; }
.dots div:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.bars {
    gap: 5px;
}

.bars div {
    width: 10px;
    height: 50px;
    background: var(--gradient-1);
    animation: bar-stretch 1.2s infinite ease-in-out;
}

.bars div:nth-child(1) { animation-delay: -1.2s; }
.bars div:nth-child(2) { animation-delay: -1.1s; }
.bars div:nth-child(3) { animation-delay: -1.0s; }
.bars div:nth-child(4) { animation-delay: -0.9s; }
.bars div:nth-child(5) { animation-delay: -0.8s; }

@keyframes bar-stretch {
    0%, 40%, 100% { transform: scaleY(0.4); }
    20% { transform: scaleY(1); }
}

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

.interactive-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(144, 198, 149, 0.3);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ripple-effect {
    position: relative;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
}

.ripple-effect:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.hover-lift {
    transition: all 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 183, 213, 0.4);
}

.flip-card {
    perspective: 1000px;
    height: 200px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 2rem;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 183, 213, 0.4);
}

.flip-card-back {
    background: linear-gradient(135deg, #FFB7D5 0%, #87CEEB 100%);
    transform: rotateY(180deg);
    color: white;
}

/* Parallax Section - Miyazaki Sky */
.parallax-section {
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #B5E3FF 0%, #FFE4E1 100%);
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.layer-1 {
    background: radial-gradient(circle at 30% 40%, rgba(255, 183, 213, 0.4) 0%, transparent 60%);
}

.layer-2 {
    background: radial-gradient(circle at 70% 60%, rgba(135, 206, 235, 0.4) 0%, transparent 60%);
}

.layer-3 {
    background: radial-gradient(circle at 50% 70%, rgba(255, 179, 71, 0.3) 0%, transparent 70%);
}

.parallax-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.parallax-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--grass-green);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.parallax-content p {
    color: var(--text-dark);
    font-size: 1.2rem;
}

.parallax-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: none;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--primary-color);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

.social-icon {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    transform: scale(1.2) rotate(10deg);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .features-grid,
    .interactive-grid {
        grid-template-columns: 1fr;
    }
    
    .shapes-container {
        gap: 2rem;
    }
    
    .text-effects > * {
        font-size: 2rem;
    }
    
    .cube {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
    }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
