/* ===== Custom Variables ===== */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --secondary: #234e52;
    --accent: #38b2ac;
    --accent-light: #4fd1c5;
    --purple: #6b46c1;
}

/* ===== Base Styles ===== */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    color: #2d3748;
    line-height: 1.7;
    background: linear-gradient(135deg, #f0f7f7 0%, #ffffff 50%, #f5f9fa 100%);
    background-attachment: fixed;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ===== Hero Section ===== */
.hero {
    background: transparent;
    overflow: visible;
    /* Changed from hidden to visible */
    padding-top: 100px;
}

/* Override bg-light to be semi-transparent */
.bg-light {
    background-color: rgba(248, 249, 250, 0.7) !important;
    backdrop-filter: blur(5px);
}

.py-5 {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

/* ===== Typography Enhancements ===== */

/* Display Headings - Hero titles */
.display-4,
.display-5,
.display-6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(26, 54, 93, 0.08);
}

/* Section titles with subtle shadow */
h2.display-6 {
    position: relative;
}

/* Lead paragraphs */
.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.8;
}

/* Text muted enhancement */
.text-muted {
    color: #718096 !important;
    line-height: 1.7;
}

/* Small text styling */
.small,
small {
    letter-spacing: 0.01em;
}

/* ===== Custom Color Classes ===== */
.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

/* Enhanced Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 50%, var(--purple) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
    font-weight: 800;
    display: inline-block;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Animated gradient text on hover */
.text-gradient-hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.text-gradient-hover:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
}

/* Section badge styling */
.badge.bg-accent-soft {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.75rem;
    box-shadow: 0 2px 10px rgba(56, 178, 172, 0.15);
}

.bg-accent-soft {
    background-color: rgba(56, 178, 172, 0.1) !important;
}

/* Card Titles */
.card h4,
.card h5,
.card h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* Card Title with hover effect */
.card:hover h4,
.card:hover h5 {
    color: var(--secondary);
    transition: color 0.3s ease;
}

/* List item text */
.list-unstyled li {
    color: #4a5568;
    line-height: 1.8;
}

/* ===== Profile Card - Clean Design ===== */
.profile-card {
    border-radius: 20px !important;
    background: #fff;
    border-left: 4px solid var(--accent) !important;
}

.profile-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.profile-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4a5568;
    margin-bottom: 1rem;
}

.profile-text strong {
    color: var(--primary);
    font-weight: 700;
}

.profile-text em {
    color: var(--secondary);
    font-style: normal;
    font-weight: 600;
}

/* Vision & Mission Cards */
.vision-card,
.mission-card {
    border-radius: 16px !important;
    transition: all 0.3s ease;
}

.vision-card {
    border-left: 3px solid var(--primary) !important;
}

.mission-card {
    border-left: 3px solid var(--secondary) !important;
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.mission-card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.mission-card ul li:last-child {
    margin-bottom: 0;
}

/* Animated Link with underline */
a.text-primary {
    position: relative;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

a.text-primary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    transition: width 0.3s ease;
}

a.text-primary:hover::after {
    width: 100%;
}

a.text-primary:hover {
    color: var(--accent) !important;
}

/* Footer text */
footer p,
footer a,
footer li {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Form labels */
.form-label {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Stats number styling */
.counter,
.display-5.fw-bold {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Section subtitle */
.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Highlight text */
.text-highlight {
    position: relative;
    z-index: 1;
}

.text-highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    right: -4px;
    height: 35%;
    background: linear-gradient(90deg, rgba(56, 178, 172, 0.2), rgba(107, 70, 193, 0.2));
    z-index: -1;
    border-radius: 4px;
}

/* Feature check items */
.fa-check {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

/* ===== Navbar ===== */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 10px;
    font-size: 0.9rem;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

.navbar .nav-link {
    font-weight: 500;
    color: #4a5568;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);
    background-color: #f7fafc;
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
}

.btn-outline-secondary {
    border-color: #cbd5e0;
    color: var(--primary);
}

.btn-outline-secondary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-filter {
    background: #f7fafc;
    color: #4a5568;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-filter.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

/* ===== Hero Section - styles moved to top ===== */
.scroll-indicator {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    animation: bounce 2s ease-in-out infinite;
    text-decoration: none;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===== Icon Boxes ===== */
.icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-box-lg {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-primary {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.15) 0%, rgba(26, 54, 93, 0.05) 100%);
    color: var(--primary);
}

.icon-secondary {
    background: linear-gradient(135deg, rgba(35, 78, 82, 0.15) 0%, rgba(35, 78, 82, 0.05) 100%);
    color: var(--secondary);
}

.icon-accent {
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.15) 0%, rgba(56, 178, 172, 0.05) 100%);
    color: var(--accent);
}

.icon-purple {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.15) 0%, rgba(107, 70, 193, 0.05) 100%);
    color: var(--purple);
}

/* ===== Card Animations ===== */

/* Shimmer effect keyframe */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 5px 20px rgba(56, 178, 172, 0.15);
    }

    50% {
        box-shadow: 0 8px 30px rgba(56, 178, 172, 0.3);
    }
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-5deg);
    }

    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* ===== Cards with Rich Animations ===== */

/* Hero Service Cards */
.service-hero-card {
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.service-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(56, 178, 172, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.service-hero-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(56, 178, 172, 0.15),
        0 0 0 1px rgba(56, 178, 172, 0.2) !important;
}

.service-hero-card:hover::before {
    opacity: 1;
}

.service-hero-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.service-hero-card:hover .icon-box {
    transform: scale(1.15) rotate(5deg);
    animation: icon-bounce 0.6s ease;
}

/* Value Cards */
.value-card {
    border-radius: 20px !important;
    background: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(56, 178, 172, 0.1) !important;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover .icon-box {
    transform: scale(1.2);
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
}

/* Why Cards */
.why-card {
    border-radius: 24px !important;
    background: white;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), var(--primary), var(--purple));
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: 22px;
    z-index: -1;
}

.why-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12) !important;
}

.why-card:hover::before {
    opacity: 1;
}

.why-card:hover .icon-box-lg {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
}

/* Service Cards */
.service-card {
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: white;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 50%, var(--purple) 100%);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(56, 178, 172, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(56, 178, 172, 0.1) !important;
}

.service-card:hover::before {
    transform: scaleX(1);
    animation: shimmer 2s infinite;
}

.service-card:hover::after {
    width: 200px;
    height: 200px;
}

.service-card:hover .icon-box {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.2);
}

.service-card:hover .service-number {
    color: var(--accent);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.service-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

/* ===== Portfolio ===== */
.portfolio-card {
    border-radius: 20px !important;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--accent), var(--primary), var(--purple), var(--accent));
    background-size: 300% 300%;
    border-radius: 23px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradient-rotate 4s ease infinite;
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.portfolio-card img {
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px;
}

.portfolio-overlay h5 {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-overlay h5,
.portfolio-card:hover .portfolio-overlay p {
    transform: translateY(0);
}

.portfolio-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.portfolio-item {
    transition: all 0.4s ease;
}

.portfolio-item.hidden {
    display: none !important;
}

/* ===== Form Styles ===== */
.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.1);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128c7e;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 90px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ===== Footer ===== */
footer {
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

footer .btn-outline-light {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

footer .btn-outline-light:hover {
    background: var(--accent);
    border-color: var(--accent);
}

footer a:hover {
    color: var(--accent) !important;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding-top: 80px;
    }

    .logo-text {
        font-size: 0.7rem;
        max-width: 150px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        right: 80px;
        bottom: 20px;
    }
}