/********** Template CSS **********/
:root {
    --primary: #00bfff;
    --secondary: #555555;
    --light: #F1F3FA;
    --dark: #1C2035;
    --gradient-primary: linear-gradient(135deg, #00bfff 0%, #87ceeb 100%);
    --gradient-secondary: linear-gradient(135deg, #87ceeb 0%, #b0e0e6 100%);
    --gradient-dark: linear-gradient(135deg, #00bfff 0%, #1e90ff 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.fw-medium {
    font-weight: 500;
}

/* Enhanced Typography */
.display-1 {
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.display-2 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Modern Button Styles */
.btn {
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* Enhanced Navbar */
.sticky-top {
    top: -100px;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-nav .nav-link {
    margin-right: 24px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
    position: relative;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    transform: translateY(-2px);
}

.navbar .dropdown-toggle::after {
    border: none;
}

/* Enhanced Topbar */
.topbar {
    /* Futuristic animated gradient */
    background: linear-gradient(120deg, #00bfff, #1e90ff, #87ceeb, #00bfff);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.topbar::before {
    /* Subtle animated scanlines/glow sweep */
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.14) 0px,
      rgba(255,255,255,0.14) 1px,
      rgba(255,255,255,0.0) 2px,
      rgba(255,255,255,0.0) 6px
    );
    mix-blend-mode: screen;
    opacity: 0.35;
    animation: scanline 6s linear infinite;
    pointer-events: none;
}

/* Aurora glow layer */
.topbar::after {
    content: '';
    position: absolute;
    width: 50vw;
    height: 180%;
    top: -40%;
    left: -10%;
    background: radial-gradient(40% 60% at 30% 50%, rgba(255,255,255,0.3), rgba(255,255,255,0) 60%),
                radial-gradient(35% 55% at 70% 50%, rgba(0, 255, 255, 0.22), rgba(0, 255, 255, 0) 65%),
                radial-gradient(30% 50% at 50% 50%, rgba(255, 255, 255, 0.18), rgba(255,255,255,0) 70%);
    filter: blur(12px) saturate(120%);
    animation: auroraDrift 14s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Energy flow animation along the topbar */
.energy-flow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -25%;
    width: 28%;
    height: 100%;
    background:
      radial-gradient(50% 60% at 0% 50%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.18) 40%, rgba(255,255,255,0) 70%),
      linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
    filter: blur(3px);
    pointer-events: none;
    animation: energyWave 5.5s linear infinite;
}

@keyframes energyWave {
    0% { transform: translateX(0); opacity: .85; }
    50% { opacity: .6; }
    100% { transform: translateX(430%); opacity: .85; }
}

/* Add subtle multiple waves */
.energy-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -38%;
    width: 22%;
    height: 100%;
    background: radial-gradient(60% 50% at 0% 50%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.12) 42%, rgba(255,255,255,0) 70%);
    filter: blur(2px);
    pointer-events: none;
    animation: energyWave2 7s linear infinite;
}

@keyframes energyWave2 {
    0% { transform: translateX(0); opacity: .75; }
    50% { opacity: .5; }
    100% { transform: translateX(520%); opacity: .75; }
}

/* New animations for the futuristic topbar */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes auroraDrift {
    0%   { transform: translateX(0) rotate(0deg); opacity: 0.55; }
    50%  { transform: translateX(35%) rotate(8deg); opacity: 0.8; }
    100% { transform: translateX(0) rotate(0deg); opacity: 0.55; }
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 200px 0; }
}

/* Topbar entrance animation */
.slide-in-top {
    animation: slideInFromTop 0.6s ease-out both;
}

@keyframes slideInFromTop {
    0% { transform: translateY(-40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Professional Navbar tweaks */
.professional-navbar .navbar {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.professional-navbar .nav-cta {
    box-shadow: var(--shadow-soft);
}

.professional-navbar .nav-cta:hover {
    box-shadow: var(--shadow-hover);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 12px 0;
    }
}

/* Enhanced Carousel */
.carousel-item {
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 20%;
}

.carousel-caption h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.carousel-caption p {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Enhanced Feature Section */
.feature-row {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.feature-item {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    padding: 2rem !important;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

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

.feature-item .btn-square {
    background: var(--gradient-primary);
    border-radius: 15px;
    transition: all 0.3s ease;
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item .btn-square img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
}

.feature-item:hover .btn-square {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h5 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.feature-item p {
    color: var(--secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Feature Item Content Layout */
.feature-item .feature-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.feature-item .feature-icon-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.feature-item .feature-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsive adjustments for feature items */
@media (max-width: 768px) {
    .feature-item {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem;
    }
    
    .feature-item .btn-square {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 1rem;
    }
    
    .feature-item .btn-square img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .feature-item h5 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .feature-item {
        padding: 1.25rem !important;
    }
    
    .feature-item .btn-square {
        width: 36px !important;
        height: 36px !important;
    }
    
    .feature-item .btn-square img {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Statistics Counter Section */
.stats-section {
    background: var(--gradient-dark);
    padding: 72px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
    
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.25;
}

/* Remove animated soft gradient sweep */
.stats-section::after { display: none !important; }

@keyframes statsGlow {
  0% { transform: translateX(-2%) translateY(0); opacity: .7; }
  50% { transform: translateX(2%) translateY(-2%); opacity: .9; }
  100% { transform: translateX(-1%) translateY(1%); opacity: .75; }
}

/* Subtle glow accent */
.stats-accent {
    position: absolute;
    top: -30%; left: -10%; right: -10%; height: 120%;
    background: radial-gradient(45% 40% at 20% 30%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%),
                radial-gradient(45% 40% at 80% 70%, rgba(173,216,230,.2), rgba(173,216,230,0) 65%);
    filter: blur(30px);
    pointer-events: none;
}

/* Grid layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

@media (max-width: 991.98px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Glass cards */
.stat-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
    border-radius: 20px;
    padding: 28px 22px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.16);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
    isolation: isolate;
}

/* Fancy gradient border using mask */
.stat-card::after {
    content: '';
    position: absolute; inset: 0; border-radius: 20px; padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,.65), rgba(255,255,255,.2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

/* Diagonal sheen on hover */
.stat-card::before {
    content: '';
    position: absolute; inset: -40% -20% 60% -20%;
    background: linear-gradient(120deg, rgba(255,255,255,.22), rgba(255,255,255,0) 60%);
    transform: translateX(-60%);
    transition: transform .6s ease;
    pointer-events: none;
}

.stat-card:hover::before { transform: translateX(20%); }

.stat-card:hover {
    transform: translateY(-8px) perspective(900px) rotateX(1.2deg) rotateY(.6deg);
    box-shadow: 0 28px 60px rgba(0,0,0,0.22);
}

.stat-icon {
    width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%;
    display: grid; place-items: center; position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.45), rgba(255,255,255,0.12));
    border: 1px solid rgba(255,255,255,0.65);
    color: #fff;
}

.stat-icon::after {
    content: '';
    position: absolute; inset: -6px; border-radius: 50%;
    background: radial-gradient(60% 60% at 50% 50%, rgba(255,255,255,.28), rgba(255,255,255,0));
    animation: pulseRing 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseRing { 0%,100% { transform: scale(1); opacity:.55;} 50% { transform: scale(1.08); opacity:.9;} }

.stat-icon i { font-size: 1.2rem; }

.stat-card:hover .stat-icon i { transform: scale(1.06) rotate(-2deg); transition: transform .25s ease; }

.stat-number {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: .25rem;
    background: linear-gradient(90deg, #ffffff, #e6f5ff);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

.stat-number::after {
    content: '';
    display: block;
    width: 42px; height: 3px; margin: 6px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.5));
    opacity: .85;
    transition: width .3s ease, opacity .3s ease;
}

.stat-card:hover .stat-number::after { width: 56px; opacity: 1; }

.stat-label {
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

/* Per-card subtle hue shifts */
.stats-grid .stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.2)); }
.stats-grid .stat-card:nth-child(2) { filter: hue-rotate(12deg); }
.stats-grid .stat-card:nth-child(3) { filter: hue-rotate(24deg); }
.stats-grid .stat-card:nth-child(4) { filter: hue-rotate(36deg); }

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Simple, clean stats style overrides ===== */
.stats-grid { gap: 14px; }
/* Make stat cards clean and borderless */
.stat-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 20px !important; /* keep rounding for consistency */
    padding: 16px 10px !important;
}
/* Disable decorative pseudo elements */
.stat-card::before, .stat-card::after { display: none !important; }
.stat-card:hover { transform: none !important; box-shadow: none !important; }
.stat-icon { display: none !important; }
.stat-number {
    background: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 2.8rem !important;
    margin-bottom: 0.2rem !important;
}
.stat-number::after { display: none !important; }
.stat-label { color: rgba(255,255,255,0.92) !important; font-weight: 500 !important; }

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Enhanced Spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-out;
    z-index: 99999;
    background: var(--gradient-primary);
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}

.spinner-border {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    animation: spin 1s linear infinite;
}

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

/* Responsive Improvements */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
}

.feature-item {
        margin-bottom: 30px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.3);
}

/* Loading Animation for Images */
.img-fluid {
    transition: opacity 0.3s ease;
}

.img-fluid.loading {
    opacity: 0.7;
}

/* Enhanced Hover Effects */
.navbar-brand:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Modern Card Shadows */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

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

/* Gradient Text Effect */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Social Media Buttons */
.social-btn {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-soft);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-hover);
    color: white;
}

/* Modern Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services mini heading color override */
#service .text-primary {
    color: #1E90FF !important; /* sky blue */
}

/* Projects mini heading color override */
#project .text-primary {
    color: #1E90FF !important; /* sky blue */
}

/* Enhanced Form Elements */
.form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 99, 249, 0.1);
    outline: none;
}

/* Modern Grid Layout */
.modern-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Additional Animations and Effects */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Animation Classes */
.pulse {
    animation: pulse 0.6s ease-in-out;
}

.bounce {
    animation: bounce 1s ease-in-out;
}

.slide-in-bottom {
    animation: slideInFromBottom 0.8s ease-out;
}

.slide-in-top {
    animation: slideInFromTop 0.8s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

/* Enhanced Hover Effects */
.tech-item.clicked {
    animation: pulse 0.3s ease-in-out;
}

.feature-item.animated .btn-square {
    animation: bounce 0.6s ease-in-out;
}

.service-item.animated .service-text {
    animation: slideInFromBottom 0.5s ease-out;
}

/* Enhanced Loading States */
.loading {
    opacity: 0.7;
    filter: blur(1px);
}

.error {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Enhanced Focus States */
.focused .form-control {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 99, 249, 0.1);
}

/* Enhanced Mobile Menu */
.navbar-toggler.active {
    transform: rotate(90deg);
}

/* Enhanced Social Media Pulse Effect */
.social-btn.pulse {
    animation: pulse 0.6s ease-in-out;
}

/* Theme Toggle Button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.theme-toggle:hover { transform: translateY(-2px); background: rgba(255,255,255,0.25); }
.theme-toggle .icon-moon { display: none; }
.dark-mode .theme-toggle .icon-sun { display: none; }
.dark-mode .theme-toggle .icon-moon { display: inline; }

/* Dark mode adjustments */
.dark-mode body { background-color: #121212; color: #f1f1f1; }
.dark-mode .sticky-top { background: rgba(20, 22, 30, 0.9); box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.dark-mode .navbar .navbar-nav .nav-link { color: #e6f0ff; }
.dark-mode .navbar .navbar-nav .nav-link:hover, .dark-mode .navbar .navbar-nav .nav-link.active { color: var(--primary); }
.dark-mode .feature-item, .dark-mode .service-item, .dark-mode .project-item, .dark-mode .tech-item { background: #1c1f26; }
.dark-mode .footer { background: linear-gradient(135deg, #0f172a 0%, #0b2b45 50%, #0a3a63 100%); }
.dark-mode .topbar { background: linear-gradient(135deg, #0b9ed6 0%, #126fbc 100%); }

/* Enhanced Newsletter Success State */
.btn-success {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

/* Enhanced Carousel Indicators */
.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* Enhanced Scrollbar for Webkit Browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

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

/* Enhanced Selection */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Enhanced Focus Visible */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Enhanced High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #000000;
        --secondary: #333333;
        --light: #ffffff;
        --dark: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Enhanced Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .wow {
        animation: none !important;
    }
}

/* Enhanced Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1a1a1a;
        --dark: #ffffff;
        --secondary: #cccccc;
    }
    
    body {
        background-color: #121212;
        color: #ffffff;
    }
    
    .feature-item,
    .service-item,
    .project-item,
    .tech-item {
        background: #1e1e1e;
        color: #ffffff;
    }
}

/* Enhanced Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Technology Stack Items */
.tech-item {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
    border: 2px solid #eef5ff; /* visible on white background */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    animation: techFloat 8s ease-in-out infinite; /* subtle idle float */
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.tech-item i {
    transition: transform .35s ease; /* keep smooth scaling */
}

.tech-item:hover i {
    transform: scale(1.08);
}

/* Top accent bar for better highlight visibility */
.tech-item::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.3s ease;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.tech-item:hover::before {
    transform: scaleX(1);
}

/* Diagonal sheen swipe */
.tech-item::after {
    content: '';
    position: absolute;
    inset: -40% -20% 60% -20%;
    background: linear-gradient(120deg, rgba(0,0,0,0), rgba(255,255,255,0.18), rgba(0,0,0,0));
    transform: translateX(-80%);
    transition: transform .7s ease;
    pointer-events: none;
}

.tech-item:hover::after { transform: translateX(10%); }

/* Removed custom icon background to preserve real technology icons */

@keyframes techFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.tech-item h6 {
    font-weight: 700;
    color: #0b2340 !important; /* enforce dark navy for visibility */
    margin-top: 0.75rem;
    line-height: 1.2;
    display: block;
}

/* Enhanced Project Items */
.project-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: white;
    position: relative;
}

.project-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.project-item img {
    transition: all 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .25s ease;
    background: linear-gradient(135deg, rgba(0, 99, 249, 0.9) 0%, rgba(102, 126, 234, 0.9) 100%);
    border-radius: 20px;
    backdrop-filter: blur(3px);
    pointer-events: none;
}

.project-item:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Project Badges & Ribbons */
.project-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.badge-chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #00bfff, #1e90ff);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.ribbon {
    position: absolute;
    right: -40px;
    top: 14px;
    width: 140px;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #1c2035;
    font-weight: 700;
    padding: 6px 0;
    z-index: 3;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Tilt effect decorations */
/* Remove outer glow frame on projects (unwanted part) */
.project-item::after { display: none; }

.project-content {
    position: relative;
    z-index: 2;
}

/* Eye/link buttons glow */
.project-overlay .btn {
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

.project-overlay .btn:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Modern 3-up carousel emphasis */
.project-carousel .owl-stage { display: flex; }
.project-carousel .owl-item { transition: transform .5s ease, filter .5s ease, opacity .5s ease; }
.project-carousel .owl-item .project-item { transform: scale(.88); filter: saturate(.8) brightness(.95); opacity: .85; }
.project-carousel .owl-item.center { z-index: 3; }
.project-carousel .owl-item.center .project-item {
    transform: scale(1.22);
    opacity: 1;
    filter: none;
    box-shadow: 0 28px 60px rgba(0,0,0,.25), 0 0 0 2px rgba(0,191,255,.15) inset;
}

/* Hover lift on focused card */
.project-carousel .owl-item.center .project-item:hover { transform: scale(1.26) translateY(-6px); }

/* Optional slight blur for side cards */
@media (min-width: 768px) {
  .project-carousel .owl-item:not(.center) img { filter: blur(.3px); }
}

/* Enhanced Service Items */
.service-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    position: relative;
}

.service-item::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.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-text {
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure service icons fit nicely inside their circular frame */
.service-item .btn-square {
    width: 56px !important;
    height: 56px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .btn-square img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
}

.service-item:hover .btn-square {
    transform: translateY(-2px) scale(1.04);
    transition: transform 0.25s ease;
}

/* Slightly smaller padding within services section */
#service .service-text {
    padding: 2rem !important;
}

.service-item:hover .service-text {
    background: var(--gradient-primary);
    color: white;
}

.service-item:hover .service-text h5,
.service-item:hover .service-text p {
    color: white;
}

/* Enhanced About Section */
.about {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%), url(../img/about.jpg) left center no-repeat;
    background-size: cover;
    border-radius: 30px;
    margin: 2rem 0;
}

/* Modern About (new) */
.about-modern {
    position: relative;
    background: linear-gradient(135deg, #f7fbff 0%, #eef7ff 100%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.about-modern .about-accent {
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 70%;
    background: radial-gradient(60% 60% at 30% 50%, rgba(0,191,255,.18), rgba(0,191,255,0) 60%),
                radial-gradient(50% 50% at 70% 40%, rgba(135,206,235,.16), rgba(135,206,235,0) 70%);
    filter: blur(30px);
    pointer-events: none;
}

.about-inner { padding: 56px 18px; }

.about-media { position: relative; }
.about-img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,.12);
}
.about-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: #ffffff;
    color: #0b2340;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: .9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}
.about-float {
    position: absolute; width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, #00bfff, #87ceeb);
    box-shadow: 0 8px 18px rgba(0,191,255,.35);
    opacity: .8; animation: floatY 6s ease-in-out infinite;
}
.about-float-1 { top: 10%; right: 10%; animation-delay: .3s; }
.about-float-2 { bottom: 18%; left: 6%; animation-delay: 1.1s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.about-content { padding: 8px; }
.about-content .eyebrow {
    letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
    color: #1e90ff; margin-bottom: .5rem;
}
.about-title {
    font-size: clamp(1.8rem, 2.3vw + 1rem, 2.6rem);
    font-weight: 800; color: #0b2340; line-height: 1.2; margin-bottom: .75rem;
}
.about-lead {
    font-size: 1.05rem; color: #51607a; margin-bottom: 1rem;
}

.about-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .85rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
    background: #fff; color: #0b2340; border: 1px solid rgba(0,191,255,.25);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.chip i { color: #1e90ff; }

.about-kpis .kpi { background: #fff; border: 1px solid #e9f2ff; border-radius: 16px; padding: 14px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.kpi-num { font-size: 1.6rem; font-weight: 800; background: linear-gradient(90deg,#00bfff,#1e90ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.kpi-label { font-weight: 600; color: #4b5a75; font-size: .9rem; }

.about-cta { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }

@media (max-width: 991.98px) {
  .about-inner { padding: 36px 16px; }
  .about-img { border-radius: 18px; }
}

.btn-play {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

/* Enhanced Quote Section */
.quote-section {
    background: var(--gradient-secondary);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
    box-shadow: var(--shadow-hover);
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

/* Enhanced Quote Form Container */
.quote-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.quote-form-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.quote-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Enhanced Form Header */
.form-header {
    text-align: center;
    position: relative;
    z-index: 2;
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease-out;
}

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Enhanced Animated Form Groups */
.form-group-animated {
    position: relative;
    margin-bottom: 1.5rem;
    animation: slideInFromBottom 0.6s ease-out;
}

.form-group-animated:nth-child(1) { animation-delay: 0.1s; }
.form-group-animated:nth-child(2) { animation-delay: 0.2s; }
.form-group-animated:nth-child(3) { animation-delay: 0.3s; }
.form-group-animated:nth-child(4) { animation-delay: 0.4s; }
.form-group-animated:nth-child(5) { animation-delay: 0.5s; }

/* Enhanced Form Controls */
.form-group-animated .form-control,
.form-group-animated .form-select {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.form-group-animated .form-control:focus,
.form-group-animated .form-select:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.1);
    outline: none;
    transform: translateY(-3px);
}

.form-group-animated .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group-animated .form-control:focus::placeholder {
    color: rgba(255, 255, 255, 0.9);
}

/* Enhanced Form Labels */
.form-group-animated label {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 3;
    background: transparent;
    padding: 0 0.5rem;
}

.form-group-animated .form-control:focus + label,
.form-group-animated .form-control:not(:placeholder-shown) + label,
.form-group-animated .form-select:focus + label,
.form-group-animated .form-select:not([value=""]) + label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: 10px;
    padding: 0.2rem 0.8rem;
    transform: scale(0.9);
}

/* Enhanced Form Line Animation */
.form-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fff, var(--primary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.form-group-animated .form-control:focus ~ .form-line,
.form-group-animated .form-select:focus ~ .form-line {
    width: 100%;
}

/* Enhanced Submit Button */
.btn-quote-submit {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-quote-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-quote-submit:hover::before {
    left: 100%;
}

.btn-quote-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: var(--gradient-secondary);
}

.btn-quote-submit:active {
    transform: translateY(-1px);
}

/* Enhanced Button Content */
.btn-text {
    transition: all 0.3s ease;
}

.btn-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
        opacity: 0;
    transition: all 0.3s ease;
}

.btn-quote-submit:hover .btn-text {
    transform: translateX(-10px);
}

.btn-quote-submit:hover .btn-icon {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
}

/* Enhanced Phone Number Display */
.phone-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: slideInFromLeft 0.8s ease-out;
}

.phone-display:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.phone-display .btn-lg-square {
    background: var(--gradient-primary);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.phone-display:hover .btn-lg-square {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Form Validation States */
.form-group-animated .form-control.is-valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.form-group-animated .form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Enhanced Form Success State */
.form-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Enhanced Responsive Design for Quote Form */
@media (max-width: 768px) {
    .quote-form-container {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .btn-quote-submit {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Enhanced Loading State for Form */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Form Field Focus Animation */
.form-group-animated .form-control:focus,
.form-group-animated .form-select:focus {
    animation: fieldFocus 0.3s ease-out;
}

@keyframes fieldFocus {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Enhanced Form Submission Animation */
.form-submitting {
    animation: formSubmit 0.5s ease-out;
}

@keyframes formSubmit {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Additional Enhanced Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
    opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Quote Section Background */
.quote-section {
    background: linear-gradient(135deg, #00bfff 0%, #87ceeb 50%, #b0e0e6 100%);
    position: relative;
    overflow: hidden;
}

.quote-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="50" height="43.4" patternUnits="userSpaceOnUse" patternTransform="scale(0.5)"><polygon id="hex" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1" points="25,0 50,14.4 50,28.9 25,43.3 0,28.9 0,14.4"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Enhanced Form Container Glow Effect */
.quote-form-container {
    position: relative;
    z-index: 10;
}

.quote-form-container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00bfff, #87ceeb, #b0e0e6, #1e90ff, #00bfff, #87ceeb, #00bfff);
    background-size: 400% 400%;
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Enhanced Input Field Animations */
.form-group-animated .form-control,
.form-group-animated .form-select {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group-animated .form-control:hover,
.form-group-animated .form-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.form-group-animated .form-control:focus,
.form-group-animated .form-select:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

/* Enhanced Label Floating Animation */
.form-group-animated label {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group-animated .form-control:focus + label,
.form-group-animated .form-control:not(:placeholder-shown) + label,
.form-group-animated .form-select:focus + label,
.form-group-animated .form-select:not([value=""]) + label {
    animation: labelFloat 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes labelFloat {
    0% {
        transform: scale(1) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) translateY(-0.5rem);
        opacity: 1;
    }
    100% {
        transform: scale(0.9) translateY(-0.5rem);
        opacity: 1;
    }
}

/* Enhanced Submit Button Animations */
.btn-quote-submit {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-quote-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-quote-submit:hover::before {
    left: 100%;
}

.btn-quote-submit:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.btn-quote-submit:active {
    transform: translateY(-2px) scale(0.98);
}

/* Enhanced Phone Display Animations */
.phone-display {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.phone-display:hover::before {
    left: 100%;
}

.phone-display:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.phone-display .btn-lg-square {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-display:hover .btn-lg-square {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Enhanced Form Validation Visual Feedback */
.form-group-animated .form-control.is-valid {
    animation: validPulse 0.6s ease-out;
}

.form-group-animated .form-control.is-invalid {
    animation: invalidShake 0.6s ease-out;
}

@keyframes validPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes invalidShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Enhanced Form Success State */
.form-success {
    animation: successCelebration 1s ease-out;
}

@keyframes successCelebration {
    0% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Enhanced Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Focus Ring Animation */
.form-group-animated .form-control:focus,
.form-group-animated .form-select:focus {
    animation: focusRing 0.4s ease-out;
}

@keyframes focusRing {
    0% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.4); }
    100% { box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.1); }
}

/* Enhanced Hover Effects for Form Elements */
.form-group-animated:hover .form-control,
.form-group-animated:hover .form-select {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Textarea Specific Styling */
.form-group-animated textarea.form-control {
    resize: vertical;
    min-height: 130px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group-animated textarea.form-control:focus {
    min-height: 140px;
}

/* Enhanced Select Dropdown Styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-size: 16px 12px;
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .quote-section {
        margin: 2rem 0;
        border-radius: 20px;
    }
    
    .quote-form-container {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .btn-quote-submit {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .phone-display {
        padding: 0.8rem 1rem;
    }
    
    .phone-display .btn-lg-square {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .quote-form-container {
        padding: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.3rem;
    }
    
    .phone-display {
        flex-direction: column;
    text-align: center;
        padding: 1rem;
    }
    
    .phone-display .btn-lg-square {
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Print Styles */
@media print {
    .quote-section {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .quote-form-container {
        background: white !important;
        border: 1px solid #ccc !important;
    }
    
    .form-control,
    .form-select {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}

/* Additional Enhanced Form Features */
.form-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00bfff, #87ceeb);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0 0 25px 25px;
}

.char-counter {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.char-counter.warning {
    color: #ffc107;
    font-weight: 600;
}

.form-success-message {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #00bfff, #87ceeb);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
    animation: slideInFromTop 0.5s ease-out;
    z-index: 1000;
}

.form-error-message {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.3);
    animation: slideInFromTop 0.5s ease-out;
    z-index: 1000;
}

/* Enhanced Form States */
.form-loading .btn-text {
    opacity: 0;
}

.form-success .btn-text {
    color: #00bfff;
}

.field-focused {
    transform: scale(1.02);
}

.has-content + label {
    color: #4CAF50 !important;
}

.container-hovered {
    transform: translateY(-15px) scale(1.02);
}

.btn-hovered {
    transform: translateY(-8px) scale(1.05);
}

.field-focus-animation {
    animation: fieldFocusPulse 0.6s ease-out;
}

@keyframes fieldFocusPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.celebration {
    animation: celebrationDance 2s ease-out;
}

@keyframes celebrationDance {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(2deg); }
    50% { transform: scale(1.1) rotate(-2deg); }
    75% { transform: scale(1.05) rotate(1deg); }
}

.shake-animation {
    animation: shakeField 0.6s ease-out;
}

@keyframes shakeField {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.field-highlight {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.focus-ring-animation {
    animation: focusRingPulse 1s ease-out;
}

@keyframes focusRingPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Enhanced Phone Display Click Effect */
.phone-display.clicked {
    animation: phoneClick 0.3s ease-out;
}

@keyframes phoneClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Enhanced Form Container Hover States */
.quote-form-container:hover::after {
    animation: borderGlow 1.5s ease-in-out infinite;
}

.quote-form-container:hover .form-header h3 {
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6); }
}

/* Enhanced Form Field Success/Error States */
.form-group-animated .form-control.is-valid {
    border-color: #00bfff;
    background: rgba(0, 191, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-group-animated .form-control.is-invalid {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Enhanced Form Field Placeholder Styling */
.form-group-animated .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.form-group-animated .form-control:focus::placeholder {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(10px);
}

/* Enhanced Form Select Dropdown Styling */
.form-select option {
    background: #333;
    color: white;
    padding: 10px;
}

.form-select option:hover {
    background: #555;
}

/* Enhanced Form Container Responsive Enhancements */
@media (max-width: 768px) {
    .form-success-message,
    .form-error-message {
        top: -50px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .char-counter {
        font-size: 0.7rem;
        bottom: -18px;
    }
    
    .form-progress-bar {
        height: 2px;
    }
}

@media (max-width: 576px) {
    .form-success-message,
    .form-error-message {
        top: -40px;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        max-width: 90%;
        text-align: center;
    }
    
    .char-counter {
        font-size: 0.6rem;
        bottom: -16px;
    }
}

/* Enhanced Form Accessibility */
.form-group-animated .form-control:focus,
.form-group-animated .form-select:focus {
    outline: none;
}

.form-group-animated .form-control:focus-visible,
.form-group-animated .form-select:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Enhanced Form Field Transitions */
.form-group-animated .form-control,
.form-group-animated .form-select,
.form-group-animated textarea {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Form Container Shadow Effects */
.quote-form-container {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quote-form-container:hover {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Enhanced Form Field Border Effects */
.form-group-animated .form-control,
.form-group-animated .form-select {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-group-animated .form-control:hover,
.form-group-animated .form-select:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.form-group-animated .form-control:focus,
.form-group-animated .form-select:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.25);
}

/* Enhanced Form Button States */
.btn-quote-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-quote-submit:disabled:hover {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced Form Field Label States */
.form-group-animated label.active {
    color: #00bfff;
    font-weight: 600;
}

/* Enhanced Form Container Background Pattern */
.quote-form-container::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 15s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0.6;
    }
}