/* =============================================
   PROFESSIONAL UI - BUDDY AI ASSISTANT
   ============================================= */

:root {
    --primary-blue: #00AAFF;
    --primary-purple: #B803F0;
    --primary-green: #00FF88;
    --dark-bg: #000000;
    --dark-card: #0d0d0d;
    --dark-border: #1a1a1a;
    --gradient-1: linear-gradient(135deg, #00AAFF, #B803F0);
    --gradient-2: linear-gradient(45deg, #00AAFF, #00FF88);
}

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

html {
    scroll-behavior: smooth;
}

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

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    box-shadow: 0 2px 10px rgba(0, 170, 255, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-emoji {
    font-size: 1.8rem;
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.brand-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    min-height: 100vh;
    padding: 100px 0 50px;
    position: relative;
    background: radial-gradient(circle at top right, rgba(0, 170, 255, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(184, 3, 240, 0.1), transparent 50%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.stats-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    justify-content: flex-start;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
   SVG ANIMATION
   ============================================= */
.svg-frame-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-frame {
    position: relative;
    width: 450px;
    height: 450px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

svg {
    position: absolute;
    width: 450px;
    height: 450px;
    fill: none;
    animation: rotate 30s linear infinite;
    filter: drop-shadow(0 0 15px rgba(0, 170, 255, 0.6));
}

svg[style*="--i:1"] {
    animation-duration: 20s;
    animation-direction: reverse;
}

#big-centro,
#bottom-dots,
#top-dots,
#squares {
    transform-origin: center;
}

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

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary-custom,
.btn-download {
    background: var(--gradient-1);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.4);
}

.btn-primary-custom:hover,
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.6);
    color: white;
}

.btn-outline-custom,
.btn-github {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover,
.btn-github:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* =============================================
   DEMO SECTION
   ============================================= */
.demo-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.demo-animation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

#canvasOne {
    position: absolute;
    z-index: 0;
}

.oval-container {
    position: relative;
    z-index: 1;
}

.square {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.square::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.9) 0%, rgba(184, 3, 240, 0.5) 100%);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0, 170, 255, 1), inset 0 0 30px rgba(184, 3, 240, 0.8);
    z-index: 10;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
        box-shadow: 0 0 40px rgba(0, 170, 255, 1), inset 0 0 30px rgba(184, 3, 240, 0.8);
    }
    50% { 
        transform: scale(1.15); 
        opacity: 0.8;
        box-shadow: 0 0 60px rgba(0, 170, 255, 1), inset 0 0 40px rgba(184, 3, 240, 1);
    }
}

.square span {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 38% 62% 63% 37% / 41% 44%;
    transition: 0.5s;
}

.square span:nth-child(1) {
    background-image: radial-gradient(transparent 50%, rgba(0, 170, 255, 0.2) 40%);
    box-shadow: 0 0 50px var(--primary-blue), inset 0 0 50px var(--primary-blue);
    animation: rotate-oval 6s linear infinite;
}

.square span:nth-child(2) {
    background-image: radial-gradient(transparent 50%, rgba(0, 255, 136, 0.2) 40%);
    box-shadow: 0 0 50px var(--primary-green), inset 0 0 50px var(--primary-green);
    animation: rotate-oval 4s linear infinite;
}

.square span:nth-child(3) {
    background-image: radial-gradient(transparent 50%, rgba(184, 3, 240, 0.3) 40%);
    box-shadow: 0 0 50px var(--primary-purple), inset 0 0 50px var(--primary-purple);
    animation: rotate-oval 8s linear infinite;
}

@keyframes rotate-oval {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   SIRIWAVE
   ============================================= */
.siriwave-box {
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
}

#siri-container {
    height: 200px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.pulse-icon {
    color: var(--primary-blue);
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =============================================
   SECTIONS
   ============================================= */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   SCREENSHOTS SECTION
   ============================================= */
.screenshots-section {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(0, 170, 255, 0.05), transparent 70%);
}

#screenshotsCarousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 170, 255, 0.2);
    border: 1px solid var(--dark-border);
    background: var(--dark-card);
}

.carousel-inner {
    border-radius: 20px;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item img {
    border-radius: 20px;
    object-fit: contain;
    background: #000;
    max-height: 600px;
    width: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem 2rem;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    right: auto;
}

.carousel-caption h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 170, 255, 0.3);
    border-radius: 50%;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary-blue);
    transform: scale(1.1);
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background-color: rgba(0, 170, 255, 0.5);
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
    padding: 100px 0;
    background: #000000;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.3);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.spotify-icon {
    background: linear-gradient(135deg, #1DB954, #1ed760);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* =============================================
   DOWNLOAD SECTION
   ============================================= */
.download-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.download-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    overflow: hidden;
}

.download-header {
    background: var(--gradient-1);
    padding: 2rem;
    text-align: center;
}

.download-header h3 {
    margin: 0;
    font-size: 2rem;
}

.download-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

.download-body {
    padding: 2.5rem;
}

.code-block {
    background: #0a0a0a;
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    font-family: 'Courier New', monospace;
    margin-bottom: 2rem;
}

.code-block code {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.copy-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.setup-steps {
    background: #0a0a0a;
    border: 1px solid var(--dark-border);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.setup-steps h4 {
    margin-bottom: 1rem;
}

.setup-steps ol {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 1.5rem;
}

.setup-steps li {
    padding: 0.5rem 0;
    line-height: 1.6;
}

.setup-steps code {
    background: rgba(0, 170, 255, 0.1);
    padding: 3px 8px;
    border-radius: 5px;
    color: var(--primary-blue);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--dark-border);
    background: #000000;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 10px;
    border-radius: 50%;
    background: var(--dark-card);
    border: 2px solid var(--dark-border);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.3);
}

.social-icon:nth-child(1):hover {
    border-color: #fff;
    background: #333;
}

.social-icon:nth-child(2):hover {
    border-color: #0077B5;
    background: linear-gradient(135deg, #0077B5, #00A0DC);
}

.social-icon:nth-child(3):hover {
    border-color: #E4405F;
    background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
}

.social-icon:nth-child(4):hover {
    border-color: var(--primary-blue);
    background: var(--gradient-1);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .svg-frame,
    svg {
        width: 350px;
        height: 350px;
    }
    
    .stats-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .square {
        width: 300px;
        height: 300px;
    }
    
    #canvasOne {
        width: 400px;
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
    }
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #B803F0, #00AAFF);
}