/* ====================================
   AI-SOLUTIONS - ULTRA PRO
   Professional Link App Styles
   ==================================== */

/* CSS Reset & Variables */
:root {
    /* Colors - AI-SOLUTIONS Theme */
    --primary-gradient: linear-gradient(135deg, #00BCD4 0%, #00897B 100%);
    --secondary-gradient: linear-gradient(135deg, #26C6DA 0%, #00ACC1 100%);
    --dark-bg: #0a1628;
    --darker-bg: #061018;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Button Colors */
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --food-primary: #FF6B35;
    --food-secondary: #F7931E;
    --beauty-primary: #E91E8C;
    --beauty-secondary: #9C27B0;
    --health-primary: #00BCD4;
    --health-secondary: #009688;
    --ai-primary: #6C63FF;
    --ai-secondary: #3F3D56;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(0, 188, 212, 0.4);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ====================================
   ANIMATED BACKGROUND
   ==================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -50px;
    right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ====================================
   MUSIC PLAYER
   ==================================== */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(102, 126, 234, 0.6);
}

.music-btn:active { transform: scale(0.95); }

.music-btn i { z-index: 2; }

.music-waves {
    position: absolute;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 20px;
    opacity: 0;
    transition: var(--transition-normal);
}

.music-waves span {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: wave 0.8s ease-in-out infinite;
}

.music-waves span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-waves span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.music-waves span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.music-waves span:nth-child(4) { height: 16px; animation-delay: 0.3s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.2); }
}

.music-btn.playing i { display: none; }
.music-btn.playing .music-waves { opacity: 1; }

/* ====================================
   MAIN CONTAINER
   ==================================== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====================================
   HEADER
   ==================================== */
.header {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.logo-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: logo-pulse 3s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    filter: blur(30px);
    opacity: 0.5;
    z-index: 1;
    animation: glow-pulse 3s infinite ease-in-out;
}

@keyframes logo-pulse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
}

.title-line {
    display: block;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-highlight {
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-decoration {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-md);
}

.header-decoration span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.6;
}

.header-decoration span:nth-child(2) {
    width: 30px;
    border-radius: 4px;
    opacity: 1;
}

/* ====================================
   LINKS SECTION
   ==================================== */
.links-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 1;
}

/* ====================================
   LINK BUTTONS
   ==================================== */
.link-btn {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
}

.link-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-btn:active { transform: translateY(-1px); }

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.btn-content {
    flex: 1;
    margin-left: var(--spacing-sm);
    overflow: hidden;
}

.btn-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.btn-arrow {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.link-btn:hover .btn-arrow {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.6s;
}

.link-btn:hover .btn-shine { left: 100%; }

/* WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(18, 140, 126, 0.15));
    border-color: rgba(37, 211, 102, 0.3);
}
.whatsapp-btn:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.25), rgba(18, 140, 126, 0.25));
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
}
.whatsapp-btn .btn-icon {
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
    color: white;
}

/* Food Button */
.food-btn {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 147, 30, 0.15));
    border-color: rgba(255, 107, 53, 0.3);
}
.food-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(247, 147, 30, 0.25));
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}
.food-btn .btn-icon {
    background: linear-gradient(135deg, var(--food-primary), var(--food-secondary));
    color: white;
}

/* Beauty Button */
.beauty-btn {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.15), rgba(156, 39, 176, 0.15));
    border-color: rgba(233, 30, 140, 0.3);
}
.beauty-btn:hover {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.25), rgba(156, 39, 176, 0.25));
    border-color: rgba(233, 30, 140, 0.5);
    box-shadow: 0 10px 40px rgba(233, 30, 140, 0.3);
}
.beauty-btn .btn-icon {
    background: linear-gradient(135deg, var(--beauty-primary), var(--beauty-secondary));
    color: white;
}

/* Health Button */
.health-btn {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.15), rgba(0, 150, 136, 0.15));
    border-color: rgba(0, 188, 212, 0.3);
}
.health-btn:hover {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.25), rgba(0, 150, 136, 0.25));
    border-color: rgba(0, 188, 212, 0.5);
    box-shadow: 0 10px 40px rgba(0, 188, 212, 0.3);
}
.health-btn .btn-icon {
    background: linear-gradient(135deg, var(--health-primary), var(--health-secondary));
    color: white;
}

/* AI Button */
.ai-btn {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(63, 61, 86, 0.2));
    border-color: rgba(108, 99, 255, 0.4);
    position: relative;
}
.ai-btn:hover {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.35), rgba(63, 61, 86, 0.35));
    border-color: rgba(108, 99, 255, 0.7);
    box-shadow: 0 10px 50px rgba(108, 99, 255, 0.4);
}
.ai-btn .btn-icon {
    background: linear-gradient(135deg, var(--ai-primary), #8B5CF6);
    color: white;
    animation: robot-float 2s ease-in-out infinite;
}

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

.ai-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2), transparent);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}
.ai-btn:hover .ai-glow { opacity: 1; }

/* ====================================
   EXPANDABLE SECTIONS
   ==================================== */
.expandable-section { position: relative; }

.expand-icon { transition: transform var(--transition-normal); }

.expandable-trigger[aria-expanded="true"] .expand-icon { transform: rotate(180deg); }

.sub-buttons-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    padding: 0 var(--spacing-sm);
}

.expandable-section.expanded .sub-buttons-container {
    max-height: 1000px;
    padding: var(--spacing-sm);
    padding-top: var(--spacing-md);
}

/* Sub Buttons */
.sub-btn {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    transform: translateX(-10px);
    opacity: 0;
}

.expandable-section.expanded .sub-btn {
    transform: translateX(0);
    opacity: 1;
}

.expandable-section.expanded .sub-btn:nth-child(1) { transition-delay: 0.05s; }
.expandable-section.expanded .sub-btn:nth-child(2) { transition-delay: 0.1s; }
.expandable-section.expanded .sub-btn:nth-child(3) { transition-delay: 0.15s; }
.expandable-section.expanded .sub-btn:nth-child(4) { transition-delay: 0.2s; }
.expandable-section.expanded .sub-btn:nth-child(5) { transition-delay: 0.25s; }
.expandable-section.expanded .sub-btn:nth-child(6) { transition-delay: 0.3s; }
.expandable-section.expanded .sub-btn:nth-child(7) { transition-delay: 0.35s; }
.expandable-section.expanded .sub-btn:nth-child(8) { transition-delay: 0.4s; }
.expandable-section.expanded .sub-btn:nth-child(9) { transition-delay: 0.45s; }
.expandable-section.expanded .sub-btn:nth-child(10) { transition-delay: 0.5s; }

.sub-btn i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--food-primary), var(--food-secondary));
    border-radius: 8px;
    margin-right: var(--spacing-sm);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sub-btn span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.sub-btn:last-child { margin-bottom: 0; }

/* Beauty Sub Buttons */
.beauty-sub i { background: linear-gradient(135deg, var(--beauty-primary), var(--beauty-secondary)); }

/* Health Sub Buttons */
.health-sub i { background: linear-gradient(135deg, var(--health-primary), var(--health-secondary)); }

/* ====================================
   FOOTER
   ==================================== */
.footer {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: auto;
}

.footer-decoration {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.footer-decoration span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.footer-decoration span:nth-child(2) {
    width: 25px;
    border-radius: 3px;
    background: var(--primary-gradient);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: var(--spacing-md);
}

.footer-text strong {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.link-btn, .expandable-section {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.links-section > *:nth-child(1) { animation-delay: 0.1s; }
.links-section > *:nth-child(2) { animation-delay: 0.2s; }
.links-section > *:nth-child(3) { animation-delay: 0.3s; }
.links-section > *:nth-child(4) { animation-delay: 0.4s; }
.links-section > *:nth-child(5) { animation-delay: 0.5s; }

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 480px) {
    html { font-size: 15px; }
    .container { padding: var(--spacing-sm); }
    .header { padding: var(--spacing-lg) 0; }
    .logo-icon { width: 75px; height: 75px; font-size: 2rem; }
    .main-title { font-size: 1.6rem; }
    .title-highlight { font-size: 1.8rem; }
    .btn-title { font-size: 0.88rem; }
    .link-btn { padding: var(--spacing-sm); }
    .btn-icon { width: 45px; height: 45px; font-size: 1.2rem; }
}

@media (max-width: 360px) {
    html { font-size: 14px; }
    .btn-arrow { width: 30px; height: 30px; }
    .sub-btn { padding: var(--spacing-xs) var(--spacing-sm); }
    .sub-btn i { width: 30px; height: 30px; font-size: 0.8rem; }
}

@media (max-height: 600px) and (orientation: landscape) {
    .header { padding: var(--spacing-md) 0; }
    .logo-icon { width: 60px; height: 60px; font-size: 1.5rem; }
    .main-title { font-size: 1.4rem; }
    .title-highlight { font-size: 1.5rem; }
    .links-section { gap: var(--spacing-sm); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .gradient-orb, .particle { animation: none; }
}

@media (hover: none) and (pointer: coarse) {
    .link-btn:hover { transform: none; }
    .link-btn:active { transform: scale(0.98); background: rgba(255, 255, 255, 0.1); }
}

/* Header Logo */
.header-logo-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 188, 212, 0.5));
    animation: headerLogoFloat 4s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes headerLogoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-container .logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.4), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: glowPulse 3s infinite ease-in-out;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.logo-icon { display: none; }

@media (max-width: 480px) {
    .header-logo-img { width: 100px; height: 100px; }
}
@media (max-width: 375px) {
    .header-logo-img { width: 85px; height: 85px; }
}
