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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    color: #0f2c4c;
    background-color: #f4f47a;
    overflow-x: hidden;
}

/* Typography Scale */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.3;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.4;
    font-weight: bold;
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 2rem;
    color: #0a1f35;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
    transition: all 0.3s ease;
}

.section:nth-child(even) {
    background-color: rgba(15, 44, 76, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #0a1f35;
    font-style: italic;
    margin-bottom: 0;
}

/* Header and Navigation */
.header {
    background-color: #0f2c4c;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(15, 44, 76, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hydra-logo {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.hydra-logo:hover {
    transform: scale(1.05);
}

.logo h1 {
    color: #f4f47a;
    margin: 0;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: bold;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav a {
    color: #f4f47a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    background-color: rgba(244, 244, 122, 0.1);
    transform: translateY(-2px);
}

.nav a.active {
    background-color: rgba(244, 244, 122, 0.2);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #f4f47a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 80%;
}

/* Main Content */
.main {
    margin-top: 80px;
}

/* Manifesto Section */
.manifesto-section {
    padding: 6rem 0;
}

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

.manifesto-text h3 {
    color: #0a1f35;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.manifesto-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 1.5rem;
    background-color: #0f2c4c;
    border-radius: 2px;
}

.manifesto-closing {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: bold;
    text-align: center;
    color: #0a1f35;
    margin-top: 3rem;
    padding: 2rem;
    border: 2px solid #0f2c4c;
    border-radius: 8px;
    background-color: rgba(244, 244, 122, 0.3);
}

/* Assets Section */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.asset-card {
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid #0f2c4c;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.asset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f2c4c, #1a4066);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.asset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 44, 76, 0.2);
}

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

.asset-card h3 {
    color: #0a1f35;
    margin-bottom: 1rem;
}

.asset-description {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.asset-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.property {
    background-color: #0f2c4c;
    color: #f4f47a;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Principles Section */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.principle-card {
    background-color: rgba(15, 44, 76, 0.95);
    color: #f4f47a;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.principle-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(244, 244, 122, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.principle-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(15, 44, 76, 0.3);
}

.principle-card:hover::after {
    opacity: 1;
}

.principle-card h3 {
    color: #f4f47a;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.principle-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* Bibliography Section */
.books-list {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.book-item {
    background-color: rgba(255, 255, 255, 0.8);
    border-left: 4px solid #0f2c4c;
    padding: 2rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.book-item:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(15, 44, 76, 0.15);
}

.book-item h3 {
    color: #0a1f35;
    margin-bottom: 0.5rem;
}

.book-author {
    font-style: italic;
    color: #0f2c4c;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.book-note {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #0f2c4c;
    color: #f4f47a;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        justify-content: center;
        gap: 1rem;
    }
    
    .main {
        margin-top: 120px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .assets-grid {
        grid-template-columns: 1fr;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .asset-card,
    .principle-card,
    .book-item {
        padding: 1.5rem;
    }
    
    .manifesto-text h3 {
        padding-left: 1rem;
    }
    
    .manifesto-text h3::before {
        width: 3px;
        height: 1.2rem;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .hydra-logo {
        width: 24px;
        height: 24px;
    }
    
    .logo h1 {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
    }
}

/* Animations and Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #f4f47a;
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    body {
        background-color: #ffffff;
        color: #000000;
    }
    
    .header {
        background-color: #000000;
    }
    
    .nav a {
        color: #ffffff;
    }
    
    .principle-card {
        background-color: #000000;
        color: #ffffff;
    }
}
