/* NexusYield Main Stylesheet */

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #00b7eb;
    --primary-dark: #0090b8;
    --primary-light: rgba(0, 183, 235, 0.1);
    --accent-color: #38bdf8;
    --text-color: #ffffff;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --bg-dark: #111827;
    --bg-darker: #0f172a;
    --bg-light: #1f2937;
    --bg-lighter: #374151;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(0, 183, 235, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.accent-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.accent-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 183, 235, 0.3);
    color: white;
}

/* ===== LAYOUT COMPONENTS ===== */
.section-bg {
    background-color: black; /* Changed to black as per user request */
    position: relative;
    overflow: hidden;
}

.section-content {
    position: relative;
    z-index: 1;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    transition: transform 0.3s ease;
}

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

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* ===== HERO SECTION ===== */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo-desktop {
    filter: drop-shadow(0 0 20px rgba(0, 183, 235, 0.5));
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 183, 235, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(0, 183, 235, 0.7));
    }
}

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

.down-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    animation: bounce 2s infinite;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.down-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.down-arrow svg {
    width: 100%;
    height: 100%;
    stroke: white;
    fill: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ===== FEATURE CARDS ===== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 183, 235, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 183, 235, 0.3);
}

/* Why Choose NexusYield tiles - updated to match other tiles */
.card.bg-gray-900 {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 183, 235, 0.3);
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.2);
}

.card.bg-gray-900:hover {
    box-shadow: 0 0 20px rgba(0, 183, 235, 0.7);
    transform: translateY(-5px);
}

.how-it-works-icon {
    width: 50px; /* Reduced size to prevent stretching */
    height: 50px; /* Reduced size to prevent stretching */
    object-fit: contain; /* Maintain aspect ratio */
    filter: drop-shadow(0 0 5px rgba(0, 183, 235, 0.5));
    transition: transform 0.3s ease;
}

.card:hover .how-it-works-icon {
    transform: scale(1.1);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== TEAM MEMBER CARDS ===== */
.team-member-card {
    perspective: 1000px;
    height: 300px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 183, 235, 0.3);
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.2);
}

.team-member-card:hover {
    box-shadow: 0 0 20px rgba(0, 183, 235, 0.7);
    transform: translateY(-5px);
}

.team-member-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.team-member-card:hover .team-member-inner {
    transform: rotateY(180deg);
}

.team-member-front, .team-member-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
}

.team-member-front {
    background-color: rgba(26, 26, 26, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.team-member-back {
    background-color: rgba(0, 183, 235, 0.1);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid rgba(0, 183, 235, 0.3);
}

.team-member-circle {
    width: 140px; /* Increased size to fit text */
    height: 140px; /* Increased size to fit text */
    border-radius: 50%;
    background-color: rgba(0, 183, 235, 0.1);
    border: 3px solid #00b7eb;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.team-member-name {
    color: #00b7eb;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.team-member-title {
    color: white;
    font-size: 0.8rem;
    text-align: center;
}

/* ===== PHASE BOX TILES ===== */
.phase-box {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 183, 235, 0.3);
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.2);
}

.phase-box:hover {
    box-shadow: 0 0 20px rgba(0, 183, 235, 0.7);
    transform: translateY(-5px);
}

/* ===== TOKENOMICS TILES ===== */
.tokenomics-tile {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 183, 235, 0.3);
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.2);
}

.tokenomics-tile:hover {
    box-shadow: 0 0 20px rgba(0, 183, 235, 0.7);
    transform: translateY(-5px);
}

/* ===== REFLECTION TILE ===== */
.reflection-tile {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 183, 235, 0.3);
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.2);
}

.reflection-tile:hover {
    box-shadow: 0 0 20px rgba(0, 183, 235, 0.7);
    transform: translateY(-5px);
}

/* ===== KEYWORD BADGES ===== */
.keyword-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin: 0 0.5rem;
    font-weight: 600;
    text-align: center;
}

.badge-passive {
    background-color: #0f3a53;
    color: #38bdf8;
    border: 1px solid #38bdf8;
}

.badge-automatic {
    background-color: #2d1a54;
    color: #a78bfa;
    border: 1px solid #a78bfa;
}

.badge-sustainable {
    background-color: #3f400f;
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.bouncing-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== SECURITY TILES ===== */
.security-tile {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 183, 235, 0.3);
    box-shadow: 0 0 10px rgba(0, 183, 235, 0.2);
}

.security-tile:hover {
    box-shadow: 0 0 20px rgba(0, 183, 235, 0.7);
    transform: translateY(-5px);
}

/* ===== ROADMAP ICON POP EFFECT ===== */
.roadmap-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
    width: 65px; /* Increased by 30% from 50px */
    height: 65px; /* Increased by 30% from 50px */
    object-fit: contain; /* Maintain aspect ratio */
}

.section-content.active .roadmap-icon,
.roadmap-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0, 183, 235, 0.7));
}

/* ===== COMMUNITY ICONS ===== */
.community-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
    width: 65px; /* Increased by 30% from 50px */
    height: 65px; /* Increased by 30% from 50px */
    object-fit: contain; /* Maintain aspect ratio */
}

.section-content.active .community-icon,
.community-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0, 183, 235, 0.7));
}

.social-icon {
    width: 40px; /* Proper sizing for social icons */
    height: 40px; /* Proper sizing for social icons */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0, 183, 235, 0.7));
}

/* ===== SECURITY ICONS ===== */
.security-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
    width: 65px; /* Increased by 30% from 50px */
    height: 65px; /* Increased by 30% from 50px */
    object-fit: contain; /* Maintain aspect ratio */
}

.section-content.active .security-icon,
.security-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0, 183, 235, 0.7));
}

/* ===== FOOTER LINKS ===== */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links a {
    margin: 0 2rem;
}

/* ===== SECTION BACKGROUNDS ===== */
#roadmap {
    background-color: #0a1525; /* Different background color for roadmap section */
}

/* ===== RESPONSIVE STYLES ===== */
/* Mobile Styles */
@media (max-width: 768px) {
    .hero-logo-desktop {
        height: 200px;
    }
    
    .hero-subtitle {
        font-size: 2rem !important;
    }
    
    .section-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card, .security-tile, .reflection-tile, .phase-box, .tokenomics-tile {
        margin-left: 0;
        margin-right: 0;
    }
    
    .team-member-card {
        height: 280px;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a {
        margin: 0.5rem 1rem;
    }
    
    .roadmap-icon, .security-icon, .community-icon {
        width: 40px; /* Smaller on mobile */
        height: 40px; /* Smaller on mobile */
    }
    
    .social-icon {
        width: 32px; /* Smaller on mobile */
        height: 32px; /* Smaller on mobile */
    }
    
    .team-member-circle {
        width: 120px; /* Smaller on mobile */
        height: 120px; /* Smaller on mobile */
    }
    
    .keyword-badge {
        padding: 0.3rem 0.8rem;
        margin: 0.25rem;
        font-size: 0.8rem;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-logo-desktop {
        height: 280px;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .section-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
