:root {
    --primary-blue: #0056b3;
    --secondary-blue: #0069d9;
    --accent-gold: #ffc107;
    --dark-steel: #2c3e50;
#    --light-steel: #ecf0f1;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, #003d7a 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-steel) 0%, #1a252f 100%);
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 12px 36px rgba(0, 0, 0, 0.15);
}

/* ========== BASE STYLES ========== */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    padding-top: 76px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--dark-steel);
}

h1 {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-medium);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(5deg);
}

.nav-link {
    font-weight: 600;
    padding: 8px 20px !important;
    margin: 0 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-light) !important;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after {
    width: 80%;
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 86, 179, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-section .motto {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-gold);
    border-radius: 4px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.hero-image {
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* ========== BUTTONS ========== */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:after,
.btn:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.4);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ========== CARDS ========== */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
    box-shadow: var(--shadow-light);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 20px;
    border: none;
}

.card-body {
    padding: 30px;
}

.card-title {
    color: var(--light-steel);
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.card-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
}

/* Service Cards */
.service-card {
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-top-color: var(--accent-gold);
}

.service-card .card-body ul {
    list-style: none;
    padding-left: 0;
}

.service-card .card-body li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-card .card-body li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

/* ========== SECTIONS ========== */
section {
    padding: 80px 0;
    position: relative;
}

.bg-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

section h2 {
    text-align: center;
}

/* About Section */
.about-section {
    background: white;
}

.quality-badge {
    display: inline-block;
    background: var(--success-green);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 5px;
}

/* Clients Section */
.clients-section {
    background: var(--gradient-dark);
    color: var(--text-light);
}

.clients-section h2 {
    color: var(--text-light);
}

.clients-section h2:after {
    background: var(--accent-gold);
}

.client-logo {
    background: white;
    padding: 25px 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    font-weight: 700;
    color: var(--dark-steel);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

/* Projects Section */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card .project-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 86, 179, 0.95);
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.project-card:hover .project-overlay {
    bottom: 0;
}

/* Contact Section */
.contact-section {
    background: var(--gradient-dark);
    color: var(--text-light);
}

.contact-section h2 {
    color: var(--text-light);
}

.contact-section h2:after {
    background: var(--accent-gold);
}

.contact-info i {
    color: var(--accent-gold);
    margin-right: 10px;
    width: 20px;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

/* ========== CHATBOT THEME ========== */
.chatbot-container {
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-heavy);
}

.chatbot-header {
    background: var(--gradient-primary);
    color: white;
}

.chatbot-toggle {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* ========== MODAL ========== */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px 10px 0 0;
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark-steel);
    color: var(--text-light);
    padding: 40px 0;
    margin-top: 80px;
}

footer a {
    color: var(--accent-gold);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-image {
        margin-top: 30px;
        transform: none;
    }
    
    .hero-image:hover {
        transform: none;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .chatbot-container {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 70px;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    padding: 5px 10px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-primary {
    background: var(--primary-blue);
    color: white;
}

.badge-accent {
    background: var(--accent-gold);
    color: var(--dark-steel);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-medium) !important;
}

/* ========== CONTACT SECTION FIXES ========== */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.text-accent-gold {
    color: #ffc107 !important;
}

/* Contact card styling */
.bg-dark.text-light .card-body {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border-radius: 10px;
}

/* Social buttons */
.btn-social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffc107;
    color: #ffc107;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: #ffc107;
    color: #2c3e50;
    transform: translateY(-3px);
}

/* Service buttons in contact section */
.btn-service {
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #0056b3;
}

.btn-service:hover {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

.btn-service i {
    color: #0056b3;
    transition: color 0.3s ease;
}

.btn-service:hover i {
    color: white;
}

/* Form improvements */
.form-control, .form-select {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

.form-control-lg {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

/* Better spacing for contact info items */
.contact-info .d-flex {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info .d-flex:last-child {
    border-bottom: none;
}

/* Make sure text has enough contrast */
.bg-dark .text-light h6,
.bg-dark .text-light p {
    opacity: 0.9;
}

.bg-dark .text-light h6 {
    opacity: 1;
    font-weight: 600;
}

/* Quick service links card */
.bg-primary .card-body {
    background: linear-gradient(135deg, #0056b3 0%, #003d7a 100%);
    border-radius: 10px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .btn-service {
        padding: 20px 10px;
    }
    
    .btn-service i {
        font-size: 1.5rem;
    }
}

/* Make all contact section text readable */
#contact .card.bg-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
}

#contact .card.bg-dark h4,
#contact .card.bg-dark h5,
#contact .card.bg-dark h6 {
    color: #ffc107;
}

#contact .card.bg-dark p {
    color: rgba(255, 255, 255, 0.9);
}

#contact .card:not(.bg-dark) {
    background: white;
}

#contact .card:not(.bg-dark) h4,
#contact .card:not(.bg-dark) h5,
#contact .card:not(.bg-dark) h6 {
    color: #0056b3;
}