/* --- VARIABLES --- */
:root {
    --primary-blue: #002244; /* Deep Academic Blue */
    --accent-teal: #008080;   /* Medical Teal */
    --teal-dark: #006666;
    --text-dark: #333;
    --whatsapp-green: #25D366;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px; /* Prevents content from hiding behind sticky header */
}

/* --- STICKY NAVIGATION --- */
.navbar {
    background-color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.brand-slogan {
    font-size: 0.75rem;
    color: var(--accent-teal);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* Nav Hover Effect (Underline Animation) */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--accent-teal);
    transition: width 0.3s;
}

.nav-link:hover {
    color: white !important;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-teal {
    background-color: var(--accent-teal);
    color: white;
    border-radius: 50px; /* Pill shape */
    padding: 8px 25px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-teal:hover {
    background-color: var(--teal-dark);
    transform: translateY(-2px); /* Slight lift on hover */
    color: white;
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(0, 34, 68, 0.85), rgba(0, 34, 68, 0.85)), url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 85vh; /* 85% of screen height */
    position: relative;
    margin-top: -76px; /* Pulls hero up behind nav */
    padding-top: 76px;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    font-weight: bold;
    border: none;
    transition: transform 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    transform: scale(1.05); /* Grow effect */
    color: white;
}

/* --- ANIMATIONS & TRANSITIONS --- */

/* Fade In Up Animation */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Transformations */
.founder-card, .stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.founder-card:hover {
    transform: translateY(-10px); /* Lifts up */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-card {
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.bg-teal {
    background-color: var(--accent-teal) !important;
}
.text-teal {
    color: var(--accent-teal) !important;
}

/* --- MOBILE SPECIFICS --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--primary-blue);
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }
    .hero-section {
        height: auto;
        padding: 150px 0 100px 0;
    }
}

/* --- FOUNDER IMAGE FIX (ADDED) --- */
.founder-img-wrapper {
    width: 150px;       /* Fixed Width */
    height: 150px;      /* Fixed Height */
    margin: 0 auto;     /* Centers the image */
    overflow: hidden;   /* Hides anything sticking out */
    border-radius: 50%; /* Makes it a perfect circle */
    border: 3px solid var(--accent-teal);
    background-color: #eee;
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the circle without stretching */
    object-position: top; /* Focuses on the face/top of image */
}

/* --- SOCIAL ICONS & LOGO --- */
.navbar-brand img {
    height: 50px;       /* Controls logo size */
    width: auto;        /* Maintains aspect ratio */
    object-fit: contain;
}

.social-icon {
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    transform: translateY(-3px); /* Lifts up slightly on hover */
    color: var(--accent-teal) !important; /* Changes to your brand teal color */
}

/* Ensure footer spacing on mobile */
footer .mb-3 {
    margin-bottom: 1rem !important;
}