* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    font-family: 'Segoe UI', sans-serif;
    pointer-events: none; /* Rende la scritta non cliccabile */
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
    font-weight: 700;
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 72px; /* Altezza precisa della navbar per allinearsi sotto il bordo */
    left: 0;
    right: 0;
    height: 3px; /* Leggermente più visibile */
    background: rgba(255, 255, 255, 0.05);
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.2s ease-out;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Hamburger Button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    gap: 5px;
    z-index: 1100;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    padding: 8rem 2rem 2rem;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.logo-container {
    margin-bottom: 2rem;
}

.hero-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.about {
    background-color: var(--bg-secondary);
}

.values {
    background-color: var(--bg-primary);
}

.projects {
    background-color: var(--bg-secondary);
}

.collaborate {
    background-color: var(--bg-primary);
    scroll-margin-top: 80px;
}

.social {
    background-color: var(--bg-secondary);
}

.donations {
    background-color: var(--bg-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* Terminal Card Style (Reusable) */
.terminal-card {
    max-width: 900px;
    margin: 0 auto 3rem;
    background: var(--bg-tertiary);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.header-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.terminal-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 3rem 1.5rem;
    line-height: 1.8;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.terminal-card p.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-card p:first-of-type {
    margin-top: 3rem;
}

.terminal-card p:last-child {
    margin-bottom: 3rem;
}

.terminal-card p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Specific adjustments for Intro Cards */
.intro-card {
    max-width: 800px;
}

.intro-card p {
    text-align: center !important;
    margin: 0 auto 2rem !important;
    width: 100%;
    padding: 0 3rem;
}

.intro-card p:first-of-type {
    margin-top: 2rem !important;
}

.intro-card p:last-child {
    margin-bottom: 2rem !important;
}

/* About Section Specifics */
.about-content p:last-child {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.value-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.value-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Projects Section */
.project-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.project-link {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Collaborate Section */
.email-link {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.email-link:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: scale(1.02);
    border-color: var(--accent);
}

.email-link, .copy-email {
    position: relative;
}

.email-link:hover::after,
.email-link.copied::after,
.copy-email:hover::after,
.copy-email.copied::after {
    content: 'copy';
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
    z-index: 10;
}

.email-link.copied::after,
.email-link.copied:hover::after,
.copy-email.copied::after,
.copy-email.copied:hover::after {
    content: 'copied!';
    background: #4CAF50;
    animation: fadeIn 0.3s ease;
}

.email-link:active, .copy-email:active {
    transform: scale(0.98);
}

.email-link.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.contact-form-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form-header {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-tag {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

.contact-form {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.label-prefix {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.18);
}

.form-input,
.form-textarea {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-input:focus,
.form-textarea:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    max-height: 320px;
    line-height: 1.6;
}

.char-counter {
    text-align: right;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Courier New', monospace;
    margin-top: 0.3rem;
}

.char-counter.warning {
    color: #e5a550;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-recipient {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.recipient-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.25);
}

.recipient-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.send-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.send-btn:hover::before {
    transform: translateX(0);
}

.send-btn:hover {
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.send-btn-text,
.send-btn-icon {
    position: relative;
    z-index: 1;
}

.send-btn-icon svg {
    display: block;
    transition: transform 0.3s ease;
}

.send-btn:hover .send-btn-icon svg {
    transform: translate(2px, -2px);
}

.send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Form success message */
.form-success {
    display: none;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 2rem;
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    color: #4CAF50;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-top: 0.5rem;
}

.form-success.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Browser notice */
.browser-notice {
    max-width: 760px;
    margin: 2rem auto 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.browser-notice strong {
    color: rgba(255, 193, 7, 0.9);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.browser-notice p {
    margin: 0.3rem 0;
}

.browser-notice p:last-child {
    margin-bottom: 0;
}

/* Form error states */
.form-input.error,
.form-textarea.error {
    border-color: rgba(220, 80, 80, 0.6);
    box-shadow: 0 0 0 3px rgba(220, 80, 80, 0.08);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .send-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Social Section */
.social-card {
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.social .container {
    text-align: center;
}

.social-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-card:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Donations Section */
.crypto-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.crypto-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    min-width: 280px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
    position: relative;
}

.crypto-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.crypto-card:hover::after,
.crypto-card.copied::after {
    content: 'copy';
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
    z-index: 10;
}

.crypto-card.copied::after,
.crypto-card.copied:hover::after {
    content: 'copied!';
    background: #4CAF50;
    animation: fadeIn 0.3s ease;
}

.crypto-card:active {
    transform: scale(0.98);
}

.crypto-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.crypto-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.crypto-address {
    font-size: 0.7rem;
    color: var(--text-secondary);
    word-break: break-all;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.crypto-card:hover .crypto-address {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

/* Prevent image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    user-select: none;
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 20px rgba(255, 255, 255, 0.03);
    padding: 4rem 0 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 0 0 auto;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.footer-brand-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.footer-brand-text p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex: 1;
    justify-content: flex-end;
}

.footer-links-column h4 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 0.6rem;
}

.footer-links-column ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.footer-links-column ul li a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.footer-bottom {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.2);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* ---------- Tablet (max 1024px) ---------- */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .footer-container {
        gap: 2.5rem;
    }

    .footer-links {
        gap: 2.5rem;
    }

    .crypto-container {
        gap: 2rem;
    }
}

/* ---------- Mobile / Small Tablet (max 768px) ---------- */
@media (max-width: 768px) {

    .about-content {
        border-radius: 12px;
    }

    .terminal-card p {
        margin: 0 1.5rem 1.2rem;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about-content p:first-of-type {
        margin-top: 2rem;
    }

    .about-content p:last-child {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem 0;
        font-size: 1.1rem;
    }

    /* --- Hamburger menu --- */
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 80vw);
        height: 100dvh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 5rem 2.5rem 3rem;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1.2rem 0;
        font-size: 1.1rem;
        letter-spacing: 0.08em;
        color: var(--text-secondary);
        position: relative;
        z-index: 1062;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255,255,255,0.1);
    }

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

    /* Overlay disabilitato — interferiva con i touch sui link */
    .nav-overlay {
        display: none !important;
    }

    /* --- Hero --- */
    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2.4rem;
        letter-spacing: 0.12em;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .hero-logo {
        width: 110px;
        height: 110px;
    }

    /* --- Sections --- */
    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* --- About --- */
    .about-content p {
        font-size: 1rem;
        text-align: left;
    }

    /* --- Project card --- */
    .project-card {
        padding: 2rem 1.5rem;
    }

    .project-title {
        font-size: 1.6rem;
    }

    /* --- Contact form --- */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .send-btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Social --- */
    .social-card {
        font-size: 0.95rem;
        padding: 1rem 1.8rem;
        word-break: break-all;
    }

    /* --- Donations / Crypto --- */
    .crypto-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .crypto-card {
        width: 100%;
        max-width: 400px;
        min-width: unset;
        padding: 2rem 1.5rem;
    }

    .crypto-logo {
        width: 60px;
        height: 60px;
    }

    .crypto-address {
        font-size: 0.65rem;
    }

    /* --- Footer --- */
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-brand {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .footer-logo {
        width: 48px;
        height: 48px;
    }

    .footer-brand-text h3 {
        font-size: 1.4rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: flex-start;
    }

    .footer-links-column {
        min-width: 120px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

/* ---------- Small phones (max 480px) ---------- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.08em;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .project-card {
        padding: 1.5rem 1rem;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .project-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .contact-form {
        padding: 1.25rem 1rem;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .crypto-card {
        padding: 1.5rem 1rem;
    }

    .crypto-address {
        font-size: 0.6rem;
    }
}
