:root {
    /* Color Palette from color.txt */
    --primary-color: #27374D;
    --primary-dark: #1e2937;
    --primary-light: #374151;
    --secondary-color: #526D82;
    --secondary-dark: #455a6d;
    --secondary-light: #67849b;
    --accent-color: #9DB2BF;
    --accent-dark: #8aa5b3;
    --accent-light: #b4c7d2;
    
    /* Extended Neutral Colors based on the palette */
    --neutral-50: #f8fafb;
    --neutral-100: #f1f5f7;
    --neutral-200: #DDE6ED;
    --neutral-300: #c8d5de;
    --neutral-400: #9DB2BF;
    --neutral-500: #82a0b0;
    --neutral-600: #526D82;
    --neutral-700: #455a6d;
    --neutral-800: #374151;
    --neutral-900: #27374D;
    
    /* Semantic Colors adapted to palette */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #526D82;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #DDE6ED;
    --bg-tertiary: #f1f5f7;
    --bg-accent: #27374D;
    
    /* Text Colors */
    --text-primary: #27374D;
    --text-secondary: #526D82;
    --text-muted: #9DB2BF;
    --text-light: #b4c7d2;
    --text-white: #ffffff;
    
    /* Modern Gradients using the palette */
    --gradient-primary: linear-gradient(135deg, #27374D 0%, #526D82 100%);
    --gradient-secondary: linear-gradient(135deg, #526D82 0%, #9DB2BF 100%);
    --gradient-accent: linear-gradient(135deg, #9DB2BF 0%, #DDE6ED 100%);
    --gradient-hero: linear-gradient(135deg, rgba(39, 55, 77, 0.9) 0%, rgba(82, 109, 130, 0.85) 100%);
    
    /* Enhanced Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(39, 55, 77, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(39, 55, 77, 0.1), 0 1px 2px 0 rgba(39, 55, 77, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(39, 55, 77, 0.1), 0 2px 4px -1px rgba(39, 55, 77, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(39, 55, 77, 0.1), 0 4px 6px -2px rgba(39, 55, 77, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(39, 55, 77, 0.1), 0 10px 10px -5px rgba(39, 55, 77, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(39, 55, 77, 0.25);
    --shadow-colored: 0 10px 25px -3px rgba(39, 55, 77, 0.2);
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-base: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    background-color: var(--bg-primary);
}

/* Page transition */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Elegant Interactive Styles - User Friendly */

/* Subtle Card Animations */
.card-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-base);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: var(--bg-primary);
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.03), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-modern:hover::before {
    left: 100%;
}

/* Button Elegant Animations */
.btn, button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
}

.btn::before, button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.btn:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn:hover::before, button:hover::before {
    width: 120%;
    height: 120%;
}

.btn *, button * {
    position: relative;
    z-index: 1;
}

/* Form Elements Subtle Focus */
.form-control {
    transition: all 0.3s ease;
    border: 2px solid var(--neutral-200);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(39, 55, 77, 0.1);
    transform: scale(1.01);
    background: var(--bg-secondary);
}

/* Contact section form elements - no scaling animation */
#contact .form-control:focus {
    transform: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(39, 55, 77, 0.15);
}

/* Team Card Elegant Hover */
.team-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: var(--shadow-base);
}

.team-card:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-img {
    transition: all 0.4s ease;
    filter: grayscale(10%) brightness(0.95);
}

.team-card:hover .team-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
}

/* Social Links Smooth Animation */
.social-links a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(1) rotate(0deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    transform: scale(1.15) rotate(5deg);
    color: var(--primary-color);
    background: rgba(39, 55, 77, 0.1);
    border-radius: var(--radius-full);
}

/* Navbar Smooth Transition */
.navbar {
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* WhatsApp Button Gentle Pulse */
.whatsapp-float {
    animation: gentle-float 4s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
}

/* Smooth Navigation Links */
.nav-link, a[href^="#"] {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after, a[href^="#"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, a[href^="#"]:hover::after {
    width: 100%;
}

/* Hero Dots Elegant Animation */
.hero-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.hero-dot:hover, .hero-dot.active {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Smooth Page Load Animation */
.section {
    animation: fade-in-up 0.8s ease forwards;
}

.section:nth-child(even) {
    animation-delay: 0.1s;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact section loads immediately */
#contact {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#contact .card-modern,
#contact .contact-form,
#contact .section-title,
#contact .section-subtitle {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0s !important;
}
a, button, .btn, .card, .nav-link, .hero-dot {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

a:hover, button:hover, .btn:hover {
    transform: translateY(-2px);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
}

.nav-link:hover {
    transform: translateY(-1px);
    color: var(--primary-color) !important;
}

/* Floating animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.card-icon {
    animation: float 3s ease-in-out infinite;
}

.hero-dot {
    animation: pulse 2s ease-in-out infinite;
}

.hero-dot:hover {
    animation: none;
    transform: scale(1.3);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-weight: 700;
}

/* Tech elements with monospace font */
.hero-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 900;
}

code, .code-text, .badge {
    font-family: 'Roboto Mono', monospace;
}

.section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
}

/* Navigation */
.navbar {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(221, 230, 237, 0.95) !important;
    border-bottom: 1px solid var(--neutral-200);
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1050;
}

.navbar-brand {
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section with Slider */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-slide.slide1 {
    background-image: url('hero.jpg');
}

.hero-slide.slide2 {
    background-image: url('hc.jpg');
}

.hero-slide.slide3 {
    background-image: url('nlp.jpg');
}

.hero-slide.slide4 {
    background-image: url('vis.jpg');
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-hero {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-colored);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero Navigation Dots */
.hero-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Hero Section Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-nav {
        bottom: 20px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.8;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-sm);
}

.section-title::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-sm);
}

/* Cards */
.card-modern {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-base);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    background: var(--bg-primary);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-colored);
    border: 1px solid var(--accent-color);
    background: rgba(255, 255, 255, 1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-modern img {
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.card-modern:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* Statistics */
.stats-section {
    background: var(--gradient-primary);
    color: white;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Team Cards */
.team-card {
    text-align: center;
    padding: 2rem;
}

.team-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.team-card:hover .team-img {
    box-shadow: var(--shadow-medium);
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
    color: var(--medium-gray);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* Consultancy Services */
.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

#consultancy .row {
    margin-bottom: 2rem;
}

/* Publications */
.publication-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.publication-item:hover {
    box-shadow: var(--shadow-medium);
}

/* Research Output Section */
#research-output {
    position: relative;
    z-index: 1;
}

#research-output .row {
    margin-bottom: 2rem;
}

/* Contact Section */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.form-control {
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex-shrink: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-content {
    flex: 1;
    margin-left: 1rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float:focus {
    outline: none;
    color: white;
}

.whatsapp-float .fab {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover .fab {
    transform: scale(1.1);
}

/* WhatsApp pulse animation */
@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* Responsive WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

/* Company Info Icons */
.company-info-icon {
    width: 60px;
    height: 60px;
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-links a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-divider {
    border-color: var(--neutral-700);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease;
}

/* Bootstrap Component Updates */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--text-white);
    background-color: var(--primary-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--text-white);
    background-color: var(--secondary-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--text-white);
    transform: translateY(-1px);
}

/* Small Button Styles for Publications and Research */
.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-outline-primary.btn-sm {
    border: 2px solid var(--primary-color);
    color: var(--text-white);
    background-color: var(--primary-color);
}

.btn-outline-secondary.btn-sm {
    border: 2px solid var(--secondary-color);
    color: var(--text-white);
    background-color: var(--secondary-color);
}

.badge {
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.75rem;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-2xl);
    background: var(--gradient-primary);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--primary-color);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-content {
    margin-left: 1rem;
}

.contact-form {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: #25d366;
    color: white;
    border-radius: var(--radius-full);
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
}

.stats-section {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.team-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.publication-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-base);
    transition: all 0.3s ease;
    height: 100%;
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Ensure button visibility in publication items */
.publication-item .btn {
    color: var(--text-white);
    text-decoration: none;
}

.publication-item .btn-outline-primary {
    color: var(--text-white) !important;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.publication-item .btn-outline-secondary {
    color: var(--text-white) !important;
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}

/* GitHub and external link buttons */
.btn[href*="github"] {
    color: var(--text-white) !important;
    border-color: var(--neutral-600);
    background-color: var(--neutral-600);
}

.btn[href*="github"]:hover {
    background-color: var(--neutral-700);
    color: var(--text-white) !important;
}

/* General button text visibility */
.btn-outline-primary,
.btn-outline-secondary,
.btn-sm {
    font-weight: 600;
    text-decoration: none;
    color: var(--text-white);
}

/* Override any Bootstrap text color issues */
.btn-outline-primary:not(:hover) {
    color: var(--text-white) !important;
}

.btn-outline-secondary:not(:hover) {
    color: var(--text-white) !important;
}

.service-card {
    background: var(--bg-primary);
    padding: 3rem 2rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-base);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .card-icon {
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
}

/* Modern Color Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

/* Card Title Colors */
.card-title {
    color: var(--text-primary);
    font-weight: 600;
}

.card-text {
    color: var(--text-secondary);
}

/* List Styling */
.list-unstyled li {
    color: var(--text-secondary);
}

/* Enhanced Social Links */
.social-links a {
    width: 40px;
    height: 40px;
    background: var(--neutral-100);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* Modern Gradient Backgrounds for Special Sections */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(39, 55, 77, 0.05) 0%, 
        rgba(82, 109, 130, 0.05) 25%, 
        rgba(157, 178, 191, 0.05) 50%, 
        rgba(221, 230, 237, 0.05) 75%, 
        rgba(255, 255, 255, 0.05) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .hero-nav {
        display: none !important;
    }
    
    .section {
        padding: 2rem 0 !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
}
