/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #5a7d9a;
    --secondary-color: #8ba5b8;
    --accent-color: #c9a66b;
    --text-dark: #2c3e50;
    --text-light: #6b7c8e;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success: #4caf50;
    --error: #e57373;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }

p {
    margin-bottom: 1rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== ANIMATED BACKGROUND ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.15;
}

.background-animation.subtle {
    opacity: 0.08;
}

.bubble {
    position: absolute;
    bottom: -150px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 0.6;
    animation: rise 20s infinite ease-in;
    backdrop-filter: blur(3px);
}

.bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 30%;
    animation-duration: 22s;
    animation-delay: 4s;
}

.bubble:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 50%;
    animation-duration: 20s;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 70px;
    height: 70px;
    left: 70%;
    animation-duration: 19s;
    animation-delay: 6s;
}

.bubble:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 85%;
    animation-duration: 21s;
    animation-delay: 1s;
}

.bubble:nth-child(6) {
    width: 75px;
    height: 75px;
    left: 20%;
    animation-duration: 23s;
    animation-delay: 8s;
}

@keyframes rise {
    0% {
        bottom: -150px;
        transform: translateX(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(80px) scale(1.05);
        opacity: 0.8;
    }
    100% {
        bottom: 110vh;
        transform: translateX(-40px) scale(0.9);
        opacity: 0;
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(90, 125, 154, 0.95), rgba(139, 165, 184, 0.85)),
                url('https://i.imgur.com/rm2Lard.jpeg?w=1200&q=80') center/cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 166, 107, 0.1), transparent 60%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 300;
}

/* ===== ANIMATIONS - FIXED ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay-1 { 
    opacity: 0;
    animation: fadeIn 1s ease 0.2s forwards;
}

.fade-in-delay-2 { 
    opacity: 0;
    animation: fadeIn 1s ease 0.4s forwards;
}

.fade-in-delay-3 { 
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.fade-in-delay-4 { 
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.fade-in-delay-5 { 
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

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

/* ===== COMING SOON SECTION ===== */
.coming-soon {
    padding: 5rem 0;
    background: var(--white);
}

.coming-soon-content {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.9));
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.coming-soon h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.coming-soon > .container > div > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* ===== FORMS ===== */
.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e8ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(90, 125, 154, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(90, 125, 154, 0.3);
}

.btn-primary:hover {
    background: #4a6d8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 125, 154, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== MESSAGES ===== */
.success-message,
.error-message {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

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

.success-message {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
}

.error-message {
    background: rgba(229, 115, 115, 0.1);
    color: var(--error);
    border: 2px solid var(--error);
}

.success-message svg,
.error-message svg {
    stroke-width: 2.5;
    flex-shrink: 0;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 4rem 0 3rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.5), transparent);
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== RETREATS SECTION ===== */
.retreats-section {
    padding: 4rem 0 6rem;
    background: var(--white);
}

.retreats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.retreat-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    opacity: 0;
}

.retreat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.retreat-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.retreat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.retreat-card:hover .retreat-image img {
    transform: scale(1.1);
}

.retreat-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.retreat-content {
    padding: 2rem;
}

.retreat-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.retreat-date {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.retreat-date svg {
    stroke: var(--primary-color);
    stroke-width: 2;
    flex-shrink: 0;
}

.retreat-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.retreat-content .btn-secondary {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/* ===== INFO BOX ===== */
.info-box {
    background: linear-gradient(to bottom right, rgba(90, 125, 154, 0.05), rgba(139, 165, 184, 0.08));
    border-left: 4px solid var(--primary-color);
    padding: 2rem 2.5rem;
    border-radius: 10px;
    margin-top: 3rem;
    opacity: 0;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--text-light);
    line-height: 1.8;
}

.info-box code {
    background: rgba(90, 125, 154, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.info-box ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-light);
}

.info-box ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.info-box a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== REGISTRATION SECTION ===== */
.registration-section {
    padding: 4rem 0 6rem;
    background: var(--white);
}

.registration-content {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    gap: 0.8rem;
    color: var(--secondary-color);
}

.back-link svg {
    stroke-width: 2.5;
}

.registration-content h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.registration-form {
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.5), rgba(255, 255, 255, 0.8));
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.registration-form h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e8ecef;
}

.registration-form h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== ABOUT SECTION ===== */
.about-hero {
    padding: 5rem 0 3rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.5), transparent);
}

.about-hero h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-hero .lead {
    color: var(--text-light);
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    padding: 4rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ===== VALUES SECTION ===== */
.values-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.5), var(--white));
}

.values-section h2 {
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    opacity: 0;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.value-icon svg {
    stroke: var(--white);
    stroke-width: 2;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(90, 125, 154, 0.95), rgba(139, 165, 184, 0.9)),
                url('https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1600&q=80') center/cover;
    text-align: center;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: var(--accent-color);
    color: var(--white);
}

.cta-buttons .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 4rem 0 6rem;
    background: var(--white);
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.contact-header h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    background: linear-gradient(to bottom right, rgba(248, 249, 250, 0.8), var(--white));
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin-bottom: 1rem;
}

.contact-icon svg {
    stroke: var(--white);
    stroke-width: 2;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form-container {
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.5), rgba(255, 255, 255, 0.8));
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.contact-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #1a2530);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.5rem; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-grid.reverse {
        direction: ltr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .coming-soon-content,
    .registration-form,
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .retreats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-logo img {
        height: 50px;
    }
}
