/* 
    Premium, Modern Business Website
    Design System & Global Styles
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0046b8 100%);
    --secondary-color: #6c757d;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 45px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}


section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
}

/* --- Top Header --- */
.top-header {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-header a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.top-header a:hover {
    opacity: 0.8;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark) !important;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 15px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* --- Hero Slider --- */
.hero-slider .carousel-item {
    height: 90vh;
    min-height: 600px;
    width: 100%;
    background-size: 100% 100% !important; /* Force fit to full slider */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-card h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-card p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.btn-white {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #dee2e6;
    transition: var(--transition-smooth);
}

.btn-white:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- Features Section --- */
.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: none;
    height: 100%;
    transition: var(--transition-smooth);
}

.feature-img-wrapper {
    overflow: hidden;
    height: 200px;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

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

.feature-body {
    padding: 30px;
}

.feature-body h4 {
    font-weight: 600;
    margin-bottom: 15px;
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 20px;
}

footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
}

footer .navbar-brand {
    color: var(--white) !important;
}

footer .text-muted {
    color: #cbd5e0 !important;
}

footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--primary-color);
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(360deg);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Projects Section --- */
.filter-btn {
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 500;
    margin: 5px;
    transition: var(--transition-smooth);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
}

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* --- Testimonials Section --- */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

/* --- Modal & Form Styling --- */
.modal-content {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    border-color: var(--primary-color);
}

.form-label {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.invalid-feedback {
    font-size: 0.8rem;
}

.required-star {
    color: #dc3545;
    margin-left: 2px;
}

/* --- Blogs Section --- */
.blog-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 70vh;
        min-height: 400px;
    }

    .hero-card {
        padding: 20px;
        margin: 0 15px;
    }

    .hero-card h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-card p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .top-header .contact-info span {
        display: none;
    }
}

/* --- Gallery Section --- */
.gallery-link {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.gallery-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--white);
    position: relative;
    cursor: pointer;
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.22, 1);
}

/* Shine Effect */
.gallery-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg);
    z-index: 1;
    transition: 0.7s;
}

.gallery-card:hover .gallery-img-wrapper::before {
    left: 150%;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(13, 110, 253, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-info {
    padding: 20px;
    width: 100%;
}

.gallery-info h5 {
    font-weight: 700;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-card:hover .gallery-info h5 {
    transform: translateY(0);
}

.gallery-info p {
    font-size: 0.85rem;
    transform: translateY(40px);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.9;
}

.gallery-card:hover .gallery-info p {
    transform: translateY(0);
}

/* --- Clients Marquee --- */
.clients-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.clients-marquee-track {
    display: flex;
    width: fit-content;
    gap: 60px;
    align-items: center;
}

.left-to-right {
    animation: scroll-left-to-right 30s linear infinite;
}

@keyframes scroll-left-to-right {
    0% {
        transform: translateX(-33.33%);
    }
    100% {
        transform: translateX(0);
    }
}

.client-logo-item {
    flex: 0 0 auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.client-logo-item img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}


/* Lightbox Customizations (GLightbox override) */
.gslide-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.gslide-desc {
    font-family: 'Poppins', sans-serif;
    color: #444 !important;
}