/**
 * BiomeForge Website - Main Stylesheet
 * Modern, Sleek Design with Animations
 */

/* === CSS Variables === */
:root {
    --color-primary: #66AAD2;
    --color-secondary: #78D1C8;
    --color-accent: #498589;
    --color-light-accent: #9ABBC1;
    --color-dark: #0a1214;
    --color-darker: #050810;
    --color-light: #e7f2f4;
    --color-gray: #a9c1c6;
    --color-dim: #c8d9dc;
    --color-success: #4caf50;
    --color-error: #f44336;
    --color-warning: #ff9800;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Designer', 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-lg: 18px;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-darker);
    color: var(--color-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* === Background === */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top left, rgba(102, 170, 210, 0.15), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(120, 209, 200, 0.12), transparent 60%),
        #0a1214;
    background-size: 200% 200%;
    z-index: -1;
    animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.background::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 170, 210, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(120, 209, 200, 0.06) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* === Header === */
.site-header {
    background: rgba(10, 18, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(102, 170, 210, 0.15);
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header:hover {
    background: rgba(10, 18, 20, 0.95);
    border-bottom-color: rgba(102, 170, 210, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.3s ease;
}

.logo a:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: var(--color-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-light);
    background: rgba(102, 170, 210, 0.15);
    box-shadow: 0 2px 8px rgba(102, 170, 210, 0.2);
}

.nav-menu a.active {
    color: var(--color-primary);
    background: rgba(102, 170, 210, 0.2);
    box-shadow: 0 4px 12px rgba(102, 170, 210, 0.3), inset 0 -2px 0 var(--color-primary);
}

/* === Main Content === */
main {
    flex: 1;
    padding: 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(to bottom right, rgba(10, 18, 20, 0.9), rgba(10, 18, 20, 0.7));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(102, 170, 210, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.content-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 170, 210, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.content-wrapper > * {
    position: relative;
    z-index: 1;
}

/* === Landing Hero === */
.landing-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 2rem;
}

.landing-inner {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-landing {
    width: 280px;
    height: 280px;
    margin: 0 auto 2.5rem;
    background-image: url('../images/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 40px rgba(102, 170, 210, 0.6)) drop-shadow(0 0 80px rgba(120, 209, 200, 0.3));
    animation: float 6s ease-in-out infinite, glow 3s ease-in-out infinite;
    position: relative;
}

.logo-landing::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { 
        filter: drop-shadow(0 0 40px rgba(102, 170, 210, 0.6)) drop-shadow(0 0 80px rgba(120, 209, 200, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 60px rgba(102, 170, 210, 0.8)) drop-shadow(0 0 100px rgba(120, 209, 200, 0.5));
    }
}

.title-landing {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    letter-spacing: 0.02em;
    text-shadow: 0 0 40px rgba(102, 170, 210, 0.5);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--color-dim);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(102, 170, 210, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 170, 210, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-light);
    border: 2px solid var(--color-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(102, 170, 210, 0.15);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(120, 209, 200, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-error) 0%, #d32f2f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244, 67, 54, 0.5);
}

.btn.ghost {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn.ghost:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    box-shadow: 0 0 30px rgba(102, 170, 210, 0.6);
}

/* === Forms === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-gray);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(169, 193, 198, 0.2);
    border-radius: 12px;
    color: var(--color-light);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(102, 170, 210, 0.08);
    box-shadow: 0 0 0 4px rgba(102, 170, 210, 0.1), 0 4px 20px rgba(102, 170, 210, 0.2);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(169, 193, 198, 0.5);
    font-style: italic;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-gray);
    font-size: 0.875rem;
    font-style: italic;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.char-counter {
    text-align: right;
    color: var(--color-gray);
}

/* === Alerts === */
.alert {
    padding: 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border-color: var(--color-success);
    color: #a5d6a7;
}

.alert-error {
    background: rgba(244, 67, 54, 0.15);
    border-color: var(--color-error);
    color: #ef9a9a;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.15);
    border-color: var(--color-warning);
    color: #ffcc80;
}

.alert h3 {
    margin-bottom: 0.5rem;
}

/* === Info Box === */
.info-box {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-box h3 {
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.info-box ul {
    margin-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
}

/* === Data Rights Grid === */
.data-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.rights-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
}

.rights-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* === Legal Page === */
.legal-page h1 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.legal-page h2 {
    margin: 2rem 0 1rem;
    color: var(--color-light);
}

.legal-page h3 {
    margin: 1.5rem 0 0.75rem;
    color: var(--color-gray);
}

.legal-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.last-updated {
    color: var(--color-gray);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* === Footer === */
.site-footer {
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.95) 0%, rgba(13, 20, 33, 0.98) 100%);
    border-top: 2px solid rgba(102, 170, 210, 0.2);
    padding: 3rem 2rem 1rem;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--color-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-light);
    transform: translateX(5px);
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 170, 210, 0.15);
    color: var(--color-gray);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* === Error Page === */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .title-landing {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .data-rights-grid {
        grid-template-columns: 1fr;
    }
}

/* === Links Grid === */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.link-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--color-light);
    transition: var(--transition);
}

.link-card:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.link-card h3 {
    color: var(--color-primary);
}
