/* 
 * Main CSS for Lolo & Seb Wedding Website
 * Inspired by Soria Fluid template
 */

/* ===== Variables ===== */
:root {
    /* Colors */
    --primary-color: #d4a76a;
    --primary-dark: #b38d56;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --section-padding-lg: 7rem 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===== Base Styles ===== */
body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 76px; /* Height of fixed navbar */
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}



.btn {
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 167, 106, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 167, 106, 0.3);
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.py-5 {
    padding: var(--section-padding);
}

.py-lg-7 {
    padding: var(--section-padding-lg);
}

/* ===== Navigation ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    color: var(--dark-color) !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: calc(100% - 2rem);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    text-align: center;
    margin-top: -76px; /* Offset for fixed navbar */
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--white);
    font-size: 1.5rem;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid var(--white);
    transition: var(--transition);
}

.scroll-down a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ===== Countdown ===== */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.countdown-item {
    text-align: center;
    min-width: 100px;
}

.countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(174, 173, 173, 0.9);
}

/* ===== Program Section ===== */
.program-card { 
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: rgba(212, 167, 106, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.program-card:hover .program-icon {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== Gallery Preview ===== */
.gallery-preview-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: var(--transition);
}

.gallery-preview-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-preview-item:hover:before {
    opacity: 1;
}

.gallery-preview-item img {
    transition: var(--transition);
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

/* ===== Location Section ===== */
#map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 5rem 0 2rem;
}

footer h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    padding-left: 0;
}

.copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        padding: 0.5rem 0 !important;
    }
    
    .nav-link:after {
        display: none;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .countdown-container {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 4rem 0;
        --section-padding-lg: 5rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .countdown-container {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .countdown-item {
        width: calc(50% - 0.75rem);
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .countdown-item {
        width: calc(50% - 0.5rem);
    }
    
    .countdown-number {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.75rem;
    }
}

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

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Utility Classes ===== */
.bg-light {
    background-color: #f9f9f9 !important;
}

.rounded {
    border-radius: 10px !important;
}

.shadow {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05) !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}
