:root {
    --primary-dark: #002147;
    --primary-orange: #cb6228;
    --card-bg: #002147;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.hidden {
    display: none !important;
}

/* Header Styling */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #003366 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 1rem;
}

.logo img {
    max-width: 150px;
    height: auto;
}

.graduation-cap {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Form Styling */
#inviteForm {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

#inviteForm:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(203, 98, 40, 0.25);
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #003366 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 33, 71, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 33, 71, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Invite Card Styling */
.invite-card {
    background-color: var(--card-bg);
    color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 4px solid var(--card-bg);
}

.invite-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--card-bg), #003366, #004080);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.7;
    animation: gradientShift 8s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.invite-card h2 {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
}

.invite-card h3 {
    color: #ffd700;
    margin: 20px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.invite-card p {
    margin-bottom: 10px;
}

.guest-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffd700;
}

/* Sparkle Animation */
.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: gold;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px gold;
    animation: sparkle 3s infinite;
    opacity: 0;
}

.sparkle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    top: 60%;
    left: 10%;
    animation-delay: 1s;
}

.sparkle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 1.5s;
}

.sparkle:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Event Details Cards */
.event-details .card {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    color: white;
    transition: all 0.3s;
}

.event-details .card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.event-details .card i {
    color: #ffd700;
}

/* Map Styling */
.map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

/* Confirmation Section */
#confirmation {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

#confirmation:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .invite-card {
        padding: 20px;
    }
    
    .event-details .card {
        margin-bottom: 15px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #003366;
}