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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,0,150,0.1) 0%, rgba(0,255,255,0.1) 100%);
    animation: colorShift 8s ease-in-out infinite;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 3;
    position: relative;
}

/* Love Counter */
.love-counter {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.counter-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,0,150,0.3);
    box-shadow: 0 0 30px rgba(255,0,150,0.3);
    animation: pulse 2s ease-in-out infinite;
}

.counter-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff0096;
    text-shadow: 0 0 20px #ff0096;
}

.counter-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Interactive 3D Hearts */
.interactive-hearts {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.heart-3d {
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float3D 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255,0,150,0.8));
}

.heart-3d:nth-child(1) { animation-delay: 0s; }
.heart-3d:nth-child(2) { animation-delay: 1s; }
.heart-3d:nth-child(3) { animation-delay: 2s; }

.heart-3d:hover {
    transform: scale(1.5) rotateY(360deg);
    filter: drop-shadow(0 0 40px rgba(255,0,150,1));
}

/* Glitch Effect Title */
.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.glitch {
    position: relative;
    color: #fff;
    text-shadow: 0 0 10px #ff0096;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: #ff0096;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: #00ffff;
    z-index: -2;
}

/* Typewriter Effect */
.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    border-right: 2px solid #ff0096;
    white-space: nowrap;
    overflow: hidden;
    animation: typewriter 3s steps(40) 1s both, blink 1s infinite;
}

/* Neon Anniversary Date */
.anniversary-date {
    margin: 30px 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.neon-box {
    background: rgba(0,0,0,0.3);
    padding: 25px 40px;
    border-radius: 20px;
    border: 2px solid #ff0096;
    box-shadow: 
        0 0 20px #ff0096,
        inset 0 0 20px rgba(255,0,150,0.1);
    animation: neonPulse 2s ease-in-out infinite;
}

.neon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.date-text {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.date-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ff0096;
    text-shadow: 0 0 20px #ff0096;
}

.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Magic Button */
.scroll-btn {
    background: transparent;
    color: white;
    border: 2px solid #ff0096;
    padding: 0;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 30px;
    animation: fadeInUp 1s ease-out 0.9s both;
    position: relative;
    overflow: hidden;
}

.magic-btn {
    background: linear-gradient(45deg, #ff0096, #00ffff, #ff0096);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 0 30px rgba(255,0,150,0.5);
    transition: all 0.3s ease;
}

.magic-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255,0,150,0.8);
}

.btn-text {
    display: block;
    padding: 15px 30px;
    position: relative;
    z-index: 2;
}

.btn-text i {
    margin-right: 10px;
    animation: sparkle 2s infinite;
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 50px;
}

.btn-particles::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: particleMove 4s linear infinite;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart,
.floating-star,
.floating-diamond,
.floating-moon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(255,0,150,0.5));
}

.floating-heart {
    animation: floatHeart 8s ease-in-out infinite;
}

.floating-star {
    animation: rotateStar 6s linear infinite;
}

.floating-diamond {
    animation: shineDiamond 4s ease-in-out infinite;
}

.floating-moon {
    animation: moonPhase 10s ease-in-out infinite;
}

.floating-elements > div:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.floating-elements > div:nth-child(2) {
    left: 85%;
    top: 15%;
    animation-delay: 1s;
}

.floating-elements > div:nth-child(3) {
    left: 15%;
    top: 70%;
    animation-delay: 2s;
}

.floating-elements > div:nth-child(4) {
    left: 80%;
    top: 75%;
    animation-delay: 3s;
}

.floating-elements > div:nth-child(5) {
    left: 50%;
    top: 10%;
    animation-delay: 4s;
}

.floating-elements > div:nth-child(6) {
    left: 90%;
    top: 50%;
    animation-delay: 5s;
}

/* Timeline Section */
.timeline {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b9d, #ff8a80);
    border-radius: 2px;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ff6b9d, #ff8a80);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin: 50px 0;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b9d, #ff8a80);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255,107,157,0.3);
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 0 30px;
    flex: 1;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: white;
}

.gallery-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

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

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

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

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,107,157,0.8), rgba(255,138,128,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

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

/* Love Message Section */
.love-message {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-card {
    background: rgba(255,255,255,0.1);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 800px;
    margin: 0 auto;
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #ff6b9d;
}

.message-card h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.love-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.signature {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 30px;
}

.signature-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #ff6b9d;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ff6b9d;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255,107,157,0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255,0,150,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(255,0,150,0.6);
    }
}

@keyframes float3D {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-15px) rotateX(10deg);
    }
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(2px, -2px);
    }
    40% {
        transform: translate(2px, 2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(-2px, 2px);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: #ff0096;
    }
    51%, 100% {
        border-color: transparent;
    }
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px #ff0096,
            inset 0 0 20px rgba(255,0,150,0.1);
    }
    50% {
        box-shadow: 
            0 0 40px #ff0096,
            0 0 60px #ff0096,
            inset 0 0 30px rgba(255,0,150,0.2);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px #ff0096;
    }
    to {
        text-shadow: 0 0 30px #ff0096, 0 0 40px #ff0096;
    }
}

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

@keyframes sparkle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.2);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.2);
    }
}

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

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg) scale(1);
    }
    75% {
        transform: translateY(-25px) rotate(3deg) scale(1.05);
    }
}

@keyframes rotateStar {
    0% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 10px rgba(255,255,0,0.5));
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        filter: drop-shadow(0 0 20px rgba(255,255,0,0.8));
    }
    100% {
        transform: rotate(360deg) scale(1);
        filter: drop-shadow(0 0 10px rgba(255,255,0,0.5));
    }
}

@keyframes shineDiamond {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(0,255,255,0.5));
    }
    50% {
        transform: scale(1.3) rotate(45deg);
        filter: drop-shadow(0 0 25px rgba(0,255,255,1));
    }
}

@keyframes moonPhase {
    0%, 100% {
        transform: translateX(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateX(10px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateX(0px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translateX(-10px) scale(1.1);
        opacity: 1;
    }
}

@keyframes colorShift {
    0%, 100% {
        background: linear-gradient(45deg, rgba(255,0,150,0.1) 0%, rgba(0,255,255,0.1) 100%);
    }
    25% {
        background: linear-gradient(45deg, rgba(0,255,255,0.1) 0%, rgba(255,0,150,0.1) 100%);
    }
    50% {
        background: linear-gradient(45deg, rgba(255,0,150,0.2) 0%, rgba(0,255,255,0.2) 100%);
    }
    75% {
        background: linear-gradient(45deg, rgba(0,255,255,0.2) 0%, rgba(255,0,150,0.2) 100%);
    }
}

@keyframes heartExplosion {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--vx), var(--vy)) scale(0) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .love-counter {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .counter-item {
        padding: 15px;
        min-width: 70px;
    }
    
    .counter-number {
        font-size: 1.8rem;
    }
    
    .counter-label {
        font-size: 0.8rem;
    }
    
    .interactive-hearts {
        gap: 15px;
        margin: 20px 0;
    }
    
    .heart-3d {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
        white-space: normal;
        border-right: none;
        animation: fadeInUp 1s ease-out 0.3s both;
    }
    
    .neon-box {
        padding: 20px 25px;
    }
    
    .neon-text {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-number {
        font-size: 2rem;
    }
    
    .btn-text {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .floating-elements > div {
        font-size: 2rem;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }
    
    .timeline-icon {
        position: absolute;
        left: 0;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        margin: 0;
        max-width: none;
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .message-card {
        padding: 40px 20px;
    }
    
    .love-text {
        font-size: 1.1rem;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .nav-btn {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    
    #particleCanvas {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .love-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .counter-item {
        padding: 10px;
        min-width: 60px;
    }
    
    .counter-number {
        font-size: 1.5rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .heart-3d {
        font-size: 1.5rem;
    }
    
    .date-number {
        font-size: 1.8rem;
    }
    
    .floating-elements > div {
        font-size: 1.5rem;
    }
}