/* Base Styles */
:root {
    --primary-orange: #FF4D1C;
    --secondary-purple: #8A2BE2;
    --bg-dark: #1A1A1A;
    --text-white: #FFFFFF;
    --text-gray: rgba(255, 255, 255, 0.7);
    --gradient: linear-gradient(135deg, var(--primary-orange), var(--secondary-purple));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.2), transparent 40%),
                radial-gradient(circle at bottom left, rgba(255, 77, 28, 0.2), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(10, 12, 38, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo {
    position: static;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Contract Address Button */
.contract-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-address:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.copy-icon, .explorer-link {
    display: flex;
    align-items: center;
    color: var(--sky-white);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.copy-icon:hover, .explorer-link:hover {
    opacity: 1;
}

.explorer-link {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Launch dApp Button */
.launch-dapp-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

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

.launch-dapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 77, 28, 0.3);
}

.launch-dapp-btn:hover::before {
    opacity: 1;
}

.launch-icon {
    display: flex;
    align-items: center;
    color: var(--text-white);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--primary-orange);
}

.social-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
    fill: currentColor;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sky-white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 160px 2rem 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sky-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.toast-icon {
    color: #00FF00;
}

/* Warning Toast */
.warning-toast {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.warning-toast .toast-icon {
    color: #FF3B30;
}

.warning-toast .toast-message {
    color: #FFFFFF;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 160px 0 40px;
        min-height: auto;
        width: 100%;
        overflow-x: hidden;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
        padding: 0;
        width: 100%;
    }

    .hero-content {
        padding: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        padding: 0 1rem;
        word-break: break-word;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
        width: 100%;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        text-align: center;
        display: block;
    }

    .hero-image {
        width: 100%;
        padding: 0 1rem;
    }

    .hero-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
    }

    .hackathon-banner {
        position: fixed;
        top: 80px;
        width: calc(100% - 2rem);
        max-width: 340px;
        font-size: 0.8rem;
        padding: 0.75rem;
        z-index: 999;
    }

    .navbar {
        padding: 1rem 0;
    }

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

    .logo-img {
        height: 32px;
    }

    .contract-address {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .tech-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .tech-item {
        padding: 1rem;
    }

    .tech-icon {
        width: 32px;
        height: 32px;
    }

    .section-title {
        font-size: 1.75rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .architecture {
        padding: 40px 0.75rem;
    }

    .architecture-diagram {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .arch-node {
        padding: 1rem;
        margin: 0;
    }

    .arch-node h3 {
        font-size: 1rem;
    }

    .arch-node p {
        font-size: 0.8rem;
    }

    .solana-programs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .program {
        padding: 0.5rem;
    }

    .program h4 {
        font-size: 0.8rem;
    }

    .program p {
        font-size: 0.7rem;
    }

    .action {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 375px) {
    .hero {
        padding: 140px 0 30px;
        width: 100vw;
        overflow-x: hidden;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        padding: 0 0.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 0.85rem;
        padding: 0 0.75rem;
        margin-bottom: 1.25rem;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        padding: 0 0.75rem;
        gap: 0.5rem;
        width: 100%;
    }

    .hero-image {
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .hero-image img {
        max-width: 200px;
    }

    .hackathon-banner {
        width: calc(100% - 1.5rem);
        padding: 0.5rem;
        margin: 0 0.75rem;
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .contract-address {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.5rem;
    }

    .copy-icon {
        margin: 0;
    }

    .address-text {
        display: none;
    }
}

@media (max-width: 375px) {
    .navbar-container {
        padding: 0 0.75rem;
    }

    .contract-address {
        padding: 0.5rem;
    }

    .copy-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Features Section */
.features {
    padding: 120px 2rem;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    overflow-x: hidden;
}

.features-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Tech Stack Section */
.tech-stack {
    padding: 120px 2rem;
    width: 100%;
    overflow-x: hidden;
}

.tech-stack-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.tech-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.tech-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.tech-name {
    color: var(--text-white);
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Site Title */
.site-title {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    z-index: 3;
}

/* Hackathon Banner */
.hackathon-banner {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 77, 28, 0.2), rgba(138, 43, 226, 0.2));
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: glow 2s ease-in-out infinite;
    width: fit-content;
}

.hackathon-banner .trophy-icon {
    color: var(--primary-orange);
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 77, 28, 0.3); }
    50% { box-shadow: 0 0 20px rgba(138, 43, 226, 0.5); }
}

/* Architecture Section - Updated */
.architecture {
    padding: 60px 2rem;
    background: rgba(26, 26, 26, 0.3);
    width: 100%;
    overflow-x: hidden;
}

.architecture-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.architecture-diagram {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
}

.arch-node {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.arch-node:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.arch-node h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.arch-node p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

/* Solana Section */
.solana-section {
    grid-column: 1 / -1;
}

.solana {
    background: rgba(0, 0, 0, 0.3);
}

.solana-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    justify-content: center;
}

.action {
    background: rgba(255, 77, 28, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.solana-programs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.program {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.program h4 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.program p {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Connection Lines */
.arch-connector {
    position: absolute;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-purple));
    opacity: 0.3;
    pointer-events: none;
}

.arch-connector.horizontal {
    height: 2px;
    width: calc(100% - 2rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.arch-connector.vertical {
    width: 2px;
    height: calc(100% - 2rem);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Tech Stack Icons */
.tech-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 77, 28, 0.3));
}

/* Hero 3D Animation */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 77, 28, 0.2), transparent 70%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating {
    animation: float 6s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hackathon-banner {
        top: 80px;
        width: 90%;
        font-size: 0.9rem;
    }
}

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

/* Code Terminal Section */
.code-terminal {
    padding: 80px 2rem;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.code-section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.code-explanation {
    color: var(--text-white);
}

.code-explanation h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.code-explanation p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.code-features {
    list-style: none;
    margin-top: 2rem;
}

.code-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-white);
}

.code-features li svg {
    width: 24px;
    height: 24px;
    color: var(--primary-orange);
}

.terminal-window {
    width: 100%;
    background: #1E1E1E;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(20px);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.terminal-window.show {
    opacity: 1;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0);
}

.terminal-window.show:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) translateY(0);
}

.terminal-header {
    background: #2D2D2D;
    padding: 0.75rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

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

.terminal-button.close { background: #FF5F56; }
.terminal-button.minimize { background: #FFBD2E; }
.terminal-button.maximize { background: #27C93F; }

.terminal-title {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.terminal-content {
    padding: 1.5rem;
    overflow: hidden;
    max-height: 500px;
}

.code-animation {
    margin: 0;
    color: var(--text-white);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    height: 100%;
}

.code-animation code {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

.code-animation.animate code {
    animation: typeCodeVertical 1s linear forwards;
    opacity: 1;
    transform: translateY(0);
}

/* Syntax Highlighting */
.code-animation .keyword { color: #FF4D1C; }
.code-animation .string { color: #27C93F; }
.code-animation .comment { color: #6A737D; }
.code-animation .number { color: #8A2BE2; }
.code-animation .function { color: #79B8FF; }

@keyframes typeCodeVertical {
    from {
        clip-path: inset(0 0 100% 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Responsive Design for Code Terminal */
@media (max-width: 1024px) {
    .code-section-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .terminal-window {
        transform: none;
    }

    .terminal-window:hover {
        transform: none;
    }

    .code-explanation h2 {
        font-size: 2rem;
    }

    .code-explanation p {
        font-size: 1rem;
    }

    .code-features li {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .code-terminal {
        padding: 40px 1rem;
    }

    .terminal-content {
        padding: 1rem;
        max-height: 400px;
    }

    .code-animation {
        font-size: 0.8rem;
    }
} 