/* Global Styles */
:root {
    --primary: #4f8cff;
    --primary-rgb: 79, 140, 255;
    --secondary: #a259ff;
    --accent: #43e7ad;
    --accent-rgb: 67, 231, 173;
    --bg-gradient: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    --text-main: #222b45;
    --text-light: #6b7a99;
    --white: #fff;
    --blur: 18px;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Add padding to account for fixed navbar */
    overflow-x: hidden;
}

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

* {
    box-sizing: border-box;
}

/* Glassmorphic Navbar */
.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 2vw;
    border-radius: 0 0 0.7rem 0.7rem;
    margin-bottom: 1rem;
    min-height: unset;
    white-space: nowrap;
    background: linear-gradient(120deg, rgba(255,255,255,0.32) 60%, rgba(79,140,255,0.18) 100%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    border-bottom: 1.5px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-right: auto;
}

.navbar .nav-links {
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
}

.navbar.scrolled {
    background: linear-gradient(120deg, rgba(255,255,255,0.95) 60%, rgba(79,140,255,0.35) 100%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    border-radius: 0;
    margin-bottom: 0;
}



.logo-image {
    width: 140px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.logo h1 {
    font-size: 1.3rem;
    line-height: 1.1;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 0rem;
    white-space: nowrap;
}

.nav-links a {
    padding: 0.3rem 1.1rem;
    font-size: 1rem;
    border-radius: 1.2rem;
    margin: 0;
    color: var(--text-main);
    text-decoration: none !important;
    font-weight: 600;
    background: transparent;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: none;
    border: none;
    outline: none;
}

.nav-links a.active, .nav-links a:hover {
    background: linear-gradient(90deg, var(--primary) 60%, var(--secondary));
    color: var(--white) !important;
    box-shadow: 0 2px 12px 0 rgba(79, 140, 255, 0.12);
    text-decoration: none !important;
}

.hamburger {
    margin-left: auto;
    margin-right: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    cursor: pointer;
    z-index: 1200;
    background: none;
    border: none;
    outline: none;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3.5px;
    margin: 4px 0;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Hero Section Glassmorphism */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #e0e7ff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-slideshow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.2s cubic-bezier(.4,0,.2,0.5);
    opacity: 1;
}

.hero-bg-slideshow::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(40,60,120,0.25) 0%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    border-radius: 2.5rem;
    box-shadow: var(--glass-shadow);
    border: 1.5px solid var(--glass-border);
    padding: 3.5rem 2.5rem;
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    margin-top: 2rem; /* Reduced since we have body padding now */
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.2rem;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 2rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    box-shadow: 0 4px 24px 0 rgba(79, 140, 255, 0.18);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    letter-spacing: 1px;
    outline: none;
}

.cta-button:hover {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 32px 0 rgba(162, 89, 255, 0.18);
}

/* Responsive Navbar */
@media (max-width: 900px) {
    .navbar {
        flex-wrap: nowrap;
        overflow: visible !important;
        z-index: 2000;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    .navbar .logo {
        margin-right: 0;
    }
    .navbar .nav-links {
        margin-left: 0;
    }
    .logo-image {
        width: 35px;
        height: 35px;
    }
    .logo h1 {
        font-size: 1.1rem;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        right: 2vw;
        left: 2vw;
        background: linear-gradient(120deg, rgba(255,255,255,0.95) 60%, rgba(79,140,255,0.25) 100%);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
        border-radius: 1.2rem;
        border: 1.5px solid rgba(255,255,255,0.25);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.8rem 1rem;
        margin-top: 0.5rem;
        z-index: 3000;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s, transform 0.3s;
        min-width: 180px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-links.nav-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        z-index: 4000;
    }
    .nav-links a {
        width: 100%;
        text-align: left;
        padding: 0.5rem 0.8rem;
        margin: 0;
        font-size: 0.95rem;
    }
    .hamburger {
        display: flex;
        position: absolute;
        right: 2vw;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        z-index: 5000;
    }
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1vw;
        border-radius: 0 0 1.2rem 1.2rem;
    }
    .logo-image {
        width: 32px;
        height: 32px;
    }
    .logo h1 {
        font-size: 1rem;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.2rem;
        margin-top: 0.5rem;
        padding: 0.6rem 1rem;
    }
    .nav-links a {
        width: 100%;
        text-align: left;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    .hero-content {
        margin-top: 2.5rem;
    }
}

@media (max-width: 500px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content {
        padding: 1.2rem 0.5rem;
    }
    .logo-image {
        width: 80px;
        height: 50px;
    }
    .logo h1 {
        font-size: 0.9rem;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}

img {
    max-width: 100%;
    display: block;
    border-radius: 1.2rem;
    object-fit: cover;
    background: #e0e7ff;
    transition: box-shadow 0.3s, filter 0.3s;
    opacity: 1; /* Ensure images are visible by default */
}

img:active, img:focus, img:hover {
    box-shadow: 0 4px 24px 0 rgba(79, 140, 255, 0.18);
    filter: brightness(0.98) saturate(1.1);
}

/* About Section - Glassmorphic Redesign */
.about {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    background: var(--glass-bg);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
}

.about-image {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.5rem; /* Ensure image inherits parent's border-radius */
    object-fit: cover;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.features li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    transition: background 0.3s, transform 0.3s;
}

.features li:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.features i {
    color: var(--primary);
    margin-right: 0.75rem;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
    .about-text h3 {
        font-size: 1.6rem;
    }
}

/* Services Section - Glassmorphic Redesign */
.services {
    padding: 0rem 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-gradient); /* Match other redesigned sections */
}

.services .container {
    position: relative;
    z-index: 2;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-tile {
    position: relative;
    height: 300px;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--glass-shadow);
    border: 1.5px solid var(--glass-border);
}

.service-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px 0 rgba(31, 38, 135, 0.3);
}

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

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-tile:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.8) 100%
    );
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    z-index: 2;
    transition: background 0.3s ease;
}

.service-tile:hover .service-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.5) 0%,
        rgba(0,0,0,0.7) 50%,
        rgba(0,0,0,0.9) 100%
    );
}

.service-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.service-details {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.service-tile:hover .service-details {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
}

.service-details p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-details ul li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.2rem;
}

.service-details ul li:before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Service tile base state - show only title */
.service-overlay h3 {
    position: relative;
    z-index: 3;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-tile {
        height: 250px;
    }
    
    .service-overlay {
        padding: 1.5rem;
    }
    
    .service-overlay h3 {
        font-size: 1.3rem;
    }
    
    .service-details p {
        font-size: 0.85rem;
    }
    
    .service-details ul li {
        font-size: 0.8rem;
    }
}

/* Gallery Section - Glassmorphic Redesign */
.gallery {
    padding: 6rem 0;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.gallery .container {
    position: relative;
    z-index: 2;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

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

.gallery-item {
    position: relative;
    border-radius: 1.5rem; /* Consistent border-radius */
    overflow: hidden;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    aspect-ratio: 1/1; /* Changed to 1/1 for square items, adjust as needed */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 35px 0 rgba(31, 38, 135, 0.22);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-radius: 1.5rem; /* Ensure image also has radius if container has padding */
}

.gallery-item::before { /* Overlay for hover effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 1.5rem;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after { /* Plus icon for hover effect */
    content: '\f067'; /* Font Awesome plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: var(--white);
    font-size: 2.5rem;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

/* Remove old gallery ::before if it exists */
.gallery::before {
    content: none;
}

/* Before and After Section - Smoothly Flowing Tiles */
.before-after {
    padding: 4rem 0;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.before-after .container {
    position: relative;
    z-index: 2;
}

.before-after h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.before-after h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.before-after-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
}

.before-after-flow {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.before-after-flow::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
    z-index: 10;
    flex-shrink: 0;
}

.scroll-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(79, 140, 255, 0.3);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.scroll-btn:disabled:hover {
    background: var(--glass-bg);
    color: var(--primary);
    transform: none;
    box-shadow: var(--glass-shadow);
}

.flow-item {
    background: var(--glass-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1;
    position: relative;
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
}

.flow-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.flow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .before-after {
        padding: 3rem 0;
    }
    
    .before-after h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .before-after-wrapper {
        gap: 0.5rem;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .before-after-flow {
        gap: 1rem;
        padding: 0.8rem 0;
    }
    
    .flow-item {
        flex: 0 0 250px;
        min-width: 250px;
        max-width: 250px;
        border-radius: 1.2rem;
    }
}

@media (max-width: 480px) {
    .before-after {
        padding: 2rem 0;
    }
    
    .before-after h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .before-after-wrapper {
        gap: 0.3rem;
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .before-after-flow {
        gap: 0.8rem;
        padding: 0.6rem 0;
    }
    
    .flow-item {
        flex: 0 0 200px;
        min-width: 200px;
        max-width: 200px;
        border-radius: 1rem;
    }
}

/* Gallery Modal - Glassmorphic Redesign */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85); /* Darker, more immersive background */
    display: none; /* Keep hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Ensure it's above everything */
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px); /* Apply blur to the background behind the modal */
    -webkit-backdrop-filter: blur(10px);
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 85%; /* Adjust as needed */
    max-height: 85vh; /* Adjust as needed */
    position: relative;
    background: var(--glass-bg);
    border-radius: 1.5rem; /* Consistent with other elements */
    box-shadow: 0 15px 50px rgba(0,0,0,0.3); /* More pronounced shadow */
    border: 1.5px solid var(--glass-border);
    padding: 1.5rem; /* Add some padding around the image */
    backdrop-filter: blur(var(--blur)); /* Blur inside the modal content area */
    -webkit-backdrop-filter: blur(var(--blur));
    display: flex; /* Using flex to center image if it's smaller than container */
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: calc(85vh - 3rem); /* Account for padding */
    display: block; /* Remove any extra space */
    border-radius: 1rem; /* Slightly smaller radius for image inside */
    object-fit: contain; /* Ensure whole image is visible */
}

.modal-close {
    position: absolute;
    top: -15px; /* Position slightly outside the padded content */
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.5rem; /* Adjust size */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--secondary);
    transform: rotate(90deg) scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    left: -60px; /* Position nav buttons outside the modal content */
    right: -60px;
    width: calc(100% + 120px);
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 5;
}

.modal-nav button {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid var(--glass-border);
    color: var(--white);
    font-size: 2rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    border-radius: 1rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.modal-nav button:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Responsive adjustments for modal */
@media (max-width: 900px) {
    .modal-content {
        max-width: 90%;
        max-height: 90vh;
        padding: 1rem;
    }
    .modal-content img {
        max-height: calc(90vh - 2rem);
    }
    .modal-nav {
        left: -10px;
        right: -10px;
        width: calc(100% + 20px);
        padding: 0; /* Remove padding if buttons are closer */
    }
    .modal-nav button {
        font-size: 1.5rem;
        padding: 0.6rem 1rem;
    }
    .modal-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

/* Testimonials Section - Glassmorphic Redesign */
.testimonials {
    padding: 6rem 0;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted minmax */
    gap: 2rem;
}

.testimonial-card {
    background: var(--glass-bg);
    padding: 2.5rem 2rem; /* Generous padding */
    border-radius: 1.5rem; /* Consistent border-radius */
    box-shadow: var(--glass-shadow);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For pseudo-elements like quote mark */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push author to bottom if quote is short */
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.testimonial-card::before { /* Decorative quote mark */
    content: '\201C'; /* Unicode for left double quotation mark */
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    font-family: 'Times New Roman', Times, serif;
    color: rgba(var(--primary-rgb, 79, 140, 255), 0.2); /* Use RGB version of primary or fallback */
    line-height: 1;
    z-index: 0;
}

.quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem; /* Slightly increased size */
    line-height: 1.7;
    position: relative;
    z-index: 1; /* Ensure quote is above the pseudo-element quote mark */
    flex-grow: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem; /* Increased gap */
    margin-top: 1.5rem; /* Add some space above author */
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 60px; /* Slightly larger avatar */
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb, 79, 140, 255), 0.3);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Reset inner image radius if container is circle */
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    color: var(--text-main);
    font-weight: 700; /* Bolder name */
    font-size: 1.1rem;
}

.author-title {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating {
    display: flex;
    gap: 0.3rem; /* Adjust gap */
    margin-top: 0.3rem;
}

.rating i {
    color: #ffc107; /* Brighter gold for stars */
    font-size: 1rem;
}

/* Remove old testimonials ::before and ::after if they exist */
.testimonials::before,
.testimonial-card::after { /* Specifically target ::after on card if it was used for bottom border */
    content: none;
}

/* Contact Section - Glassmorphic Redesign */
.contact {
    padding: 6rem 0;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Give a bit more space to the form */
    gap: 3rem; /* Increased gap */
    align-items: flex-start; /* Align items to the top */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Spacing between info items */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 1.5rem;
    box-shadow: var(--glass-shadow);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.info-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px 0 rgba(31, 38, 135, 0.2);
}

.info-item i {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transition: transform 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.1) rotate(15deg);
}

.info-item p {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.info-item p a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item p a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-form {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--glass-shadow);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1.5rem; /* Consistent spacing */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1.5px solid transparent; /* Start with transparent border */
    border-radius: 1rem;
    font-size: 1rem;
    color: var(--text-main);
    background: rgba(255,255,255,0.25);
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255,255,255,0.4);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3);
}

.contact-form textarea {
    min-height: 120px; /* Adjust as needed */
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px 0 rgba(var(--primary-rgb), 0.25);
}

.form-success { /* Keep existing success message, ensure it fits visually */
    display: none;
    text-align: center;
    padding: 1rem;
    background: rgba(var(--accent-rgb, 67, 231, 173), 0.2); /* Use accent color with alpha */
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 1rem;
    margin-top: 1.5rem;
    font-weight: 500;
}

/* Remove old contact ::before if it exists */
.contact::before {
    content: none;
}

@media (max-width: 900px) { /* Adjusted breakpoint for contact section layout */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-form {
        padding: 2rem;
    }
}

/* Enhanced Mobile Responsiveness for Contact Section */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }
    
    .contact .container {
        padding: 0 1rem;
    }
    
    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .contact-content {
        gap: 2.5rem;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-form {
        order: 2;
    }
    
    /* Mobile Contact Cards Design */
    .info-item {
        padding: 1.5rem;
        margin-bottom: 1.2rem;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
        border-radius: 1.2rem;
    }
    
    .info-item i {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        margin-bottom: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .info-item p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0;
        flex: 1;
    }
    
    /* Special styling for address */
    .info-item:first-child p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .info-item:first-child p strong {
        display: block;
        margin-bottom: 0.3rem;
        color: var(--text-main);
        font-weight: 600;
    }
    
    /* Phone numbers styling */
    .info-item:nth-child(2) p {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .info-item:nth-child(2) p br {
        display: none;
    }
    
    /* Phone number groups */
    .info-item:nth-child(2) p {
        font-size: 0;
    }
    
    .info-item:nth-child(2) p a {
        display: inline-block;
        padding: 0.5rem 0.8rem;
        background: rgba(79, 140, 255, 0.1);
        border-radius: 0.6rem;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        transition: all 0.3s ease;
        border: 1px solid rgba(79, 140, 255, 0.2);
        margin: 0.2rem 0.3rem 0.2rem 0;
        color: var(--primary);
        min-width: 120px;
        text-align: center;
    }
    
    .info-item:nth-child(2) p a:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
        border-color: var(--primary);
    }
    
    /* Location labels */
    .info-item:nth-child(2) .location-label {
        display: block;
        font-size: 0.75rem;
        color: var(--text-light);
        margin: 0.3rem 0 0.5rem 0;
        font-weight: 500;
        text-align: left;
    }
    
    /* Email styling */
    .info-item:nth-child(3) p a {
        display: inline-block;
        padding: 0.6rem 1rem;
        background: rgba(79, 140, 255, 0.1);
        border-radius: 0.8rem;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 600;
        word-break: break-all;
        transition: all 0.3s ease;
        border: 1px solid rgba(79, 140, 255, 0.2);
        color: var(--primary);
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .info-item:nth-child(3) p a:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
        border-color: var(--primary);
    }
    
    /* Timing card styling */
    .info-item:last-child p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .info-item:last-child p strong {
        color: var(--primary);
        font-weight: 600;
    }
    
    .contact-form {
        padding: 1.8rem;
        margin-top: 0;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
        border-radius: 0.8rem;
    }
    
    .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        border-radius: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 2.5rem 0;
    }
    
    .contact .container {
        padding: 0 0.8rem;
    }
    
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .info-item {
        padding: 1.2rem;
        margin-bottom: 1rem;
        border-radius: 1rem;
        gap: 0.8rem;
    }
    
    .info-item i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .info-item p {
        font-size: 0.85rem;
    }
    
    .info-item:first-child p {
        font-size: 0.8rem;
    }
    
         .info-item:nth-child(2) p a {
         font-size: 0.8rem;
         padding: 0.4rem 0.6rem;
         min-width: 110px;
     }
     
     .info-item:nth-child(3) p a {
         font-size: 0.75rem;
         padding: 0.5rem 0.8rem;
     }
    
    .info-item:last-child p {
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 1.4rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .contact-form textarea {
        min-height: 100px;
    }
    
    .submit-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Footer - Consistent Redesign */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* Dark, sophisticated gradient */
    color: rgba(255, 255, 255, 0.85); /* Slightly softer white text */
    padding: 4rem 0 2rem; /* Adjusted padding */
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer * {
    background: transparent !important;
}

.footer .footer-section {
    background: transparent !important;
    align-self: start;
    vertical-align: top;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr; /* Custom column widths */
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
    align-items: start; /* Ensure all sections start at the top */
}

.footer-section h3 {
    font-size: 1.3rem; /* Slightly larger heading */
    color: var(--white);
    margin-bottom: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary); /* Use primary color for accent */
    border-radius: 1.5px;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem; /* Add margin to paragraph */
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.7rem; /* Increased spacing */
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent); /* Use accent for hover */
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem; /* Adjusted gap */
    margin-top: 0.5rem; /* Align with other content */
}

.social-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.6rem; /* Larger icons */
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px) scale(1.1);
}

/* New Footer Section Styles */
.footer-section.clinic-info {
    padding-right: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 1rem;
    min-width: 18px;
}

.footer-contact-item span a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item span a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-hours {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.footer-hours i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 0.2rem;
    min-width: 18px;
}

.footer-hours .closed {
    color: #ff6b6b;
    font-weight: 600;
}

.location-item {
    margin-bottom: 2rem;
}

.location-item h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-item h4 i {
    color: var(--accent);
    font-size: 0.9rem;
}

.location-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.location-contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.location-contact span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-contact i {
    color: var(--accent);
    font-size: 0.8rem;
    min-width: 14px;
}

.location-contact span a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-contact span a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-section.services {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.85) !important;
    align-self: start;
    vertical-align: top;
}

.footer-section.services h3 {
    background: transparent !important;
    color: var(--white) !important;
}

.footer-section.services ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent !important;
}

.footer-section.services ul li {
    margin-bottom: 0.6rem;
    background: transparent !important;
}

.footer-section.services ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    background: transparent !important;
}

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

.social-section {
    margin-top: 2rem;
}

.social-section h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.8rem;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.3rem;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section.links-social {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section.links-social {
        grid-column: span 1;
        display: block;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Slightly less padding for mobile */
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(5px);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        animation: slideDown 0.3s ease;
    }

    .nav-links a {
        margin: 0.8rem 0;
        padding: 0.8rem;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(52, 152, 219, 0.1);
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }

    .about {
        padding: 80px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        transform: none;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .about h2 {
        font-size: 2.2rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .services {
        padding: 80px 0;
    }

    .services h2 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-card i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .gallery {
        padding: 80px 0;
    }

    .gallery h2 {
        font-size: 2.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .modal-nav {
        padding: 0 10px;
    }

    .modal-nav button {
        font-size: 1.5rem;
        padding: 8px 15px;
    }

    .testimonials {
        padding: 80px 0;
    }

    .testimonials h2 {
        font-size: 2.2rem;
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .quote {
        font-size: 1rem;
    }

    .contact {
        padding: 80px 0;
    }

    .contact h2 {
        font-size: 2.2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px;
    }

    .info-item {
        padding: 20px;
    }

    .info-item i {
        font-size: 1.5rem;
        padding: 12px;
    }

    .info-item p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .services-grid,
    .gallery-grid,
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
}

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

/* Team Section - Glassmorphic Redesign */
.team {
    padding: 6rem 0;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.team .container {
    position: relative;
    z-index: 2;
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.team h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background: var(--glass-bg);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.team-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.team-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.team-social a {
    color: var(--white);
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.team-social a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.team-info {
    padding: 1.8rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.team-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-specialization {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.team-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.team-credentials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.team-credentials span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.2);
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
}

.team-credentials i {
    color: var(--secondary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-info h3 {
        font-size: 1.4rem;
    }
}

.contact-form iframe {
    width: 100% !important;
    height: 360px;
    display: block;
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--glass-shadow);
}

@media (max-width: 768px) {
    /* ... existing code ... */
    .contact-form iframe {
        height: 300px;
        border-radius: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* ... existing code ... */
    .contact-form iframe {
        height: 240px;
        border-radius: 0.8rem;
    }
}
