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

body {
    font-family: 'Noto Sans Gujarati', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f5dc 0%, #e8dcc6 50%, #f5f5dc 100%);
    min-height: 100vh;
}

/* Container */
.invitation-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #2c5f2d 0%, #4a8c4e 50%, #2c5f2d 100%);
    color: white;
    position: relative;
}

.islamic-pattern-top {
    height: 60px;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.1) 10px, rgba(255,255,255,.1) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.05) 10px, rgba(255,255,255,.05) 20px);
    border-bottom: 3px solid #d4af37;
    margin-bottom: 20px;
}

.bismillah h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.translation {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Main Content */
.invitation-content {
    padding: 60px 20px;
}

/* Opening Message */
.opening-message {
    text-align: center;
    margin-bottom: 60px;
}

.decorative-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 20px auto;
}

.invitation-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #2c5f2d;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gujarati-intro {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.8;
    font-weight: 400;
}

/* Couple Section */
.couple-section {
    margin-bottom: 60px;
}

.bride-groom-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.person-card {
    text-align: center;
    position: relative;
}

.name-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5f2d 0%, #4a8c4e 50%, #2c5f2d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 10px 30px rgba(44, 95, 45, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.name-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.name-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 95, 45, 0.4);
}

.name-circle h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    z-index: 1;
}

.parent-name {
    font-size: 0.9rem;
    opacity: 0.9;
    z-index: 1;
}

.and-symbol {
    text-align: center;
    color: #d4af37;
    font-size: 2rem;
    font-weight: bold;
}

.heart {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.invitation-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(44, 95, 45, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.arabic-dua {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c5f2d;
    margin-bottom: 15px;
    line-height: 1.8;
}

.dua-translation {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.quran-reference {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: bold;
}

/* Event Details */
.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.event-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nikah-card::before {
    background: linear-gradient(90deg, #d4af37, #4a8c4e, #d4af37);
}

.walima-card::before {
    background: linear-gradient(90deg, #2c5f2d, #d4af37, #2c5f2d);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #d4af37;
}

.event-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5f2d 0%, #4a8c4e 50%, #2c5f2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.event-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c5f2d;
    margin-bottom: 15px;
}

.event-date, .event-time, .venue-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.gregorian-date, .program-time, .venue-address {
    font-size: 1rem;
    color: #666;
}

.dua-gir-section, .mithe-bol-section {
    margin-bottom: 50px;
    text-align: center;
}

.dua-gir-section h3, .mithe-bol-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2c5f2d;
    margin-bottom: 30px;
    position: relative;
}

.dua-gir-section h3::after, .mithe-bol-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.dua-gir-list, .mithe-bol-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(44, 95, 45, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.dua-gir-list p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.dua-gir-list p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mithe-bol-list p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
    text-align: center;
    padding: 10px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border-left: 3px solid #d4af37;
}

.mithe-bol-list p:last-child {
    margin-bottom: 0;
}


/* Closing Message */
.closing-message {
    text-align: center;
    margin-bottom: 40px;
}

.arabic-closing {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #2c5f2d;
    margin-bottom: 15px;
    line-height: 1.8;
}

.closing-translation {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.closing-reference {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #2c5f2d 0%, #4a8c4e 50%, #2c5f2d 100%);
    color: white;
    position: relative;
}

.islamic-pattern-bottom {
    height: 60px;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.1) 10px, rgba(255,255,255,.1) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.05) 10px, rgba(255,255,255,.05) 20px);
    border-top: 3px solid #d4af37;
    margin-bottom: 20px;
}

.footer p {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 500;
}

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

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    border: 2px solid #d4af37;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

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

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

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

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

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .bismillah h1 {
        font-size: 2rem;
    }
    
    .invitation-title {
        font-size: 2rem;
    }
    
    .bride-groom-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .name-circle {
        width: 200px;
        height: 200px;
    }
    
    .name-circle h3 {
        font-size: 1.4rem;
    }
    
    .event-details {
        grid-template-columns: 1fr;
    }
    
    .dua-gir-list, .mithe-bol-list {
        padding: 20px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-time {
        text-align: left;
        padding-right: 0;
        margin-bottom: 5px;
    }
    
    .timeline-event {
        text-align: left;
        padding-left: 0;
    }
    
    .rsvp-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .rsvp-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .invitation-content {
        padding: 40px 15px;
    }
    
    .name-circle {
        width: 180px;
        height: 180px;
    }
    
    .arabic-dua {
        font-size: 1.2rem;
    }
    
    .program-schedule h3 {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 30% auto;
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .invitation-container {
        box-shadow: none;
    }
    
    .rsvp-section {
        display: none;
    }
    
    .modal {
        display: none !important;
    }
}
