/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', 'SF Pro Text', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0f;
    overflow-x: hidden;
}

.capabilities-page {
    min-height: 100vh;
    position: relative;
}

/* Enhanced Peacock Constellation Background */
.peacock-constellation-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    background: 
        radial-gradient(circle at 20% 80%, #1a0f2e 0%, #0a0a0f 30%),
        radial-gradient(circle at 80% 20%, #2d1b3d 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, #1e3a5f 0%, transparent 60%),
        radial-gradient(circle at 60% 90%, #0f2a1a 0%, transparent 40%);
    overflow: hidden;
}

.peacock-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
}

.constellation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

/* Detailed Peacock Feather Constellation - Repositioned */
.peacock-feather-constellation {
    position: absolute;
    top: 60%;
    left: 50%;
    width: 80vw;
    height: 96vh;
    transform: translate(-50%, -60%) scale(0.8);
    opacity: 0;
    animation: featherConstellation 15s ease-in-out infinite;
    z-index: -3;
}

.feather-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0,255,255,0.3));
    animation: featherGlow 8s ease-in-out infinite;
}

/* Constellation Stars */
.constellation-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 100px 200px, #ffffff, transparent),
        radial-gradient(1px 1px at 300px 100px, #00ffff, transparent),
        radial-gradient(1px 1px at 500px 300px, #8a2be2, transparent),
        radial-gradient(2px 2px at 800px 150px, #ffffff, transparent),
        radial-gradient(1px 1px at 200px 500px, #228b22, transparent),
        radial-gradient(3px 3px at 900px 400px, #4169e1, transparent),
        radial-gradient(1px 1px at 150px 800px, #ffffff, transparent),
        radial-gradient(2px 2px at 700px 700px, #00ffff, transparent),
        radial-gradient(1px 1px at 1100px 600px, #ff1493, transparent),
        radial-gradient(1px 1px at 50px 650px, #ffffff, transparent),
        radial-gradient(2px 2px at 450px 50px, #8a2be2, transparent),
        radial-gradient(1px 1px at 950px 200px, #228b22, transparent);
    background-size: 1200px 1200px;
    animation: starTwinkle 20s ease-in-out infinite;
    z-index: -2;
}

/* Cosmic Particles */
.cosmic-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(0,255,255,0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(138,43,226,0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(65,105,225,0.4), transparent),
        radial-gradient(3px 3px at 110px 80px, rgba(34,139,34,0.2), transparent),
        radial-gradient(1px 1px at 160px 20px, rgba(255,20,147,0.3), transparent),
        radial-gradient(2px 2px at 200px 60px, rgba(255,255,255,0.4), transparent);
    background-size: 220px 100px;
    animation: particleFloat 25s linear infinite;
    z-index: -1;
}

/* Navigation Styles */
.navbar-stellar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,10,15,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,255,255,0.2);
    transition: all 0.3s ease;
}

.nav-container-stellar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo-stellar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.logo-icon-stellar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00ffff, #8a2be2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

.nav-menu-stellar {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link-stellar {
    color: #b4b4b4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link-stellar:hover,
.nav-link-stellar.active {
    color: #ffffff;
    background: rgba(0,255,255,0.1);
    box-shadow: 0 0 15px rgba(0,255,255,0.2);
}

.nav-actions-stellar {
    display: flex;
    gap: 1rem;
}

.btn-download-stellar,
.btn-demo-stellar {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download-stellar {
    background: linear-gradient(135deg, #00ffff, #8a2be2);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

.btn-demo-stellar {
    background: rgba(0,255,255,0.1);
    color: #00ffff;
    border: 1px solid rgba(0,255,255,0.3);
}

.btn-download-stellar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,255,255,0.4);
}

.btn-demo-stellar:hover {
    background: rgba(0,255,255,0.2);
    transform: translateY(-2px);
}

.hamburger-stellar {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger-stellar span {
    width: 25px;
    height: 3px;
    background: #00ffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-constellation {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content-constellation {
    max-width: 900px;
    margin: 0 auto;
}

.constellation-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #00ffff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

.peacock-gradient {
    background: linear-gradient(135deg, #00ffff, #4169e1, #8a2be2, #228b22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: peacockShimmer 4s ease-in-out infinite;
}

.constellation-subtitle {
    font-size: 1.3rem;
    color: #b4b4b4;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.scroll-indicator {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-arrow {
    color: #00ffff;
    font-size: 1.5rem;
}

/* Capabilities Overview */
.capabilities-overview {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.capability-widget {
    background: rgba(10,10,15,0.8);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stellar-widget {
    transform: translateY(50px);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stellar-widget:nth-child(1) { animation-delay: 0.1s; }
.stellar-widget:nth-child(2) { animation-delay: 0.2s; }
.stellar-widget:nth-child(3) { animation-delay: 0.3s; }
.stellar-widget:nth-child(4) { animation-delay: 0.4s; }
.stellar-widget:nth-child(5) { animation-delay: 0.5s; }
.stellar-widget:nth-child(6) { animation-delay: 0.6s; }
.stellar-widget:nth-child(7) { animation-delay: 0.7s; }
.stellar-widget:nth-child(8) { animation-delay: 0.8s; }
.stellar-widget:nth-child(9) { animation-delay: 0.9s; }
.stellar-widget:nth-child(10) { animation-delay: 1.0s; }

.capability-widget:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 20px 40px rgba(0,255,255,0.2);
}

.widget-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00ffff, #8a2be2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 25px rgba(0,255,255,0.3);
}

.widget-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.capability-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.capability-list li {
    color: #b4b4b4;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.capability-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #00ffff;
    font-size: 0.8rem;
}

.widget-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,255,255,0.1), transparent, rgba(138,43,226,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.capability-widget:hover .widget-glow {
    opacity: 1;
}

/* Advanced Capabilities Section */
.advanced-capabilities {
    padding: 80px 0;
    background: rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: #b4b4b4;
    max-width: 800px;
    margin: 0 auto;
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advanced-item {
    background: rgba(10,10,15,0.8);
    border: 1px solid rgba(0,255,255,0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-align: center;
}

.stellar-card {
    transform: translateY(30px);
    opacity: 0;
}

.stellar-card.visible {
    animation: slideInUp 0.6s ease-out forwards;
}

.advanced-item:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 15px 30px rgba(0,255,255,0.2);
}

.advanced-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ffff, #8a2be2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.advanced-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.advanced-item p {
    color: #b4b4b4;
    line-height: 1.7;
}

/* Footer */
.footer-stellar {
    background: rgba(10,10,15,0.9);
    border-top: 1px solid rgba(0,255,255,0.2);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px);
}

.footer-content-stellar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section-stellar h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section-stellar p,
.footer-section-stellar li {
    color: #b4b4b4;
    margin-bottom: 0.5rem;
}

.footer-section-stellar ul {
    list-style: none;
}

.footer-section-stellar a {
    color: #b4b4b4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section-stellar a:hover {
    color: #00ffff;
}

.footer-logo-stellar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-logo-stellar i {
    color: #00ffff;
}

.footer-bottom-stellar {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,255,255,0.2);
    color: #888;
}

/* Animations */
@keyframes featherConstellation {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-5deg) scale(0.9);
        filter: blur(2px);
    }
    20% {
        opacity: 0.7;
        transform: translate(-50%, -50%) rotate(-3deg) scale(0.95);
        filter: blur(1px);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-5deg) scale(1);
        filter: blur(0px);
    }
    80% {
        opacity: 0.7;
        transform: translate(-50%, -50%) rotate(-7deg) scale(0.95);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-5deg) scale(0.9);
        filter: blur(2px);
    }
}

@keyframes featherGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0,255,255,0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(138,43,226,0.5));
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    25% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    75% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

@keyframes particleFloat {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
        transform: rotate(0deg);
    }
    100% {
        background-position: 220px 100px, -220px 100px, 220px -100px, -220px 100px, 220px 100px, -220px -100px;
        transform: rotate(360deg);
    }
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0,255,255,0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(138,43,226,0.5));
    }
}

@keyframes peacockShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu-stellar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10,10,15,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid rgba(0,255,255,0.2);
    }
    
    .nav-menu-stellar.active {
        display: flex;
    }
    
    .hamburger-stellar {
        display: flex;
    }
    
    .constellation-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .constellation-title {
        font-size: 2.5rem;
    }
    
    .nav-container-stellar {
        padding: 1rem;
    }
    
    .advanced-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content-stellar {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .constellation-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-actions-stellar {
        display: none;
    }
}
