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

@font-face {
    font-family: 'Quicksand';
    src: url('assets/fonts/Quicksand-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Quicksand';
    src: url('assets/fonts/Quicksand-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Quicksand';
    src: url('assets/fonts/Quicksand-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

:root {
    --primary-color: #4E2C3D;
    --secondary-color: #E0E0E0;
    --accent-color: #00C0D0;
    --gold-accent: #FFD700;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow: rgba(78, 44, 61, 0.1);
}

body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background: transparent;
}

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

.how-to-stake .container,
.contact .container {
    max-width: 1700px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

.nav-menu li {
    position: relative;
    transition: transform 0.3s ease;
}

.nav-menu li:not(:first-child) {
    margin-left: 0;
}

.nav-menu li:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    background: none;
    border-radius: 0;
    padding: 0;
    display: inline;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: none;
}

.nav-link.active-link {
    color: var(--primary-color);
    background: none;
}

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

.nav-menu li:first-child .nav-link {
    /* clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%); */
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.nav-menu li:not(:first-child):not(:last-child) .nav-link {
    /* clip-path: polygon(0% 50%, 15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%); */
}

.nav-menu li:last-child .nav-link {
    /* clip-path: polygon(0% 50%, 15% 0, 100% 0, 100% 100%, 15% 100%); */
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.nav-menu li:first-child .nav-link.active-link {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.nav-menu li:last-child .nav-link.active-link {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    overflow-y: auto;
    background: transparent;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 70px;
    padding-bottom: 40px;
}

.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: var(--app-height, 100vh);
    background-image: url('assets/bg1.webp');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -2;
    transition: opacity 0.4s ease-in-out;
}

.site-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    pointer-events: none;
    z-index: 1;
}

.puzzle-pieces-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.puzzle-piece {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    will-change: transform;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-25px) rotate(8deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(5deg); }
    50% { transform: translate(10px, -10px) rotate(-5deg); }
}

@keyframes float-3 {
    0%, 100% { transform: scale(1) rotate(0); }
    33% { transform: scale(1.05) rotate(-5deg); }
    66% { transform: scale(0.95) rotate(5deg); }
}

.puzzle-piece:nth-child(1) {
    width: 80px; height: 80px; top: 15%; left: 10%;
    background-image: url('assets/puzzle_piece_1.png');
    animation: float-1 8s ease-in-out infinite;
}
.puzzle-piece:nth-child(2) {
    width: 60px; height: 60px; top: 25%; left: 80%;
    background-image: url('assets/puzzle_piece_2.png');
    animation: float-2 10s ease-in-out infinite 1s;
}
.puzzle-piece:nth-child(3) {
    width: 100px; height: 100px; top: 70%; left: 5%;
    background-image: url('assets/puzzle_piece_2.png');
    animation: float-3 12s ease-in-out infinite 2s;
}
.puzzle-piece:nth-child(4) {
    width: 50px; height: 50px; top: 80%; left: 85%;
    background-image: url('assets/puzzle_piece_1.png');
    animation: float-1 7s ease-in-out infinite 3s;
}
.puzzle-piece:nth-child(5) {
    width: 70px; height: 70px; top: 5%; left: 40%;
    background-image: url('assets/puzzle_piece_1.png');
    animation: float-2 9s ease-in-out infinite 0.5s;
}
.puzzle-piece:nth-child(6) {
    width: 90px; height: 90px; top: 50%; left: 50%;
    background-image: url('assets/puzzle_piece_2.png');
    animation: float-3 11s ease-in-out infinite 1.5s;
}
.puzzle-piece:nth-child(7) {
    width: 65px; height: 65px; top: 90%; left: 30%;
    background-image: url('assets/puzzle_piece_1.png');
    animation: float-1 8.5s ease-in-out infinite 2.5s;
}
.puzzle-piece:nth-child(8) {
    width: 75px; height: 75px; top: 60%; left: 70%;
    background-image: url('assets/puzzle_piece_2.png');
    animation: float-2 9.5s ease-in-out infinite 3.5s;
}
.puzzle-piece:nth-child(9) {
    width: 85px; height: 85px; top: 30%; left: 20%;
    background-image: url('assets/puzzle_piece_1.png');
    animation: float-3 10.5s ease-in-out infinite 4s;
}
.puzzle-piece:nth-child(10) {
    width: 55px; height: 55px; top: 10%; left: 90%;
    background-image: url('assets/puzzle_piece_2.png');
    animation: float-1 7.5s ease-in-out infinite 0.2s;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    opacity: 0.7;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #3A1F2A;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 20px;
    width: 100%;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

section:not(.hero) {
    height: 100vh;
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 90px;
    padding-bottom: 40px;
}

section.active-section {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 700;
}

#about .section-title,
#about .section-subtitle,
#features .section-title,
#features .section-subtitle,
#how-to-stake .section-title,
#how-to-stake .section-subtitle,
#contact .section-title,
#contact .section-subtitle {
    color: #fff;
    text-shadow: 0 3px 8px rgba(0,0,0,0.85);
}

/* About Section */
.about {
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #F1EEE9;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 14px 40px;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    min-height: 340px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.about-text::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 192, 208, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.about-text:hover::before {
    opacity: 1;
}

.about-text:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-text-inner {
    align-items: center;
    text-align: center;
}

.about-text-inner.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.about-text h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.puzzle-assembly {
    position: relative;
    width: 520px;
    height: 520px;
    padding: 30px;
}

.assembly-piece {
    position: absolute;
    width: 270px;
    height: 270px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.5s ease;
    cursor: pointer;
}

.assembly-piece[data-assembly="1"] {
    top: 0;
    left: 0;
    background-image: url('assets/01.png');
}

.assembly-piece[data-assembly="2"] {
    top: 0;
    right: 0;
    background-image: url('assets/02.png');
}

.assembly-piece[data-assembly="3"] {
    bottom: 0;
    left: 0;
    background-image: url('assets/03.png');
}

.assembly-piece[data-assembly="4"] {
    bottom: 0;
    right: 0;
    background-image: url('assets/04.png');
}

.assembly-piece:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Features Section */
.features {
    background: transparent;
}

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

.feature-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-width: 0;
}

.feature-card:hover .feature-icon img {
    filter: brightness(0) invert(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.feature-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.feature-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* How to Stake Section */
.how-to-stake {
    background: transparent;
}

.how-to-stake-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.stake-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stake-step {
    padding: 25px;
    border-radius: 15px;
    background: var(--white);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
    max-width: 600px;
}

.stake-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.stake-step.active-step {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 192, 208, 0.2);
}

.stake-step .step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stake-step .step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.stake-step h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.stake-step p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.stake-screenshots {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.screenshot-number-display {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.screenshot-slider {
    width: 100%;
    height: 100%;
}

.screenshot-slider .slider-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
}

.screenshot-slider .slide {
    width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    height: 100%;
}

.screenshot-slider .slide.active {
    opacity: 1;
    position: relative;
    display: block;
}

.screenshot-slider img {
    width: 100%;
    display: block;
    border-radius: 20px;
    height: 100%;
    object-fit: contain;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dots .dot:hover {
    background: white;
}

.slider-dots .dot.active {
    background: var(--accent-color);
}

/* Team Section */
.team {
    background: transparent;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.team-member:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
}

.team-member h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
#contact {
    padding-left: 0;
    padding-right: 0;
}

.contact {
    background: transparent;
}

.contact .container {
    max-width: 1300px;
    width: 95vw;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 40px;
    align-items: stretch;
}

.contact-info, .contact-form {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-info {
    gap: 32px;
    width: 100%;
}

.contact-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    padding: 14px 40px;
    min-height: 60px;
    width: 100%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 192, 208, 0.2);
}

.contact-item h4 {
    color: #4E2C3D;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 14px 12px;
    min-height: 60px;
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-input,
.form-textarea {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    display: block;
    padding: 28px;
    border: 2px solid #E5E5E5;
    border-radius: 16px;
    font-size: 1.25rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    padding-left: 40px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-textarea {
    height: 200px;
    resize: vertical;
    font-size: 1.15rem;
    padding: 32px;
}

.contact-form button[type="submit"] {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    display: block;
    font-size: 1.2rem;
    padding: 20px 48px;
    border-radius: 16px;
}

/* Footer */
.footer {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        top: -320px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 95vw;
        max-width: 420px;
        height: auto;
        max-height: 320px;
        overflow-y: auto;
        background: var(--white);
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
        padding: 80px 0 80px 0;
        gap: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: top 0.3s, opacity 0.3s;
        z-index: 2000;
    }
    .nav-menu.active {
        top: 0;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link {
        background: none !important;
        border-radius: 0 !important;
        display: inline !important;
        align-items: unset !important;
        justify-content: unset !important;
        text-align: left !important;
        padding: 0 !important;
        min-width: unset !important;
        max-width: unset !important;
        min-height: unset !important;
        margin: 0 0 14px 0 !important;
        white-space: nowrap;
    }
    .nav-link.active-link {
        background: none !important;
        color: var(--primary-color) !important;
        border-radius: 0 !important;
    }
    .nav-menu li:first-child .nav-link,
    .nav-menu li:not(:first-child):not(:last-child) .nav-link,
    .nav-menu li:last-child .nav-link {
        border-radius: 8px;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: auto;
        min-width: unset;
        max-width: unset;
        padding: 18px 40px;
        margin: 0 0 16px 0;
        border-radius: 50px;
        font-size: 1rem;
        display: inline-block;
        text-align: center;
        box-shadow: none;
    }
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }
    .stat {
        width: 50%;
        box-sizing: border-box;
        margin-bottom: 0;
        text-align: center;
        padding: 10px 0;
    }
    .stat:nth-child(3) {
        width: 100%;
        margin-top: 10px;
        padding-bottom: 0;
    }
    
    .about-content,
    .how-to-stake-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }

    .member-bio {
        max-width: 400px;
        margin: 0 auto;
    }
    
    section {
        justify-content: flex-start;
        padding-top: 90px;
        padding-bottom: 40px;
        min-height: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-item, .contact-form {
        max-width: 100%;
        min-height: unset;
    }
    .form-input,
    .form-textarea {
        width: 100%;
        max-width: 100%;
    }
    .contact-form button[type="submit"] {
        width: 100%;
        max-width: 100%;
    }
    .nav-menu li:first-child .nav-link.active-link {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .nav-menu li:last-child .nav-link.active-link {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .hero-buttons .btn-primary {
        background: var(--primary-color) !important;
        color: var(--white) !important;
    }
    .about-text,
    .about-stats-card {
        margin-left: 10px;
        margin-right: 10px;
    }
    .form-input,
    .form-textarea {
        padding-left: 20px;
    }
    .contact-item {
        width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding-left: 18px;
        padding-right: 18px;
    }
    .about-text {
        padding: 24px 32px;
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        max-width: 100vw;
        max-height: 280px;
        padding: 55px 0 55px 0;
        gap: 8px;
    }
    .nav-link {
        max-width: 100vw;
        min-height: 48px;
        font-size: 1rem;
        margin-bottom: 10px;
        padding: 0 10px;
    }
    /* Hide some puzzle pieces to reduce clutter on small screens */
    .puzzle-piece:nth-child(5),
    .puzzle-piece:nth-child(6),
    .puzzle-piece:nth-child(7),
    .puzzle-piece:nth-child(9) {
        display: none;
    }
    .about-text {
        padding: 24px 32px !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
    }
}

/* Desktop-only full-page styles */
@media (min-width: 769px) {
    body {
        overflow: hidden;
    }
    section {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1;
    }

    section:not(.hero) {
        height: 100vh;
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: 90px;
        padding-bottom: 40px;
    }

    section.active-section {
        opacity: 1;
        pointer-events: auto;
        z-index: 2;
    }
}

/* Additional Interactive Features and Polish */

/* Puzzle piece hover glow effect */
.puzzle-piece {
    filter: drop-shadow(0 5px 15px rgba(78, 44, 61, 0.2));
    transition: all 0.3s ease;
}

.puzzle-piece:hover {
    filter: drop-shadow(0 10px 25px rgba(78, 44, 61, 0.4)) brightness(1.1);
    transform: scale(1.05);
}

/* Enhanced button interactions */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Animated statistics counter */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.stat-number {
    animation: pulse 2s infinite;
}

/* Enhanced feature card interactions */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 192, 208, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Smooth scroll indicator */
.scroll-indicator {
    display: none;
}

/* Loading animation for form submission */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .puzzle-piece {
        width: 60px;
        height: 60px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* Accessibility improvements */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .puzzle-piece {
        animation: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .puzzle-pieces-container {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        color: black;
    }
    
    .section-title {
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-light: #333333;
        --shadow: rgba(0, 0, 0, 0.3);
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

.nav-close-btn {
    display: none;
}
@media (max-width: 768px) {
    .nav-close-btn {
        display: none;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 2001;
        background: transparent;
        border: none;
        font-size: 2.5rem;
        color: var(--text-dark);
        cursor: pointer;
    }

    .nav-close-btn.active {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: -320px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 95vw;
        max-width: 420px;
        height: auto;
        max-height: 320px;
        overflow-y: auto;
        background: var(--white);
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
        padding: 40px 0 20px 0;
        gap: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: top 0.3s, opacity 0.3s;
        z-index: 2000;
    }
    .nav-link {
        font-size: 1.2rem;
        padding: 12px 20px;
        width: 85%;
        margin: 0 auto;
        background: var(--secondary-color);
        border-radius: 8px;
        text-align: center;
        display: block;
    }

    .nav-link.active-link {
        background: var(--primary-color);
        color: var(--white);
    }
}
@media (max-width: 480px) {
  .nav-menu {
    max-width: 98vw;
    max-height: 280px;
    padding: 30px 0 15px 0;
    gap: 8px;
  }
  .nav-link {
    font-size: 1rem;
    padding: 10px 15px;
  }
}

/* For shorter screens, ensure hero content is scrollable from the top */
@media (max-height: 750px) {
    .hero {
        align-items: flex-start;
        padding-top: 90px;
        padding-bottom: 40px;
    }
}

.contact-item, .contact-form {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .contact-item, .contact-form {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.contact-form .form {
    flex: 1;
}

#features .section-subtitle {
    color: #fff;
}

#about .section-title,
#about .section-subtitle {
    color: #222 !important;
    text-shadow: none !important;
}

#features .section-title,
#features .section-subtitle,
#how-to-stake .section-title,
#how-to-stake .section-subtitle,
#contact .section-title,
#contact .section-subtitle {
    color: #fff;
    text-shadow: 0 3px 8px rgba(0,0,0,0.85);
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-text {
    padding: 24px 32px;
    margin-left: 8px;
    margin-right: 8px;
    min-height: 220px;
    max-width: 100%;
  }
  .about-visual {
    justify-content: center;
    align-items: center;
  }
  .puzzle-assembly {
    width: 360px;
    height: 360px;
    padding: 18px;
  }
  .assembly-piece {
    width: 180px;
    height: 180px;
  }
  .how-to-stake-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .stake-steps {
    gap: 12px;
  }
  .stake-step {
    padding: 16px;
    max-width: 100%;
  }
  .stake-screenshots {
    border-radius: 12px;
  }
  .screenshot-slider img {
    border-radius: 12px;
  }
}
@media (max-width: 480px) {
  .about-text {
    padding: 24px 32px !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
  }
  .puzzle-assembly {
    width: 240px;
    height: 240px;
    padding: 8px;
  }
  .assembly-piece {
    width: 110px;
    height: 110px;
  }
}

#vote-account {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 0.97em;
  display: inline-block;
  max-width: 100%;
}
.stake-step p {
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  #vote-account {
    font-size: 0.89em;
  }
}

.vote-account {
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  background: #f4f4f4;
  color: #4E2C3D;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.97em;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
  margin-top: 4px;
  margin-bottom: 2px;
}
.vote-account:active,
.vote-account.copied {
  background: #e0e0e0;
}

.about-stats-inline {
  display: block;
  margin-top: 24px;
}

.about-stat {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.about-stat-label {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: left;
  margin-bottom: 1rem;
}
.about-stat-value {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-color);
  text-align: left;
  margin-bottom: 1rem;
}

.about-stat-value + .about-stat-label {
  margin-left: 32px;
}

/* --- Mobile First Styles --- */
.about-stats-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}

.about-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 10px;
}

.about-stat-label {
  text-align: left;
  margin: 0;
  font-size: 1.1rem;
}

.about-stat-value {
  text-align: right;
  margin: 0;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .about-stat-label, .about-stat-value {
    font-size: 1.2rem;
  }
}

/* --- Desktop Styles --- */
@media (min-width: 769px) {
  .about-stats-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 28px 32px;
    padding: 0;
  }
  .about-stat-item {
      padding: 0;
  }
  .about-stat-label, .about-stat-value {
      font-size: 1.5rem;
  }
}

