* {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

.gradient-bg {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
}

/* Grid layout enhancements */
.grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.grid-item-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.grid-item-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) translateY(-10px);
}

/* 3D Card effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-3d:hover {
    transform: rotateY(15deg) rotateX(5deg);
}

.card-3d .card-front {
    backface-visibility: hidden;
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(56, 189, 248, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.cta-pulse {
    animation: pulse 2s infinite;
}

/* Section styles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    border-radius: 2px;
}

/* Button styles */
.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-3d:active {
    transform: translateY(-2px);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
    transform: scale(1);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: white;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* Treatment cards with 3D effect */
.treatment-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.treatment-card:hover::before {
    transform: scaleX(1);
}

.treatment-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Contact form animations */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

/* Timeline for education */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #38bdf8, #0ea5e9);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #38bdf8;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #38bdf8;
}

/* Stats counter animation */
.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #0c4a6e, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

/* Video modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.video-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-3d {
        grid-template-columns: 1fr;
    }
    
    .card-3d:hover {
        transform: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #38bdf8, #0ea5e9);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0ea5e9, #0369a1);
}

/* Floating CTA buttons */
.floating-cta {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floating-cta a {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-cta a:hover {
    transform: scale(1.1);
}

.phone-btn {
    background-color: #0ea5e9;
}

.phone-btn:hover {
    background-color: #0284c7;
}

.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

/* Achievement items */
.achievement-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.achievement-item::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-weight: bold;
}
/* Header specific styles */
.desktop-nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

@media (min-width: 1280px) {
    .desktop-nav-link {
        font-size: 1rem;
    }
}

.mobile-nav-item {
    transition: all 0.3s ease;
}

.mobile-nav-item:hover {
    transform: translateX(5px);
}

/* Mobile menu animations */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.show {
    transform: translateX(0);
}

#mobile-menu-overlay {
    transition: opacity 0.3s ease;
}

#mobile-menu:not(.show) #mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Active link styles */
.desktop-nav-link.active,
.mobile-nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.desktop-nav-link.active::after {
    width: 3/4 !important;
}

/* CTA button pulse animation */
@keyframes cta-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.cta-pulse {
    animation: cta-pulse 2s infinite;
}

/* Logo hover effect */
.logo-hover:hover .logo-icon {
    transform: rotate(12deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #main-header {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-contact-bar {
        background: rgba(14, 165, 233, 0.1);
        backdrop-filter: blur(10px);
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .desktop-nav-link {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        font-size: 0.85rem;
    }
    
    .desktop-nav-link i {
        margin-right: 0.5rem;
    }
}