/* ========================================
   FANCY MODERN DESIGN - CodeApka V2.0
   ======================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #f97316;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #fcd34d 100%);
    --gradient-sunset: linear-gradient(135deg, #f43f5e 0%, #fbbf24 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.4);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #1e293b;
    line-height: 1.7;
    overflow-x: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes morph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}


/* ========== FANCY TEXT EFFECTS ========== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-sunset {
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shine {
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 50%, #2563eb 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

/* ========== FANCY BUTTONS ========== */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-primary-custom:hover::before {
    opacity: 1;
}

.btn-primary-custom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    transition: all var(--transition);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ========== FANCY CARDS ========== */
.card,
.service-box,
.fancy-card {
    border: none;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.card::before,
.service-box::before,
.fancy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.card:hover,
.service-box:hover,
.fancy-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card:hover::before,
.service-box:hover::before,
.fancy-card:hover::before {
    transform: scaleX(1);
}

.fancy-card-img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fancy-card:hover .fancy-card-img {
    transform: scale(1.15) rotate(2deg);
}

.service-icon-box {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.5s ease;
    position: relative;
}

.service-box:hover .service-icon-box {
    transform: scale(1.2) rotate(360deg);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.service-box:hover .service-icon-box i {
    color: white !important;
}

.hover-lift {
    transition: all var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}


/* ========== FANCY NAVBAR ========== */
.top-bar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.navbar {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
}

.navbar-brand {
    font-size: 1.8rem;
    transition: all var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.navbar .nav-link {
    color: #1e293b;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all var(--transition);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: var(--gradient-primary);
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 10px;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 80%;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    animation: slide-up 0.3s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: all 0.4s ease;
}

.dropdown-item:hover::before {
    left: 0;
    right: 0;
}

.dropdown-item:hover {
    color: var(--primary);
    transform: translateX(10px);
}


/* ========== FANCY HERO SECTION ========== */
.hero-wrapper {
    position: relative;
    padding: clamp(120px, 20vw, 200px) 0 clamp(80px, 15vw, 150px);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-bg-blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.5;
    animation: morph 20s ease-in-out infinite;
    will-change: transform;
}

.blob-1 {
    top: -20%;
    right: -10%;
    width: clamp(400px, 50vw, 700px);
    height: clamp(400px, 50vw, 700px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    width: clamp(350px, 45vw, 600px);
    height: clamp(350px, 45vw, 600px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation-delay: -10s;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-xl);
    transition: all 0.5s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}


/* ========== FANCY PAGE HEADERS ========== */
.page-header-fancy {
    background: var(--gradient-primary);
    padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 6rem);
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(3rem, 6vw, 6rem);
}

.page-header-fancy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    animation: gradient-shift 15s ease infinite;
    background-size: 400% 400%;
}

.page-header-fancy::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--light);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.page-header-fancy h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slide-up 0.8s ease;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all var(--transition);
}

.breadcrumb-item a:hover {
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.breadcrumb-item.active {
    color: white !important;
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}


/* ========== FANCY FOOTER ========== */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.footer-link {
    display: block;
    margin-bottom: 0.8rem;
    color: #94a3b8;
    transition: all var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--transition);
}

.footer-link:hover {
    color: white;
    padding-left: 20px;
}

.footer-link:hover::before {
    left: 0;
    opacity: 1;
}

.social-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.social-icon-btn:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon-btn:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-glow);
}

.social-icon-btn i {
    position: relative;
    z-index: 1;
}


/* ========== FANCY FORMS ========== */
.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all var(--transition);
    background: #f8fafc;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
    outline: none;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== FANCY SECTIONS ========== */
.section-padding {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-fancy-bg {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.section-fancy-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    padding-left: 30px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateY(-50%);
}

.display-title {
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-fancy {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.shadow-glow {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}


/* ========== FANCY UTILITIES ========== */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-gradient-sunset {
    background: var(--gradient-sunset) !important;
}

.bg-animated {
    background: linear-gradient(-45deg, #2563eb, #1e40af, #f97316, #ef4444);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid var(--primary);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-bottom-color: var(--secondary);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .hero-wrapper {
        padding: 100px 0 80px;
        min-height: auto;
    }

    .glass-card {
        padding: 2rem !important;
    }

    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .page-header-fancy {
        padding: 4rem 0 3rem;
        margin-bottom: 3rem;
    }
}

/* ========== ACCESSIBILITY ========== */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== PERFORMANCE ========== */
.animate-float,
.hero-bg-blob,
.glass-card {
    will-change: transform;
}

img {
    max-width: 100%;
    height: auto;
}


/* ========== ADDITIONAL FANCY EFFECTS ========== */
.animate-float-delay {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
    transition: all var(--transition);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-light {
    background: white;
    color: var(--primary);
    border: none;
    transition: all var(--transition);
}

.btn-light:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

/* Fancy Process Steps */
.process-step {
    position: relative;
    transition: all var(--transition);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    z-index: -1;
}

.process-step:last-child::before {
    display: none;
}

.process-step:hover {
    transform: scale(1.05);
}

/* Fancy Testimonial */
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    position: absolute;
    top: -35px;
    left: 2rem;
}

/* Fancy Badge */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Fancy Image Overlay */
.img-overlay-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-overlay-container:hover .img-overlay {
    opacity: 0.9;
}

.img-overlay-container:hover img {
    transform: scale(1.1);
}


/* ========================================
   ADVANCED MODERN HERO SECTION
   ======================================== */

.hero-wrapper-modern {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #f97316 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Floating Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 20s infinite;
}

.particle-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

.particle-4 {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 20%;
    animation-delay: 6s;
}

.particle-5 {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 70%;
    animation-delay: 8s;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translate(50px, -50px) rotate(90deg);
        opacity: 0.6;
    }

    50% {
        transform: translate(100px, 0) rotate(180deg);
        opacity: 0.3;
    }

    75% {
        transform: translate(50px, 50px) rotate(270deg);
        opacity: 0.6;
    }
}

/* Hero Badge */
.hero-badge {
    position: relative;
    display: inline-block;
}

.badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    animation: pulse-glow 2s infinite;
}

.badge-content {
    position: relative;
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gradient-text-animated {
    background: linear-gradient(90deg, #fff 0%, #ffd89b 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
}

/* Hero Description */
.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 90%;
}

/* Hero Buttons */
.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-hero-primary {
    background: white;
    color: #2563eb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.btn-hero-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    color: #2563eb;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Trust Indicators */
.trust-indicators {
    opacity: 0.95;
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.trust-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* 3D Card Stack */
.hero-visual-container {
    position: relative;
    height: 500px;
}

.card-stack {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.stack-card {
    position: absolute;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stack-card-1 {
    top: 0;
    left: 0;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.stack-card-2 {
    top: 80px;
    left: 60px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.stack-card-3 {
    top: 160px;
    left: 120px;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    animation-delay: 4s;
}

.stack-card:hover {
    transform: translateY(-20px) scale(1.05);
    z-index: 10;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.stack-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.stack-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.floating-element i {
    font-size: 1.5rem;
    color: white;
}

.floating-element-1 {
    top: 50px;
    right: 50px;
    animation: float 4s ease-in-out infinite;
}

.floating-element-2 {
    bottom: 100px;
    right: 150px;
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-element-3 {
    top: 200px;
    right: 0;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-wrapper-modern {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .card-stack {
        height: 400px;
    }

    .stack-card {
        width: 280px;
    }

    .stack-card-2 {
        top: 60px;
        left: 40px;
    }

    .stack-card-3 {
        top: 120px;
        left: 80px;
    }

    .trust-indicators {
        justify-content: center !important;
    }
}

@media (max-width: 767px) {
    .hero-visual-container {
        height: 300px;
        margin-top: 3rem;
    }

    .card-stack {
        height: 300px;
    }

    .stack-card {
        width: 240px;
        padding: 1.5rem;
    }

    .stack-card-2 {
        top: 40px;
        left: 20px;
    }

    .stack-card-3 {
        top: 80px;
        left: 40px;
    }

    .floating-element {
        width: 40px;
        height: 40px;
    }

    .floating-element i {
        font-size: 1rem;
    }
}


/* ========================================
   MODERN FEATURE CARDS
   ======================================== */

.feature-card-modern {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.2);
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.feature-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 24px;
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.feature-card-modern:hover .feature-icon-bg {
    transform: rotate(225deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.feature-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    z-index: 1;
    transition: all 0.5s ease;
}

.feature-card-modern:hover .feature-icon {
    transform: translate(-50%, -50%) scale(1.2) rotate(360deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card-modern:hover .feature-title {
    color: #2563eb;
}

.feature-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.feature-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.feature-card-modern:hover .feature-shine {
    left: 150%;
}


/* ========================================
   MODERN SECTION STYLES
   ======================================== */

.section-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
    opacity: 0.6;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.section-title-modern {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #1e293b;
    line-height: 1.2;
}

.section-description {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.8;
}

/* ========================================
   PREMIUM SERVICE CARDS
   ======================================== */

.service-card-premium {
    position: relative;
    height: 100%;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.service-card-premium:hover .service-card-inner {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(102, 126, 234, 0.05);
    line-height: 1;
    transition: all 0.5s ease;
}

.service-card-premium:hover .service-number {
    color: rgba(102, 126, 234, 0.1);
    transform: scale(1.2);
}

.service-icon-premium {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.service-icon-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.service-card-premium:hover .service-icon-premium {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.service-card-premium:hover .service-icon-premium::before {
    left: 100%;
}

.service-icon-premium i {
    font-size: 2rem;
    color: white;
    z-index: 1;
    position: relative;
}

.service-title-premium {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card-premium:hover .service-title-premium {
    color: #2563eb;
}

.service-description-premium {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.service-link-premium::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    transition: width 0.3s ease;
}

.service-link-premium:hover {
    gap: 1rem;
    color: #1e40af;
}

.service-link-premium:hover::after {
    width: 100%;
}

.service-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
    pointer-events: none;
}

.service-card-premium:hover .service-card-glow {
    width: 400px;
    height: 400px;
}


/* ========================================
   IMAGE PLACEHOLDER STYLES
   ======================================== */

.image-placeholder {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Hover effect for image placeholders */
.fancy-card:hover .image-placeholder,
.card:hover .image-placeholder {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

/* Ensure image placeholders don't overflow */
.overflow-hidden .image-placeholder {
    border-radius: 0;
}

/* Blog card specific */
.blog-card-hover .image-placeholder {
    transition: transform 0.5s ease;
}

.blog-card-hover:hover .image-placeholder {
    transform: scale(1.1);
}


/* ========================================
   MODERN TOP BAR
   ======================================== */

.top-bar-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.top-bar-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.top-info-modern {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.top-info-item:hover {
    color: white;
    transform: translateX(3px);
}

.top-info-item i {
    color: #2563eb;
    font-size: 0.85rem;
}

.top-social-modern {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.top-social-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.top-social-link {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.top-social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.top-social-link:hover::before {
    width: 100%;
    height: 100%;
}

.top-social-link:hover {
    color: white;
    transform: translateY(-3px);
}

.top-social-link i {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
}

@media (max-width: 991px) {
    .top-bar-modern {
        display: none;
    }
}

/* ========================================
   MODERN NAVIGATION
   ======================================== */

.navbar-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: all var(--transition);
    position: relative;
    z-index: 1000;
}

.navbar-modern .container {
    position: relative;
}

.navbar-brand-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all var(--transition);
}

.navbar-brand-modern:hover {
    transform: scale(1.02);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all var(--transition);
}

.navbar-brand-modern:hover .brand-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.brand-icon i {
    color: white;
    font-size: 1.5rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.text-gradient-brand {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Modern Hamburger */
.navbar-toggler-modern {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    z-index: 1001;
}

.navbar-toggler-modern span {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    border-radius: 10px;
    transition: all var(--transition);
}

.navbar-toggler-modern:hover span {
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
}

.navbar-toggler-modern[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.navbar-toggler-modern[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler-modern[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Modern Nav Items */
.navbar-nav-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item-modern {
    list-style: none;
    position: relative;
}

.nav-link-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition);
    border-radius: 8px;
}

.nav-link-modern span {
    position: relative;
    z-index: 1;
}

.nav-link-modern::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    transform: translateX(-50%);
    transition: all var(--transition);
    border-radius: 10px;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: #2563eb;
}

.nav-link-modern:hover::before,
.nav-link-modern.active::before {
    width: 60%;
}

/* Modern Dropdown */
.nav-item-modern.dropdown {
    position: relative;
}

.dropdown-menu-modern {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: none;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.nav-item-modern.dropdown:hover .dropdown-menu-modern,
.dropdown-menu-modern.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-modern {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #1e293b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.dropdown-item-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transition: all 0.4s ease;
}

.dropdown-item-modern:hover {
    color: #2563eb;
    transform: translateX(5px);
}

.dropdown-item-modern:hover::before {
    left: 0;
}

.dropdown-item-modern i {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    opacity: 0.7;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Get Quote Button */
.btn-quote-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-quote-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-quote-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-quote-modern:hover::before {
    opacity: 1;
}

.btn-quote-modern span,
.btn-quote-modern i {
    position: relative;
    z-index: 1;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-toggler-modern {
        display: flex;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav-modern {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link-modern {
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-item-modern:last-child .nav-link-modern {
        border-bottom: none;
    }

    .dropdown-menu-modern {
        position: static;
        box-shadow: none;
        margin-top: 0;
        padding-left: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-item-modern.dropdown.show .dropdown-menu-modern {
        display: block;
    }

    .btn-quote-modern {
        margin-top: 1rem;
        justify-content: center;
    }
}


/* ========================================
   MODERN FOOTER
   ======================================== */

.footer-modern {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.footer-main {
    padding: 5rem 0 3rem;
    position: relative;
    z-index: 1;
}

/* Footer Brand */
.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.footer-logo-icon i {
    color: white;
    font-size: 1.5rem;
}

.footer-logo-text h4 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1;
}

.footer-logo-text span {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 12px;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.footer-social-link:hover::before {
    width: 100%;
    height: 100%;
}

.footer-social-link:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.footer-social-link i {
    position: relative;
    z-index: 1;
}

/* Footer Widget */
.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    border-radius: 10px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-links a i {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon i {
    color: #2563eb;
    font-size: 1rem;
}

.footer-contact-text {
    flex: 1;
    padding-top: 0.5rem;
}

.footer-contact-text span,
.footer-contact-text a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contact-text a:hover {
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.95rem;
}

.footer-legal a:hover {
    color: white;
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 767px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }

    .footer-logo {
        justify-content: center;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-widget-title {
        text-align: center;
        display: block;
    }

    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .footer-legal .separator {
        display: none;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


/* ========================================
   SKIP TO CONTENT FIX
   ======================================== */

.skip-to-content {
    position: absolute !important;
    top: -100px !important;
    left: 0 !important;
    background: #667eea !important;
    color: white !important;
    padding: 1rem 2rem !important;
    text-decoration: none !important;
    z-index: 9999 !important;
    transition: top 0.3s ease !important;
    border-radius: 0 0 8px 0 !important;
    font-weight: 600 !important;
}

.skip-to-content:focus {
    top: 0 !important;
    outline: 3px solid white !important;
    outline-offset: 2px !important;
}

/* ========================================
   HERO SECTION FIX
   ======================================== */

.hero-wrapper-modern {
    margin-top: 0 !important;
    padding-top: clamp(120px, 20vw, 200px) !important;
}

/* ========================================
   NAVIGATION FIXES
   ======================================== */

.navbar-modern {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
}

.navbar-modern .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-collapse {
    flex-grow: 0;
}

/* Ensure proper spacing */
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Fix any overflow issues */
html,
body {
    overflow-x: hidden;
    width: 100%;
}


/* ========================================
   ADDITIONAL LAYOUT FIXES
   ======================================== */

/* Remove any default margins/padding that might cause issues */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure main content starts properly */
main {
    position: relative;
    z-index: 1;
}

/* Fix top bar alignment */
.top-bar-modern .row {
    margin: 0;
}

.top-bar-modern .col-lg-6 {
    padding: 0 15px;
}

/* Ensure navbar doesn't overlap content */
.navbar-modern+main {
    margin-top: 0;
}

/* Fix dropdown menu z-index */
.dropdown-menu-modern {
    z-index: 1050 !important;
}

/* Ensure hero section displays correctly */
.hero-wrapper-modern .container {
    position: relative;
    z-index: 10;
}

/* Fix any text selection issues */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: inherit;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Fix image rendering */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure buttons are clickable */
button,
a {
    cursor: pointer;
}

/* Fix form elements */
input,
textarea,
select {
    font-family: inherit;
}

/* Ensure proper stacking context */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1030;
}