/* Professional UI Styles */
:root {
    --primary-color: #6b7280;
    --secondary-color: #374151;
    --accent-color: #9ca3af;
    --dark-bg: #111827;
    --darker-bg: #0f172a;
    --medium-bg: #1f2937;
    --light-bg: #f9fafb;
    --text-dark: #1f2937;
    --text-light: #f9fafb;
    --text-muted: #6b7280;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navbar Logo */
.navbar-logo {
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Logo Intro Animation */
.logo-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 25%, var(--medium-bg) 50%, var(--dark-bg) 75%, var(--darker-bg) 100%);
    background-size: 400% 400%;
    animation: backgroundShift 8s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

@keyframes backgroundShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo-container {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 114, 128, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.intro-logo {
    width: 350px;
    height: auto;
    animation: logoFloat 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite, logoPulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6)) brightness(1.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-logo:hover {
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.8)) brightness(1.2) saturate(1.1);
    transform: scale(1.05) rotate(1deg);
}

.tagline {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    animation: fadeInUp 1.5s ease-out 0.8s both, textGlow 3s ease-in-out infinite;
    margin-top: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    font-family: 'Arial Black', Arial, sans-serif;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) rotate(3deg) scale(1.05);
    }
    50% {
        transform: translateY(-30px) rotate(0deg) scale(1.1);
    }
    75% {
        transform: translateY(-20px) rotate(-3deg) scale(1.05);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6)) brightness(1.1) saturate(1.1);
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.8)) brightness(1.2) saturate(1.2);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }
    50% {
        text-shadow: 0 0 25px rgba(212, 175, 55, 0.7), 0 0 35px rgba(184, 134, 11, 0.5);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-bg) 50%, var(--darker-bg) 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-custom {
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-custom:hover::before {
    left: 100%;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-custom {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary-color);
}

/* Module Sections */
.module-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.module-section.bg-dark-custom {
    background: var(--dark-bg);
    color: var(--text-light);
}

.module-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.module-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.module-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.module-card .card-icon {
    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;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.module-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.module-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-custom-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-custom-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    padding: 0;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Back Button */
.back-btn {
    background: var(--dark-bg);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: var(--primary-color);
    transform: translateX(-2px);
}

.back-btn i {
    font-size: 0.9rem;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-dark);
}

.content-section p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.content-section ul {
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Demo Containers */
.demo-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.demo-container h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 2rem;
}

.sidebar h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.sidebar .btn {
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Footer */
footer {
    background: var(--dark-bg) !important;
    color: var(--text-light) !important;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

footer img {
    filter: brightness(0) invert(1);
}

footer p {
    margin: 1rem 0;
    opacity: 0.8;
}

footer a {
    color: var(--primary-color) !important;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.1);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus States for Accessibility */
.btn-custom:focus,
.module-card:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .back-btn,
    footer {
        display: none !important;
    }

    .module-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-intro {
        padding: 1rem;
    }

    .logo-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .intro-logo {
        width: 280px;
        max-width: 90vw;
    }

    .tagline {
        font-size: 1.1rem;
        margin-top: 1rem;
        letter-spacing: 2px;
    }
    
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .module-section {
        padding: 40px 0;
    }
    
    .module-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .module-card {
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .sidebar {
        position: static;
        margin: 1rem;
    }
    
    .navbar-logo {
        height: 30px !important;
    }
    
    .back-btn {
        margin-right: 0.5rem;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .demo-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .btn-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .module-card {
        padding: 1rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .demo-container {
        padding: 1rem;
    }
}