:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
    --success: #27ae60;
    --transition: all 0.3s ease;
}

/* Reset / Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #f8f9fa;
    color: var(--text);
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    /* ensure content sits below fixed header */
    padding-top: 80px;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.logo i {
    color: var(--secondary);
    transition: var(--transition);
}
.logo:hover i {
    transform: rotate(10deg);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--secondary);
}
.nav-links a:hover::after {
    width: 100%;
}
.cta-button {
    background-color: var(--secondary);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--secondary);
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.cta-button:hover {
    background-color: transparent;
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Hero */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary {
    background-color: white;
    color: var(--primary);
    border: 2px solid white;
}
.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Explore */
.Explore {
    padding: 100px 0;
    background-color: white;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}
.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}
.Explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: rgba(52, 152, 219, 0.2);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--secondary);
    font-size: 2rem;
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(52, 152, 219, 0.2);
}
.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
}

/* Download */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.download::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: 0;
}
.download-content {
    position: relative;
    z-index: 1;
}
.download h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}
.download h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}
.download p {
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-size: 1.1rem;
}
.download-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}
.download-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    width: 250px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.download-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.download-option:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    z-index: 1;
}
.download-option i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary);
    transition: var(--transition);
}
.download-option:hover i {
    transform: scale(1.1);
}
.download-option h3 {
    margin-bottom: 10px;
    font-weight: 600;
}
.download-option p {
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Support / Testimonials */
.Support {
    padding: 100px 0;
    background-color: #f8f9fa;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
/* FIXED: valid content string */
.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(52, 152, 219, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}
.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}
.author-info h4 {
    margin-bottom: 5px;
    color: var(--primary);
}
.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}
.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-column ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px) rotate(5deg);
}
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Newsletter inputs (if used) */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.newsletter-form input {
    padding: 12px 15px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Poppins', sans-serif;
}
.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

/* Scroll-to-top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top:hover {
    transform: translateY(-3px);
    background: var(--accent);
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
.animate {
    animation: fadeIn 0.8s ease-out;
}

/* Download page button enhancements */
.download-option .btn-secondary {
    background-color: var(--secondary);
    border: 2px solid var(--secondary);
    color: white;
}
.download-option .btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary);
}
.download-option .btn-secondary i {
    margin-right: 8px;
    transition: transform 0.2s ease; /* icon animation */
}
.download-option .btn-secondary:hover i {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .nav-links { display: none; }
    .feature-card { padding: 25px; }
}
@media (max-width: 576px) {
    .hero h1 { font-size: 1.8rem; }
    .section-title h2 { font-size: 2rem; }
    .download h2 { font-size: 2rem; }
    .download-options { flex-direction: column; align-items: center; }
}

/* Grid layout for Available Versions */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Card layout (inherits your glass look) */
.download-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 270px;
}
.download-card .card-head h3 {
    margin: 0 0 6px;
    font-weight: 700;
}
.download-card .meta {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}
.download-card .meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 8px;
}
.badge.latest {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

/* Button group: even sizing + spacing */
.btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}
.btn-group .btn { width: 100%; }

/* Checksums area */
.checksums {
    margin-top: 14px;
    text-align: left;
}
.checksums summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-weight: 600;
    color: #fff;
}
.checksums summary::-webkit-details-marker { display: none; }
.checksums .hash {
    display: block;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
}
.copy-hash {
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.copy-hash:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.2);
}

/* Responsive tweak: stack buttons on small screens */
@media (max-width: 520px) {
    .btn-group { grid-template-columns: 1fr; }
}

/* Align content inside cards to the left (section itself stays centered) */
.download-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Make grid items stretch evenly and line up cleanly */
.download-grid {
  align-items: stretch;
  justify-items: stretch;
}

/* Keep card headers consistent height & spacing */
.download-card .card-head { 
  position: relative; 
  margin-bottom: 12px; 
}

/* Put the 'Latest' badge in the top-right so it doesn't push content down */
.download-card .badge.latest {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 0;
}

/* Leave space so long titles don’t run under the badge */
.download-card .card-head h3 {
  padding-right: 80px;
}

/* Button alignment (icons + text perfectly centered) */
.btn-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Allow JS to set precise heights; prevent overflow jitter */
.download-card {
  height: auto;            /* baseline so JS can measure */
  overflow: hidden;        /* keeps expanded details tidy within height */
}

/* Make the button row responsive so labels always fit */
.btn-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* was 3 fixed columns */
  gap: 12px;                                                   /* a bit tighter */
  margin-top: 16px;
}

/* Slightly tighter buttons inside the grid */
.btn-group .btn {
  width: 100%;
  padding: 12px 14px;   /* was 15px 30px */
  font-size: 0.95rem;   /* tiny size nudge for fit */
  line-height: 1.2;
  display: inline-flex; /* keep icon+text centered */
  align-items: center;
  justify-content: center;
}

/* Consistent icon spacing inside any button */
.btn-group .btn i {
  margin-right: 8px;
  flex-shrink: 0;
}

/* On very narrow screens, stack buttons vertically */
@media (max-width: 420px) {
  .btn-group {
    grid-template-columns: 1fr;
  }
}

/* Ensure text inside download cards is clearly visible */
.download-card,
.download-card h3,
.download-card .meta li,
.download-card .meta i,
.download-card .badge {
  color: #222; /* dark text for readability */
}

.download-card .meta i {
  color: #666; /* softer for icons */
}

/* Center text and content inside download cards */
.download-card {
  text-align: center;
}

.download-card .meta {
  padding-left: 0;   /* remove left indent from list */
}

.download-card .meta li {
  list-style: none;  /* no bullets */
  display: block;
}

.download-card .btn-group {
  justify-content: center; /* center buttons */
}

.download-card .checksum-block {
  justify-content: center; /* center checksum items */
}

/* Download cards: readability + centering (applies to index teaser + full page) */
.download-card,
.download-card h3,
.download-card .meta li,
.download-card .meta i,
.download-card .badge {
  color: #222; /* ensure visible text against the glass card */
}
.download-card .meta i {
  color: #666; /* softer icon tint */
}
.download-card {
  text-align: center;
}
.download-card .meta {
  padding-left: 0;
}
.download-card .meta li {
  list-style: none;
  display: block;
}
.download-card .btn-group {
  justify-content: center;
}
.download-card .checksum-block {
  justify-content: center;
}

/* Force perfect centering for card titles */
.download-card .card-head {
  display: flex;
  flex-direction: column;
  align-items: center; /* center horizontally */
  text-align: center;  /* ensure text is centered */
}

.download-card .card-head h3 {
  margin: 0 0 8px 0; /* consistent bottom spacing */
  text-align: center;
}

/* Absolute centering fix for download card headers */
.download-card .card-head {
  display: block !important;      /* stop flex from messing with alignment */
  text-align: center !important;  /* center all child text */
}

.download-card .card-head .badge {
  display: inline-block;
  margin-bottom: 6px;
}

.download-card .card-head h3 {
  text-align: center !important;
  display: block;
  margin: 0 0 8px 0;
}

/* Quick Links 3-column layout */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-links-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links-grid li {
  margin-bottom: 6px;
}

.quick-links-grid a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .quick-links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery captions */
.thumb figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  padding: 8px 6px 0;
}

/* Donor table headings */
.table-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .2px;
}

/* color accents */
.title-gold    { color: #f1c40f; }   /* gold */
.title-repeat  { color: #8e44ad; }   /* purple */
.title-patreon { color: #e74c3c; }   /* red */
.title-donors  { color: var(--primary); } /* theme primary */

/* subtle top borders to match titles */
table#gold        { border-top: 3px solid #f1c40f; }
table#repeat      { border-top: 3px solid #8e44ad; }
table#patreon     { border-top: 3px solid #e74c3c; }
table#donorsTable { border-top: 3px solid var(--primary); }

/* keep tables tidy with headings */
.donor-section { margin-bottom: 40px; }

/* Right align the "Total" column in donor tables */
.donor-table th:last-child,
.donor-table td.amount {
  text-align: right;
}

/* Add space under each Show more/less button */
.donor-toggle {
  margin-bottom: 5mm; /* or ~20px if you prefer fixed pixels */
}

/* Match icon size */
.logo-icon {
  height: 1em;
  vertical-align: middle;
}

.colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.color-swatch {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.color-swatch span {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.color-swatch p {
  margin: 0;
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.2s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item span {
  display: block;
  padding: 10px;
  font-size: 0.95rem;
  color: #333;
}

.gallery-item:hover {
  transform: scale(1.02);
}
