* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a4870;
    --color-secondary: #555;
    --color-accent: #003366;
    --color-background: #f5f7fa;
    --color-surface: #ffffff;
    --color-border: #e0e8f0;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-primary);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
}
body.background-fade {
      background-color: #000;
      transition: background-color 1s ease;
    }

    body.background-fade.faded {
      background-color: #fff;
    }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

h1 a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

h1 a:hover {
    color: var(--color-accent);
}

h2 {
    font-size: 2.1rem;
    margin-bottom: 0.75em;
    margin-top: 1.5em
}

h2.footer-name {
    font-size:1.2rem;
    margin-bottom:0.5em;
}
.footer-name a {
    text-decoration:none;
}

h3 {
    font-size: 1.55rem;
    margin-bottom: 0.5em;
    margin-top: 1em;
    color:#222;
}

h4 {
    font-size: 1.2rem;
    color:#222;
}

h5 {
    font-size:1rem;
    color:#222;
}

p {
    margin-bottom: 1em;
    color: var(--color-secondary);
    line-height: 1.7;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #004c99;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

ul, ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.inline-name {
    font-weight:600;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Header Wrapper */
.header-wrapper {
    display: none;
}

/* Header */
header {
    grid-column: 1;
    grid-row: 1;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.75rem 3rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

header h1 {
    font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
    font-size: 2rem;
    margin-bottom: 0.25em;
    font-weight: 800;
    margin: 0;
}

header h1 a {
    color: #1a4870;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight:800;
}
header h1 span {
    font-weight:500;
}

header h1 a:hover {
    color: var(--color-accent);
}

header .tagline {
    font-size: 0.8rem;
    color: var(--color-secondary);
    margin: 0;
    line-height: 1.3;
    padding-left:7px;
}
.h-entropy {
    font-weight:500;
    color:#1a4870;
    font-style:italic;
}

/* Header Navigation */
.header-nav {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 0;
    backdrop-filter: blur(4px);
    z-index: 100;
    height: fit-content;
    padding:0 1em 0 0.5em;
    border-radius: 0 0 5px 5px;
    border-left: 5px solid na
}

.header-nav .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem 3rem;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.header-nav li {
    margin: 0;
}

.header-nav a {
    display: block;
    padding: 0.5rem 0;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 2px solid #fff;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px #fff;
}

.header-nav a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    text-decoration: none;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-nav li {
    margin: 0;
}

.header-nav a {
    display: block;
    padding: 0.5rem 0;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.header-nav a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    text-decoration: none;
}

/* Main Content */
main {
    padding: 1rem 0;
    grid-column: 1 / -1;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 101;
    border: 2px solid var(--color-accent);
}

.skip-link:focus {
    top: 0;
}

/* Sections */
section {
    margin: 0 0 4rem 0;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1rem;
    align-items: center;
    margin: 0;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-left:4px;
}

.hero-content h2 {
    font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color:#666;
    padding-right: 5rem;
}

.break-mobile {
display:none;
}

.home-desc {
    margin-bottom:60px;
}

.link-underline a:link, .hero-content a:visited {
    text-decoration: underline;
    display: inline-block;
}

.link-underline a:hover {
    text-decoration: none;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
/* Home Page */


/* About Page */

.profile-image img {
    margin-top:3em;
    max-width:300px;
    filter: grayscale(30%);
}
.about-grid {
    font-family: "Poppins", sans-serif;
  font-optical-sizing: auto;
}
.about-grid h2 {
    font-size:1.55rem;
}
.about-grid h3 {
    font-size:1.2rem;
}
.about-grid h4 {
    font-size:1rem;
    color:#1a4870;
    font-weight:normal;
}
.h3-rule{
  display: flex;
  align-items: center; /* centers the line vertically with the text */
    gap:0.55rem;    /* space between text and line */
}

.h3-rule::after{
  content: "";
  flex: 1;                    /* makes the line fill the rest of the row */
  border-top: 1px solid currentColor; /* line color matches text */
  opacity: 0.55;
  transform: translateY(2px); /* move line down 3px *//* optional */
}

.bio {
    padding-left:2em;
    padding-right:3em;
}


/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    margin-top:5rem;
    padding: 3rem 0 2rem 0;
    color: var(--color-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
}

footer p {
    margin-bottom: 1.5rem;
    text-align: center;
}

footer a {
    color: var(--color-accent);
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

footer small {
    display: block;
    color: #666;
    margin-top: 2rem;
}

.entropy {
    background-color:#1a4870;
    padding:0.5em 0.1em;
    margin-top:10px;
    margin-bottom:10px;
}
.entropy p {
    font-size: 0.85rem;
    color:#f7f7f7;
    padding:0;
    margin:0;
}


/* Responsive Design */


@media (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 2rem;
    }

    header .container {
        padding: 0.75rem 2rem;
    }

    .header-nav .container {
        padding: 0.75rem 2rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: calc(100vh - 90px);
        height: auto;
        overflow: visible;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
    .bio {
    padding-left:0;
    padding-right:0;
}

    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .hero-section {
    overflow: unset;
}
    section.bio {
        margin-top:0;
        margin-bottom:0;
    }
    section.profile-image {
        margin-top:0;
    }
    header {
        box-shadow: 5px 3px 5px #efefef;
    }

}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    header .container {
        padding: 0.75rem 1.5rem;
    }

    .header-nav .container {
        padding: 0.75rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    /* About Page */
    .profile-image img {
    margin-top:0;
    max-width:100%;
}

    .services {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 3rem 0;
    }

    .specialization {
        padding: 2.5rem 0;
        margin: 3rem 0;
    }

    section {
        margin: 2rem 0;
    }

    .service {
        padding: 1.75rem;
    }

    .cta {
        padding: 2.5rem 0;
    }

    .cta p:first-child {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    header .container {
        padding: 0.75rem 1rem;
    }

    .header-nav .container {
        padding: 0.75rem 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-section {
        height: auto;
        overflow: visible;
    }

    .header-nav ul {
        gap: 0.75rem;
        flex-direction: column;
    }

    .header-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    main {
        padding: 1.5rem 0;
    }

    .specialization h2 {
        font-size: 1.3rem;
    }

    .service h3 {
        font-size: 1.1rem;
    }

    .cta p:first-child {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
    footer {
        margin-top:0;
    }
}

/* About Page - Bio Layout */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-grid .bio {
    grid-column: 1;
}

.about-grid .profile-image {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-self: start;
}

.about-grid .profile-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.about-grid .profile-image figcaption {
    font-size: 0.85rem;
    color: var(--color-secondary);
    text-align: left;
    line-height: 1.5;
    padding-left:3px;
}
.awards-section {
    margin-top: 2rem;
}
.awards-section ul {
    list-style-type: square;
    padding-left: 1em;
}
.awards-section li {
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid .bio {
        grid-column: 1;
    }
    .about-grid h2 {
        font-size:1.1rem;
    }
    .about-grid h3 {
        font-size:1rem;
    }
    .about-grid p {
        font-size:0.9rem;
    }

    .about-grid .profile-image {
        grid-column: 1;
    }
    
    .h3-rule::after{
  
  border-top: 0 solid currentColor; /* line color matches text */
  opacity: 0;
}
.about-grid .profile-image figcaption {
    font-size: 0.75rem;
}
    .hero-content p {
        padding-right:1em;
    }
    .footer-contact a {
        font-size: 0.75em;
    }
    .entropy {
    padding:0.5em 0.3em;
}
.entropy p {
    font-size: 0.65rem;
}
}
@media (max-width: 767px) {
.break-mobile {
display:inline;
}
.break-tablet {
display:none;
}
}

@media (min-width:2400px) {
    .hero-content p::after{
  transform-origin: right;
    }
    .container {
        width: 70%;
        margin: 0 auto;
    }
}
@media (min-width:2800px) {
    .profile-image img {
    margin-top:1em;
}
}
