/* Custom styles to override Bootstrap defaults */

/* Fonts */
body {
    font-family: 'Inter', sans-serif;
}

/* Custom Navbar */
.custom-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.logo-img {
    height: 60px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #1e40af !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
}

.hero-image {
    max-height: 400px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Custom Buttons */
.btn-primary {
    background: #1e40af;
    border-color: #1e40af;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #1e40af;
    border-color: #1e40af;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    background: white;
}

.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features li {
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Technology Section */
.technology-section {
    background: #f8fafc;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: #64748b;
    line-height: 1.6;
}

.tech-image {
    max-height: 400px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    width: 100%;
}

/* About Section */
.about-section {
    background: white;
}

.expertise-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.expertise-text {
    color: #64748b;
    line-height: 1.6;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: #1e293b;
}

.contact-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.contact-text {
    color: #cbd5e1;
}

.contact-form {
    background: white;
}

.form-control, .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Footer */
.footer-section {
    background: #0f172a;
}

.footer-title, .footer-subtitle {
    color: #f1f5f9;
}

.footer-text {
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #60a5fa;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991.98px) {
    .logo-img {
        height: 50px;
    }
    
    .hero-section {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-text {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .logo-img {
        height: 45px;
    }
    
    /* Fix hero section spacing */
    .hero-section {
        padding-top: 90px;
        padding-bottom: 30px;
        min-height: auto;
    }
    
    .hero-section .row {
        min-height: auto !important;
    }
    
    .hero-section .pt-5 {
        padding-top: 1rem !important;
    }
    
    .hero-title {
        font-size: 1.9rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: none;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .section-text {
        font-size: 0.95rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
    
    .expertise-title {
        font-size: 1.1rem;
    }
    
    .expertise-text {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Center and size images properly on mobile */
    .hero-image, .tech-image {
        max-height: 250px;
        width: 100%;
        object-fit: cover;
        display: block;
        margin: 1rem auto 0 auto;
    }
    
    /* Remove extra margins on mobile */
    .mt-4.mt-lg-0 {
        margin-top: 1rem !important;
    }
    
    /* Ensure proper spacing between sections */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    /* Further reduce spacing on very small screens */
    .hero-section {
        padding-top: 100px;
        padding-bottom: 20px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.8rem;
        line-height: 1.15;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: none;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* Mobile image sizing */
    .hero-image, .tech-image {
        max-height: 200px;
        margin-top: 0.5rem;
    }
    
    /* Tighter spacing on small screens */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Remove excessive padding from container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Fix Bootstrap's min-vh-100 on mobile */
@media (max-width: 767.98px) {
    .min-vh-100 {
        min-height: auto !important;
    }
}

/* Additional mobile portrait mode fixes */
@media screen and (max-width: 767.98px) and (orientation: portrait) {
    .hero-section {
        padding-top: 110px !important;
    }
    
    /* Safe area support for newer phones */
    .hero-section {
        padding-top: max(110px, env(safe-area-inset-top) + 80px) !important;
    }
}

@media screen and (max-width: 575.98px) and (orientation: portrait) {
    .hero-section {
        padding-top: 120px !important;
    }
    
    /* Safe area support for newer phones */
    .hero-section {
        padding-top: max(120px, env(safe-area-inset-top) + 90px) !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}