/* Global Styles */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.xyun-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.xyun-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.xyun-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.xyun-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.xyun-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.xyun-buttons .btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Carousel */
.xyun-image {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#xyunCarousel {
    height: 100%;
    border-radius: var(--border-radius);
}

#xyunCarousel .carousel-inner {
    height: 100%;
}

#xyunCarousel .carousel-item {
    height: 100%;
}

#xyunCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#xyunCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--border-radius);
    padding: 1rem;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: left;
}

#xyunCarousel .carousel-caption h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

#xyunCarousel .carousel-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

#xyunCarousel .carousel-indicators {
    bottom: 10px;
}

#xyunCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
}

#xyunCarousel .carousel-indicators button.active {
    background-color: var(--white);
}

#xyunCarousel .carousel-control-prev,
#xyunCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 10px;
}

#xyunCarousel .carousel-control-prev {
    left: 10px;
}

#xyunCarousel .carousel-control-next {
    right: 10px;
}

/* Floating Devices Animation (kept for reference) */
.floating-devices {
    position: relative;
    height: 400px;
}

.device {
    position: absolute;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.device.phone {
    width: 120px;
    height: 240px;
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.device.tablet {
    width: 180px;
    height: 240px;
    top: 100px;
    right: 50px;
    animation-delay: 2s;
}

.device .screen {
    width: 90%;
    height: 85%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin: 5% auto;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.device .screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="30" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="4" fill="rgba(255,255,255,0.4)"/></svg>');
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-list i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Stats Cards */
.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Apps Section */
.apps-section {
    padding: 100px 0;
}

.app-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.app-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.app-icon-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.app-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.app-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-features {
    margin-bottom: 1.5rem;
}

.feature-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.app-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    margin-right: 0.75rem;
}

.stars i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: var(--bg-dark);
    color: var(--white);
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: var(--white);
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.08);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.contact-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.contact-details {
    text-align: center;
    flex: 1;
}

.contact-details h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5,
.footer h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .xyun-title {
        font-size: 2.5rem;
    }
    
    .xyun-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .xyun-image {
        height: 300px;
        margin-top: 2rem;
    }
    
    #xyunCarousel .carousel-caption {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 0.75rem;
    }
    
    #xyunCarousel .carousel-caption h5 {
        font-size: 1rem;
    }
    
    #xyunCarousel .carousel-caption p {
        font-size: 0.8rem;
    }
    
    #xyunCarousel .carousel-control-prev,
    #xyunCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
    
    .floating-devices {
        height: 300px;
    }
    
    .device.phone {
        width: 100px;
        height: 200px;
        top: 30px;
        left: 30px;
    }
    
    .device.tablet {
        width: 150px;
        height: 200px;
        top: 60px;
        right: 30px;
    }
    
    .xyun-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .xyun-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .xyun-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .app-card {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
} 