/* General Styles */
:root {
    --primary-color: #4169E1;
    --primary-gradient: linear-gradient(to right, #4169E1, #6495ED);
    --primary-light: #6495ED;
    --primary-dark: #4169E1;
    --secondary-color: #fff9e0;
    --accent-color: #6495ED;
    --background-color: #f8f9ff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-color: #2e4057;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --pattern-overlay: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234169E1' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: url('photos/5.JPG') no-repeat center center/cover;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.main-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: none;
    opacity: 0.05;
    z-index: -1;
}

.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-dark);
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--primary-gradient);
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: var(--background-color);
}

/* Navbar Styles */
#mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid rgba(65, 105, 225, 0.3);
    transition: all 0.3s ease;
}

#mainNav .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

#mainNav .navbar-nav .nav-item {
    margin-left: 1rem;
}

#mainNav .navbar-nav .nav-link {
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

#mainNav .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

#mainNav .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

#mainNav .navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#mainNav .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

#mainNav .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

#mainNav .navbar-toggler {
    color: var(--primary-color);
    border: none;
    font-size: 1.25rem;
}

/* For scrolled state */
#mainNav.navbar-scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: rgba(255, 255, 255, 0.98);
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-section .and-symbol {
    font-family: 'Poppins', serif;
    font-size: 3rem;
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
    color: var(--white);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.heart-icon {
    font-size: 3rem;
    margin-top: 20px;
    color: var(--white);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Welcome Section */
.mdl-layout__content {
    padding: 16px;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.mdl-grid {
    padding: 8px;
}

.mdl-card {
    min-height: 0;
    margin-bottom: 16px;
}

.mdl-card__title {
    padding: 16px;
    min-height: 64px;
}

.mdl-card__supporting-text {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
}

.mdl-card__actions {
    padding: 8px 16px;
}

.hero-card {
    min-height: 300px;
    position: relative;
}

.hero-card .mdl-card__title {
    height: 176px;
    color: white;
    padding-bottom: 0;
}

.hero-card .mdl-card__title-text {
    font-size: 28px;
    font-weight: 500;
}

.hero-card .mdl-card__supporting-text {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.countdown-timer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.countdown-item {
    background-color: var(--primary-color);
    color: white;
    padding: 16px;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}

.countdown-item span:first-child {
    font-size: 2rem;
    font-weight: 500;
    display: block;
}

.event-date {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 500;
}

.event-date i {
    margin-right: 8px;
}

.event-details p {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.event-details i {
    margin-right: 8px;
    color: var(--primary-color);
}

.mdl-navigation__link.active {
    color: var(--accent-color) !important;
    border-bottom: 2px solid var(--accent-color);
}

/* Countdown Section */
.countdown-section {
    background-color: var(--white);
    padding: 80px 0;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.countdown-box {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed var(--primary-light);
    border-radius: var(--border-radius);
    padding: 30px 40px;
    min-width: 150px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.countdown-item {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 20px;
    min-width: 120px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.countdown-item span {
    display: block;
}

.countdown-item span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    font-size: 1rem;
    margin-top: 5px;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Story Page */
.story-section {
    padding: 80px 0;
}

.story-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.story-quote {
    position: relative;
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    background-color: var(--gray-light);
    border-radius: 5px;
}

.story-quote .fa-quote-left {
    color: var(--primary-light);
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5rem;
}

.story-quote .fa-quote-right {
    color: var(--primary-light);
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5rem;
}

.story-quote .lead {
    margin: 20px 0;
}

.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -15px;
    border-width: 8px 15px 8px 0;
    border-style: solid;
    border-color: transparent var(--gray-light) transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    border-width: 8px 0 8px 15px;
    border-style: solid;
    border-color: transparent transparent transparent var(--gray-light);
}

/* Events Page */
.events-header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.6) url('photos/5.JPG') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    position: relative;
}

.events-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(58, 28, 113, 0.3), rgba(215, 109, 119, 0.3), rgba(255, 175, 123, 0.3));
    z-index: 0;
}

.events-header .container {
    position: relative;
    z-index: 1;
}

.events-header .section-title {
    margin-bottom: 20px;
}

.events-header .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.events-timeline-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.event-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.event-card.featured {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.4);
    border: 2px solid var(--primary-color);
}

.event-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.event-card-header {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.event-card-header.engagement {
    background: linear-gradient(45deg, #4169E1, #6495ED);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-card-header.engagement::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 0;
}

.event-card-header.engagement .event-icon,
.event-card-header.engagement h3 {
    position: relative;
    z-index: 1;
}

.event-card-header.marriage {
    background-color: rgba(65,105,225,0.9) !important;
    background-image: none !important;
}

.event-card-header.reception {
    background-color: rgba(100,149,237,0.9) !important;
    background-image: none !important;
}

.event-card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    z-index: 0;
}

.event-card-header h3 {
    color: var(--white);
    margin: 10px 0 0;
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
}

.event-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.event-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.event-card-body {
    padding: 25px;
}

.event-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.event-detail i {
    width: 25px;
    margin-right: 15px;
    color: var(--primary-light);
    font-size: 1.1rem;
}

.event-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.event-note p {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.event-note .badge {
    background: linear-gradient(45deg, #4169E1, #6495ED);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-block;
    position: relative;
    box-shadow: 0 3px 10px rgba(65, 105, 225, 0.2);
}

.event-note .badge::before,
.event-note .badge::after {
    content: '✧';
    margin: 0 8px;
    font-size: 1rem;
    opacity: 0.8;
}

/* Gallery Page */
.gallery-header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.6) url('photos/5.JPG') center/cover no-repeat;
    color: var(--text-color);
    text-align: center;
    position: relative;
}

.gallery-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--pattern-overlay);
    z-index: 0;
    opacity: 0.3;
}

.gallery-header .container {
    position: relative;
    z-index: 1;
}

.gallery-grid-section {
    background-color: var(--background-color);
    padding: 80px 0;
    position: relative;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

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

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.6s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
    filter: blur(2px);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(65, 105, 225, 0.7), rgba(100, 149, 237, 0.7));
    transition: all 0.5s ease;
    padding: 20px;
    text-align: center;
}

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

.gallery-info {
    margin-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.gallery-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
}

.gallery-links {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.gallery-item:hover .gallery-links {
    transform: translateY(0);
    opacity: 1;
}

.gallery-links a {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.gallery-links a:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.empty-gallery-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.empty-gallery {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--box-shadow);
    max-width: 600px;
    width: 100%;
    border: 1px dashed var(--primary-light);
    position: relative;
}

.empty-gallery::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--accent-color);
    border-radius: calc(var(--border-radius) - 5px);
    opacity: 0.3;
    pointer-events: none;
}

.empty-gallery i {
    font-size: 4rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.empty-gallery h3 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.empty-gallery p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.empty-gallery .text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-style: italic;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: var(--text-color);
    text-align: center;
    overflow: hidden;
    padding: 150px 0;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--pattern-overlay);
    z-index: 0;
    opacity: 0.5;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner .countdown-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.hero-banner .countdown-wrapper .countdown-item {
    background-color: var(--primary-color);
    color: var(--white);
}

.hero-banner .countdown-wrapper .countdown-item small {
    color: rgba(255,255,255,0.8);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
}

.hero-content .and-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 4.5rem;
    margin: 0 0.5rem;
    color: var(--primary-dark) !important;
    -webkit-text-fill-color: var(--primary-dark) !important;
    text-fill-color: var(--primary-dark) !important;
}

.hero-content .lead {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero-content .date-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.hero-content .dot {
    color: var(--primary-light);
    font-size: 1.8rem;
    margin: 0 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #4169E1, #6495ED);
    border: none;
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.5);
    background: linear-gradient(45deg, #5079F1, #74A5FD);
}

.btn-outline-primary {
    color: #4169E1;
    border: 2px solid #4169E1;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: rgba(65, 105, 225, 0.1);
    border-color: #4169E1;
    transform: translateY(-3px);
    color: #4169E1;
}

/* Welcome Section */
.welcome-section {
    background-color: var(--background-color);
    padding: 100px 0;
}

.welcome-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--primary-light);
    position: relative;
}

.welcome-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary-light), var(--accent-color));
    border-radius: calc(var(--border-radius) + 5px);
    z-index: -1;
    opacity: 0.2;
}

.welcome-content .lead {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.welcome-content p {
    color: var(--text-color);
    line-height: 1.8;
}

/* Countdown Section */
.countdown-section {
    background-color: rgba(240, 248, 255, 0.5);
    padding: 100px 0;
    position: relative;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(65, 105, 225, 0.1), rgba(100, 149, 237, 0.1)), 
                url('https://source.unsplash.com/1600x900/?indian,wedding') no-repeat center center/cover;
    z-index: -1;
    opacity: 0.3;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.countdown-box {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed var(--primary-light);
    border-radius: var(--border-radius);
    padding: 30px 40px;
    min-width: 150px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.countdown-box::before {
    content: ':';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--primary-light);
    display: block;
}

.countdown-box:last-child::before {
    display: none;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed var(--primary-light);
    border-radius: var(--border-radius);
    padding: 30px 40px;
    min-width: 150px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--accent-color);
    border-radius: calc(var(--border-radius) - 2px);
    opacity: 0.4;
    pointer-events: none;
}

.countdown-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.countdown-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color);
    display: block;
}

/* Full-viewport carousel */
#topCarousel {
    position: relative;
}

#topCarousel .carousel-item img {
    height: 100vh;
    object-fit: cover;
}

/* Semi-transparent overlay that hosts the countdown */
#topCarousel .countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* Carousel indicators style */
#topCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.7);
}

#topCarousel .carousel-indicators .active {
    background-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 3px solid rgba(65, 105, 225, 0.3);
    padding: 30px 0;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--pattern-overlay);
    z-index: -1;
    opacity: 0.2;
}

.copyright, .wedding-date {
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.3rem;
    }
    
    .countdown-item {
        min-width: 100px;
    }
}

@media (max-width: 767.98px) {
    .welcome-card, 
    .story-card, 
    .events-card {
        padding: 25px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .and-symbol {
        font-size: 2.5rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 15px;
    }
    
    .countdown-item span:first-child {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-icon {
        left: 20px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        right: auto;
        border-width: 8px 15px 8px 0;
        border-color: transparent var(--gray-light) transparent transparent;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 70px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .and-symbol {
        font-size: 2rem;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .countdown-item span:first-child {
        font-size: 1.5rem;
    }
}
