/* style.css */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--secondary);
    padding-top: 70px;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-toggler {
    border-color: var(--gray);
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(100, 116, 139, 0.25);
    border-color: var(--gray);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.5rem;
}

.navbar-brand:hover,
.navbar-brand:focus,
.navbar-brand:active,
.navbar-brand:visited {
    color: var(--primary);
}

.navbar-brand span {
    color: var(--secondary);
}

.navbar-brand:hover span,
.navbar-brand:focus span,
.navbar-brand:active span,
.navbar-brand:visited span {
    color: var(--secondary);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    display: inline-block;
    width: auto;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.9) 100%), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
}

.section {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 700;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-light {
    background-color: white;
    border-color: white;
    color: black;
}

.btn-light:hover {
    background-color: white;
    border-color: white;
    color: black;
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background-color: white;
    border-color: white;
    color: black;
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.feature-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.project-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 200px;
    object-fit: cover;
}

.team-card {
    text-align: center;
    transition: all 0.3s ease;
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary);
    padding: 3px;
}

.testimonial-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-top: 3rem;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.client-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: none;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.error-message {
    display: none;
    font-size: 0.875rem;
}

.error-message.show {
    display: block;
}

/* Learn More toggle */
.learn-more-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    margin: 0;
}

.learn-more-content.show {
    max-height: 200px;
    margin-bottom: 1rem;
}

.learn-more-btn {
    cursor: pointer;
}

.learn-more-btn .bi-arrow-right {
    transition: transform 0.3s ease;
}

.learn-more-btn.active .bi-arrow-right {
    transform: rotate(90deg);
}

.footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* About section overlay */
.about-overlay {
    max-width: 300px;
}

/* Contact section map */
.map-container {
    min-height: 250px;
}

.map-container iframe {
    height: 100%;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero .display-4 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .hero img {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }

    .section {
        padding: 3rem 0;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .row > * {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-nav .nav-item {
        width: fit-content;
    }

    .navbar-nav .nav-link {
        display: inline-block;
        width: auto;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .about-overlay {
        max-width: 180px;
        padding: 0.75rem !important;
        margin: 0.5rem !important;
    }

    .about-overlay h5 {
        font-size: 0.9rem;
    }

    .about-overlay p {
        font-size: 0.75rem;
    }

    .map-container {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .hero .display-4 {
        font-size: 1.75rem;
    }

    .hero .lead {
        font-size: 0.9rem;
    }

    .hero img {
        max-width: 100%;
    }

    .about-overlay {
        max-width: 150px;
        padding: 0.5rem !important;
    }

    .about-overlay h5 {
        font-size: 0.8rem;
    }

    .about-overlay p {
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .navbar-brand span {
        display: none;
    }
}
