:root {
    --bg-color: #fdfcfb; /* Warm Ivory */
    --text-color: #1a1a1a;
    --muted-text: #555555;
    --accent-yellow: #f5c518; /* Spiritual Optimism Yellow */
    --accent-glow: rgba(245, 197, 24, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --timeline-color: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

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

/* Header */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(253, 252, 251, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-yellow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-pic {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-yellow);
    box-shadow: 0 10px 30px var(--accent-glow);
    display: block;
    margin: 0 auto 3rem auto;
    position: relative;
    z-index: 2;
}

.glow-text {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color), #444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    color: var(--muted-text);
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center; /* Centered by default for balance */
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--accent-yellow);
    color: #fff;
    box-shadow: 0 10px 20px var(--accent-glow);
}

.primary-btn:hover {
    background: #e5b810;
    transform: translateY(-2px);
}

.secondary-btn {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.glass-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Gallery / Moments Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    height: 450px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

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

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

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-info h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff; /* Ensure white text on dark gradient */
}

.gallery-info p {
    font-size: 0.95rem;
    opacity: 0.85;
    color: #f0f0f0;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.value-card {
    background: #fff;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
}

/* Timeline / Work Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--timeline-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 15px;
    width: 14px;
    height: 14px;
    background: var(--accent-yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--timeline-color);
}

.timeline-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-date {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--muted-text);
    margin-bottom: 1rem;
}

.timeline-content ul {
    padding-left: 1.5rem;
    color: var(--muted-text);
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.publication-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.publication-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pub-details {
    color: var(--muted-text);
    font-size: 0.95rem;
}

/* Widgets & Feeds */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.widget {
    background: #fff;
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
}

.widget-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    background: #fff;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    color: var(--muted-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item:hover {
    color: var(--accent-yellow);
}

.copyright {
    font-size: 0.85rem;
    color: #999;
}

/* Modal Styles for Blogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--muted-text);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-yellow);
}

.modal-content h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.modal-date {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-body {
    margin-top: 1.5rem;
    color: var(--muted-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .glow-text {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .nav-links {
        display: none;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
}
