/* 
    KENBE Adult Family Home - Custom Styles
*/

:root {
    --primary-color: #2c3e50;
    --secondary-color: #27ae60;
    --accent-color: #e67e22;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #444;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --section-padding: 30px 0;
}

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

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    font-weight: 500;
    font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1200px) {
    .container-fluid {
        padding-right: 30px;
        padding-left: 30px;
    }
}

/* Header & Navigation */
header {
    width: 100%;
    z-index: 1000;
    position: relative;
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.top-location {
    font-weight: 600;
    display: flex;
    gap: 15px;
    align-items: center;
}

.location-divider {
    opacity: 0.5;
}

.location-item i {
    color: var(--secondary-color);
    margin-right: 5px;
}

@media (max-width: 992px) {
    .top-bar-flex {
        flex-direction: column;
        text-align: center;
        gap: 2px;
    }
    .top-location {
        font-size: 0.75rem;
        opacity: 0.9;
    }
    .contact-info {
        font-size: 0.85rem;
        font-weight: 700;
    }
}

.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 55px;
    width: auto;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-text .accent {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 5px;
}

.nav-links a.active::after, .nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-nav {
    background: var(--secondary-color);
    color: var(--white) !important;
    padding: 12px 28px !important;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.2);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white) !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.2);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.2);
}

.btn-nav:hover {
    background: transparent;
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.15);
    transform: translateY(-3px) scale(1.05);
}

.logo:hover {
    transform: scale(1.03);
}

.logo-img {
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: rotate(-5deg);
}

.menu-toggle {
    display: none;
    background: var(--light-color);
    border: none;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

/* Hero Slider & Section */
.hero {
    min-height: 80vh;
    padding: 120px 0;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 100px;
        min-height: 550px;
    }
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide .section-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ms-3 {
    margin-left: 1rem !important;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px !important;
    }
    .hero-btns .ms-3 {
        margin-left: 0 !important;
    }
    .hero-btns a {
        padding: 10px 25px;
        font-size: 0.95rem;
        min-width: 180px;
        text-align: center;
    }
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

/* Home Gallery Slider */
.home-gallery-section {
    background: var(--light-color);
    padding: 60px 0;
}

.gallery-slider {
    padding: 20px 40px 50px;
    position: relative;
}

.gallery-slide {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-slide:hover img {
    transform: scale(1.1);
}

.gallery-slider .swiper-button-next,
.gallery-slider .swiper-button-prev {
    color: var(--secondary-color);
    background: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-slider .swiper-button-next::after,
.gallery-slider .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

@media (max-width: 576px) {
    .gallery-slider {
        padding: 20px 0 50px;
    }
    .gallery-slider .swiper-button-next,
    .gallery-slider .swiper-button-prev {
        display: flex;
        width: 35px;
        height: 35px;
    }
    .gallery-slider .swiper-button-next::after,
    .gallery-slider .swiper-button-prev::after {
        font-size: 0.9rem;
    }
}

/* Sections */
section {
    padding: var(--section-padding);
}

.full-width-section {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.dark-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.section-content {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    padding: 0 15px;
    z-index: 1;
}

/* Background highlight for all section titles and banner titles */
.section-title h2, 
.page-banner h1, 
.contact-form-card h3, 
.contact-form-card-modern h3, 
.faq-accordion h3 {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    z-index: 1;
}

.section-title h2::before, 
.page-banner h1::before, 
.contact-form-card h3::before, 
.contact-form-card-modern h3::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(39, 174, 96, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
    border-radius: 2px;
}

/* Adjust highlight for dark/image backgrounds */
.dark-overlay h1::before, 
.full-width-section .section-title h2::before {
    background: rgba(255, 255, 255, 0.2);
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 8px auto 0;
    border-radius: 10px;
}

/* Left aligned titles */
.section-title[style*="text-align: left"] .underline {
    margin: 8px 0 0 !important;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cascading-images {
    position: relative;
    height: 500px;
}

.cascading-images img {
    position: absolute;
    width: 70%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 5px solid var(--white);
}

.img-1 { top: 0; left: 0; z-index: 3; }
.img-2 { top: 100px; right: 0; z-index: 2; }
.img-3 { bottom: 0; left: 50px; z-index: 1; }

/* Services/Amenities */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--secondary-color);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .service-card {
        padding: 15px 10px;
    }
    .service-card i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    .service-card h3 {
        font-size: 0.95rem;
    }
    .service-card p {
        font-size: 0.75rem;
    }
}

/* Contact Form Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--secondary-color);
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .gallery-item {
        height: 150px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-directions-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.map-directions-btn .btn-primary {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 12px 25px;
}

.about-section {
    padding-bottom: 100px; /* Space for the overlapping trust strip */
}

/* Trust Strip - Home Page */
.trust-strip-container {
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Overlap effect */
    padding-bottom: 60px;
}

.trust-strip {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.trust-title {
    flex: 0 0 250px;
    padding-right: 40px;
    border-right: 2px solid #f0f0f0;
}

.trust-title h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.trust-items-grid {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    flex: 1;
}

.trust-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.trust-item span {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
}

@media (max-width: 1200px) {
    .trust-strip {
        flex-direction: column;
        gap: 30px;
        padding: 40px;
    }
    .trust-title {
        flex: none;
        padding: 0;
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 20px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .trust-items-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .trust-strip-container {
        margin-top: -40px;
    }
    .trust-strip {
        padding: 30px 15px;
    }
    .trust-items-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .trust-item span {
        font-size: 0.75rem;
    }
}

/* CTA Section Across Pages */
.cta-section {
    padding: 120px 0;
    position: relative;
    background-attachment: fixed !important;
    background-size: cover;
    background-position: center;
}

.cta-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.cta-inner-centered {
    text-align: center;
}

.cta-sub {
    display: block;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.cta-text h2.text-white {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cta-text p.text-white-80 {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.justify-content-center {
    justify-content: center;
}

.cta-divider {
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    font-size: 0.9rem;
}

.cta-btn-main {
    white-space: nowrap;
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.4);
    min-width: 220px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.15rem;
    padding: 20px 40px;
}

.btn-secondary-cta {
    background: var(--white);
    color: var(--primary-color);
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-secondary-cta:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
    .cta-text h2.text-white {
        font-size: 2.8rem;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        gap: 15px;
    }
    
    .cta-divider {
        margin: 5px 0;
        color: rgba(255,255,255,0.3);
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-text h2.text-white {
        font-size: 2.2rem;
    }
    
    .cta-text p.text-white-80 {
        font-size: 1.1rem;
    }
    
    .cta-btn-main, .btn-secondary-cta {
        width: 100%;
    }
}

/* Footer Styles */
.footer-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-section h3, .footer-section h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-footer {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 30px;
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    opacity: 0.8;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icons a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Floating Elements */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

#back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.floating-contact {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.floating-btn.phone { background: #3498db; }
.floating-btn.whatsapp { background: #25d366; }
.floating-btn.email { background: #e74c3c; }

.floating-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Accessibility Widget */
.accessibility-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 2000;
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    background: #4a69bd;
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.accessibility-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: var(--white);
    width: 250px;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
}

.accessibility-menu.active {
    display: block;
}

.accessibility-menu h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.accessibility-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #f1f2f6;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
}

.accessibility-menu button:hover {
    background: #dfe4ea;
}

/* Accessibility Modes */
.high-contrast {
    filter: contrast(150%) grayscale(20%);
    background: #000 !important;
    color: #fff !important;
}

.high-contrast * {
    background: inherit !important;
    color: inherit !important;
    border-color: #fff !important;
}

.highlight-links a {
    background: yellow !important;
    color: black !important;
    font-weight: 900 !important;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 0 20px;
        gap: 0;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        text-align: center;
        border-top: 1px solid #eee;
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
    
    .nav-links.active {
        padding: 30px 20px;
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.4s ease;
        margin-bottom: 15px;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered animation for menu items */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    
    .menu-toggle {
        display: flex;
        transition: var(--transition);
    }

    .menu-toggle.active {
        background: var(--secondary-color);
        color: var(--white);
        transform: rotate(90deg);
    }
    
    .logo-img {
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .about-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .cascading-images {
        height: 350px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 30px 0;
    }
    
    .top-bar {
        font-size: 0.8rem;
    }

    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .col-footer {
        min-width: 0;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .col-footer:first-child,
    .col-footer:last-child {
        grid-column: span 2;
    }
}

/* Utility Classes */
.ms-3 { margin-left: 1rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.d-none { display: none; }
@media (min-width: 768px) { .d-md-block { display: block; } }
