/* Custom Styles for NLP4KGC Website */

:root {
    --nlp-primary: #0d6efd;
    --nlp-dark: #212529;
    --nlp-light: #f8f9fa;
    --nlp-gray: #6c757d;
}

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    color: var(--nlp-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.5) 0%, rgba(74, 45, 140, 0.5) 100%), url('../images/nlp-header.gif') center/cover;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    color: rgba(255,255,255,0.95);
    position: relative;
    z-index: 1;
}

.hero-details {
    background: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

/* Navigation */
.modern-navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    animation: float 3s ease-in-out infinite;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.6));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-icon:hover {
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.9));
}

.brand-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.nav-link-modern {
    position: relative;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: white !important;
    background: rgba(102, 126, 234, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-modern.active::after,
.nav-link-modern:hover::after {
    width: 80%;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--nlp-primary), var(--nlp-light));
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -42px;
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--nlp-primary);
    z-index: 1;
}

.timeline-item.timeline-item {
    padding-left: 30px;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5568d3 0%, #6a3a8f 100%);
}

/* Section Styling */
section {
    scroll-margin-top: 80px;
}

/* Avatar Placeholder */
.avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: inline-block;
}

/* List Group */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    background-color: transparent;
    padding: 12px 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background-color: var(--nlp-dark) !important;
    border-top: 3px solid var(--nlp-primary);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--nlp-primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section h2 {
        font-size: 1.3rem;
    }

    .timeline::before {
        left: -20px;
    }

    .timeline-marker {
        left: -32px;
    }

    .timeline {
        padding-left: 20px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Utility Classes */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.text-light-muted {
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Modern Event Cards */
.event-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.event-card h5 {
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.event-card p {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Info Cards */
.info-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.info-card h5 {
    font-size: 0.95rem;
    color: #212529;
}

.info-card p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* Timeline Cards */
.timeline-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--nlp-primary);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.timeline-badge {
    position: absolute;
    top: -12px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.timeline-card h5 {
    margin-top: 0.5rem;
    color: #212529;
}

.timeline-card .h4 {
    color: inherit;
}

/* CTA Buttons */
.cta-button {
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Feature Card */
.feature-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

/* Hover Links */
.hover-link {
    transition: color 0.3s ease;
}

.hover-link:hover {
    color: var(--nlp-primary) !important;
}

/* Display Classes */
.display-5 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Better Badges */
.badge:not(.bg-light):not(.bg-dark) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}



/* Alert Customization */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

/* Badge Customization */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* Table Styling */
.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--nlp-light);
    border-bottom: 2px solid var(--nlp-primary);
}

.table-hover tbody tr:hover {
    background-color: var(--nlp-light);
    color: inherit;
}

/* Code Block Styling */
code {
    background-color: var(--nlp-light);
    padding: 2px 6px;
    border-radius: 4px;
    color: #d63384;
    font-size: 0.9em;
}

pre {
    background-color: var(--nlp-dark);
    color: white;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

pre code {
    background-color: transparent;
    color: white;
    padding: 0;
}

/* Print Styles */
@media print {
    .navbar,
    footer {
        display: none;
    }

    body {
        background-color: white;
    }

    .container {
        max-width: 100%;
    }
}
