/* NEXUS3 WEB3 PORTFOLIO CSS DESIGN SYSTEM */

:root {
    --bg-main: hsl(222, 47%, 5%);
    --bg-nav: rgba(8, 11, 17, 0.7);
    --card-bg: rgba(15, 23, 42, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    
    --primary: hsl(186, 100%, 50%); /* Neon Cyan */
    --primary-glow: hsla(186, 100%, 50%, 0.35);
    --accent: hsl(271, 76%, 58%); /* Neon Purple */
    --accent-glow: hsla(271, 76%, 58%, 0.35);
    --yellow: hsl(45, 100%, 50%); /* Neon Yellow */
    --yellow-glow: hsla(45, 100%, 50%, 0.25);
    
    --text-primary: hsl(0, 0%, 96%);
    --text-secondary: hsl(215, 20%, 65%);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Orbitron', monospace;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Decorative Glow Spheres */
.glow-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: pulse 12s infinite alternate;
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: pulse 16s infinite alternate-reverse;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(5%, 5%); }
}

/* Navigation Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--primary-glow);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: hsl(222, 47%, 5%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

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

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

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

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--primary-glow);
    opacity: 0;
    transition: var(--transition);
}

.btn-glow:hover::after {
    opacity: 1;
}

.btn-block {
    width: 100%;
}

/* Layout Content */
.main-content {
    margin-top: 80px;
    padding: 40px 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 0 60px 0;
    position: relative;
}

.hero-badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.hero-title {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    max-width: 900px;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Grid System */
.grid {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.highlight-border:hover {
    border-color: var(--accent);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.card-header h4 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.cyan-icon { background: rgba(0, 242, 254, 0.1); color: var(--primary); }
.purple-icon { background: rgba(157, 78, 221, 0.1); color: var(--accent); }
.yellow-icon { background: rgba(255, 195, 0, 0.1); color: var(--yellow); }

.card-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Sections */
.content-section {
    padding: 80px 0 40px 0;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Metric Display Widgets */
.metric-value {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-value .unit {
    font-size: 1rem;
    color: var(--text-secondary);
}

.metric-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.percentage.positive {
    color: hsl(142, 70%, 50%);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: hsl(142, 70%, 50%); }
.badge-purple { background: rgba(157, 78, 221, 0.1); color: var(--accent); }

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width 0.5s ease-out;
}

/* Roadmap timeline */
.roadmap-container {
    position: relative;
    padding-left: 50px;
    margin-top: 40px;
}

.roadmap-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--card-border);
}

.roadmap-step {
    position: relative;
    margin-bottom: 40px;
}

.step-num {
    position: absolute;
    left: -50px;
    top: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--card-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    transition: var(--transition);
    z-index: 2;
}

.roadmap-step.completed .step-num {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.roadmap-step.active .step-num {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.step-rewards {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.reward-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

/* Swap Component Customizations */
.swap-interface {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swap-input-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--card-border);
}

.swap-input-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.swap-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}

.swap-val {
    border: none;
    background: transparent;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.swap-val:focus {
    box-shadow: none;
    background: transparent;
}

.token-select {
    width: auto;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    padding: 8px 12px;
}

.swap-arrow-icon {
    align-self: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.swap-arrow-icon:hover {
    background: var(--primary);
    color: var(--bg-main);
}

.swap-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 8px 4px;
}

/* NFT Preview Art Graphic */
.nft-preview-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px dashed var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-glowing-art {
    width: 80%;
    height: 80%;
    border-radius: 8px;
    background: linear-gradient(45deg, #0f172a, #1e1b4b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    position: relative;
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: inset 0 0 20px var(--primary-glow);
    overflow: hidden;
}

.nft-glowing-art::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite linear;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Agency generator output style */
.agency-generator {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.generator-output {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    font-size: 1.1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    border-left: 4px solid var(--accent);
}

/* Messaging states */
.status-msg {
    margin-top: 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 8px 12px;
    display: none;
}

.status-success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: hsl(142, 70%, 50%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-loading {
    display: block;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

/* Footer style */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0 4%;
    }
    .nav-links {
        display: none; /* Hide navigation items on smaller screens for simplicity */
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
