/* Custom Styles for COLLK Website */

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #ed4044; /* updated from #dc2626 (red-600) */
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.text-left.section-title::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #9ca3af; /* gray-400 */
    max-width: 800px;
    margin: 0 auto;
    margin-top: 1.5rem;
}

/* Buttons */
.btn-primary {
    background-color: #ed4044; /* updated from #dc2626 (red-600) */
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    background-color: #e41f24; /* darker shade of #ed4044 (similar to red-700) */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(237, 64, 68, 0.2); /* updated rgba values */
}

.btn-primary::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::after {
    left: 0;
    width: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid #ed4044; /* updated from #dc2626 (red-600) */
}

.btn-secondary:hover {
    background-color: #ed4044; /* updated from #dc2626 (red-600) */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-white {
    background-color: white;
    color: #ed4044; /* updated from #dc2626 (red-600) */
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Service Cards */
.service-card {
    background-color: rgba(31, 41, 55, 0.5); /* gray-800 with opacity */
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(75, 85, 99, 0.2); /* gray-600 with opacity */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    border-color: #ed4044; /* updated from #dc2626 (red-600) */
}

.service-icon {
    background-color: rgba(237, 64, 68, 0.1); /* updated rgba values */
    color: #ed4044; /* updated from #dc2626 (red-600) */
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: #ed4044; /* updated from #dc2626 (red-600) */
    color: white;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: #9ca3af; /* gray-400 */
    line-height: 1.6;
}

/* Portfolio */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: transparent;
    color: white;
    border: 1px solid #4b5563; /* gray-600 */
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #ed4044; /* updated from #dc2626 (red-600) */
    border-color: #ed4044; /* updated from #dc2626 (red-600) */
}

.portfolio-item {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-info {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: #9ca3af; /* gray-400 */
    margin-bottom: 1rem;
}

.portfolio-link {
    background-color: #ed4044; /* updated from #dc2626 (red-600) */
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background-color: white;
    color: #ed4044; /* updated from #dc2626 (red-600) */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

/* Stats */
.stat-card {
    background-color: rgba(31, 41, 55, 0.5); /* gray-800 with opacity */
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(75, 85, 99, 0.2); /* gray-600 with opacity */
}

.stat-card:hover {
    background-color: #ed4044; /* updated from #dc2626 (red-600) */
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    color: #9ca3af; /* gray-400 */
    font-size: 1.125rem;
}

.stat-card:hover .stat-label {
    color: white;
}

/* Testimonials */
.testimonial-card {
    background-color: rgba(31, 41, 55, 0.5); /* gray-800 with opacity */
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 1rem;
    border: 1px solid rgba(75, 85, 99, 0.2); /* gray-600 with opacity */
}

.testimonial-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background-color: #111827; /* gray-900 */
    border: 1px solid #374151; /* gray-700 */
    border-radius: 0.25rem;
    color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ed4044; /* updated from #dc2626 (red-600) */
    box-shadow: 0 0 0 2px rgba(237, 64, 68, 0.2); /* updated rgba values */
}

.form-input::placeholder {
    color: #6b7280; /* gray-500 */
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(31, 41, 55, 0.7); /* gray-800 with opacity */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ed4044; /* updated from #dc2626 (red-600) */
    transform: translateY(-3px);
}

/* Animations for AOS */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Mobile Menu */
#mobile-menu {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

/* Scroll-triggered Navbar */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 0.75rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Back to Top Button */
#back-to-top {
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .portfolio-filter {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        margin-bottom: 0.5rem;
    }
}