/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark-gray: #1a1a1a;
    --color-light-gray: #f5f5f5;
    --color-mid-gray: #808080;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

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

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    50% {
        transform: translateY(-20px) rotateZ(5deg);
    }
}

@keyframes coinFlip {
    0%, 100% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(180deg) rotateX(5deg);
    }
    50% {
        transform: rotateY(360deg) rotateX(0deg);
    }
    75% {
        transform: rotateY(180deg) rotateX(-5deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes chevronBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: fadeInDown 0.6s ease-out;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--color-black), var(--color-mid-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: var(--color-black);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-smooth);
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-gray) 100%);
    padding-top: 80px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.coin-container {
    perspective: 1000px;
    margin-bottom: 3rem;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-coin-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-black);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2),
                inset 0 -5px 15px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition);
}

.hero-coin-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3),
                inset 0 -5px 15px rgba(0, 0, 0, 0.1);
    filter: brightness(1.08);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-mid-gray);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    font-weight: 300;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.cta-button:focus {
    outline: 3px solid var(--color-dark-gray);
    outline-offset: 2px;
}

.cta-button.primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.cta-button.primary:hover {
    background-color: var(--color-dark-gray);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    letter-spacing: 1.5px;
}

.cta-button.primary:active {
    transform: translateY(-1px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1.5s ease-out 1.2s backwards;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    color: var(--color-mid-gray);
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.chevron {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-left: 2px solid var(--color-black);
    border-bottom: 2px solid var(--color-black);
    transform: rotate(-45deg);
    animation: chevronBounce 2s infinite;
}

/* ==================== SECTION STYLES ==================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-black), transparent);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 8rem 0;
    background-color: var(--color-light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-black);
    animation: fadeInUp 0.8s ease-out;
}

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

.coin-display {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.coin-image-display {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-black);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15),
                inset 0 -5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-slow);
    cursor: pointer;
}

.coin-image-display:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25),
                inset 0 -5px 20px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
}

/* ==================== MESSAGE SECTION ==================== */
.message {
    padding: 8rem 0;
    background-color: var(--color-white);
}

.message-box {
    background: linear-gradient(135deg, var(--color-dark-gray) 0%, var(--color-black) 100%);
    padding: 4.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.message-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.message-box blockquote {
    position: relative;
    z-index: 1;
}

.message-box p {
    color: var(--color-white);
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 2;
    letter-spacing: 0.5px;
}

.message-coin-container {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.message-coin {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
}

.message-coin:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    filter: brightness(1.05);
}

.message-explanation {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--color-mid-gray);
    line-height: 1.9;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 8rem 0;
    background-color: var(--color-light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transition: left var(--transition);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.feature-card p {
    color: var(--color-mid-gray);
    line-height: 1.7;
}

/* ==================== STATS SECTION ==================== */
.stats {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-gray) 100%);
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out backwards;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.stat-item p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 8rem 0;
    background-color: var(--color-white);
    text-align: center;
}

.cta-text {
    font-size: 1.3rem;
    color: var(--color-mid-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 520px;
    margin: 0 auto 3rem;
    animation: slideUp 0.8s ease-out;
    align-items: stretch;
}

.cta-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--color-black);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
    background-color: var(--color-white);
}

.cta-form input:focus {
    border-color: var(--color-dark-gray);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    transform: scale(1.01);
}

.cta-form input::placeholder {
    color: var(--color-mid-gray);
}

.cta-form button {
    white-space: nowrap;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-black);
    border-radius: 50%;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    padding: 4rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-section a:hover {
    color: var(--color-white);
    transform: translateX(4px);
    transition: var(--transition-smooth);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== INTERSECTION OBSERVER ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
}

.fade-in.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Show fade-in elements if JS doesn't load */
noscript .fade-in {
    opacity: 1 !important;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        left: 0;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
        animation: slideInDown 0.3s ease-out;
    }

    .nav-link {
        padding: 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

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

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .coin-container {
        height: 200px;
        margin-bottom: 2rem;
    }

    .hero-coin-image {
        width: 200px;
        height: 200px;
    }

    .coin, .coin-face {
        width: 200px;
        height: 200px;
    }

    .coin-symbol {
        font-size: 3rem;
    }

    .coin-text {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .section-title::after {
        width: 60px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .coin-display {
        height: 300px;
    }

    .coin-image-display {
        width: 250px;
        height: 250px;
    }

    .message-box {
        padding: 2.5rem;
        border-radius: 10px;
    }

    .message-box p {
        font-size: 1.2rem;
    }

    .message-coin {
        width: 100px;
        height: 100px;
    }

    .cta-form {
        flex-direction: column;
        max-width: 100%;
        gap: 0.8rem;
    }

    .cta-form input,
    .cta-form button {
        width: 100%;
    }

    .cta-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .stats {
        padding: 5rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-item {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

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

    .nav-menu {
        top: 50px;
    }

    .section-container {
        padding: 0 1rem;
    }

    .message-box {
        padding: 2rem;
        border-radius: 8px;
    }

    .message-box p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .cta-text {
        font-size: 0.95rem;
        padding: 0;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .coin-image-display {
        width: 200px;
        height: 200px;
    }

    .hero-coin-image {
        width: 180px;
        height: 180px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 1.1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.visible {
    opacity: 1;
    pointer-events: auto;
}
