@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;600;700&family=Caveat:wght@400;600&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Playfair+Display:wght@400;500;600&display=swap');

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

html {
    font-family: 'Barlow', sans-serif;
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    line-height: 1.4;
}

body {
    min-height: 100vh;
    position: relative;
}

main {
    height: auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.divider {
    background-color: #e6e6e6;
    height: 1px;
    width: 100%;
    margin: 0;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.column, .col {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
  
.close-modal-btn {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.open-modal-btn {
    cursor: pointer;
}
  
.close-modal-btn:hover {
    background-color: #ccc;
}

.mb-0 {
    margin-bottom: 0 !important;
}
  
.mb-1 {
    margin-bottom: 0.25rem !important;
}
  
.mb-2 {
    margin-bottom: 0.5rem !important;
}
  
.mb-3 {
    margin-bottom: 1rem !important;
}
  
.mb-4 {
    margin-bottom: 1.5rem !important;
}
  
.mb-5 {
    margin-bottom: 4rem !important;
}
  
.mb-auto {
    margin-bottom: auto !important;
}

.button {
    border: none;
    color: white;
    text-decoration: none;
    box-sizing: border-box;
    /*display: block;*/
    font-weight: bold;
    padding: 12px 20px;
    text-align: center;
    border-radius: 5px;
    line-height: 1.4;
    cursor: pointer;
    outline: none;
    background-color: none;
}

.icon-button .material-icons {
    font-size: 1.8em;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;  /* Consistent line height for headings */
    margin-bottom: 1rem;  /* Consistent bottom margin for headings */
}

p {
    line-height: 1.6;  /* Slightly larger line height for better readability of body text */
    margin-bottom: 1rem;  /* Consistent spacing after paragraphs */
}

section {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    margin: 0 auto;
    padding: 6rem 4rem;
    text-align: center;
    line-height: 1.4;  /* Ensure sections maintain the base line height */
    overflow: visible;
    min-height: 50vh;
    border: none;
    box-shadow: none;
}

/* :where() keeps this at 0 specificity so section-scoped max-widths (e.g. .collaboration-inner) win */
:where(section:not(#hero):not(.quote)) > * {
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

:where(section:not(#hero):not(.quote)) > hr {
    width: 80px;
}

.contact-section {
    text-align: center;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
}

section p {
    font-size: 1.125rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Only centre-constrain paragraphs in sections that want it */
section.quote p,
section#technologies p,
section#contact p {
    text-align: center;
    max-width: 775px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

section:not(#hero) h1, section:not(#hero) h2, footer h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.375em;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Section titles: centred gradient underline (all major sections) */
main > section:not(#hero) > h2.mb-5,
footer section.contact-section > h2.mb-5 {
    margin-bottom: 3.25rem !important;
    padding-bottom: 1rem;
    position: relative;
}

main > section:not(#hero) > h2.mb-5::after,
footer section.contact-section > h2.mb-5::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(120px, 28vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.18), transparent);
}

/* Beat base rule (main > section:not(#hero)… has :not(#id) specificity) */
main > section.services > h2.mb-5::after {
    background: linear-gradient(90deg, transparent, rgba(6, 39, 35, 0.28), transparent);
}

main > section#technologies > h2.mb-5::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

footer section.contact-section > h2.mb-5::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
}

section.quote {
    background-color: rgba(0, 28, 59, 0.94) !important;
    color: white;
    min-height: 50vh;
    position: relative;
}

/* Closing quote after testimonials — not shown */
main > section.quote:last-of-type {
    display: none !important;
}

.section-image-break {
    width: 100%;
}

.section-image-break img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
}

section.quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}


.quote-container {
    position: relative;
    display: block;
    color: white;
    font-family: "Caveat", cursive;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.quote small {
    display: inline-block;
    text-align: center;
    font-family: 'Barlow', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
    position: relative;
}

.quote-container .quote-marks {
    color: #ffffffcc;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

hr {
    width: 80px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.12);
    border: 0;
    margin: 0 auto;
    margin-bottom: 3rem;
}

#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    color: white;
    background: rgba(9, 10, 22, 0.88);
    position: relative;
    padding: 4.25rem 2rem;
    text-align: center;
    overflow: hidden;
}

#hero div {
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
}

.hero-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.05rem;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    color: #fafbfc;
    text-wrap: balance;
}

.hero-subtitle {
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    letter-spacing: 0.28em;
    font-size: 0.78rem;
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    opacity: 0.65;
}

#hero .hero-separator {
    width: 48px;
    height: 1px;
    margin: 1.35rem auto 1.35rem;
    border: none;
    background: rgba(255, 255, 255, 0.28);
}

.hero-tagline {
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
    font-size: 1rem;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.35rem;
    max-width: 28em;
    color: rgba(231, 237, 243, 0.75);
    padding: 0 1rem;
}

#hero .hero-content > .hero-tagline:last-of-type {
    margin-bottom: 1.65rem;
}

#hero .hero-content {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.hero-cta {
    margin-top: 0;
}

.hero-cta .button {
    background: transparent;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-cta .button:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

.hero-cta .button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    border-color: rgba(255, 255, 255, 0.8);
}

#logo {
    width: 130px;
    min-width: 80px;
    max-width: 200px;
    height: auto;
    margin: 0 auto 1.75rem auto;
    display: block;
    opacity: 0;
    animation: logoFadeIn 1.2s ease forwards 0.5s;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: filter 0.3s ease;
}

#logo:hover {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bi {
    fill: white !important;
}

section.technologies {
    background-color: rgba(6, 39, 35, 0.94);
    color: white;
}

.why {
    background-color: #f4f7fb;
    color: #0c1c2a;
}

.why hr {
    background-color: rgba(0, 0, 0, 0.1);
}

section.technologies hr {
    background-color: rgba(255, 255, 255, 0.42);
}

section.technologies .technologies-inner {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

section.technologies .tech-group-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 0.35rem;
}

section.technologies .tech-group-list {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: none;
}

section.services {
    background: #ffffff;
    position: relative;
    padding-top: 7rem;
    padding-bottom: 6.5rem;
}

section.services::before {
    content: none;
}

section.services > * {
    position: relative;
    z-index: 1;
}

section.collaboration {
    background: #fafaf9;
    align-items: stretch;
}

section.collaboration .collaboration-inner {
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

section.collaboration .collaboration-lede {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 0;
    text-align: left;
    max-width: none;
    width: 100%;
    font-weight: 400;
}

section.collaboration .collaboration-modes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.25rem;
    margin-bottom: 0;
    align-items: stretch;
}

section.collaboration .collaboration-mode {
    text-align: left;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 1.85rem 2rem;
    box-shadow: none;
    transition: background 0.2s ease;
}

section.collaboration .collaboration-mode:hover {
    background: #ffffff;
}

@media (min-width: 720px) {
    section.collaboration .collaboration-modes {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: stretch;
    }
}

section.collaboration .collaboration-mode h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #1f1f1f;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

section.collaboration .collaboration-mode p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0;
    text-align: left;
    max-width: none;
}

section.collaboration .collaboration-note {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-wrap: wrap;
}

section#selected-work {
    background-color: #fafafa;
    min-height: auto;
}

section#selected-work > .projects-lede,
section#side-projects > .projects-lede {
    text-align: center;
    max-width: 36rem;
    margin: -1.5rem auto 2.75rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #555;
}

@media (max-width: 768px) {
    section#selected-work > .projects-lede,
    section#side-projects > .projects-lede {
        margin-top: -1rem;
        margin-bottom: 2.25rem;
    }
}

section#side-projects {
    background-color: #ffffff;
    min-height: auto;
}

section#side-projects .project-card {
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.project-card-logo.project-card-logo--icon {
    color: #1a1a1a;
    font-size: 2rem;
    line-height: 1;
}

section#side-projects .projects-lede a,
section#side-projects .project-card-summary a {
    color: #0c5f87;
    text-decoration: none;
    font-weight: 600;
}

section#side-projects .projects-lede a:hover,
section#side-projects .project-card-summary a:hover {
    color: #0a4d6d;
    text-decoration: underline;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 920px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    width: 100%;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border-radius: 10px;
    padding: 1.75rem 1.5rem 1.65rem;
    text-align: left;
    border: none;
    box-shadow: none;
}

.project-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    margin-bottom: 1.1rem;
}

.project-card-logo img {
    max-height: 44px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* Raster / padded logos: use full logo band height (not the default cap above) */
.project-card-logo.project-card-logo--larger {
    min-height: 68px;
    height: 68px;
}

.project-card-logo.project-card-logo--larger img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

.project-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 0.55rem;
    line-height: 1.3;
}

.project-card-summary {
    font-size: 0.925rem;
    line-height: 1.65;
    color: #444;
    margin: 0;
}

.project-card-tech {
    font-family: 'Barlow', sans-serif;
    font-size: 0.75rem;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    margin: 0.65rem 0 0;
}

@media (max-width: 680px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.5rem 1.35rem;
    }
}

section.reviews {
    background-color: #ffffff;
    color: #1a1a1a;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem 1.75rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.92);
    border: none;
    box-shadow: none;
    transition: background-color 0.35s ease;
}

.card:hover {
    background-color: #fff;
}

section.reviews .card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    text-align: left;
    align-items: flex-start;
}

section.reviews .card:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
    padding-top: 2rem;
}

section.reviews .card p {
    font-size: 1.0625rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.75;
    color: #333;
    margin-bottom: 0.85rem;
    text-align: left;
}

section.reviews .card small {
    display: block;
    font-style: normal;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.02em;
}

section.reviews > div {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

section.reviews .card p.mb-3 {
    margin-bottom: 0.85rem !important;
}

@media (max-width: 768px) {
    section.reviews .card:not(:first-child) {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

section#blog {
    display: none !important;
    background-color: #f9f9f9;
}

section#blog .publication-column > p.mt-4 a {
    color: #0c5f87;
    text-decoration: none;
}

section#blog .publication-column > p.mt-4 a:hover {
    color: #0A4D6D;
    text-decoration: underline;
}

article section {
    display: block;
    padding: 0;
    height: auto;
}

footer {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #00020a;
    color: #ffffffcc;
    font-size: 1em;
    padding: 5rem 2rem;
    text-align: center;    
    line-height: 1.6;
    border: none;
    box-shadow: none;
}

footer section.contact-section {
    background-color: transparent;
    min-height: auto;
    box-shadow: none;
}

footer a i {
    color: #ffffffcc;
    font-size: 2.25rem;
}

footer a {
    color: #ffffffcc;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

footer a:hover i {
    color: white;
}

footer hr {
    background-color: rgba(255, 255, 255, 0.6); /* Changed from 0.4 to 0.6 */
    border: 0;
    height: 1px;
    width: 80px;
    margin: 0 auto;
    margin-bottom: 3rem;
    text-align: center;
}

ul {
    list-style: none;
}

ul.social {
    margin-bottom: 1.5rem;
}

ul.social li {
  display: -moz-inline-stack;
  display: inline-block;
}

/* Shooting star */

span.star {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
    animation: animate 10s linear;
}

span.star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes animate {
    0%
    {
        transform: rotate(345deg) translateX(0);
        opacity: 1;
    }
    70%
    {
        opacity: 1;
    }
    100%
    {
        transform: rotate(345deg) translateX(-1500px);
        opacity: 0;
    }
}

span:nth-child(1) {
    top: -15px;
    left: 70%;
    right: initial;
    animation-delay: 1s;
    animation-duration: 5s;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3.5rem;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

article.service {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

article.service h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

article.service > p {
    font-size: 0.925rem;
    color: #666;
    margin-bottom: 1.15rem;
    line-height: 1.6;
}

.service-details {
    list-style: none;
    padding: 0.35rem 0 0;
    margin: 0;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.service-details li {
    font-size: 0.875rem;
    color: #4a4a4a;
    padding: 0 0 0 0.85rem;
    border-bottom: none;
    line-height: 1.55;
    position: relative;
}

.service-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(6, 39, 35, 0.35);
}

@media (max-width: 640px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    section {
        padding: 4rem 2rem;
    }

    footer {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    html {
        background-attachment: scroll;
        background-position: center;
        background-size: cover;
    }
    
    body {
        min-height: 100vh;
    }

    main {
        /* scroll-snap-type: y mandatory; */
        /* height: 100vh;  */
        overflow-y: scroll; 
    }

    #logo {
        width: 20%;
        min-width: 70px;
        max-width: 120px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    section p {
        font-size: 1rem;
        max-width: 100%;
    }   

    .contact-button {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    section {
        padding: 3rem 1.5rem;
        line-height: 1.4;
        min-height: 100vh;
        /* scroll-snap-align: start; */
    }

    section.services {
        padding-top: 5.5rem;
        padding-bottom: 5.25rem;
    }

    footer {
        padding: 3rem 1.5rem;
    }

    section#hero {
        height: 85vh;
        padding: 1.75rem 1.25rem;
    }

    section.technologies {
        background-color: rgba(6, 39, 35, 0.94);
    }

    section.technologies .technologies-inner {
        gap: 1.75rem;
        max-width: 100%;
    }

    section.hero .logo-wrapper {
        position: absolute;
        bottom: -60px;
        box-sizing: content-box;
    }

    section.hero .column:first-child {
        display: none;
    }

    .quote-container .quote-marks {
        width: 50px; 
        line-height: 0; 
        vertical-align: text-bottom;
        margin-right: 6px;
        color: #bce1ff;
        opacity: 0.8;
    }

    .quote-container {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    section#home-section {
        padding-top: 8rem;
    }


    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .projects-section .grid-container {
        gap: 1rem;
        padding: 0.5rem;
    }



    #logo {
        width: 20%;
        min-width: 70px;
        max-width: 120px;
        margin-bottom: 1.35rem;
    }

    .hero-title {
        font-size: clamp(1.2rem, 5vw, 1.75rem);
        letter-spacing: 0.16em;
        margin-bottom: 0.85rem;
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.22em;
        line-height: 1.5;
        margin-bottom: 0.85rem;
    }

    #hero .hero-separator {
        width: 40px;
        margin: 1.15rem auto 1.15rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 1.1rem;
        padding: 0 0.5rem;
    }

    #hero .hero-content > .hero-tagline:last-of-type {
        margin-bottom: 1.5rem;
    }

    .hero-domain {
        font-size: 0.82rem;
    }

    #hero {
        height: 85vh;
        padding: 2.25rem 1.1rem;
    }
}

/* General navigation styles */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem;
    transition: background 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    height: 40px;
}

.nav-logo img {
    height: 100%;
    width: auto;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
    padding: 0.5rem;
}

.nav-link:hover {
    opacity: 0.7;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.hamburger i {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3),
                 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Mobile styles */
@media (max-width: 768px) {
    body.nav-active {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .nav {
        height: 0;
        padding: 0;
        background: transparent;
        overflow: visible;
    }
    
    .nav.active {
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
    }

    .nav-container {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out;
        height: 100vh;
    }

    .nav.active .nav-container {
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding-top: 4rem;
        background: rgba(0, 0, 0, 0.95);
        height: 100vh;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        text-align: left;
        font-size: 1.1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Add better image handling */
img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.social-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.social-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    padding: 0;
}

.social-links a {
    margin: 0;
    padding: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    padding-bottom: 1rem;
}

.contact-section h2 {
    color: white;
}

.contact-section hr {
    background-color: rgba(255, 255, 255, 0.6); /* 60% opacity - more visible than 0.4, less than 0.8 */
}

/* Margin utilities */
.mt-5 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.hero-title.animate-slide-up {
    animation-delay: 0.3s;
}

.hero-subtitle.animate-slide-up {
    animation-delay: 0.6s;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

/* Blog */
.blog-layout {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.blog-posts-root {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin-top: 0.5rem;
}

.publication-column {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.blog-post-card {
    text-align: left !important;
    margin-bottom: 0;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.blog-post-card .post-header {
    margin-bottom: 0.75rem;
}

.blog-post-card .post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.blog-post-card .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card .post-title a:hover {
    color: #007acc;
}

.blog-post-card .post-meta {
    color: #666;
}

.blog-post-card .post-date {
    font-weight: 500;
}

.blog-post-card .post-source {
    color: #999;
}

.blog-post-card .post-excerpt {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left !important;
}

.blog-post-card p,
.blog-posts-root p {
    text-align: left !important;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.blog-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.blog-card-link:hover .blog-post-card {
    transform: translateY(-2px);
}

.post-content-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
    justify-content: flex-start;
}

.post-image-inline {
    flex-shrink: 0;
}

.post-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .blog-post-card .post-title {
        font-size: 1.1rem;
    }

    .blog-posts-root {
        gap: 1rem;
    }
}
