/* Global Styles - Night Garden Theme */
:root {
    --primary-green: #7fb069;
    --secondary-pink: #ff9fb4;
    --accent-yellow: #ffd93d;
    --moonlight-blue: #a8c8e6;
    --night-purple: #6b4c93;
    --dark-bg: #0a0e1a;
    --dark-section: #1a1f2e;
    --dark-card: #252b3d;
    --text-light: #e8e8e8;
    --text-muted: #b0b8c8;
    --garden-gradient: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 30%, #2d1b3d 60%, #1a0f2e 100%);
    --hero-gradient: linear-gradient(135deg, #1a1f2e 0%, #2d1b3d 50%, #1a0f2e 100%);
    --star-glow: rgba(255, 217, 61, 0.3);
    --moon-glow: rgba(168, 200, 230, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-light);
    line-height: 1.8;
    background: var(--garden-gradient);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 40%, white, transparent),
        radial-gradient(1px 1px at 33% 60%, white, transparent),
        radial-gradient(1px 1px at 55% 80%, white, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.4;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

/* Navigation */
.navbar {
    background: rgba(26, 31, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(127, 176, 105, 0.2);
}

.navbar.navbar-light,
.navbar.navbar-dark {
    background: rgba(26, 31, 46, 0.95) !important;
}

.navbar-toggler {
    border-color: rgba(127, 176, 105, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28168, 200, 230, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    font-weight: 700;
    color: var(--moonlight-blue) !important;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    text-shadow: 0 0 10px rgba(168, 200, 230, 0.5);
}

.navbar-brand i {
    color: var(--primary-green);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(127, 176, 105, 0.5));
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--moonlight-blue) !important;
    text-shadow: 0 0 8px rgba(168, 200, 230, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--moonlight-blue));
    box-shadow: 0 0 10px rgba(127, 176, 105, 0.5);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
    z-index: 0;
}

.hero-background::before {
    content: '🌙';
    position: absolute;
    font-size: 15rem;
    opacity: 0.15;
    top: 5%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(168, 200, 230, 0.3));
}

.hero-background::after {
    content: '✨';
    position: absolute;
    font-size: 8rem;
    opacity: 0.2;
    bottom: 15%;
    left: 15%;
    animation: float 6s ease-in-out infinite reverse;
    filter: drop-shadow(0 0 20px rgba(255, 217, 61, 0.4));
}

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

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--text-light);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(168, 200, 230, 0.5), 0 0 40px rgba(127, 176, 105, 0.3);
}

.flower-icon {
    font-size: 1.2em;
    display: inline-block;
    animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.hero-section .lead {
    color: var(--text-muted);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--moonlight-blue) 100%);
    border: none;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(127, 176, 105, 0.4), 0 0 20px rgba(168, 200, 230, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.hero-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(127, 176, 105, 0.6), 0 0 30px rgba(168, 200, 230, 0.5);
    background: linear-gradient(135deg, var(--moonlight-blue) 0%, var(--primary-green) 100%);
}

.hero-image-wrapper {
    position: relative;
}

.garden-frame {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, rgba(37, 43, 61, 0.9) 0%, rgba(26, 31, 46, 0.9) 100%);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(127, 176, 105, 0.2);
    overflow: hidden;
    border: 2px solid rgba(127, 176, 105, 0.3);
}

.garden-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--star-glow) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.garden-frame img {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    width: 100%;
    height: auto;
}

/* Section Styles */
section {
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 0 15px rgba(168, 200, 230, 0.4);
}

/* About Section */
#about {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(10px);
}

#about .lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    line-height: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Features Section */
#features {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.8) 0%, rgba(45, 27, 61, 0.8) 100%);
}

#features.bg-light {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.8) 0%, rgba(45, 27, 61, 0.8) 100%) !important;
}

.feature-card {
    background: var(--dark-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(127, 176, 105, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid rgba(127, 176, 105, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 200, 230, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(127, 176, 105, 0.3);
    border-color: var(--primary-green);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: gentle-bounce 3s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.2s);
}

.feature-card:nth-child(1) .feature-icon {
    --delay: 1;
}

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

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

.feature-card:nth-child(4) .feature-icon {
    --delay: 4;
}

.feature-card:nth-child(5) .feature-icon {
    --delay: 5;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(168, 200, 230, 0.3);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Mood Section */
.mood-section {
    background: linear-gradient(135deg, rgba(45, 27, 61, 0.6) 0%, rgba(26, 15, 46, 0.6) 100%);
    position: relative;
    overflow: hidden;
}

.mood-section::before {
    content: '🌙 ✨ 🌸 🌺 🌻';
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    top: 20%;
    left: 5%;
    animation: float 10s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(168, 200, 230, 0.3));
}

.mood-section::after {
    content: '🌹 💐 🪷 🌺 ✨';
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    bottom: 20%;
    right: 5%;
    animation: float 12s ease-in-out infinite reverse;
    filter: drop-shadow(0 0 10px rgba(255, 217, 61, 0.3));
}

.mood-text {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 2;
    text-shadow: 0 0 10px rgba(168, 200, 230, 0.3);
}

/* Screenshots Section */
#screenshots {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(10px);
}

.carousel {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(127, 176, 105, 0.2);
    border-radius: 25px;
    overflow: hidden;
    border: 3px solid rgba(127, 176, 105, 0.4);
}

.carousel-item {
    height: 600px;
    background: linear-gradient(135deg, var(--dark-section) 0%, var(--dark-bg) 100%);
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 20px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-green);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 15px rgba(127, 176, 105, 0.5);
}

.carousel-indicators {
    margin-bottom: 1.5rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: var(--moonlight-blue);
    opacity: 0.4;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(168, 200, 230, 0.3);
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%) !important;
    border-top: 3px solid rgba(127, 176, 105, 0.4);
}

footer h5 {
    color: var(--moonlight-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(168, 200, 230, 0.5);
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--moonlight-blue);
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(168, 200, 230, 0.5);
}

footer img {
    border: 2px solid rgba(127, 176, 105, 0.4);
    box-shadow: 0 0 15px rgba(127, 176, 105, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .mood-text {
        font-size: 1.2rem;
    }
    
    .garden-frame {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
    
    .carousel-item {
        height: 300px;
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--moonlight-blue) 100%);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(127, 176, 105, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--moonlight-blue) 0%, var(--primary-green) 100%);
    box-shadow: 0 0 15px rgba(168, 200, 230, 0.6);
}

/* Animations */
.animate__animated {
    animation-duration: 1s;
}

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

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

