/* === Base & CSS Variables === */

:root {
    --bg: #010505;
    --bg-alt: #121212;
    --text: #e4e2e2;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-subtle: rgba(255, 255, 255, 0.5);
    --border: #1a1a1a;
    --accent: #ffffff;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    --max-width: 1000px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --transition-fast: 160ms ease-out;
    --transition-med: 220ms ease-out;
    --nav-height: 64px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
}

/* === Layout === */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Scroll Animations === */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section {
    padding: 5rem 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-child(1) {
    animation-delay: 0s;
}

.section:nth-child(2) {
    animation-delay: 0.1s;
}

.section:nth-child(3) {
    animation-delay: 0.2s;
}

.section:nth-child(4) {
    animation-delay: 0.3s;
}

.section:nth-child(5) {
    animation-delay: 0.4s;
}

.hero {
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
  
}

.section-header h2 {
    margin: 0 0 0.75rem;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-align: center;
    
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
   

}

.narrow {
    max-width: 960px;
  
}

/* === Typography === */

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 0.5px;
    font-family: 'Garamond', 'Georgia', serif;}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;

}

h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

p {
    line-height: 1.7;
    color: var(--text-muted);
}

a {
    color: var(--text);
    transition: opacity var(--transition-fast);
}

/* === Glitch Effect for Logo (Subtle) === */

@keyframes glitch {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    25% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    25.5% {
        clip-path: inset(45% 0 45% 0);
        transform: translate(0.5px, -0.5px);
    }
    26% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    75% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    75.5% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-0.5px, 0.5px);
    }
    76% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
}

.glitch {
    position: relative;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 00;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch::before {
    animation: glitch 6s infinite;
    color: rgba(255, 255, 255, 0.5);
    z-index: -1;
}

.glitch::after {
    animation: glitch 6s infinite reverse;
    color: rgba(255, 255, 255, 0.3);
    z-index: -2;
}

/* === Header === */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.logo {
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}

/* === Hero Section with Parallax === */

.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
}

.parallax-hero {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
     background: linear-gradient(180deg, rgba(1, 101, 119, 0.762) 0%, rgb(192, 137, 10) 100%); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem 5rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    color: #f0f0f0;
}

.hero-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e0e0e0;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}



/* === Buttons === */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 3px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.btn.primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn.primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === Plan Grid === */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 1rem;
    margin-bottom: .1rem;
}

.plan-item {
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition-med);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.plan-item:nth-child(1) {
    animation-delay: 0.3s;
}

.plan-item:nth-child(2) {
    animation-delay: 0.4s;
}

.plan-item:nth-child(3) {
    animation-delay: 0.5s;
}

.plan-item:nth-child(4) {
    animation-delay: 0.6s;
}

.plan-item:nth-child(5) {
    animation-delay: 0.7s;
}

.plan-item:nth-child(6) {
    animation-delay: 0.8s;
}

.plan-item:hover {
    border-color: var(--text);
    transform: translateY(-3px);
}

.plan-image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    aspect-ratio: 450 / 360;
    padding: 0.5 rem;
}

.plan-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity var(--transition-med);
    pointer-events: none;
    z-index: 2;
}

.plan-item:hover .plan-image-wrap::before {
    opacity: 1;
}

.plan-image-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: filter var(--transition-med);
}

.plan-item:hover .plan-image-wrap img {
    filter: contrast(1.1) brightness(1.05);
}

figcaption {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-title {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.plan-meta {
    font-size: 0.85rem;
    color: var(--text-subtle);
}

/* === About Section === */

.about-layout {
    display: grid;
    gap: 3rem;
}

.about-text h2 {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-links {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.about-links h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.about-links a {
    display: inline-block;
    text-decoration: underline;
    margin-right: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.about-links a:hover {
    opacity: 0.7;
}

/* === Bibliography === */

.bib-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.bib-columns h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.bib-columns h3:first-child {
    margin-top: 0;
}

.bib-columns ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.bib-columns li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* === Lightbox === */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
}

.lightbox-dialog {
    position: relative;
    z-index: 51;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 96%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem 1.5rem 0 0;
    transition: opacity var(--transition-fast);
}

.lightbox-close:hover {
    opacity: 0.6;
}

.lightbox-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.lightbox-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    min-height: 750px;
    flex: 1;
}

.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
}

.lightbox-text h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.lightbox-text p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* === Footer === */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    background: var(--bg-alt);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-subtle);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-subtle);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text);
}

/* === Responsive Design === */

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

    .section {
        padding: 3.5rem 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .plan-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lightbox-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lightbox-image-wrap {
        min-height: 450px;
    }

    .lightbox-image-wrap img {
        max-height: 60vh;
    }

    .main-nav ul {
        gap: 1.25rem;
    }

    .main-nav a {
        font-size: 0.8rem;
    }

    .bib-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .header-inner {
        gap: 2rem;
    }
}

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

    .section {
        padding: 2.5rem 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero {
        min-height: 50vh;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .main-nav ul {
        gap: 0.75rem;
    }

    .main-nav a {
        font-size: 0.7rem;
    }

    .plan-grid {
        gap: 1rem;
    }

    figcaption {
        padding: 1rem;
    }

    .plan-title {
        font-size: 0.95rem;
    }

    .plan-meta {
        font-size: 0.8rem;
    }

    .lightbox-content {
        padding: 1rem;
        gap: 1rem;
    }

    .lightbox-image-wrap {
        min-height: 500px;
        padding: 1rem;
    }

    .lightbox-image-wrap img {
        max-height: 78vh;
    }

    .lightbox-text h3 {
        font-size: 1.1rem;
    }

    .about-links a {
        margin-right: 0;
        display: block;
        margin-bottom: 0.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .header-inner {
        gap: 1rem;
        flex-direction: column;
    }

    .logo {
        font-size: 0.85rem;
    }

    .main-nav ul {
        flex-direction: column;
    }
}
