/* ==========================================
   VEDAGENESIS - MASTER STYLESHEET
   ========================================== */

body { 
    background-color: #FCFAF5; 
    color: #333333; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent; /* iOS optimization */
}

/* Custom Scrollbars */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #A48650; border-radius: 10px; }

/* Glassmorphism Utilities */
.glass-nav { 
    background: rgba(252, 250, 245, 0.90); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); /* Safari support */
    border-bottom: 1px solid rgba(164, 134, 80, 0.15); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02); 
}

.glass-card { 
    background: rgba(255, 255, 255, 0.8); 
    border: 1px solid rgba(44, 94, 59, 0.15); 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}
.glass-card:hover { 
    border-color: rgba(164, 134, 80, 0.5); 
    transform: translateY(-4px); 
    box-shadow: 0 20px 40px -10px rgba(44, 94, 59, 0.15); 
}

.text-gradient-green { 
    background: linear-gradient(90deg, #2C5E3B, #4A8C5D); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* SPA View Routing & Smooth Transitions */
.view-section { 
    display: none; 
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.view-section.active { 
    display: block; 
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Bento Box Grid Hover Effects */
.bento-item { position: relative; overflow: hidden; }
.bento-item::after { 
    content: ''; position: absolute; inset: 0; 
    background: radial-gradient(circle at center, rgba(164,134,80,0.1) 0%, transparent 70%); 
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none; 
}
.bento-item:hover::after { opacity: 1; }

/* Dosha Interactive Elements */
.dosha-card { flex: 1; transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; cursor: pointer; }
.dosha-card:hover, .dosha-card:active { flex: 3; }
.dosha-content { opacity: 0; transition: opacity 0.4s ease; transition-delay: 0.1s; }
.dosha-card:hover .dosha-content, .dosha-card:active .dosha-content { opacity: 1; }

/* Manuscript Styling for Founders Section */
.folio {
    background-color: #F8F4EA;
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
    border: 2px solid #D9C9A6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: auto; 
    min-height: 300px;
}
.folio:hover {
    box-shadow: 0 20px 40px rgba(44, 94, 59, 0.08);
    transform: translateY(-5px);
}
.folio-text { font-family: 'Outfit', sans-serif; font-weight: 500; color: #2b2b2b; line-height: 1.8; }

.clock-spin { transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1); }