:root {
    --primary: #177c8a;
    --primary-hover: #13636e;
    --secondary: #c8a97e;
    --secondary-hover: #b3956a;
    --danger: #d33144;
    --darkbg: #144c5a;
}

body { 
    font-family: 'Cairo', sans-serif; 
    background-color: #f8fafc;
    color: #333;
    overflow-x: hidden;
}

/* Custom Utilities */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; color: white; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-secondary-custom { background-color: var(--secondary) !important; color: white; }
.text-danger-custom { color: var(--danger) !important; }
.bg-danger-custom { background-color: var(--danger) !important; color: white; }

.btn-primary-custom {
    background-color: var(--primary);
    color: white;
    border: none;
}
.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: white;
}

.btn-secondary-custom {
    background-color: var(--secondary);
    color: white;
    border: none;
}
.btn-secondary-custom:hover {
    background-color: var(--secondary-hover);
    color: white;
}

/* 3D Global Effects */
.btn-3d {
    transition: all 0.2s ease;
    box-shadow: 0 6px 0px rgba(0,0,0,0.3) !important;
    transform: translateY(0);
    border: none !important;
}
.btn-3d:active {
    transform: translateY(4px) !important;
    box-shadow: 0 2px 0px rgba(0,0,0,0.3) !important;
}

.floating-element {
    animation: float3d 4s ease-in-out infinite;
}
@keyframes float3d {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.card-3d-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #eee;
}
.card-3d-hover:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 15px 20px 30px rgba(0,0,0,0.15);
    border-color: var(--secondary);
}

.text-3d {
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2), 4px 4px 0px rgba(0,0,0,0.1);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Navbar Links */
.nav-link {
    font-weight: 700;
    color: #495057;
    margin: 0 5px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: rgba(23, 124, 138, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* Dropdown Animation and Hover Effect */
@media all and (min-width: 992px) {
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    .navbar .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.3s ease-in-out;
        margin-top: 0;
    }
}
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
}
.dropdown-item {
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
}
.dropdown-item:hover {
    background-color: rgba(23, 124, 138, 0.08);
    color: var(--primary);
    padding-right: 25px !important;
}

/* Action Buttons in Navbar */
.nav-action-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-action-btn:hover::before {
    width: 100%;
}

.nav-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

/* Hero Section (Index) */
.hero-section {
    background: linear-gradient(rgba(20, 76, 90, 0.7), rgba(20, 76, 90, 0.7)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Typing cursor */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--secondary);
    animation: blink 0.7s infinite;
    vertical-align: middle;
    margin-right: 5px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Service Hero Sections */
.service-hero {
    padding: 120px 0 80px;
    color: white;
    position: relative;
}
.hero-intensive {
    background: linear-gradient(rgba(20, 76, 90, 0.8), rgba(20, 76, 90, 0.8)), url('https://images.unsplash.com/photo-1516549655169-df83a0774514?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}
.hero-maternity {
    background: linear-gradient(rgba(20, 76, 90, 0.7), rgba(20, 76, 90, 0.7)), url('https://images.unsplash.com/photo-1584516150909-c43483ee7932?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}
.hero-cardiology {
    background: linear-gradient(rgba(20, 76, 90, 0.85), rgba(20, 76, 90, 0.85)), url('https://images.unsplash.com/photo-1530497610245-94d3c16cda28?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}
.hero-emergency {
    background: linear-gradient(rgba(211, 49, 68, 0.85), rgba(20, 76, 90, 0.85)), url('https://images.unsplash.com/photo-1587559070757-f72a388edbba?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}

/* Trust Bar */
.trust-bar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    padding: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.trust-item {
    transition: transform 0.3s ease;
}
.trust-item:hover {
    transform: translateY(-5px);
}

/* Flip Card Effect for Services */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 15px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}
.flip-card-front {
    background-color: #fff;
}
.flip-card-front img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.flip-card-front-content {
    padding: 25px 20px;
}
.flip-card-back {
    background: linear-gradient(135deg, var(--primary), var(--darkbg));
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(23, 124, 138, 0.85), rgba(23, 124, 138, 0.85)), url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    padding: 100px 0;
    text-align: center;
    color: white;
}

/* Testimonial Card */
.testimonial-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    height: 100%;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    margin-bottom: 15px;
    object-fit: cover;
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #f1f1f1;
}
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(23, 124, 138, 0.2);
    border-color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--darkbg);
    color: #d1d5db;
    padding: 70px 0 20px;
}
.footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover {
    color: var(--secondary);
    padding-right: 5px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}
