/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&family=Press+Start+2P&display=swap');

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

body {
    margin: 0;
    font-family: 'Poppins', sans-serif; /* Keep Poppins for body text */
    background-color: #f8fcff;
    color: #1a3a5f;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #0a6cdb 0%, #1e88e5 100%);
    color: white;
    padding: 2em 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

header h1 {
    font-family: 'Press Start 2P', cursive; /* Apply 8-bit font to heading */
    font-weight: 400; /* 8-bit fonts often have one weight */
    font-size: 2rem; /* Adjust size for 8-bit font */
    margin-bottom: 0.2em;
    letter-spacing: 2px; /* Increase letter spacing */
    text-shadow: 2px 2px #003366; /* Add a text shadow for effect */
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 4em 0;
    background: linear-gradient(to bottom, #e0f7fa, #f8fcff);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0a6cdb, #64b5f6, #0a6cdb);
}

.hero h2 {
    font-family: 'Press Start 2P', cursive; /* Apply 8-bit font */
    font-weight: 400;
    font-size: 1.6rem; /* Adjust size */
    margin-bottom: 1em;
    color: #0a4f8f;
    text-shadow: 1px 1px #e0f7fa;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1em; /* Adjusted margin */
    color: #2c5282;
}

.hero-cta-text {
    font-family: 'Press Start 2P', cursive; /* Apply 8-bit font */
    font-weight: 400;
    font-size: 1.6rem; /* Match the h2 size */
    color: #0a4f8f; /* Match the h2 color */
    text-shadow: 1px 1px #e0f7fa; /* Match the h2 text shadow */
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.hero-telegram-link {
    margin-top: 0.5em; /* Reduced space since we now have the CTA text above */
    font-size: 1.2rem; /* Adjust font size */
    font-family: 'Press Start 2P', cursive; /* Apply 8-bit font */
    text-shadow: 1px 1px #e0f7fa; /* Add text shadow */
}

.hero-telegram-link a {
    display: inline-block; /* Allow padding and border */
    color: #0a4f8f; /* Link color */
    text-decoration: none;
    background-color: #b0e0e6; /* Light blue background */
    border: 2px solid #0a6cdb; /* Blue border */
    padding: 0.8em 1.5em; /* Padding inside the box */
    border-radius: 8px; /* Rounded corners */
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px #003366; /* 8-bit style shadow */
}

.hero-telegram-link a:hover {
    background-color: #64b5f6; /* Lighter blue on hover */
    box-shadow: 2px 2px 0px #003366; /* Smaller shadow on hover */
    transform: translate(2px, 2px); /* Move slightly on hover */
}

.hero-telegram-link a .finger-emoji {
    font-size: 2.5em; /* Make finger emoji much bigger */
    margin-right: 0.5em; /* Space between emoji and text */
    vertical-align: middle; /* Align emoji vertically */
}


section {
    padding: 4em 2em;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-family: 'Press Start 2P', cursive; /* Apply 8-bit font */
    font-weight: 400;
    font-size: 1.5rem; /* Adjust size */
    margin-bottom: 1.5em;
    text-align: center;
    color: #0a4f8f;
    position: relative;
    text-shadow: 1px 1px #e0f7fa;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0a6cdb, #64b5f6);
    margin: 0.5em auto 0;
    border-radius: 2px;
}

.features {
    padding: 4em 2em;
    text-align: center;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin: 2em auto;
    max-width: 1100px;
}

.features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    max-width: 900px;
    margin: 0 auto;
}

.features li {
    margin-bottom: 1em;
    padding: 1.5em;
    background-color: #f0f9ff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-align: left;
    padding-left: 3em;
}

.features li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
}

.features li::before {
    position: absolute;
    left: 1em;
    font-size: 1.2em;
    color: #0a6cdb;
}

.features li:nth-child(1)::before {
    content: '📈'; /* Chart increasing */
}

.features li:nth-child(2)::before {
    content: '🤝'; /* Handshake */
}

.features li:nth-child(3)::before {
    content: '⏳'; /* Hourglass */
}

.features li:nth-child(4)::before {
    content: '🔬'; /* Microscope */
}

/* Key Features section styling */
.features li:nth-child(4)::before {
    content: '📊'; /* Chart */
}

.features li:nth-child(5)::before {
    content: '⚡'; /* Lightning */
}

.features li:nth-child(6)::before {
    content: '🧠'; /* Brain */
}

.features li:nth-child(7)::before {
    content: '📊'; /* Chart */
}

.features li:nth-child(8)::before {
    content: '✨'; /* Sparkles */
}

.features li:nth-child(9)::before {
    content: '💬'; /* Speech bubble */
}

.packages, .contact {
    padding: 4em 2em;
    text-align: center;
    background-color: white;
    margin: 2em auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
}

.packages table {
    margin: 1em auto;
    border-collapse: separate;
    border-spacing: 0;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.packages th, .packages td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e0f0ff;
}

.packages th {
    background: linear-gradient(135deg, #0a6cdb 0%, #1e88e5 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.packages tr:last-child td {
    border-bottom: none;
}

.packages tr:nth-child(even) {
    background-color: #f5faff;
}

.packages tr:hover {
    background-color: #e6f3ff;
    transition: background-color 0.3s ease;
}

.packages td:first-child {
    font-weight: 600;
    color: #0a4f8f;
    font-size: 1.1rem;
}

.contact {
    background: linear-gradient(to bottom, white, #f0f9ff);
}

.contact p {
    margin-bottom: 1.2em;
    font-size: 1.1rem;
}

.contact a {
    color: #0a6cdb;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    background-color: rgba(10, 108, 219, 0.1);
    transition: all 0.3s ease;
}

.contact a:hover {
    background-color: rgba(10, 108, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(10, 108, 219, 0.2);
}

footer {
    background: linear-gradient(135deg, #0a4f8f 0%, #003366 100%);
    color: white;
    text-align: center;
    padding: 2em 0;
    width: 100%;
    margin-top: 3em;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
    font-family: 'Press Start 2P', cursive; /* Apply 8-bit font */
    text-shadow: 1px 1px #003366; /* Add text shadow */
}

/* Oceanic Paper Cut Art Placeholder */
.hero-image {
    display: block;
    margin: 2em auto;
    max-width: 250px;
    height: auto;
    border: 8px solid white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem; /* Slightly reduce base font size */
    }

    header {
        padding: 1.5em 0; /* Adjust header padding */
    }

    header h1 {
        font-size: 1.8rem; /* Adjust size for smaller screens */
    }
    
    .hero {
        padding: 3em 1em; /* Adjust hero padding */
    }

    .hero h2 {
        font-size: 1.6rem; /* Adjust size for smaller screens */
    }
    
    .hero p {
        font-size: 1rem; /* Adjust hero paragraph size */
        margin-bottom: 1.5em;
    }

    .hero-cta-text {
        font-size: 1.4rem; /* Slightly smaller on medium screens */
        margin-top: 0.8em;
        margin-bottom: 0.4em;
    }

    .hero-telegram-link {
        margin-top: 0.4em; /* Adjust margin */
        font-size: 1rem; /* Adjust font size */
    }

    .hero-telegram-link a {
        padding: 0.6em 1em; /* Adjust padding */
    }

    .hero-telegram-link a .finger-emoji {
        font-size: 2em; /* Adjust emoji size */
        margin-right: 0.3em; /* Adjust margin */
    }

    section {
        padding: 3em 1em; /* Adjust section padding */
    }

    section h2 {
        font-size: 1.4rem; /* Adjust size for smaller screens */
        margin-bottom: 1em;
    }

    section h2::after {
        width: 60px; /* Adjust underline width */
    }
    
    .features ul {
        grid-template-columns: 1fr; /* Stack features vertically */
        gap: 1.5em; /* Adjust gap */
    }

    .features li {
        padding: 1em 1.5em; /* Adjust padding */
        padding-left: 2.5em; /* Adjust padding for emoji */
    }

    .features li::before {
        left: 0.8em; /* Adjust emoji position */
        font-size: 1em; /* Adjust emoji size */
    }
    
    /* Card-style packages for mobile */
    .table-container {
        margin: 1em 0;
    }
    
    /* Remove table box shadow on mobile */
    .packages table {
        box-shadow: none;
    }
    
    .packages table,
    .packages tbody {
        display: block;
        width: 100%;
    }
    
    .packages thead {
        display: none; /* Hide table headers on mobile */
    }
    
    .packages tr {
        display: block;
        margin-bottom: 1.5em;
        background-color: #f5faff;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
        padding: 1em;
        border-left: 4px solid #0a6cdb;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .packages td {
        display: block;
        text-align: right;
        padding: 0.7em 0.5em;
        position: relative;
        border-bottom: 1px solid #e0f0ff;
        font-size: 0.9rem;
    }
    
    .packages td:last-child {
        border-bottom: none;
    }
    
    /* Add labels for each cell */
    .packages td:nth-child(1)::before { content: "Package: "; font-weight: bold; float: left; }
    .packages td:nth-child(2)::before { content: "Cost: "; font-weight: bold; float: left; }
    .packages td:nth-child(3)::before { content: "Runtime: "; font-weight: bold; float: left; }
    .packages td:nth-child(4)::before { content: "Wallets: "; font-weight: bold; float: left; }
    .packages td:nth-child(5)::before { content: "Volume Target: "; font-weight: bold; float: left; }
    
    .packages td:first-child {
        font-size: 1.1rem;
        color: #0a4f8f;
        font-weight: 600;
        border-bottom: 2px solid #0a6cdb;
        text-align: center;
        padding-top: 0.3em;
    }
    
    .packages td:first-child::before {
        content: none; /* Remove label for package name */
    }
    
    /* Add hover effect for package cards */
    .packages tr:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
    }
    
    /* Color-code different package types */
    .packages tr:nth-child(1) { border-left-color: #0a6cdb; } /* Beluga */
    .packages tr:nth-child(2) { border-left-color: #64b5f6; } /* Dolphin */
    .packages tr:nth-child(3) { border-left-color: #e57373; } /* King Crab */
    .packages tr:nth-child(4) { border-left-color: #7986cb; } /* Great White */
    .packages tr:nth-child(5) { border-left-color: #4db6ac; } /* Megalodon */
    .packages tr:nth-child(6) { border-left-color: #aed581; } /* Test Shrimp */

    .contact p {
        font-size: 1rem; /* Adjust contact paragraph size */
        margin-bottom: 1em;
    }

    .contact a {
        padding: 0.2em 0.6em; /* Adjust contact link padding */
    }

    footer {
        padding: 1.5em 0; /* Adjust footer padding */
    }

    .hero-image {
        max-width: 200px; /* Adjust image size */
        margin: 1.5em auto; /* Adjust margin */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem; /* Further adjust header h1 size */
    }

    .hero h2 {
        font-size: 1.3rem; /* Further adjust hero h2 size */
    }

    section h2 {
        font-size: 1.2rem; /* Further adjust section h2 size */
    }

    .hero-cta-text {
        font-size: 1.2rem; /* Even smaller on small screens */
        margin-top: 0.6em;
        margin-bottom: 0.3em;
    }
    
    .hero-telegram-link {
        font-size: 0.9rem; /* Further adjust link font size */
    }

    .hero-telegram-link a {
        padding: 0.5em 0.8em; /* Further adjust link padding */
    }

    .hero-telegram-link a .finger-emoji {
        font-size: 1.8em; /* Further adjust emoji size */
    }
    
    /* Further adjustments for package cards on very small screens */
    .packages tr {
        padding: 0.8em;
        margin-bottom: 1.2em;
    }
    
    .packages td {
        padding: 0.5em 0.4em;
        font-size: 0.85rem;
    }
    
    .packages td:first-child {
        font-size: 1rem;
    }
}

/* Animation for page load */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Initial state for sections to prevent FOUC */
body.loading section {
    opacity: 0;
    transform: translateY(20px);
}

/* Animation for page load */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply animation only when body does NOT have loading class */
body:not(.loading) section {
    animation: fadeIn 0.8s ease-out forwards;
}

body:not(.loading) section:nth-child(2) { animation-delay: 0.1s; }
body:not(.loading) section:nth-child(3) { animation-delay: 0.2s; }
body:not(.loading) section:nth-child(4) { animation-delay: 0.3s; }
body:not(.loading) section:nth-child(5) { animation-delay: 0.4s; }