/* --- NEW Meteor.com Inspired Theme V2 --- */
:root {
    --primary-color: #635bff; /* Meteor's Primary Purple */
    --secondary-color: #a49eff; /* Lighter purple for hover */
    --bg-color: #151430; /* Very Dark Blue/Near Black */
    --text-color: #ffffff; /* White text */
    --text-color-muted: #a4a6c6;   /* Muted Grey/Blue (from Meteor text) */
    --card-bg: #0f0f22; /* Slightly Lighter Dark Blue */
    --card-border: #2a2a2a; /* Subtle border */
    --card-hover: #2a2a2a; /* Slightly lighter on hover */
    --card-shadow: rgba(0, 0, 0, 0.3); /* Subtle shadow */
    --border-color: rgba(255, 255, 255, 0); /* Faint white border */

    /* Fonts */
    --header-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif; /* Use Inter for body too */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}
/* --- End NEW --- */

/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; /* Increased line height */ overflow-x: hidden; font-weight: 400; /* Default body weight */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
h1, h2, h3, h4 { font-family: var(--header-font); font-weight: 600; line-height: 1.3; /* Adjusted heading line height */ margin-bottom: 1rem; color: var(--text-color); }
h1 { font-size: 3.2rem; font-weight: 700; letter-spacing: -1px; }
h2 { font-size: 2.4rem; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 500; /* Medium weight for H4 */ }
p { margin-bottom: 1.2rem; font-weight: 400; /* Regular weight paragraph */ color: var(--text-color-muted); font-size: 1rem; }
a { color: var(--primary-color); /* Purple for links */ text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--secondary-color); /* Lighter purple hover */ }
section { padding: 80px 0; position: relative; }

/* Remove the starry background from body */
body::before {
    display: none;
}

/* Remove the section background gradient */
section::before {
    display: none;
}

/* --- Header --- */
.site-header {
    background: rgba(21, 20, 48, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.logo-text { font-family: var(--header-font); font-weight: 600; font-size: 1.4rem; color: #fff; line-height: 1; transition: color 0.3s ease; }
.logo:hover .logo-text { color: var(--primary-color); /* Purple hover */ }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 35px; /* Wider gap */ justify-content: center;}
.site-nav a {
    font-family: var(--header-font); font-size: 0.95rem; font-weight: 500; color: var(--text-color-muted);
    text-decoration: none; padding: 5px 4px; position: relative; transition: color 0.3s ease; letter-spacing: 0.3px;
    display: flex; align-items: center;
}
.site-nav a:hover { color: var(--text-color); /* White hover */ }
.site-nav a::after { display: none; } /* No underline */

/* GitHub Icon Styling */
.github-icon {
    width: 22px; /* Slightly larger */
    height: 22px;
    fill: var(--text-color-muted);
    transition: fill 0.3s ease;
}
.site-nav a:hover .github-icon {
    fill: var(--text-color); /* White hover */
}

/* --- Hero Section Styling --- */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

/* Restore the hero-specific starry background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 91, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content { max-width: 750px; /* Slightly narrower */ position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 1.5rem; font-size: 3.8rem; /* Larger H1 */ font-weight: 700; line-height: 1.2;}
.hero p { font-size: 1.2rem; /* Adjusted size */ margin-bottom: 2.5rem; font-weight: 400; color: var(--text-color-muted); /* Muted text */ max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-button {
     display: inline-block; background: var(--primary-color); color: #fff; padding: 14px 35px; border-radius: 8px; /* More rounded */
     font-family: var(--header-font); font-weight: 500; /* Medium weight */ font-size: 1rem; transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
     border: none; box-shadow: 0 4px 14px rgba(99, 91, 255, 0.25); /* Adjusted Purple glow */
     text-transform: none; letter-spacing: 0px;
}
.cta-button:hover {
     background: var(--secondary-color); /* Lighter purple hover */ color: #fff; transform: translateY(-2px);
     box-shadow: 0 6px 16px rgba(99, 91, 255, 0.35);
}
 /* Secondary button style */
 .cta-button.secondary {
     background: transparent; border: 1px solid var(--border-color); color: var(--text-color);
     box-shadow: none;
     transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
 }
 .cta-button.secondary:hover {
     background-color: var(--card-bg); color: var(--text-color); border-color: var(--card-bg); transform: none;
 }

/* Starry Night Effect */
.stars-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; pointer-events: none; }
/* Base style for ALL stars */
.star { position: absolute; border-radius: 50%; background-color: rgba(255, 255, 255, 0.7); }
/* Style for static stars (JS sets size/pos/opacity) */
.star.static {}
/* Twinkling Stars */
.star.twinkle { width: 2px; height: 2px; background-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.3); opacity: 0.5; animation: twinkle 4s ease-in-out 1; animation-delay: var(--twinkle-delay, 0s); }
@keyframes twinkle { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.5); } }

/* --- COMET CSS --- */
.comets {
    position: absolute; top: 0; left: 0; width: 150vw; height: 150vh;
    transform-origin: center center; transform: translate3D(-25vw, -25vh, 0) rotate(65deg) scale(0.75);
    z-index: 1; pointer-events: none;
    opacity: 0.7; /* Adjusted opacity */
}
.comet {
    position: absolute; width: 1px; height: 75vh;
    background: linear-gradient(rgba(255, 255, 255, 0.6), transparent); /* Default fallback */
    animation-name: comet-move-fade;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}
@keyframes comet-move-fade {
    0% { opacity: 0; transform: translateY(200%) scaleY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(0) scaleY(1); }
}
/* Rainbow Effect Keyframes - Using Bright Colors */
@keyframes rainbow-flash {
    0%   { background: linear-gradient(#ff3b3b, transparent); } /* Bright Red */
    16%  { background: linear-gradient(#ff9500, transparent); } /* Bright Orange */
    33%  { background: linear-gradient(#ffcc00, transparent); } /* Bright Yellow */
    50%  { background: linear-gradient(#34c759, transparent); } /* Bright Green */
    66%  { background: linear-gradient(#00a9ff, transparent); } /* Bright Blue */
    83%  { background: linear-gradient(#bf5af2, transparent); } /* Bright Purple */
    100% { background: linear-gradient(#ff3b3b, transparent); } /* Back to Red */
}
/* Class applies BOTH animations - Fast Rainbow */
.comet-rainbow {
    animation-name: comet-move-fade, rainbow-flash;
    animation-duration: 3s, 0.2s; /* Movement 3s, Color cycle 0.2s */
    animation-timing-function: ease-in-out, linear;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
}
/* --- End COMET CSS --- */

/* --- Content Section Styling --- */
.content-section { padding: 80px 0; }
.content-section.alt-bg { background-color: var(--card-bg); } /* Use card bg for alt */
.content-section h2 { text-align: center; margin-bottom: 4rem; color: var(--text-color); /* White titles */ font-weight: 600;}
.section-intro { text-align: center; max-width: 700px; /* Slightly narrower intro */ margin-left: auto; margin-right: auto; margin-bottom: 3rem; font-size: 1.1rem; color: var(--text-color-muted); font-weight: 400; line-height: 1.7; }

/* Libcardano Section */
#libcardano {
    padding: 80px 0;
    background-color: var(--card-bg); /* Use the same dark background as other sections */
}

#libcardano .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#libcardano h2 {
    text-align: center;
    margin-bottom: 2rem;
}

#libcardano .content-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    width: 100%;
}

#libcardano .content-wrapper {
    text-align: center;
    max-width: 600px;
    margin-bottom: 0.75rem;
}

#libcardano .section-intro {
    max-width: 100%;
    margin: 0 0 0.75rem 0;
    text-align: center;
}

.libcardano-logo-container {
    width: 200px;
    max-width: 200px;
    margin-bottom: 0.5rem;
}

.libcardano-logo {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.cta-container {
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
}

#libcardano .cta-button.secondary {
    margin-top: 0;
}

/* Bindings Section */
#bindings h2 { color: var(--text-color); }
.bindings-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; /* Increased gap */ 
}
.binding-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.binding-card:hover {
    transform: translateY(-5px);
    border-color: #8a80ff; /* More vivid purple border on hover */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.binding-card .logo-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.binding-card .language-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.binding-card h3 {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: 500;
}
.binding-card .language-subtitle {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.binding-card p {
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-color-muted);
    font-weight: 400;
}
.binding-card a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.binding-card a:hover {
    color: var(--secondary-color);
}
.binding-card .card-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    margin-bottom: 15px;
    justify-content: center;
}
.binding-card .card-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.binding-card .card-actions a i {
    font-size: 1rem;
}
/* Pending binding card styles */
.binding-card.pending {
    opacity: 0.7;
    cursor: not-allowed;
}
.binding-card.pending:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}
.binding-card.pending a {
    color: var(--text-color-muted);
    pointer-events: none;
}
.binding-card.pending a:hover {
    color: var(--text-color-muted);
}
/* Status pill styles */
.binding-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
}
.binding-status.in-development {
    display: none; /* Hide status pill for "In Development" cards */
}
.binding-status.planned {
    background-color: rgba(164, 166, 198, 0.2);
    color: var(--text-color-muted);
}

/* Why Choose Section (Grid like Meteor) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; /* Adjusted gap */ text-align: left; }
.feature-item { background-color: var(--card-bg); padding: 30px; border-radius: 10px; border: 1px solid var(--border-color); box-shadow: none; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.feature-item:hover { transform: translateY(-5px); border-color: var(--primary-color); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.feature-item h3 { color: var(--text-color); margin-bottom: 0.7rem; font-size: 1.15rem; font-weight: 600; }
.feature-item p { font-size: 0.95rem; color: var(--text-color-muted); font-weight: 400; line-height: 1.6; }

/* Getting Started Section */
#getting-started .section-intro { color: var(--text-color-muted); }

/* Under the Hood Section (Simplified) */
.tech-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 35px; }
.tech-detail { background: none; padding: 0; border: 0; border-left: 3px solid var(--border-color); padding-left: 20px; box-shadow: none; }
.tech-detail h4 { color: var(--text-color); margin-bottom: 0.5rem; font-weight: 500; font-size: 1.05rem; }
.tech-detail p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; color: var(--text-color-muted); font-weight: 400;}

/* Contribution Section */
.contribution-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 3rem; }
.contribution-column h3 { color: var(--text-color); margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.8rem; font-weight: 600;}
.contribution-column ul { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
.contribution-column li { margin-bottom: 1rem; padding-left: 25px; position: relative; font-size: 1rem; color: var(--text-color-muted); font-weight: 400; }
.contribution-column li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); /* Purple checkmark */ font-weight: bold; }
.contribution-column li a { color: var(--primary-color); font-weight: 400; } /* Link color */
.contribution-column li a:hover { color: var(--secondary-color); }
.contribution-column .cta-button.secondary { margin-top: 1rem; } /* Use standard secondary style */

/* Contributing Section (CTA) */
#contribute {
    background-color: var(--card-bg); /* Use the same dark background as other sections */
}

/* --- Footer --- */
.site-footer { background: var(--bg-color); text-align: center; padding: 50px 0; /* Increased padding */ margin-top: 80px; border-top: 1px solid var(--border-color); font-size: 0.9rem; }
.site-footer p { margin-bottom: 0.8rem; /* Increased space */ color: var(--text-color-muted); font-size: 0.95rem; }
.footer-links a { margin: 0 15px; /* Wider space */ color: var(--text-color-muted); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-color); }

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
}

#back-to-top:hover {
    background: var(--secondary-color);
}

/* Remove the old back-to-top-btn styles */
#back-to-top-btn {
    display: none;
}

/* --- Responsiveness --- */
@media (max-width: 768px) { /* Tablet */
     h1 { font-size: 2.8rem; } h2 { font-size: 2.1rem; } .hero { min-height: 80vh; }
     .hero h1 { font-size: 3rem; } .hero p { font-size: 1.1rem; }
     .bindings-grid { grid-template-columns: 1fr; }
     .site-header .container { justify-content: center; }
     .logo-text { font-size: 1.3rem; } .site-nav { gap: 10px 25px; /* Adjust wrap gap */ }
     .feature-grid { grid-template-columns: 1fr; }
     .tech-details-grid { grid-template-columns: 1fr; }
     .contribution-columns { grid-template-columns: 1fr; }
     section { padding: 60px 0; } /* Reduce padding */
     .content-section h2 { margin-bottom: 3rem; }
     .section-intro { margin-bottom: 2rem; }
     #libcardano .container {
         flex-direction: column;
         text-align: center;
     }
     
     #libcardano .content-wrapper {
         text-align: center;
     }
     
     #libcardano h2 {
         text-align: center;
     }
     
     #libcardano .section-intro {
         text-align: center;
     }
     
     .libcardano-logo-container {
         margin: 0 auto 30px;
     }
     
     .cta-container {
         text-align: center;
     }
     .logo-image {
         content: url('logos/cometa_logo_tiny.png');
         height: 30px;
     }
}
@media (max-width: 480px) { /* Mobile */
     h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem;} .hero h1 { font-size: 2.5rem; } .hero p { font-size: 1rem; }
     .cta-button { padding: 12px 25px; font-size: 0.9rem; }
     .logo-text { font-size: 1.2rem; } .logo-image { height: 30px; }
     .site-nav { gap: 10px 15px; /* Keep reasonable gap */ } .site-nav a { font-size: 0.9rem; }
     .section-intro { font-size: 1rem; }
     #back-to-top-btn { width: 40px; height: 40px; font-size: 18px; line-height: 40px; bottom: 15px; right: 15px;}
     section { padding: 50px 0; } /* Further reduce padding */
     .content-section h2 { margin-bottom: 2.5rem;}
}

/* Responsive styles for libcardano section */
@media (max-width: 768px) {
    #libcardano .content-wrapper {
        max-width: 100%;
    }
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .logo-image {
        content: url('logos/cometa_logo_tiny.png');
        height: 30px;
    }
}

/* --- Section Styles --- */
section {
    padding: 80px 0;
    position: relative;
}

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

/* Consistent section title styling */
section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Section descriptions */
.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-color-muted);
    font-size: 1.1rem;
} 