html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

* { 
    font-family: "Saira", sans-serif; 
}

.text-gradient { 
    background: linear-gradient(135deg, #e53935, #d81b60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-gradient { 
    background: linear-gradient(135deg, #e53935, #d81b60); 
}

.icon-container {
    width: 60px; 
    height: 60px;
    border-radius: 18px;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.section-card {
    border-radius: 1.2rem;
    border: 1px solid rgba(229, 57, 53, 0.15);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
}

.section-card::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 5px;
    background: linear-gradient(90deg, #e53935, #d81b60);
}

.section-card.appear {
    opacity: 1;
    transform: translateY(0);
}

.section-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.page-head {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=2070&q=80') center/cover fixed;
    padding: 8rem 0;
    color: white;
    text-align: center;
}

.header { 
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

.dark .header { 
    background: rgba(30,41,59,0.95); 
}

section[id] { 
    scroll-margin-top: 100px; 
}

/* About page specific styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, #e53935, #d81b60);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #e53935;
    border: 4px solid #fff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dark .timeline-content {
    background: #1e293b;
    color: white;
}

.timeline-date {
    font-weight: bold;
    color: #e53935;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Team section styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.team-member.appear {
    opacity: 1;
    transform: translateY(0);
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 4px solid #e53935;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: #e53935;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-desc {
    font-size: 0.9rem;
    color: #6b7280;
}

.dark .team-desc {
    color: #9ca3af;
}

/* Values section styles */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid #e53935;
    opacity: 0;
    transform: translateY(30px);
}

.value-card.appear {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dark .value-card {
    background: #1e293b;
    color: white;
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.value-title {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Mobile Menu Styles */
#mobileMenu {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 999999;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobileMenu .panel {
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #ffffff;
    border-right: 1px solid rgba(229,57,53,0.2);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    padding: 24px 20px;
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.25,.46,.45,.94);
    border-radius: 0 12px 12px 0;
}

.dark #mobileMenu .panel {
    background: #1e293b;  
    border-right: 1px solid rgba(229,57,53,0.25);
    box-shadow: 6px 0 25px rgba(0,0,0,0.4);
}

#mobileMenu.open .panel {
    transform: translateX(0);
}

#closeMobileMenu {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#closeMobileMenu i {
    color: #0f172a;
    transition: .25s;
}

.dark #closeMobileMenu i {
    color: #fff;
}

#closeMobileMenu i:hover {
    transform: rotate(90deg);
}

.mobile-link {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.15rem;
    font-weight: 600;
    transition: .25s;
    border: 1px solid rgba(229,57,53,0.15);
    background: rgba(0,0,0,0.02);
    color: #0f172a;
}

.dark .mobile-link {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.mobile-link:hover {
    background: rgba(229,57,53,0.2);
    transform: translateX(5px);
    border-color: rgba(229,57,53,0.4);
}

.dark .mobile-link:hover {
    background: rgba(229,57,53,0.35);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 21px;
    }
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e53935, #d81b60);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(229, 57, 53, 0.5);
}

.back-to-top:active {
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.dynamic-menu-item {
    transition: all 0.3s ease;
}


.user-menu {
    background: linear-gradient(135deg, #059669, #047857);
}

.user-menu:hover {
    background: linear-gradient(135deg, #047857, #065f46);
}

.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
}