:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --dark-color: #111827;
    --light-color: #f3f4f6;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #ffffff;
}

/* Navigation */
#mainNav {
    background: var(--dark-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    transition: var(--transition);
}

#mainNav .navbar-brand img {
    height: 40px;
    transition: var(--transition);
}

#mainNav .navbar-brand:hover img {
    transform: scale(1.05);
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: var(--transition);
    position: relative;
}

#mainNav .nav-link:hover {
    color: white;
}

#mainNav .nav-link.active {
    color: white;
}

#mainNav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: white;
}

.nav-cta {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem !important;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu */
.dropdown-menu {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0;
}

.navbar-dark .navbar-nav .dropdown-menu {
    background: rgba(17, 24, 39, 0.98);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.8;
}

/* Feature Section */
.feature-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Contact Form */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #9ca3af;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-brand p {
    color: #9ca3af;
}

.footer-brand img {
    /* Remove filter to show original logo colors */
    max-height: 40px;
    width: auto;
}

.footer-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem;
}

.copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    margin: 0;
}

.footer-bottom-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #9ca3af;
}

/* Page Header */
.page-header {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
}

.page-header h2 {
    font-weight: 400;
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats Section */
.stats-box {
    text-align: center;
    padding: 2rem;
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.125rem;
    color: var(--text-color);
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.team-info .position {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    gap: 0.5rem;
}

.team-social a {
    width: 32px;
    height: 32px;
    background: var(--light-color);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 100px 0 30px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Quote Form Mobile */
    .quote-form-body {
        padding: 2rem 1.5rem;
    }
    
    .quote-form-header {
        padding: 2rem 1.5rem;
    }
    
    .quote-form-header h1 {
        font-size: 2rem;
    }
    
    .quote-form-header h2 {
        font-size: 1.25rem;
    }
    
    .quote-form-header p {
        font-size: 0.95rem;
    }
    
    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .form-section-title {
        margin-bottom: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 1.25rem;
    }
    
    .form-section-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modern-checkbox-group {
        padding: 1rem;
    }
    
    .modern-checkbox {
        padding: 0.625rem 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .submit-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .btn-submit-quote {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 75px 0 25px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
    
    .quote-form-body {
        padding: 1.5rem 1rem;
    }
    
    .quote-form-header {
        padding: 1.75rem 1rem;
    }
    
    .quote-form-header h1 {
        font-size: 1.75rem;
    }
    
    .quote-form-header h2 {
        font-size: 1.125rem;
    }
    
    .quote-form-header p {
        font-size: 0.9rem;
    }
    
    .modern-checkbox-group {
        padding: 0.75rem;
    }
    
    .modern-checkbox {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .modern-checkbox .form-check-input {
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* Service Detail Sections */
.service-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-detail .service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
}

.service-detail h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-detail ul {
    margin-top: 1.5rem;
}

.service-detail ul li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

#mobile-development .service-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

#system-integration .service-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

#consulting .service-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

#api-development .service-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

/* Quote Form Specific */
.quote-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Contact Form Card */
.contact-form .quote-card {
    overflow: visible;
    padding: 2rem;
}

.contact-form .quote-card h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.quote-form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 2.5rem;
    text-align: center;
    color: white;
}

.quote-form-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.quote-form-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    opacity: 0.95;
}

.quote-form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.quote-form-body {
    padding: 3rem;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.form-section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.form-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
}

.modern-select {
    position: relative;
}

.modern-select .form-select {
    background-color: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.modern-select .form-select:focus {
    background-color: white;
    border-color: var(--primary-color);
}

.modern-checkbox-group {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.modern-checkbox {
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modern-checkbox:last-child {
    margin-bottom: 0;
}

.modern-checkbox:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.modern-checkbox .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.modern-checkbox .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-floating .form-control,
.form-floating .form-select {
    background-color: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus,
.form-floating .form-select:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 0;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: var(--light-color);
    z-index: 1;
}

.progress-step:last-child::before {
    display: none;
}

.progress-step.active::before {
    background: var(--primary-color);
}

.progress-number {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: var(--text-color);
}

.progress-step.active .progress-number {
    background: var(--primary-color);
    color: white;
}

.progress-step.completed .progress-number {
    background: var(--secondary-color);
    color: white;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Mobile Progress Indicator */
@media (max-width: 768px) {
    .progress-indicator {
        padding: 0;
        margin-bottom: 2rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .progress-step {
        min-width: 70px;
        padding: 0 0.25rem;
    }
    
    .progress-step::before {
        top: 15px;
    }
    
    .progress-number {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .progress-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

@media (max-width: 576px) {
    .progress-indicator {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0;
    }
    
    .progress-step::before {
        display: none;
    }
    
    .progress-step {
        min-width: unset;
        padding: 0.5rem;
    }
    
    .progress-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .progress-label {
        font-size: 0.75rem;
    }
}

.submit-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.btn-submit-quote {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-submit-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-floating label {
    color: var(--text-color);
}

/* Loading Animation */
.spinner {
    border: 3px solid var(--light-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-weight: 600;
}

.btn-white:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive Fixes - Prevent Horizontal Scroll */
@media (max-width: 991px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #mainNav {
        padding: 8px 0 !important;
    }
    
    #mainNav .container {
        max-width: 100% !important;
    }
    
    #mainNav .navbar-brand img {
        height: 35px !important;
    }
    
    #mainNav .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1.125rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    #mainNav .navbar-collapse {
        background: rgba(17, 24, 39, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    #mainNav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 0.375rem;
    }
    
    #mainNav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    #mainNav .nav-cta {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    
    /* Ensure all sections don't overflow */
    section, .hero, .page-header {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Fix any elements that might cause overflow */
    img, video, iframe {
        max-width: 100% !important;
        height: auto;
    }
    
    /* Fix cards and grid items */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .col, [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 576px) {
    #mainNav .navbar-brand img {
        height: 30px !important;
    }
    
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}