/* Base styles */
body { 
    margin: 0; 
    overflow-x: hidden;
    /* New Light Theme - Soft white with subtle gradient background */
    background: linear-gradient(135deg, #fdfbfb 0%, #f6f3f9 100%); 
    font-family: 'Montserrat', sans-serif;
    color: #33274f; /* Deep charcoal/violet text */
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: 3px;
    /* Updated shadow for light theme */
    text-shadow: 0 0 15px rgba(193, 162, 254, 0.4), 0 0 30px rgba(193, 162, 254, 0.2);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 0.5rem;
    color: #4a2b7c; /* Deeper violet for main heading */
}

h2 {
    font-size: 2.5em;
    margin-bottom: 1rem;
    color: #6a3e93; /* Violet for secondary headings */
}

h3 {
    font-size: 1.8em;
    margin-bottom: 0.5rem;
    color: #7d53a5; /* Lighter violet for tertiary headings */
}

p {
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    max-width: 800px;
}

/* Canvas styling */
canvas { 
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Layout elements */
section {
    padding: 120px 10% 80px;
    position: relative;
    z-index: 1;
    min-height: 100vh; /* This creates the large space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Add subtle background for content sections */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#status {
    position: fixed;
    bottom: 10px;
    left: 10px;
    color: #6a3e93; /* Updated color */
    font-family: monospace;
    font-size: 0.8em;
    background: rgba(255, 255, 255, 0.8); /* Lighter background */
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 100;
    transition: opacity 1s ease;
}

#mobile-permission {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(193, 162, 254, 0.3);
    border: 1px solid rgba(193, 162, 254, 0.5);
    border-radius: 20px;
    color: #4a2b7c; /* Updated color */
    font-size: 0.9em;
    z-index: 100;
    display: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#mobile-permission:hover {
    background: rgba(193, 162, 254, 0.5);
}

/* Hero Section Styles */
#hero {
    text-align: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3); /* More transparent */
    position: relative;
}

/* Updated header crystal container - full height and behind text */
#header-crystals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.subline {
    font-size: 1.2em;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.temple-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 30px;
    background: rgba(193, 162, 254, 0.3);
    border: 1px solid rgba(193, 162, 254, 0.6);
    border-radius: 30px;
    color: #4a2b7c; /* Updated color */
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.temple-button:hover {
    background: rgba(193, 162, 254, 0.5);
    box-shadow: 0 0 20px rgba(193, 162, 254, 0.4);
    transform: translateY(-2px);
}

/* About Section Styles */
#about {
    text-align: left;
    background: rgba(255, 255, 255, 0.6);
}

/* Make sure content is properly aligned after centering the heading */
.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-top: 10px; /* Add some space between heading and content */
}

.about-text {
    flex: 1;
    width: 100%;
}

.about-image {
    flex: 1;
    opacity: 0.9; /* Increased opacity */
    position: relative;
    min-height: 300px;
}

/* Centered heading */
.centered-heading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* About header image placeholder */
.about-header-img {
    width: 100%; /* Make it full width of the container */
    height: auto; /* Allow height to adjust proportionally */
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(193, 162, 254, 0.2);
    overflow: hidden; /* Keep the image within the rounded corners */
    max-width: 800px; /* Limit maximum width for larger screens */
}

.about-header-img img {
    width: 100%; /* Make the image fill the container width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove any extra space below the image */
    object-fit: contain; /* Ensure the entire image is visible without cropping */
}

/* Add this new class for full-width images */
.full-width-img {
    width: 100%;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(193, 162, 254, 0.2);
}

.full-width-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* This ensures the image covers the full width without distortion */
}

/* Offerings Section */
#offerings {
    text-align: center;
    min-height: auto; /* Override the 100vh minimum height */
    padding-top: 80px; /* Reduce top padding */
    padding-bottom: 60px; /* Reduce bottom padding if needed */
}

.offering-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

/* Updated offering card styles with image placeholders */
.offering-card {
    background: rgba(255, 255, 255, 0.8); /* Lighter card background */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(193, 162, 254, 0.3);
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(193, 162, 254, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(193, 162, 254, 0.2);
    border-color: rgba(193, 162, 254, 0.6);
}

/* Image placeholder with fixed dimensions */
.offering-image {
    width: 220px;
    height: 160px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(230, 225, 245, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.offering-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Placeholder crystal effect */
.crystal-placeholder {
    position: absolute;
    opacity: 0.7;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.crystal-placeholder svg {
    fill: rgba(147, 112, 219, 0.4);
    stroke: rgba(193, 162, 254, 0.6);
    stroke-width: 1;
    filter: drop-shadow(0 0 8px rgba(193, 162, 254, 0.4));
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Basic Image Placeholder */
.basic-img-placeholder {
    width: 220px;
    height: 160px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f2fa;
    border-radius: 8px;
    overflow: hidden;
}

.basic-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Email Section */
#email {
    min-height: auto;
    padding: 60px 10%;
    text-align: center;
    /* Gradient updated for light theme */
    background: linear-gradient(to right, rgba(230, 225, 245, 0.8), rgba(215, 200, 240, 0.8), rgba(230, 225, 245, 0.8));
    backdrop-filter: blur(10px);
}

.email-link {
    color: #4a2b7c; /* Updated color */
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 1px solid rgba(120, 80, 180, 0.3);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.email-link:hover {
    border-color: rgba(120, 80, 180, 0.8);
    text-shadow: 0 0 10px rgba(193, 162, 254, 0.5);
}

/* Responsive Design */
@media (max-width: 900px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .about-image {
        width: 100%;
        margin-bottom: 30px;
    }
    
    section {
        padding: 100px 5% 60px;
    }
}

/* Touch device specific styles */
.touch-device .offering-card {
    transform: none !important; /* Prevent 3D transforms that might cause issues on touch */
}

/* Performance-specific adjustments */
.performance-low .crystal-placeholder svg {
    filter: none; /* Remove expensive filter effects on low-performance devices */
}

/* Add this class to center the text content */
.centered-text {
    text-align: center;
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Adjust the about-text to work with centering */
.about-text {
    width: 100%;
}

/* Make paragraphs centered as well */
.centered-text p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}