/* Base styles for the AppInterGroup website */

body {
    font-family: 'Sarabun', sans-serif;
    background-color: #F8F9FA;
    color: #333333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Prompt', sans-serif;
    color: #007BFF;
}

/* Navbar adjustments */
.navbar-brand img {
    height: 40px;
}
.navbar-light .navbar-nav .nav-link.active {
    font-weight: 600;
}

/* Gradient buttons with hover effect */
.btn-primary {
    background: linear-gradient(45deg, #007BFF, #17A2B8);
    border: none;
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #17A2B8, #007BFF);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(45deg, #FFC107, #FFB300);
    border: none;
    color: #333;
}
.btn-warning:hover {
    background: linear-gradient(45deg, #FFB300, #FFC107);
    color: #333;
}

/* Service cards */
.service-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card .card-body {
    text-align: center;
}
.service-card .icon {
    font-size: 3rem;
    color: #17A2B8;
    margin-bottom: 15px;
}

/* Projects grid */
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-item:hover img {
    transform: scale(1.1);
}
.project-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.project-item:hover .overlay {
    opacity: 1;
}

/* Footer */
footer {
    font-size: 0.9rem;
}

/* Lightbox overlay for projects */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* Contact form */
form .form-control {
    border-radius: 5px;
    box-shadow: none;
    border: 1px solid #ced4da;
}
form .form-control:focus {
    border-color: #17A2B8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}
