* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --maroon-dark: #5c1010;
    --maroon-primary: #800020;
    --maroon-medium: #a0233f;
    --maroon-light: #a31b1b;
    --cream: #f5f1e8;
    --gold: #d4af37;
    --lightgrey: #EEEEEE;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--lightgrey);
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon-primary) 100%);
    color: white;
    padding: 0rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    /* max-width: 1200px; */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: clamp(1.2rem, 4vw, 1.8rem); 
    font-weight: bold;
    color: var(--gold);
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--lightgrey);
    transition: all 0.3s ease;
    border-radius: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1rem); /* Responsive font */
}

nav a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    /* background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-medium) 100%); */
    color: var(--maroon-primary);
    padding: 120px 2rem 80px;
    text-align: center;
    margin-top: 70px;
    margin-bottom: 80px;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--maroon-dark);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Works Carousel Section */
.works-section {
    background-color: var(--lightgrey);
    padding: 4rem 1rem;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 20px;
    width: 90%;
}

/* Updated carousel styles with side preview effect */
.carousel-track {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: visible;
    background-color: transparent;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    width: auto;
    max-width: 800px;
    height: 400px;
    opacity: 0;
    transition: all 0.6s ease-in-out;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.7) translateX(-150%) translateY(50px);
    z-index: 1;
    pointer-events: none;
    left: 50%;
    top: 0;
    transform-origin: center center;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
    z-index: 3;
    pointer-events: auto;
}

.carousel-slide.prev {
    opacity: 0.5;
    transform: translateX(-50%) scale(0.75) translateX(-80%) translateY(30px);
    z-index: 2;
    pointer-events: none;
}

.carousel-slide.next {
    opacity: 0.5;
    transform: translateX(-50%) scale(0.75) translateX(80%) translateY(30px);
    z-index: 2;
    pointer-events: none;
}

/* Slide image styles */
.slide-image {
    width: auto;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    overflow: hidden;

}

.slide-image img {
    max-width: none;
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 2rem;
}



.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, 
        rgba(92, 16, 16, 0) 0%, 
        rgba(92, 16, 16, 0.1) 20%, 
        rgba(92, 16, 16, 0.5) 100%); */
    pointer-events: none;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;

    /* background: linear-gradient(45deg, 
        rgba(92, 16, 16, 0.85) 0%, 
        rgba(92, 16, 16, 0.6) 20%, 
        rgba(92, 16, 16, 0) 100%); */

    padding: 1rem;

    color: white;

    display: flex;
    flex-direction: column;
    align-items: center;      
    justify-content: center;  
    text-align: center;       
}


.slide-caption h3 {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-category {
    display: inline-block;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--maroon-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(128, 0, 32, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(128, 0, 32, 0.6);
}

.dot.active {
    background: var(--maroon-primary);
    width: 35px;
    border-radius: 6px;
}

/* Section Styles */
section {
    margin: 0 auto;
    padding: 4rem 2rem;
}

h2 {
    color: var(--maroon-dark);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    margin-left: 8%;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Changed from left: 8% with transform */
    width: 100px;
    height: 4px;
    background: var(--gold);
}

/* .about {
    max-width: 1200px;
} */

/* About Section *//* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr; /* closer proportions */
    gap: 0.5rem; /* smaller gap = more connected */
    /* max-width: 1200px; */
    margin: 3rem;
    align-items: center;
}

.about-text {
    background: transparent;
    padding: 0;
    font-size: large;
    box-shadow: none;
    margin-left: 2rem;
    margin-right: 3rem;
}

.about-text h3 {
    color: var(--maroon-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.about-image {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* .about-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(128, 0, 32, 0.15);
    transition: transform 0.4s ease;
} */

/* subtle "lean in" effect
.about-image img:first-child {
    transform: translateX(-15px);
} */

.about-image img:hover {
    transform:  scale(1.03);
    /* translateX(-15px) */
    z-index: 3;
}

.about-image.staggered {
    position: relative;
    top: -100px;
    width: 100%;
    max-width: 520px;
}

.about-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 2px solid #fff;
}

.img-overlap {
    position: absolute;
    width: 65%;
    bottom: -180px;
    /* right: 20px; */
    border: 2px solid #fff;
}


/* Vision & Mission Cards */
.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.1);
    border-left: 10px solid var(--maroon-primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.2);
}

.card h3 {
    color: var(--maroon-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Experts Section */
/* Experts Section */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px); /* Force exactly 3 columns of 300px */
    gap: 2rem;
    justify-content: center;
    margin: 3rem auto;
    max-width: 1300px;
}

.expert-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto; 
    width: 100%;  
}

.expert-image {
    width: 100%;
    aspect-ratio: 3 / 4; 
    background: linear-gradient(135deg, var(--lightgrey) 0%, var(--cream) 100%);
    overflow: hidden;
}

.expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the face isn't stretched */
    display: block;
}

.expert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.2);
}


.expert-info {
    padding: 1.5rem;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.expert-info h3 {
    color: var(--maroon-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.expert-info .role {
    color: var(--maroon-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.expert-details-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.expert-details-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.15);
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.expert-details-card h3 {
    color: var(--maroon-dark);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.detail-role {
    color: var(--maroon-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Triangle */
.triangle-indicator {
    position: absolute;
    top: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid white;
    transition: left 0.3s ease;
}

/* Active expert card */
.expert-card.active {
    outline: 3px solid var(--maroon-primary);
}

/* ============================================
   CREDENTIALS SECTION STYLING
   ============================================ */

.credentials-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(128, 0, 32, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

.credentials-title {
    color: var(--maroon-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.credentials-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon-primary), var(--gold));
    border-radius: 2px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.credential-badge {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border: 2px solid rgba(128, 0, 32, 0.12);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.credential-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--maroon-primary), var(--gold));
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.credential-badge:hover {
    transform: translateX(6px);
    border-color: var(--maroon-primary);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
}

.credential-badge:hover::before {
    transform: scaleY(1);
}

.credential-icon {
    font-size: 1.4rem;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.credential-badge:hover .credential-icon {
    filter: grayscale(0);
    transform: scale(1.15) rotate(5deg);
}

.credential-text {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    flex: 1;
}

.credential-badge:hover .credential-text {
    color: var(--maroon-dark);
}

/* Staggered animation for credentials */
.credential-badge {
    opacity: 0;
    animation: slideInCredential 0.5s ease forwards;
}

.credential-badge:nth-child(1) { animation-delay: 0.1s; }
.credential-badge:nth-child(2) { animation-delay: 0.15s; }
.credential-badge:nth-child(3) { animation-delay: 0.2s; }
.credential-badge:nth-child(4) { animation-delay: 0.25s; }
.credential-badge:nth-child(5) { animation-delay: 0.3s; }
.credential-badge:nth-child(6) { animation-delay: 0.35s; }
.credential-badge:nth-child(7) { animation-delay: 0.4s; }
.credential-badge:nth-child(8) { animation-delay: 0.45s; }
.credential-badge:nth-child(9) { animation-delay: 0.5s; }
.credential-badge:nth-child(10) { animation-delay: 0.55s; }
.credential-badge:nth-child(11) { animation-delay: 0.6s; }
.credential-badge:nth-child(12) { animation-delay: 0.65s; }

@keyframes slideInCredential {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact-section {
    padding: 1rem;
    /* margin-top: 3rem; */
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 2rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 1rem;
    border-radius: 8px;
}

.contact-item.clickable:hover {
    transform: translateX(8px);
    background-color: rgba(128, 0, 32, 0.05);
}

/* First 3 items in left column
.contact-item:nth-child(1),
.contact-item:nth-child(2),
.contact-item:nth-child(3) {
    grid-column: 1;
}

/* Last 2 items in right column */
/* .contact-item:nth-child(4),
.contact-item:nth-child(5) {
    grid-column: 2;
} */ 

.contact-item .icon {
    color: var(--maroon-primary);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item .icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--maroon-primary);
    stroke-width: 2;
}

.contact-item:hover .icon svg {
    stroke: var(--maroon-dark);
    transform: scale(1.1);
}

.contact-item div:last-child {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: var(--maroon-dark);
    font-size: 1.5rem;
    font-weight: 600;
}
.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem; /* precise spacing */
    line-height: 1.4;
    font-size: 1.5rem;
}

.contact-item.clickable .contact-text span {
    transition: color 0.3s ease;
}

.contact-item.clickable:hover .contact-text span {
    color: var(--maroon-primary);
    text-decoration: underline;
}

.contact-text span {
    font-size: 0.95rem;
}

.contact-text strong{
    color: var(--maroon-dark);
}

/* Footer */
footer {
    background: var(--maroon-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    opacity: 0.9;
}
.triangle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.triangle-static {
    position: absolute;
    width: 0;
    height: 0;
    /* animation: rotateIn 1.5s ease-out forwards; */
    /* opacity: 0; */
    transform-origin: top left;
}

.triangle-1 {
    border-left: 300px solid var(--maroon-dark);
    border-bottom: 400px solid transparent;
    top: -10px;
    left: -10px;
    animation-delay: 0.3s;
}

.triangle-2 {
    border-left: 600px solid var(--maroon-light);
    border-bottom: 300px solid transparent;
    top: -10px;
    left: -10px;
    animation-delay: 0.6s;
}


/* Diamonds Background */
.diamond-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.diamond {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(128, 0, 32, 0.08);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Positions */
.d1 { top: 15%; left: 10%; width: 50px; height: 50px; }
.d2 { top: 40%; left: 80%; width: 70px; height: 70px; }
.d3 { top: 70%; left: 25%; width: 40px; height: 40px; }
.d4 { top: 20%; left: 60%; width: 90px; height: 90px; }

/* .hero:hover .diamond {
    transform: translateX(-20px) rotate(20deg);
} */

/* Scroll Down Arrow */
.scroll-indicator {
    position: absolute;
    bottom: -20%; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--maroon-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator .arrow {
    border: solid var(--gold);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 6px;
    transform: rotate(45deg);
    margin-top: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* Scroll Animation Classes */
.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-active {
    opacity: 1 ;
    transform: translate(0, 0) ;
}

/* Enhanced Hover Effects */
.card, .expert-card, .about-text {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .expert-card:hover {
    transform: translateY(-10px) scale(1.02) ;
    box-shadow: 0 20px 40px rgba(128, 0, 32, 0.25) ;
    border-color: var(--maroon-dark);
}

/* Hero Text Refinement */
.hero h1 {
    opacity: 0;
    animation: fadeInDown 1s forwards 0.5s;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
/* Add these updates to your existing CSS */

/* Mobile-specific adjustments */
@media (max-width: 1000px) {
    .experts-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns side by side */
        gap: 0.8rem;
        margin: 1.5rem 0.5rem;
        max-width: 100%; /* Use full width */
    }
    
    .expert-card {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .expert-image {
        height: auto; 
        flex-shrink: 0;
    }
}


@media (max-width: 768px) {
    header {
        padding: 0rem 0;
    }
    
    nav {
        padding: 0 0.5rem;
        min-height: 50px; /* Ensure consistent height */
    }
    
    .logo {
        font-size: clamp(1rem, 5vw, 1.3rem); 
        flex-shrink: 0; /* Prevent logo from shrinking */
    }
    
    .hamburger {
        display: flex; /* Show on mobile */
    }

    nav ul {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        right: 0;
        width: 40%;
        background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon-primary) 100%);
        padding: 1rem 0;
        opacity: 0.8;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        animation: slideDown 0.3s ease-out;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem;
    }

    /* Optional: Animate hamburger to an 'X' when open */
    .hamburger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 1.5rem 60px;
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 2rem; /* Smaller heading */
    }
    
    .hero p {
        font-size: 1rem; /* Smaller paragraph */
    }

    .triangle-1 {
        border-left: 200px solid var(--maroon-dark);
        border-bottom: 280px solid transparent;
        top: -8px;
        left: -8px;
    }
    
    .triangle-2 {
        border-left: 400px solid var(--maroon-light);
        border-bottom: 200px solid transparent;
        top: -8px;
        left: -8px;
    }
    
    /* Scroll Indicator */
    .scroll-indicator {
        font-size: 0.7rem;
        bottom: -15%;
    }
    
    /* Section headings */
    h2 {
        font-size: 1.8rem;
        margin-left: 5%;
        margin-bottom: 1.5rem;
    }
    
    h2::after {
        width: 60px;
        height: 3px;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 1.5rem;
    }
    
    .about-text {
        margin-left: 0;
        margin-right: 0;
        font-size: 0.95rem;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
    }
    
    .about-image.staggered {
        top: 0;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .img-overlap {
        width: 60%;
        bottom: -80px;
        right: 0;
    }
    
    /* Vision & Mission */
    .vision-mission {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.4rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
    
    /* Experts Section */
    /* =========================
   /* =========================
   MOBILE EXPERTS HORIZONTAL
   ========================= */
       .experts-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns side by side */
        gap: 0.8rem;
        margin: 1.5rem 0.5rem;
        max-width: 100%; /* Use full width */
    }
    
    .expert-card {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .expert-image {
        flex-shrink: 0;
    }
    
    .expert-info {
        height: auto;
        flex-shrink: 0;
        padding: 0.5rem 0.4rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .expert-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }
    
    .expert-info .role {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .expert-details-wrapper {
        margin: 2rem 0.5rem 0;
    }
    
    .expert-details-card {
        font-size: 0.85rem;
    }
    
    .expert-details-card h3 {
        font-size: 1.2rem;
    }
    
    .detail-role {
        font-size: 0.8rem;
    }
    
    #detail-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Credentials */
    .credentials-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .credentials-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .credentials-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.5rem;
    }
    
    .credential-badge {
        padding: 0.6rem 0.8rem;
    }
    
    .credential-icon {
        font-size: 1rem;
        min-width: 20px;
    }
    
    .credential-text {
        font-size: 0.78rem;
        line-height: 1.3;
    }


    
    /* Carousel */
    .carousel-container {
        padding: 0 50px;
        width: 95%;
    }
    
    .carousel-track {
        height: 280px;
    }
    
    /* Fix carousel scaling on mobile only */
    .carousel-slide {
        max-width: 100%;
        width: auto;
        height: 250px;
    }


    .slide-image img {
        width: auto;
        height: 100%;
        object-fit: contain;   /* Show full image */
    }


    .slide-image {
        width: auto;
        height: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        overflow: hidden;

    }
    
    .slide-caption h3 {
        font-size: 1.2rem;
    }
    
    .project-category {
        font-size: 0.8rem;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 28px;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .contact-item {
        padding: 0.3rem;
        gap: 0.3rem;
    }
    
    .contact-item .icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-item .icon svg {
        width: 28px;
        height: 28px;
    }
    
    .contact-item strong {
        font-size: 1.1rem;
    }
    
    .contact-text {
        font-size: 1.1rem;
    }
    
    .contact-text span {
        font-size: 0.85rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem;
        margin-top: 2rem;
        font-size: 0.9rem;
    }
    
    /* Diamonds - smaller on mobile */
    .diamond {
        width: 40px;
        height: 40px;
    }
    
    .d1 {
        width: 35px;
        height: 35px;
    }
    
    .d2 {
        width: 50px;
        height: 50px;
    }
    
    .d3 {
        width: 30px;
        height: 30px;
    }
    
    .d4 {
        width: 60px;
        height: 60px;
    }

    .about-image.staggered {
        top: 0;
        max-width: 100%;
        margin: 0 auto;
        position: relative; /* Keep for positioning */
        min-height: 300px; /* Ensure space for both images */
    }
    
    .about-image img:first-child {
        position: relative; /* Make it flow normally */
        width: 100%;
        margin-bottom: 0.1rem; /* Add space below first image */
    }
    
    .img-overlap {
        position: relative; /* Change from absolute to relative */
        width: 70%; /* Slightly wider on tablet */
        bottom: auto; /* Remove bottom positioning */
        right: auto; /* Remove right positioning */
        margin: 0.1rem auto 0; /* Center it with top margin */
        display: block;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .header{
        padding: 0rem 0;
    }
    .logo {
        font-size: 1rem;
    }
    
    nav ul {
        gap: 0.6rem;
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }

    .triangle-1 {
        border-left: 120px solid var(--maroon-dark);
        border-bottom: 180px solid transparent;
        top: -5px;
        left: -5px;
    }
    
    .triangle-2 {
        border-left: 250px solid var(--maroon-light);
        border-bottom: 130px solid transparent;
        top: -5px;
        left: -5px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .carousel-container {
        padding: 0 40px;
    }
    
    .carousel-track {
        height: 300px;
    }
    
    .carousel-slide {
        height: 280px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .contact-item .icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-item .icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 380px) {
    .triangle-1 {
        border-left: 80px solid var(--maroon-dark);
        border-bottom: 120px solid transparent;
        top: -3px;
        left: -3px;
    }
    
    .triangle-2 {
        border-left: 180px solid var(--maroon-light);
        border-bottom: 90px solid transparent;
        top: -3px;
        left: -3px;
    }
}

