/* INTELLIJ GROUP OF COMPANIES LIMITED - Main Stylesheet
   Author: INTELLIJ Development Team
   Version: 1.0
*/

/* ========== Custom Variables ========== */
:root {
    --primary-color: #3182ce;
    --secondary-color: #2c5282;
    --success-color: #48bb78;
    --danger-color: #e53e3e;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --gray-color: #718096;
    --transition: all 0.3s ease;
}

/* ========== Base Styles ========== */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #4a5568;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ========== Utility Classes ========== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #718096;
}

.bg-light {
    background-color: #f7fafc;
}

.text-primary {
    color: var(--primary-color) !important;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-custom {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ========== Preloader ========== */
#preloader .loader {
    border-top-color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

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

/* ========== Header & Navigation ========== */
header {
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    height: calc(100vh - 80px);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

/* ========== Services Section ========== */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    background: rgba(66, 153, 225, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
}

/* ========== About Section ========== */
.about-img {
    position: relative;
}

.about-experience {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    z-index: 1;
}

.about-experience h2 {
    font-size: 40px;
    line-height: 1;
    color: white;
    margin-bottom: 5px;
}

/* ========== Counter Section ========== */
.counter-item {
    text-align: center;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

/* ========== Team Section ========== */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.team-img {
    position: relative;
    overflow: hidden;
}

.team-img img {
    transition: var(--transition);
}

.team-social {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 32, 44, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
}

.team-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    transform: translateY(20px);
    transition: var(--transition);
}

.team-card:hover .team-social {
    opacity: 1;
}

.team-card:hover .team-social a {
    transform: translateY(0);
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

/* ========== Testimonial Section ========== */
.testimonial-card {
    position: relative;
    padding: 30px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    color: rgba(66, 153, 225, 0.2);
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
}

.client-rating {
    color: #f6ad55;
    font-size: 18px;
    margin-bottom: 10px;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

/* ========== Contact Section ========== */
.contact-info-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #e2e8f0;
    padding: 15px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

/* ========== Footer ========== */
footer {
    background-color: var(--secondary-color);
    color: white;
}

/* ========== Back to Top Button ========== */
#back-to-top {
    opacity: 0.7;
}

#back-to-top:hover {
    opacity: 1;
}

/* ========== Chatbot Interface ========== */
#chatbot-interface {
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ========== Responsive Styles ========== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .about-experience {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -70px auto 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}

/* ========== New Styles from the code block ========== */

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.sticky-top {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Services */
.service-card {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Team */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-member .social-links a {
    color: var(--gray-color);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.team-member .social-links a:hover {
    color: var(--primary-color);
}

/* Portfolio */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Blog */
.blog-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

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

.blog-content {
    padding: 2rem;
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Chatbot */
#chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

#chatbot-container {
    position: absolute;
    bottom: 5rem;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Back to Top Button */
#back-to-top {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }

    .hero {
        padding: 6rem 0;
    }

    .service-card,
    .portfolio-item,
    .blog-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }

    #chatbot-container {
        width: 300px;
        height: 400px;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

/* Utility Classes */
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

.shadow-hover:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.transition-all {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
} 