/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --accent-gold: #b08d2f;
    --accent-gold-dark: #8f6f1f;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:visited {
    color: var(--accent-gold);
}

a:hover,
a:focus {
    color: var(--accent-gold-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header and Navigation */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: opacity 0.2s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-left: auto;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -26px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-dark));
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

.hamburger {
    width: 25px;
    height: 2px;
    background: #1a1a1a;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 60px 100px;
    text-align: center;
    position: relative;
    background-color: #f7f8fa;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 250, 250, 0.92) 100%), url('../images/invisible-energy-fractal-structure-header.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26px;
    background: linear-gradient(180deg, rgba(247, 248, 250, 0) 0%, rgba(247, 248, 250, 0.8) 70%, rgba(247, 248, 250, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.7), 0 10px 20px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
    animation: fadeInUp 0.8s ease;
}

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

.hero-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.05;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    letter-spacing: -0.03em;
}

.hero-title em {
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 1.5px;
    margin-bottom: 3rem;
    font-weight: 600;
}

.hero-quote {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin: 3rem auto;
    padding: 0 40px;
    font-style: italic;
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    padding: 16px 32px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: #1a1a1a;
    padding: 16px 32px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1.5px solid #e5e5e5;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-tagline {
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-top: 4rem;
    font-weight: 600;
}

/* Section Styles */
section {
    padding: 120px 0;
}

section:nth-child(even) {
    background-color: #fafafa;
}

h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 3.5rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    text-align: center;
}

/* About Section */
.about {
    background: #ffffff;
    padding: 70px 0 20px;
}

.about .container {
    text-align: center;
}

.about-logo {
    display: block;
    margin: 0 auto 2rem;
    width: 180px;
    height: auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 2rem;
}

/* Manifesto Section */
.manifesto {
    background: #fafafa;
    padding: 20px 0;
}

.manifesto h2 {
    margin-bottom: 1.5rem;
}

.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.manifesto-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Neutrinovoltaics Section */
.neutrinovoltaics {
    background: #ffffff;
    padding: 20px 0;
}

.neutrinovoltaics-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.neutrinovoltaics-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.master-equation {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 80px 60px;
    text-align: center;
    margin: 2.5rem 0;
    border-radius: 6px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 32px 70px rgba(0, 0, 0, 0.35), 0 12px 30px rgba(0, 0, 0, 0.22), 0 0 36px rgba(176, 141, 47, 0.35);
}

.master-equation::before {
    content: '';
    position: absolute;
    inset: -14px;
    background: radial-gradient(circle at 50% 30%, rgba(176, 141, 47, 0.28), rgba(176, 141, 47, 0));
    filter: blur(18px);
    opacity: 0.9;
    z-index: 0;
}

.master-equation * {
    position: relative;
    z-index: 1;
}

.equation-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 2rem;
    font-weight: 600;
}

.equation {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    font-style: italic;
    letter-spacing: 0.02em;
}

.neutrinovoltaics-quote {
    max-width: 800px;
    margin: 2.5rem auto 0;
    padding: 2.5rem;
    border-left: 4px solid var(--accent-gold);
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    text-align: center;
}

/* Applications Section */
.applications {
    background: #fafafa;
    padding: 20px 0;
}

.applications h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.4rem);
    line-height: 1.2;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.applications-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.application-card {
    background: #f7f8fa;
    padding: 3rem;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.application-card::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: 999px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.application-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: oklch(0.6909 0.1475 70.65 / 0.12) 0px -1px 3px 0px,
        oklch(0.6909 0.1475 70.65 / 0.12) 0px 1px 2px -5px,
        oklch(0.6909 0.1475 70.65 / 0.14) 0px 2px 5px -5px,
        oklch(0.6909 0.1475 70.65 / 0.15) 0px 4px 12px -5px,
        oklch(0.6909 0.1475 70.65 / 0.17) 0px 12px 15px -5px;
}

.application-card:hover::before {
    transform: scaleX(1);
}

.application-card .icon {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #111111;
    line-height: 1;
    transition: transform 0.3s ease;
}

.application-card .icon i {
    display: inline-block;
}

@supports (-webkit-text-stroke: 1px #111111) {
    .application-card .icon i::before {
        color: transparent;
        -webkit-text-stroke: 1.6px #111111;
    }
}

.application-card:hover .icon {
    transform: scale(1.1);
}

.application-card h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.application-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

/* Media Section */
.media {
    background: #ffffff;
    padding: 20px 0;
}

.media-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

.timeline {
    max-width: 700px;
    margin: 2rem auto 0;
    text-align: center;
}

.timeline-item {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    padding-left: 0;
    background: #fafafa;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item .year {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.timeline-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

/* Contact Section */
.contact {
    background: #fafafa;
    padding-top: 20px;
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.contact-card {
    background: #ffffff;
    padding: 2.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.contact-label {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-email {
    font-size: 0.95rem;
    color: #1a1a1a;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.65));
    border: 1px solid rgba(176, 141, 47, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(176, 141, 47, 0.12);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background: #1a1a1a;
    color: #ffffff;
    padding: 16px 32px;
    border: none;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.btn-submit:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: #fafafa;
    border-top: 1px solid rgba(176, 141, 47, 0.55);
    box-shadow: 0 -3px 12px rgba(176, 141, 47, 0.2);
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: #666;
}

.footer strong {
    color: #8f6f1f;
}

.footer-keywords {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.5rem;
}

.about-content h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    columns: 2;
    column-gap: 3rem;
    max-width: 640px;
    margin: 0 auto;
}

.about-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 1.05rem;
    text-align: left;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.about-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

@media (max-width: 1100px) {
    .applications-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-quote {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 20px;
    }

    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form form {
        padding: 1.5rem;
    }

    .about-content ul {
        columns: 1;
    }

    .master-equation {
        padding: 40px 20px;
    }

    .equation {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-logo {
        font-size: 12px;
    }

    .nav-link {
        font-size: 12px;
    }
}

/* Smooth scrolling for better UX */
html {
    scroll-padding-top: 80px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
