/* General Styling */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #F7F9FC, #E6E9F0);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Add padding to account for fixed navbar height */
}

/* Navbar */
.navbar {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
    background: linear-gradient(90deg, #6F42C1, #17A2B8);
}

.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #FF6F61 !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: -80px; /* Offset the body padding for full viewport height */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(111, 66, 193, 0.7), rgba(23, 162, 184, 0.7));
    z-index: -1;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-section .btn {
    background-color: #FF6F61;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s, background-color 0.3s;
}

.hero-section .btn:hover {
    background-color: #E65B50;
    transform: scale(1.1);
}

/* Service Cards (Our Expertise) */
.service-card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #6F42C1, #17A2B8, #FF6F61, #6F42C1);
    background-size: 400%;
    animation: glowing 5s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    100% { background-position: 400% 0; }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 3rem;
    background: linear-gradient(45deg, #6F42C1, #17A2B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: #555;
}

/* Process Steps (Our Proven Process) */
.process-step {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #17A2B8, #FF6F61, #17A2B8);
    background-size: 400%;
    animation: glowing 6s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.process-step i {
    font-size: 2.5rem;
    color: #17A2B8;
    transition: color 0.3s ease;
}

.process-step:hover i {
    color: #FF6F61;
}

.process-step h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.95rem;
    color: #666;
}

/* Portfolio Cards (Our Work) */
.portfolio-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 250, 250, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #6F42C1, #FF6F61, #17A2B8, #6F42C1);
    background-size: 400%;
    animation: glowing 7s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.portfolio-card img {
    object-fit: cover;
    height: 250px;
    width: 100%;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-card .card-body {
    padding: 20px;
}

.portfolio-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.portfolio-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Success Cards (Success Stories) */
.success-card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #FF6F61, #17A2B8, #6F42C1, #FF6F61);
    background-size: 400%;
    animation: glowing 8s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.success-card img {
    border-radius: 10px;
    height: 150px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.success-card:hover img {
    transform: scale(1.05);
}

.success-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-top: 15px;
}

.success-card p {
    font-size: 0.95rem;
    color: #666;
}

.text-coral {
    color: #FF6F61;
}

/* Blog Cards (Web Dev Insights) */
.blog-card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #17A2B8, #6F42C1, #FF6F61, #17A2B8);
    background-size: 400%;
    animation: glowing 9s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.blog-card img {
    object-fit: cover;
    height: 200px;
    width: 100%;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.1);
}

.blog-card .card-body {
    padding: 20px;
}

.blog-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.blog-card p {
    font-size: 0.95rem;
    color: #666;
}

.blog-card .btn-outline-primary {
    border-color: #17A2B8;
    color: #17A2B8;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.blog-card .btn-outline-primary:hover {
    background-color: #17A2B8;
    color: #fff;
    transform: scale(1.05);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(90deg, #6F42C1, #17A2B8);
    color: white;
    padding: 50px 0;
}

.stats-counter {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stats-section p {
    font-size: 1rem;
    font-weight: 500;
}

/* Lead Magnet Popup */
.lead-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 500px;
    text-align: center;
}

.lead-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.lead-popup h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.lead-popup p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.lead-popup .form-control {
    border-radius: 10px;
    margin-bottom: 15px;
}

.lead-popup .btn-primary {
    background-color: #FF6F61;
    border: none;
}

.lead-popup .btn-primary:hover {
    background-color: #E65B50;
}

/* Footer */
footer {
    background-color: #1A1A1A;
    color: white;
    padding: 50px 0;
}

footer h5 {
    color: #FF6F61;
    font-weight: 600;
    margin-bottom: 20px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #FF6F61;
}

footer .text-coral {
    color: #FF6F61;
}

footer hr {
    border-color: #FF6F61;
    opacity: 0.5;
}

/* Buttons */
.btn-primary {
    background-color: #FF6F61;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: #E65B50;
    transform: scale(1.05);
}

.btn-outline-primary {
    border-color: #17A2B8;
    color: #17A2B8;
}

.btn-outline-primary:hover {
    background-color: #17A2B8;
    color: white;
}

/* Animations */
.animate__animated {
    animation-duration: 1s;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Adjust for smaller navbar height on mobile */
    }
    .hero-section {
        margin-top: -60px; /* Adjust offset for mobile */
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1.2rem;
    }
    .hero-section .btn {
        padding: 10px 30px;
        font-size: 1rem;
    }
    .stats-counter {
        font-size: 2rem;
    }

    /* Increase top padding for sections on mobile */
    section.py-5,
    section.stats-section {
        padding-top: 5rem !important; /* Increased from 3rem (Bootstrap py-5 default) to 5rem */
        padding-bottom: 3rem !important; /* Keep bottom padding as is */
    }

    /* Ensure cards stack vertically with adjusted width */
    .service-card,
    .process-step,
    .portfolio-card,
    .success-card,
    .blog-card {
        margin-bottom: 30px;
        width: 100%;
        max-width: 340px; /* Slightly wider for better readability */
        margin-left: auto;
        margin-right: auto;
        padding: 20px;
    }

    /* Adjust container padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Ensure rows stack properly */
    .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Override Bootstrap column behavior */
    [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }

    .navbar {
        padding: 10px 0;
    }

    /* Adjust WhatsApp button for mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .stats-counter {
        font-size: 1.5rem;
    }

    .service-card,
    .process-step,
    .portfolio-card,
    .success-card,
    .blog-card {
        max-width: 280px; /* Adjusted for smaller screens */
        padding: 15px;
    }

    /* Maintain increased top padding for smaller screens */
    section.py-5,
    section.stats-section {
        padding-top: 4.5rem !important; /* Slightly reduced but still spacious */
        padding-bottom: 3rem !important;
    }

    /* Adjust WhatsApp button for smaller screens */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}