/* 
    KADOSYS - Custom Styles
    Premium Tech/AI Look
*/

:root {
    --bg-dark: #0F172A;
    --bg-dark-2: #111827;
    --bg-footer: #080C14;
    --primary: #3B82F6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #8B5CF6;
    --white: #FFFFFF;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--white);
    overflow-x: hidden;
    cursor: default;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.bg-dark-main { background-color: var(--bg-dark); }
.bg-dark-2 { background-color: var(--bg-dark-2); }
.bg-dark-footer { background-color: var(--bg-footer); }

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

.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-primary-light { color: #60A5FA; }
.text-purple { color: #A78BFA; }
.text-blue { color: #60A5FA; }
.text-yellow { color: #FBBF24; }
.text-green { color: #34D399; }

.fw-extrabold { font-weight: 800; }
.tracking-widest { letter-spacing: 0.2em; }
.py-100 { padding-top: 100px; padding-bottom: 100px; }
.max-w-600 { max-width: 600px; }

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Particles & Cursor */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

/* Header */
.header-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-link {
    color: var(--gray-400) !important;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
}

/* Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    color: white;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 80px;
}

.hero-image-wrapper {
    position: relative;
}

.shadow-glow {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
}

.floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 100px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.badge-1 { top: 10%; left: -5%; animation-delay: 0s; }
.badge-2 { bottom: 15%; right: -5%; animation-delay: 1.5s; }

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

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    top: 20px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -20px; }
.timeline-item:nth-child(even) .timeline-dot { left: -20px; }

@media (max-width: 768px) {
    .timeline::before { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 10px; }
}

/* Feature Cards */
.feature-card {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 24px;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

/* Tech Badges */
.tech-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-400);
    transition: var(--transition);
}

.tech-badge:hover {
    color: var(--white);
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.05);
}

/* Forms */
.custom-form-floating .form-control, .custom-form-floating .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--white);
    border-radius: 12px;
}

.custom-form-floating .form-control:focus, .custom-form-floating .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.custom-form-floating label { color: var(--gray-500); }
.custom-form-floating .form-control:focus ~ label { color: var(--primary); }

.border-gradient {
    position: relative;
    z-index: 1;
}

.border-gradient::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 24px;
    z-index: -1;
    opacity: 0.3;
}

/* Accordion */
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: transparent;
}

.custom-accordion .accordion-button::after {
    filter: invert(1);
}

/* Footer & Social */
.social-icon {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-contact li { margin-bottom: 15px; color: var(--gray-400); }

/* Floating Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}
