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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #2c2c2c;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.rose-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #fef5f8 0%, #f8e8f0 50%, #fdf0f5 100%);
    overflow: hidden;
}

.rose-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

/* Rose decorations */
.rose-background::after {
    content: '🌹';
    position: absolute;
    font-size: 40px;
    opacity: 0.3;
    animation: falling 15s linear infinite;
    text-shadow: 
        2px 2px 4px rgba(147, 51, 234, 0.3),
        -2px -2px 4px rgba(220, 38, 38, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes falling {
    0% {
        top: -10%;
        left: 0%;
        transform: rotate(0deg);
    }
    25% {
        left: 25%;
        transform: rotate(90deg);
    }
    50% {
        left: 50%;
        transform: rotate(180deg);
    }
    75% {
        left: 75%;
        transform: rotate(270deg);
    }
    100% {
        top: 110%;
        left: 100%;
        transform: rotate(360deg);
    }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed 0%, #dc2626 100%);
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: #7c3aed;
}

.mobile-page-title {
    display: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #7c3aed;
    text-align: center;
    flex: 1;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 80px auto 40px;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Page Sections */
.page-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.page-section.active {
    display: block;
}

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

/* Fade in animations for content */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.2s;
}

.fade-in.delay-2 {
    animation-delay: 0.4s;
}

.fade-in.delay-3 {
    animation-delay: 0.6s;
}

.fade-in.delay-4 {
    animation-delay: 0.8s;
}

.fade-in.delay-5 {
    animation-delay: 1s;
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #7c3aed;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '🌹';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    font-size: 30px;
}

.profile-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 
        0 20px 60px rgba(147, 51, 234, 0.15),
        0 0 0 1px rgba(147, 51, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 
        0 0 0 3px rgba(147, 51, 234, 0.3),
        0 0 0 6px rgba(220, 38, 38, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05) rotate(3deg);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #7c3aed;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(147, 51, 234, 0.1);
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #dc2626;
    margin-bottom: 10px;
    font-weight: 600;
}

.location {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Summary Card */
.summary-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 30px;
    box-shadow: 0 15px 50px rgba(147, 51, 234, 0.12);
}

.summary-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #7c3aed;
    margin-bottom: 20px;
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: 15px;
    border: 2px solid rgba(124, 58, 237, 0.2);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

/* Skills and Certifications Grid */
.skills-certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.skills-section,
.languages-section,
.certifications-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.1);
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #7c3aed;
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #7c3aed;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    border: 2px solid rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
    border-color: #7c3aed;
}

.languages-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 232, 240, 0.8) 100%);
    padding: 15px;
    border-radius: 15px;
    border-left: 4px solid #dc2626;
}

.language-name {
    display: block;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 5px;
}

.language-level {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.certifications-list {
    list-style: none;
    padding: 0;
}

.certifications-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    position: relative;
    padding-left: 40px;
    transition: all 0.3s ease;
}

.certifications-list li:last-child {
    border-bottom: none;
}

.certifications-list li::before {
    content: '🏆';
    position: absolute;
    left: 0;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.certifications-list li:hover {
    color: #7c3aed;
    padding-left: 45px;
}

.certifications-list li:hover::before {
    transform: scale(1.2) rotate(10deg);
}

/* Education Section */
.education-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.education-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.15);
    text-align: center;
    max-width: 600px;
    border: 3px solid rgba(124, 58, 237, 0.1);
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px);
}

.education-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.education-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #7c3aed;
    margin-bottom: 15px;
}

.degree {
    font-size: 1.3rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 10px;
}

.years {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.education-details {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(124, 58, 237, 0.2);
}

.education-details p {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.coursework-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(124, 58, 237, 0.15);
}

.coursework-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #7c3aed;
    margin-bottom: 20px;
    text-align: center;
}

.coursework-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.course-tag {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
    color: #5b21b6;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.course-tag:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* Timeline for Experiences */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #7c3aed 0%, #dc2626 100%);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95), 0 0 0 8px rgba(124, 58, 237, 0.2);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.2);
}

.timeline-date {
    display: inline-block;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-family: 'Playfair Display', serif;
    color: #dc2626;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.company {
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.location-detail {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.description {
    color: #444;
    margin-top: 10px;
    padding-left: 15px;
    border-left: 3px solid rgba(220, 38, 38, 0.3);
    font-style: italic;
}

/* Interests Section */
.unlock-hint {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.unlock-hint.hidden {
    display: none;
}

.lock-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    animation: lock-shake 2s ease-in-out infinite;
}

@keyframes lock-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.unlock-hint p {
    color: #7c3aed;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.interest-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.interest-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(147, 51, 234, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.interest-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.interest-card h3 {
    color: #7c3aed;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.interest-preview {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Secret Content */
.interest-secret {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    margin-top: 0;
}

.interest-card.unlocked .interest-secret {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

.secret-divider {
    font-size: 1.5rem;
    margin: 15px 0 10px;
    opacity: 0.5;
}

.interest-secret p {
    color: #444;
    line-height: 1.8;
    font-size: 0.9rem;
    text-align: left;
    padding: 15px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: 12px;
    border-left: 3px solid #7c3aed;
}

/* Unlock animation for cards */
.interest-card.unlocked {
    animation: unlock-pulse 0.6s ease;
}

@keyframes unlock-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 60px rgba(147, 51, 234, 0.3);
    }
}

/* Lock indicator for locked cards */
.interest-card:not(.unlocked)::after {
    content: '🔒';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.interest-card:not(.unlocked):hover::after {
    opacity: 0.6;
    transform: scale(1.2);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 20px 0;
}

.contact-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(147, 51, 234, 0.12);
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #7c3aed;
    margin-bottom: 15px;
}

.contact-intro {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-methods {
    margin-bottom: 30px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.contact-btn.linkedin {
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
}

.contact-btn.linkedin:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.location-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid #dc2626;
}

.location-icon {
    font-size: 2rem;
}

.location-title {
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 5px;
}

.location-text {
    color: #666;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(147, 51, 234, 0.12);
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #7c3aed;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 18px;
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.submit-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.show {
    display: block;
}

.success-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.form-success p {
    color: #7c3aed;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-page-title {
        display: block;
    }
    
    .nav-logo {
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(147, 51, 234, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .container {
        margin-top: 90px;
        padding: 20px 15px;
    }
    
    .page-section {
        padding-top: 20px;
    }
    
    .section-title {
        margin-top: 10px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

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

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .skills-certifications-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 5px;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Additional rose decorations */
body::before {
    content: '🌹';
    position: fixed;
    top: 15%;
    left: 5%;
    font-size: 50px;
    opacity: 0.12;
    animation: spin-slow 30s linear infinite;
    z-index: 0;
    filter: hue-rotate(270deg);
}

body::after {
    content: '🌹';
    position: fixed;
    bottom: 15%;
    right: 5%;
    font-size: 60px;
    opacity: 0.12;
    animation: spin-slow 25s linear infinite reverse;
    z-index: 0;
    filter: hue-rotate(0deg);
}

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

/* ============================================
   SECRET PAGES STYLING
   ============================================ */

/* Secret Smiley Link */
.secret-smiley {
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.secret-smiley:hover {
    transform: scale(1.3) rotate(15deg);
    filter: brightness(1.2);
}

.secret-smiley:active {
    transform: scale(0.9);
}

/* Secret Garden Password Page */
.secret-garden-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
    padding: 40px 20px;
}

.flower-field {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    justify-content: center;
    align-content: center;
    z-index: 0;
}

.flower {
    font-size: 4rem;
    opacity: 0.3;
    animation: flower-bounce 3s ease-in-out infinite;
    display: inline-block;
}

.flower:nth-child(2n) {
    animation-delay: 0.5s;
}

.flower:nth-child(3n) {
    animation-delay: 1s;
}

.flower:nth-child(4n) {
    animation-delay: 1.5s;
}

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

.password-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 
        0 30px 80px rgba(147, 51, 234, 0.25),
        0 0 0 2px rgba(147, 51, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 500px;
    width: 100%;
    z-index: 10;
    position: relative;
    animation: float-in 0.8s ease;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.password-box h2 {
    font-family: 'Playfair Display', serif;
    color: #7c3aed;
    margin-bottom: 15px;
    font-size: 2rem;
}

.garden-message {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.password-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#secretPassword {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 15px;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

#secretPassword:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    transform: scale(1.02);
}

.password-submit-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
}

.password-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.password-submit-btn:active {
    transform: translateY(0);
}

.password-error {
    color: #dc2626;
    font-weight: 600;
    margin-top: 10px;
    display: none;
    animation: shake 0.5s ease;
}

.password-error.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.back-btn {
    margin-top: 20px;
    padding: 12px 25px;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
    transform: translateX(-5px);
}

/* Photo Gallery Page - Timeline of Moments */
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-intro {
    font-size: 1.2rem;
    color: #666;
    margin-top: -20px;
}

.moments-timeline {
    position: relative;
    padding: 40px 0 0;
}

/* Timeline vertical line - extends through moments */
.moments-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #7c3aed 0%, #dc2626 100%);
    transform: translateX(-50%);
    z-index: 0;
}

/* Rose at end of timeline */
.moments-timeline::after {
    content: '🌹';
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    font-size: 3rem;
    z-index: 10;
    animation: float-gentle 4s ease-in-out infinite;
}

/* Individual Moment Section */
.moment-section {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.moment-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate left/right layout */
.moment-section:nth-child(odd) .moment-content {
    padding-right: 60px;
    padding-left: 0;
}

.moment-section:nth-child(even) .moment-content {
    padding-left: 60px;
    padding-right: 0;
    margin-left: auto;
}

.moment-section:nth-child(odd) .moment-header {
    justify-content: flex-start;
}

.moment-section:nth-child(even) .moment-header {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

/* Moment Header */
.moment-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.moment-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.3;
}

.moment-title-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.moment-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #7c3aed;
    margin: 0;
}

.moment-date {
    font-size: 0.95rem;
    color: #dc2626;
    font-weight: 600;
    font-style: italic;
}

/* Moment Content */
.moment-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(147, 51, 234, 0.15);
    border: 2px solid rgba(124, 58, 237, 0.1);
    position: relative;
    max-width: 600px;
}

/* Rose decoration on content boxes */
.moment-content::before {
    content: '🌹';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.2;
}

.moment-section:nth-child(even) .moment-content::before {
    right: auto;
    left: 20px;
}

/* Timeline dot connector */
.moment-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    border-radius: 50%;
    top: 50%;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.95), 0 0 0 10px rgba(124, 58, 237, 0.2);
}

.moment-section:nth-child(odd) .moment-content::after {
    right: -70px;
}

.moment-section:nth-child(even) .moment-content::after {
    left: -70px;
}

.moment-description {
    color: #444;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* Moment Photos Grid */
.moment-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.moment-photo {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.12);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.moment-photo:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.25);
}

.moment-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    aspect-ratio: 3 / 4; /* iPhone portrait ratio */
}

.photo-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
    color: #7c3aed;
    font-size: 0.9rem;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.4;
}

.photo-placeholder p {
    font-weight: 600;
    opacity: 0.6;
    margin: 0;
}

.gallery-actions {
    text-align: center;
    padding: 40px 0 20px;
}

.gallery-actions .back-btn {
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* Show More Button for Large Galleries */
.show-more-photos {
    margin-top: 20px;
    text-align: center;
}

.show-more-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #7c3aed;
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 25px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: #7c3aed;
    transform: translateY(-2px);
}

.moment-photo.hidden {
    display: none;
}

/* Mobile-specific photo hiding */
.moment-photo.mobile-hidden {
    display: none;
}

/* Ensure mobile hidden photos only hide on mobile */
@media (min-width: 769px) {
    .moment-photo.mobile-hidden {
        display: block;
    }
}

/* Reasons I Love You Generator */
.reasons-generator-section {
    margin: 100px 0 120px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.03) 0%, rgba(220, 38, 38, 0.03) 100%);
    border-radius: 40px;
    border: 3px solid rgba(124, 58, 237, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reasons-generator-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

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

.reasons-header {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.reasons-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 700;
}

.reasons-subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
}

.reasons-display {
    position: relative;
    z-index: 1;
    margin: 40px auto;
    max-width: 700px;
}

.reason-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.2);
    border: 2px solid rgba(124, 58, 237, 0.2);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '💜';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

.reason-card::after {
    content: '❤️';
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

.reason-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2c2c2c;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1;
}

.generate-reason-btn {
    position: relative;
    z-index: 1;
    padding: 18px 45px;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 20px;
}

.generate-reason-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #8b4bef 0%, #ef2f2f 100%);
}

.generate-reason-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-icon {
    font-size: 1.3rem;
    animation: rotate-gentle 3s ease-in-out infinite;
}

@keyframes rotate-gentle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.reasons-counter {
    position: relative;
    z-index: 1;
    color: #7c3aed;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
}

/* Responsive for Reasons Generator */
@media (max-width: 768px) {
    .reasons-generator-section {
        padding: 40px 20px;
        margin: 60px 0 80px;
    }
    
    .reasons-title {
        font-size: 2.2rem;
    }
    
    .reasons-subtitle {
        font-size: 1rem;
    }
    
    .reason-card {
        padding: 35px 25px;
        min-height: 150px;
    }
    
    .reason-text {
        font-size: 1.4rem;
    }
    
    .generate-reason-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

/* Locked Future Moments */
.future-moments-divider {
    text-align: center;
    padding: 60px 20px 40px;
    margin: 60px 0 40px;
    border-top: 3px dashed rgba(124, 58, 237, 0.3);
    border-bottom: 3px dashed rgba(124, 58, 237, 0.3);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: 20px;
}

.future-moments-divider h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #7c3aed;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(147, 51, 234, 0.1);
}

.future-moments-divider p {
    font-size: 1.2rem;
    color: #dc2626;
    font-style: italic;
    font-weight: 600;
}

.locked-moment {
    opacity: 0.85;
    position: relative;
}

.locked-moment::before {
    content: '🔒';
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.3;
    z-index: 10;
}

.locked-moment .moment-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 232, 240, 0.9) 100%);
    border: 2px dashed rgba(124, 58, 237, 0.3);
}

.locked-moment .moment-title {
    color: #9333ea;
}

.locked-moment .moment-date {
    color: #f472b6;
    font-weight: 700;
}

.locked-description {
    color: #666;
    font-style: italic;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid rgba(124, 58, 237, 0.3);
    margin-bottom: 25px;
}

.locked-photo {
    cursor: not-allowed;
}

.locked-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.1) 0%, 
        rgba(220, 38, 38, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 100%);
    border: 3px dashed rgba(124, 58, 237, 0.3);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.locked-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(124, 58, 237, 0.03) 10px,
        rgba(124, 58, 237, 0.03) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.locked-icon {
    font-size: 3rem;
    margin: 5px;
    display: inline-block;
    animation: pulse-glow 3s ease-in-out infinite;
}

.locked-icon:nth-child(1) {
    animation-delay: 0s;
}

.locked-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.locked-icon:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.locked-text {
    margin-top: 15px;
    color: #7c3aed;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.locked-moment:hover {
    opacity: 1;
}

.locked-moment:hover .locked-placeholder {
    border-color: #7c3aed;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.15) 0%, 
        rgba(220, 38, 38, 0.15) 50%,
        rgba(255, 255, 255, 0.3) 100%);
}

.locked-moment:hover .locked-icon {
    animation: pulse-glow 1s ease-in-out infinite;
}

/* Final Message */
.final-message {
    text-align: center;
    padding: 120px 20px 80px;
    margin: 0;
    position: relative;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) translateY(-15px) rotate(10deg);
    }
}

.final-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #7c3aed;
    font-style: italic;
    line-height: 1.6;
    background: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(124, 58, 237, 0.1);
    animation: fade-in-up 1.5s ease-out;
    position: relative;
    padding: 0 40px;
}

.final-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    opacity: 0.2;
    color: #7c3aed;
}

.final-quote::after {
    content: '"';
    position: absolute;
    right: 0;
    bottom: -30px;
    font-size: 4rem;
    opacity: 0.2;
    color: #dc2626;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Timeline */
@media (max-width: 968px) {
    .moments-timeline::before {
        left: 30px;
    }

    .moment-section:nth-child(odd) .moment-content,
    .moment-section:nth-child(even) .moment-content {
        padding-left: 60px;
        padding-right: 30px;
        margin-left: 0;
    }

    .moment-section:nth-child(odd) .moment-header,
    .moment-section:nth-child(even) .moment-header {
        justify-content: flex-start;
        flex-direction: row;
        padding-left: 0;
    }

    .moment-content::after {
        left: -70px !important;
        right: auto !important;
    }

    .moment-number {
        font-size: 3rem;
    }

    .moment-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .moment-photos {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .moment-content {
        padding: 25px;
    }

    .moment-description {
        font-size: 1rem;
    }

    .final-quote {
        font-size: 1.8rem;
        padding: 0 20px;
    }

    .final-quote::before,
    .final-quote::after {
        font-size: 3rem;
    }
    
    /* Optimize image loading on mobile */
    .moment-photo img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure moment sections are visible */
    .moment-section {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive for secret pages */
@media (max-width: 768px) {
    .password-box {
        padding: 30px 20px;
    }

    .password-box h2 {
        font-size: 1.5rem;
    }

    .password-input-container {
        flex-direction: column;
    }

    .flower {
        font-size: 2.5rem;
    }

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