/* --- Professional About Page Styles --- */

:root {
    --primary-color: #c9a227;
    --secondary-color: #1a1a1a;
    --light-bg: #f7f7f7;
    --text-color: #555;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }

p { margin-bottom: 1rem; }

/* --- Header & Navigation (Same as Home) --- */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 0 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    color: var(--secondary-color);
    font-family: var(--heading-font);
    font-size: 1.8rem;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

/* --- Page Hero Section --- */
.page-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding-top: 90px; /* FIXED: Changed from margin-top to padding-top */
}


.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.page-hero-content h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.page-hero-content p {
    font-size: 1.2rem;
    color: #f0f0f0;
}

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

.bg-light {
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.subheading {
    font-family: var(--body-font);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

/* --- Our Story Section --- */
.story-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.story-text {
    flex: 1;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* --- Founder Profile Section --- */
.founder-profile {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.founder-image {
    flex-shrink: 0;
}

.founder-image img {
    width: 300px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.founder-bio {
    flex: 1;
}

.founder-bio h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.founder-title {
    font-family: var(--body-font);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.philosophy-item {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.philosophy-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary-color);
}

.philosophy-icon svg {
    width: 30px;
    height: 30px;
}

/* --- Call to Action --- */
.cta-section {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.btn {
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

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

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

/* --- Footer --- */
.footer {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Login Modal --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); animation: fadeIn 0.3s ease; }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 2rem; border: 1px solid #888; width: 90%; max-width: 400px; border-radius: 8px; position: relative; animation: slideIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-btn { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer;}
.close-btn:hover, .close-btn:focus { color: var(--dark-color); }
#login-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
#login-form input { width: 100%; padding: 1rem; border: 1px solid #ced4da; border-radius: 5px; font-family: var(--body-font); font-size: 1rem; }


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-menu { position: fixed; left: -100%; top: 90px; flex-direction: column; background-color: rgba(255, 255, 255, 0.98); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); padding: 2rem 0; }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 1rem 0; }

    .story-content, .founder-profile {
        flex-direction: column;
        gap: 2rem;
    }
    
    .founder-image img {
        width: 100%;
        height: auto;
    }
}

/* Brand / navbar upgrades */
.navbar { gap: 24px; }
.nav-logo { display:inline-flex; align-items:center; gap:14px; text-decoration:none; }
.nav-logo img { width:44px; height:44px; object-fit:contain; border-radius:14px; padding:6px; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,0.12); }
.nav-logo span { position:relative; display:inline-block; }
.nav-logo span::after {
    content:''; position:absolute; left:0; bottom:-4px; width:100%; height:2px;
    background:linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform:scaleX(0.35); transform-origin:left center; animation:brandPulse 2.8s ease-in-out infinite;
}
.nav-action-link {
    padding: 10px 18px; border-radius: 999px; background: var(--primary-color); color:#fff !important;
    box-shadow: 0 12px 24px rgba(201,162,39,0.2); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-action-link:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(201,162,39,0.28); }
.brand-preloader { backdrop-filter: blur(12px); }
.brand-loader-shell { display:flex; align-items:center; gap:18px; padding:26px 30px; border-radius:28px; background:linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,247,247,0.92)); box-shadow:0 30px 80px rgba(15,23,42,0.12); }
.brand-loader-mark { width:72px; height:72px; border-radius:22px; background:linear-gradient(135deg, rgba(201,162,39,0.18), rgba(26,26,26,0.08)); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.brand-loader-mark img { width:58px; height:58px; object-fit:contain; animation: floatBrand 2.8s ease-in-out infinite; }
.brand-loader-copy { display:flex; flex-direction:column; gap:6px; }
.brand-loader-kicker { text-transform:uppercase; letter-spacing:0.22em; font-size:0.72rem; color:#7c6f52; }
.brand-loader-copy strong { font-family:var(--heading-font); font-size:clamp(1.6rem, 4vw, 2.6rem); color:var(--secondary-color); animation:brandGlow 2.4s ease-in-out infinite; }
@keyframes brandPulse { 0%,100% { transform:scaleX(0.35); opacity:0.4; } 50% { transform:scaleX(1); opacity:1; } }
@keyframes brandGlow { 0%,100% { letter-spacing:0.02em; transform:translateY(0); text-shadow:0 0 0 rgba(201,162,39,0); } 50% { letter-spacing:0.06em; transform:translateY(-2px); text-shadow:0 12px 30px rgba(201,162,39,0.22); } }
@keyframes floatBrand { 0%,100% { transform:translateY(0px) scale(1); } 50% { transform:translateY(-4px) scale(1.04); } }
@media (max-width: 768px) {
  .nav-logo img { width:38px; height:38px; border-radius:12px; }
  .nav-logo { gap:10px; }
  .brand-loader-shell { flex-direction:column; text-align:center; padding:24px; }
}


/* --- Shared smooth loading states --- */
#preloader {
    backdrop-filter: blur(6px);
}
#preloader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}
.loader-spinner {
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.18);
}
#main-page-wrapper {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
#main-page-wrapper.loaded,
body.site-ready #main-page-wrapper {
    opacity: 1 !important;
    transform: translateY(0);
}
/* Enhanced Team Tree Styles */
.team-tree-scroll {
    overflow-x: auto;
    padding: 40px 20px;
    border-radius: 20px;
    margin: 20px 0;
}

.team-tree {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    min-width: max-content;
}

.team-member-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 20px;
}

.team-member-card {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

.team-member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px auto;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    background: #f1f5f9;
}

.team-member-card:hover .team-member-avatar {
    box-shadow: 0 12px 35px rgba(201, 162, 39, 0.3);
    border-color: #c9a227;
}

.team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-avatar i {
    font-size: 40px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.team-member-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.team-member-title {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced connecting lines */
.team-children {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 40px;
}

.team-children::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, #c9a227, #e2e8f0);
    border-radius: 2px;
}

.team-children .team-member-node::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, #c9a227, #e2e8f0);
    border-radius: 2px;
    transform: translateX(-50%);
}

.team-children .team-member-node::after {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #c9a227, #c9a227, transparent);
    border-radius: 2px;
}

.team-children .team-member-node:first-child::after {
    left: 50%;
    width: 50%;
}

.team-children .team-member-node:last-child::after {
    right: 50%;
    width: 50%;
}

.team-children .team-member-node:only-child::after {
    display: none;
}

/* Enhanced Modal Styles */
.team-member-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.team-member-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.team-member-modal-header {
    background: linear-gradient(135deg, #c9a227, #b8941f);
    color: white;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.team-member-modal-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #f8fafc;
}

.team-member-modal-body {
    padding: 30px;
}

.team-member-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member-modal .team-member-avatar {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    border: 5px solid #c9a227;
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.team-member-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1e293b;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.member-title {
    color: #c9a227;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.member-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #c9a227;
}

.member-contact {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-contact p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 10px;
    color: #475569;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.member-contact p:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.member-contact i {
    color: #c9a227;
    font-size: 1.1rem;
}

.member-bio {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    color: #475569;
    line-height: 1.6;
    font-style: italic;
}

.team-member-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-member-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-member-avatar {
        width: 100px;
        height: 100px;
    }
    
    .team-member-name {
        font-size: 1rem;
    }
    
    .team-member-title {
        font-size: 0.8rem;
    }
    
    .team-tree-scroll {
        padding: 20px 10px;
        margin: 10px 0;
    }
    
    .team-member-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .team-member-modal .team-member-avatar {
        width: 120px;
        height: 120px;
    }
    
    .team-member-info h3 {
        font-size: 1.5rem;
    }
}

/* Add a subtle animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.team-member-card {
    animation: pulse 3s infinite;
}

.team-member-card:hover {
    animation: none;
}