:root {
    --primary-color: #0d2338; /* Professional Deep Blue */
    --accent-color: #007bff; /* Trustworthy Medical Blue */
    --text-main: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --transition: all 0.3s ease;
}

.light-mode {
    --primary-color: #f5f6fa;
    --bg-light: #0d1117;
    --bg-alt: #161b22;
    --text-main: #e6edf3;
    --text-secondary: #8b949e;
    --header-bg: rgba(13, 17, 23, 0.95);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background-color: var(--bg-light); line-height: 1.7; transition: var(--transition); overflow-x: hidden; width: 100%; }
a { color: var(--accent-color); text-decoration: none; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background: var(--primary-color); color: #fff; padding: 10px 0; font-size: 13px; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-bar .contact-info span { margin-right: 20px; }
.top-bar .social-links a { color: #fff; margin-left: 15px; }

/* Header & Nav */
.header { position: sticky; top: 0; width: 100%; z-index: 1000; padding: 20px 0; background: var(--header-bg, rgba(255, 255, 255, 0.95)); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: var(--transition); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; }
.logo span { color: var(--accent-color); }
.nav-list { display: flex; gap: 30px; }
.nav-link { font-weight: 500; font-size: 14px; text-transform: uppercase; color: var(--text-main); transition: var(--transition); }
.nav-link:hover { color: var(--accent-color); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.menu-toggle { font-size: 24px; cursor: pointer; display: none; color: var(--primary-color); }
.theme-toggle { cursor: pointer; font-size: 18px; color: var(--primary-color); }

/* Hero Section */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.badge { display: inline-block; padding: 6px 16px; background: rgba(0, 123, 255, 0.1); color: var(--accent-color); font-weight: 700; font-size: 12px; border-radius: 5px; margin-bottom: 20px; text-transform: uppercase; }
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.text-accent { color: var(--accent-color); }
.hero-desc { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; max-width: 500px; }
.hero-btns { display: flex; gap: 20px; }
.btn { padding: 15px 35px; border-radius: 5px; font-weight: 700; transition: var(--transition); border: none; cursor: pointer; font-size: 14px; text-transform: uppercase; }
.btn-primary { background: var(--accent-color); color: #000; }
.btn-outline { border: 2px solid var(--accent-color); color: var(--accent-color); background: transparent; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(212, 237, 49, 0.2); }

.img-box { position: relative; border-radius: 20px; overflow: hidden; height: 550px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.img-box img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: var(--transition); }
.img-box:hover img { filter: grayscale(0%); }

/* Philosophy & Layout */
.philosophy-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.philosophy-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.quote { font-size: clamp(20px, 3vw, 26px); font-family: 'Playfair Display', serif; line-height: 1.4; border-left: 6px solid var(--accent-color); padding-left: 30px; margin-top: 40px; }

/* Service Grid Overhaul */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.service-card { background: #fff; padding: 50px 40px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05); transition: var(--transition); }
body.light-mode .service-card { background: var(--bg-alt); border-color: rgba(255,255,255,0.05); }
.service-card:hover { transform: translateY(-10px); border-color: var(--accent-color); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.service-icon { font-size: 44px; color: var(--accent-color); margin-bottom: 25px; }

/* Generic Sections */
.section { padding: clamp(60px, 10vh, 100px) 0; }
.bg-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 60px; height: 4px; background: var(--accent-color); }

/* About & Stats */
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.main-text p { font-size: 18px; margin-bottom: 20px; color: var(--text-secondary); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.stat-item h4 { font-size: 48px; color: var(--accent-color); }
.stat-item p { text-transform: uppercase; font-size: 12px; letter-spacing: 2px; }

/* Philosophy Box */
.philosophy-box { background: rgba(255,255,255,0.03); padding: 50px; border-radius: 20px; }
.quote { font-size: 24px; font-style: italic; color: var(--accent-color); margin-top: 30px; padding-left: 20px; border-left: 5px solid var(--accent-color); }

/* Institution Cards Overhaul */
.institution-container { display: flex; flex-direction: column; gap: 80px; margin-top: 60px; }
.institution-card { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.institution-card.reverse { direction: rtl; }
.institution-card.reverse .inst-content { direction: ltr; }

.inst-content p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); }
.inst-mission { font-weight: 600; color: var(--accent-color) !important; font-size: 1.3rem !important; margin-bottom: 15px !important; }

.inst-image { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.05); }
.inst-image img { width: 100%; height: 450px; object-fit: cover; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.inst-image:hover img { transform: scale(1.08); }

.inst-stats { display: flex; gap: 40px; margin-top: 40px; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 30px; }
.inst-stat { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); }
.inst-stat span { display: block; font-size: 1.8rem; color: var(--primary-color); font-weight: 800; margin-bottom: 5px; }

body.light-mode .inst-image { border-color: rgba(255,255,255,0.1); }
body.light-mode .inst-stat span { color: var(--accent-color); }
body.light-mode .inst-stats { border-color: rgba(255,255,255,0.1); }

.exp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.exp-header h3 { font-size: 24px; }
.tag { padding: 4px 12px; border: 1px solid var(--accent-color); border-radius: 3px; font-size: 12px; color: var(--accent-color); }

@media (max-width: 992px) {
    .philosophy-container { grid-template-columns: 1fr; gap: 40px; }
    .philosophy-image { order: -1; }
    .institution-container { gap: 60px; }
    .institution-card { grid-template-columns: 1fr; gap: 30px; }
    .institution-card.reverse { direction: ltr; }
    .inst-image { height: 350px; }
    .inst-image img { height: 100%; }
    .inst-stats { flex-wrap: wrap; gap: 25px; }
    .exp-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Skills Bars */
.skillset .item { margin-bottom: 25px; }
.level-title { font-size: 14px; margin-bottom: 10px; text-transform: uppercase; }
.level-bar { background: #eee; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 5px; }
.level-bar-inner { background: var(--accent-color); height: 100%; }
body:not(.light-mode) .level-bar { background: #333; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; opacity: 0.8; transition: var(--transition); }
.gallery-grid img:hover { opacity: 1; transform: scale(1.02); }

/* Contact Section Professional Styles */
.contact-header { margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.contact-header .section-title::after { left: 50%; transform: translateX(-50%); }
.contact-desc { color: var(--text-secondary); margin-top: 15px; }

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info-list { display: flex; flex-direction: column; gap: 25px; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--bg-alt);
    border-radius: 15px;
    transition: var(--transition);
}
.contact-card:hover { transform: translateX(10px); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
body.light-mode .contact-card:hover { background: #1c2128; }

.contact-icon {
    width: 55px;
    height: 55px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.contact-details h3 { font-size: 18px; margin-bottom: 5px; color: var(--primary-color); }
body.light-mode .contact-details h3 { color: var(--accent-color); }
.contact-details p { font-size: 14px; color: var(--text-secondary); }

.contact-form-container {
    background: var(--bg-alt);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; color: var(--text-main); }

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: inherit;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Footer */
.footer { padding: 80px 0 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-info h3 { margin-bottom: 10px; font-size: 28px; color: var(--accent-color); }
.footer-bottom { margin-top: 50px; opacity: 0.5; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.text-center { text-align: center; }
.btn-block { width: 100%; }

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .content-grid, .contact-layout-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .top-bar-content { flex-direction: column; gap: 10px; text-align: center; }
    .top-bar .contact-info span { margin: 0 10px; }
    .menu-toggle { display: block; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--primary-color); padding: 100px 30px; transition: var(--transition); box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
    body.light-mode .nav-menu { background: var(--bg-alt); }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; gap: 20px; }
    .nav-link { font-size: 18px; }
    body:not(.light-mode) .nav-link { color: #fff; }
    .hero-image { order: -1; }
    .img-box { height: 350px; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .contact-form-container { padding: 30px 20px; }
    .contact-card { padding: 20px; }
}

/* Dark Mode Overrides */
body:not(.light-mode) .sidebar-wrapper { background: #1a252f; }
body:not(.light-mode) .main-wrapper { background: #222; color: #eee; }
body:not(.light-mode) .section-title { color: #fff; border-color: #333; }
body:not(.light-mode) .job-title { color: #fff; }
body:not(.light-mode) .quote { background: #2a2a2a; color: #ddd; }