/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fdfdfd;
}

/* --- Navigation Header --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #0b1325; /* Deep, professional navy */
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Cinzel', serif; /* Elegant, editorial serif for legal branding */
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links .btn-primary {
    background-color: #1e3a8a;
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
}

.nav-links .btn-primary:hover {
    background-color: #2563eb;
}

/* --- Hero Section (with Optics Lab Background) --- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* Placeholder image path - replace with your actual image file */
    background-image: url('photo-optics-01_485Kb.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Semi-transparent dark overlay to make text highly readable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 37, 0.4); /* Deep navy tint */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/*.hero-content .tagline {
    font-size: 1.35rem;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #e2e8f0;
}*/
.hero-content .tagline {
    font-size: 1.35rem;
    font-weight: 400; /* Bumped to 400 so the outline looks cleaner on the letters */
    margin-bottom: 40px;
    line-height: 1.8;
    color: #ffffff; /* Crisp white for the core text filling */
    
    /* 8-way text shadow grid using your signature gold/yellow tone */
    text-shadow: 
        -1px -1px 0 #d4af37,  1px -1px 0 #d4af37, -1px  1px 0 #d4af37,  1px  1px 0 #d4af37,
        -1px  0px 0 #d4af37,  1px  0px 0 #d4af37,  0px -1px 0 #d4af37,  0px  1px 0 #d4af37;
     
    /* Native stroke rendering */
    /*-webkit-text-stroke: 1px #d4af37;*/
}


.btn-action {
    background-color: #d4af37; /* Clean gold accent color */
    color: #0b1325;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn-action:hover {
    background-color: #f3cf5b;
}

/* --- Practice Areas Section --- */
.services-section {
    padding: 80px 40px;
    text-align: center;
    background-color: #fff;
}

.services-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0b1325;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.service-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    border-radius: 6px;
    flex: 1;
    min-width: 280px;
    text-align: left;
    border-top: 4px solid #1e3a8a;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #0b1325;
    font-size: 1.25rem;
}

/* --- Contact Section (Light High-Contrast CTA) --- */
.contact-section {
    padding: 90px 40px;
    background-color: #f1f5f9; /* Bright off-white/light gray background */
    border-top: 4px solid #1e3a8a; /* Navy top border */
    color: #0b1325;
    text-align: center;
}

.contact-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.3rem;
    color: #0b1325; /* Dark navy heading */
    margin-bottom: 10px;
}

.contact-section p {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #94a3b8; /* Stronger border contrast around boxes */
    background-color: #ffffff;
    color: #0f172a; /* Dark text for typed input */
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/* HIGH-CONTRAST PLACEHOLDER TEXT FIX */
.contact-form input::placeholder, 
.contact-form textarea::placeholder {
    color: #334155; /* Dark slate gray for crisp readability */
    opacity: 1;    /* Overrides browser defaults that cause fading */
    font-weight: 500;
}

/* Optional focus effect when clicking into a box */
.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: #d4af37; /* Gold highlight when active */
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}


.btn-submit {
    background-color: #d4af37;
    color: #0b1325;
    border: none;
    padding: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #f3cf5b;
}

/* --- Footer --- */
.main-footer {
    background-color: #020617;
    color: #64748b;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content .tagline {
        font-size: 1.1rem;
    }
    .main-header {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- Premium Biography Section --- */
.bio-section-premium {
    position: relative;
    padding: 100px 40px;
    /* Replace with your second lab photo filename if different */
    background-image: url('photo-optics-02_394Kb.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: gives a nice parallax scrolling effect */
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Semi-transparent dark container to house the text securely */
.bio-glass-panel {
    background: rgba(11, 19, 37, 0.92); /* Deep navy tint matching header */
    border: 1px solid rgba(212, 175, 55, 0.2); /* Subtle gold border edge */
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    padding: 60px 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    color: #e2e8f0; /* Crisp off-white text for readability */
    line-height: 1.8;
}

.bio-glass-panel h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #d4af37; /* Antique Gold Title */
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 2px;
}

.bio-lead {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 25px;
}

.bio-lead strong {
    color: #d4af37; /* Pops the name out in gold */
}

/* Grid Layout for the Credentials */
.bio-highlights-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.highlight-card {
    background: rgba(15, 23, 42, 0.6); /* Slightly darker box contrast */
    border-left: 4px solid #d4af37; /* Gold accent pillar */
    padding: 25px;
    border-radius: 0 8px 8px 0;
}

.highlight-card h3 {
    font-family: 'Inter', sans-serif;
    color: #d4af37;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.highlight-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0;
}

.bio-footer-premium {
    font-weight: 400;
    font-size: 1.1rem;
    color: #f3cf5b; /* Soft gold signature conclusion */
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
}

/* Responsive fixes for mobile devices */
@media (max-width: 768px) {
    .bio-section-premium {
        padding: 40px 20px;
    }
    .bio-glass-panel {
        padding: 30px 20px;
    }
    .bio-glass-panel h2 {
        font-size: 1.8rem;
    }
    .bio-highlights-premium {
        grid-template-columns: 1fr;
    }
}
    /* Bio Photo Layout Constraints */
.bio-intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bio-photo-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
}

.bio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #d97706;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .bio-intro-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* --- Publications & Presentations Section --- */
.publications-section {
    padding: 90px 40px;
    background-color: #0b1325; /* Deep rich navy background to separate from Practice Areas */
    color: #e2e8f0;
    text-align: center;
    border-top: 2px solid rgba(212, 175, 55, 0.3); /* Subtle gold top border */
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.publications-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #d4af37; /* Gold heading to pop against the navy */
    letter-spacing: 1px;
}

.publications-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center; /* Centering container content */
}

.pub-category {
    background: rgba(15, 23, 42, 0.7); /* Translucent dark card style */
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-top: 4px solid #d4af37; /* Solid gold top accent bar */
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.pub-category h3 {
    font-family: 'Cinzel', serif;
    color: #f3cf5b;
    font-size: 1.4rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-align: center; /* Explicitly centered category headings */
}

.pub-list {
    list-style-type: none;
    padding-left: 0;
    text-align: left; /* Keeps long publication citations clean and readable */
}

.pub-list li {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #cbd5e1;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1); /* Subtle separator between individual citations */
}

.pub-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pub-list strong {
    color: #ffffff;
    font-size: 1rem;
}

.pub-list em {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 4px;
}

/* Elegant visual divider between Selected Publications and Conference Presentations */
.pub-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 10px auto;
}
