/* ===================================
   Modern CSS Enhancements for AptAI
   Advanced CSS techniques for a modern look
   =================================== */

/* Custom Properties / CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-fast: all 0.25s ease-out;
}

/* Smooth Scrolling - Disabled to allow JS control */
html {
    scroll-behavior: auto; /* Let JavaScript handle scrolling for better control */
}

html, body {
    will-change: scroll-position;
}

/* Body Enhancements */
body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text resize on iOS */
    -webkit-text-size-adjust: 100%;
}

/* Performance optimizations */
section {
    contain: layout style;
}

.card {
    contain: layout style paint;
}

/* Improve tap highlight on mobile */
* {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
}

/* Remove 300ms tap delay on mobile */
a, button, input, select, .btn, .nav-link, .page-scroll, .card {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

/* Fast tap on clickable elements */
.btn, .nav-link, .page-scroll, a {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Safe area for notched devices (iPhone X, etc.) */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    section {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
}

/* Enhanced Background Canvas */
#backgroundCanvas {
    filter: blur(80px) brightness(0.9);
    opacity: 0.4;
    transition: var(--transition-smooth);
}

body:hover #backgroundCanvas {
    opacity: 0.5;
}

/* ===================================
   NAVIGATION ENHANCEMENTS
   =================================== */

.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(120, 120, 120, 0.7) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.navbar.sticky-navigation {
    animation: slideDown 0.8s ease-out;
}

/* Enhanced scrolled state */
.navbar.scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(120, 120, 120, 0.9) !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.4s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0);
    transition: none; /* Instant feedback on click */
}

/* Fast active state for all links */
a.page-scroll:active {
    transform: scale(0.98);
    transition: transform 0.05s ease;
}

/* Mobile Menu Enhancements */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 8px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.navbar-collapse {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: none;
    transition: all 0.7s ease;
}

/* Smooth dropdown animation */
.navbar-collapse.collapsing {
    transition: height 0.7s ease, opacity 0.7s ease;
}

.navbar-collapse.show {
    animation: dropdownSlide 0.7s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile dropdown menu items */
@media (max-width: 768px) {
    .navbar-collapse .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .navbar-collapse .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
    }

    .navbar-collapse .nav-link:active {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(5px) scale(0.98);
    }

    .navbar-collapse .nav-link::after {
        display: none; /* Hide the underline effect on mobile */
    }
}

@media (min-width: 769px) {
    .navbar-collapse {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
}

/* ===================================
   HERO SECTION ENHANCEMENTS
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.2) 0%, transparent 50%);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out;
    margin-bottom: 1rem;
}

.hero h4 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    letter-spacing: 1px;
}

.hero h5 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    max-width: 800px;
    margin: 0 auto;
}

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

.text-primary-dark {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ===================================
   SLIDER ENHANCEMENTS
   =================================== */

.hero-slider {
    order: 2; /* Position between h4 and h5 on mobile */
}

.swiffy-slider {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin: 2rem auto;
    animation: fadeInScale 1.2s ease-out 0.6s backwards;
    width: 100%;
    max-width: 1000px;
}

/* Desktop: keep slider at original size */
@media (min-width: 769px) {
    .hero-slider {
        max-height: 75%;
        padding-top: 1rem;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.swiffy-slider img {
    transition: transform 0.8s ease;
    width: auto;
    height: auto;
    object-fit: contain;
}

.swiffy-slider .slider-container li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiffy-slider:hover img {
    transform: scale(1.05);
}

/* Remove all default button styles from slider */
.swiffy-slider button {
    outline: none !important;
    border: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.swiffy-slider button:focus {
    outline: none !important;
}

.swiffy-slider button::-moz-focus-inner {
    border: 0;
}

/* Slider navigation buttons - mobile friendly */
.slider-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.8);
    backdrop-filter: blur(10px);
    outline: none !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider-nav:focus {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4);
}

.slider-nav:active {
    transform: scale(0.95);
}

.slider-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    border-radius: 50%;
    outline: none !important;
    border: none !important;
}

.slider-indicators button:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.5);
}

.slider-indicators button:active {
    transform: scale(0.9);
}

/* ===================================
   BUTTON ENHANCEMENTS
   =================================== */

.btn {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    padding: 14px 36px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    will-change: transform, box-shadow;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    will-change: width, height;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    position: relative;
    z-index: 1;
}

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

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-white:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #764ba2;
}

.btn-white:active {
    transform: translateY(-1px) scale(0.98);
}

/* ===================================
   CARD ENHANCEMENTS
   =================================== */

.card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
    will-change: transform, box-shadow;
}

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

.card:hover::before {
    transform: scaleX(1);
}

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

.card-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.card-title a {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.card-title a:hover {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   ICON BOX ENHANCEMENTS
   =================================== */

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.icon-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
}

.card:hover .icon-box {
    transform: rotateY(360deg);
    box-shadow: var(--shadow-lg);
}

.card:hover .icon-box::after {
    transform: translate(-50%, -50%) scale(2);
}

.icon-box ion-icon,
.icon-box em {
    color: white;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

/* ===================================
   SECTION ENHANCEMENTS
   =================================== */

section {
    position: relative;
    padding: 80px 0;
}

section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.text-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%) !important;
    position: relative;
}

.bg-white {
    background: #ffffff !important;
}

/* ===================================
   PRICING SECTION ENHANCEMENTS
   =================================== */

.pricing-list {
    padding: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.pricing-list li {
    padding: 0.8rem 0 0.8rem 2rem;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.card:hover .pricing-list li::before {
    transform: scale(1.3) rotate(360deg);
}

.badge.bg-primary {
    background: var(--secondary-gradient) !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===================================
   FORM ENHANCEMENTS
   =================================== */

#userForm {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

#userForm label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
}

#userForm input,
#userForm select {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 0.5rem;
}

#userForm input:focus,
#userForm select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.error {
    color: #f5576c;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.3rem;
    font-weight: 500;
}

.thank-you {
    display: none;
    padding: 2rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    margin-top: 2rem;
    box-shadow: var(--shadow-xl);
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* ===================================
   VIDEO SECTION ENHANCEMENTS
   =================================== */

.video-wrapper {
    margin-top: 4rem;
    padding: 0 1rem;
}

.video-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-smooth);
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===================================
   CONTACT SECTION ENHANCEMENTS
   =================================== */

.bg-texture-collage {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.bg-texture-collage::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from { transform: translate(0, 0); }
    to { transform: translate(30px, 30px); }
}

.bg-texture-collage .lead {
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bg-texture-collage ion-icon,
.bg-texture-collage em {
    font-size: 3rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: var(--transition-smooth);
}

.bg-texture-collage .col-sm-4:hover ion-icon,
.bg-texture-collage .col-sm-4:hover em {
    transform: scale(1.2) rotate(360deg);
}

/* ===================================
   FOOTER ENHANCEMENTS
   =================================== */

.bg-footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
}

.logo-img-down {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: var(--transition-smooth);
}

.logo-img-down:hover {
    transform: scale(1.1);
}

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */

.wow {
    visibility: hidden;
}

.wow.fadeIn {
    animation-name: fadeIn;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   RESPONSIVE ENHANCEMENTS
   =================================== */

/* Tablet and below */
@media (max-width: 768px) {
    /* Hero Section Mobile Optimization */
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }

    .hero h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 1rem !important;
        padding: 0 1rem;
    }

    .hero h4 {
        font-size: 1rem !important;
        padding: 0 1rem;
        line-height: 1.6;
        margin-bottom: 0.5rem !important;
    }

    .hero h5 {
        font-size: 0.95rem !important;
        padding: 0 1.5rem;
        line-height: 1.7;
        margin-top: 1rem !important;
    }

    /* Make hero content wrapper flexible for proper ordering */
    .hero-content-wrapper > div {
        display: flex;
        flex-direction: column;
    }

    .hero h2 {
        order: 1;
    }

    .hero h4 {
        order: 2;
    }

    .hero-slider {
        order: 3;
    }

    .hero h5 {
        order: 4;
    }

    .hero p {
        order: 5;
    }

    .hero .brand {
        padding: 1rem 0;
    }

    /* Slider Mobile Optimization */
    .hero-slider {
        margin: 1.5rem auto !important;
        border-radius: 15px;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero-slider img {
        max-width: 85% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .swiffy-slider {
        margin: 1.5rem auto !important;
        border-radius: 15px;
    }

    .swiffy-slider img {
        max-width: 90% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Buttons Mobile */
    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
        margin: 0.5rem !important;
        width: auto;
        display: inline-block;
    }

    .hero .btn {
        min-width: 140px;
    }

    /* Scroll Indicator Mobile */
    .scroll-indicator {
        bottom: 20px;
        width: 25px;
        height: 40px;
    }

    /* Navigation Mobile */
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        padding: 0.5rem 0;
    }

    .navbar-brand img,
    .logo-img-top {
        max-height: 50px !important;
        height: auto;
        width: auto;
    }

    .navbar-nav {
        margin-top: 0.5rem;
    }

    .nav-item {
        text-align: center;
        padding: 0.25rem 0;
    }

    /* Cards Mobile */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 15px;
    }

    .card-body {
        padding: 1.5rem;
    }

    .icon-box {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .icon-box ion-icon,
    .icon-box em {
        font-size: 2rem;
    }

    /* Section Spacing */
    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    /* Pricing Cards */
    .pricing-list li {
        font-size: 0.95rem;
        padding: 0.6rem 0 0.6rem 1.8rem;
    }

    .pricing-list li::before {
        font-size: 1rem;
        left: 0;
    }

    /* Form Mobile */
    #userForm {
        padding: 1.5rem;
        border-radius: 15px;
    }

    #userForm input,
    #userForm select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        max-width: 100%;
    }

    #userForm button[type="submit"] {
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
    }

    /* Video Container */
    .video-wrapper {
        margin-top: 2rem;
        padding: 0 1rem;
        border-radius: 15px;
    }

    .video-container {
        border-radius: 15px;
    }

    /* Contact Section */
    .bg-texture-collage .col-sm-4 {
        padding: 2rem 1rem !important;
    }

    .bg-texture-collage .lead {
        font-size: 1.1rem;
    }

    /* Disable 3D effects on mobile for performance */
    .card:hover {
        transform: translateY(-5px) scale(1.01) !important;
    }

    .card {
        transform-style: flat;
    }
}

/* Mobile phones only */
@media (max-width: 576px) {
    /* Container padding on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero Extra Small Screens */
    .hero {
        padding: 70px 0 30px;
    }

    .hero h2 {
        font-size: 1.5rem !important;
        padding: 0 0.5rem;
    }

    .hero h4 {
        font-size: 0.9rem !important;
        padding: 0 0.5rem;
    }

    .hero h5 {
        font-size: 0.85rem !important;
        padding: 0 1rem;
    }

    /* Buttons Stack on Mobile */
    .hero .btn {
        display: block;
        width: 80%;
        max-width: 280px;
        margin: 0.5rem auto !important;
    }

    /* Slider Mobile */
    .hero-slider {
        margin: 1.5rem auto !important;
        border-radius: 12px;
        padding: 0 0.25rem;
    }

    .hero-slider img {
        max-width: 90% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .swiffy-slider {
        margin: 1rem 0.5rem !important;
        border-radius: 12px;
    }

    .swiffy-slider img {
        max-width: 95% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .hero-slider .slider-nav {
        width: 32px;
        height: 32px;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
    }

    /* Navigation - Keep logo bigger on mobile */
    .navbar-brand img,
    .logo-img-top {
        max-height: 45px !important;
    }

    /* Section Headers */
    section h2 {
        font-size: 1.5rem;
    }

    section h2::after {
        width: 40px;
        height: 3px;
    }

    /* Icon Box */
    .icon-box {
        width: 60px;
        height: 60px;
    }

    .icon-box ion-icon,
    .icon-box em {
        font-size: 1.8rem;
    }

    /* Card Titles */
    .card h5, .card h6 {
        font-size: 1.1rem;
    }

    /* Pricing */
    .pricing-list li {
        font-size: 0.9rem;
        padding: 0.5rem 0 0.5rem 1.6rem;
    }

    .pricing-list li::before {
        font-size: 0.95rem;
    }

    /* Form */
    #userForm {
        padding: 1rem;
    }

    #userForm label {
        font-size: 0.9rem;
    }

    /* Contact */
    .bg-texture-collage ion-icon,
    .bg-texture-collage em {
        font-size: 2.5rem;
    }

    .bg-texture-collage .lead {
        font-size: 1rem;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        display: none; /* Hide on very small screens */
    }

    /* Remove parallax on mobile */
    .hero .brand {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 0 30px;
    }

    .hero h2 {
        font-size: 1.6rem !important;
    }

    .hero h4 {
        font-size: 0.95rem !important;
    }

    .hero h5 {
        font-size: 0.85rem !important;
        margin-top: 0.5rem !important;
    }

    .hero-slider {
        max-height: 45vh;
        margin: 1rem auto !important;
    }

    .hero-slider img {
        max-width: 70% !important;
        max-height: 40vh;
    }

    .swiffy-slider {
        max-height: 50vh;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 14px 28px;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    /* Disable hover effects that don't work well on touch */
    .card:hover {
        transform: none !important;
    }

    .card {
        transition: none;
    }

    /* Remove 3D tilt on touch devices */
    .card {
        transform-style: flat !important;
    }

    /* Simpler button effects */
    .btn:hover::before {
        display: none;
    }

    /* Disable parallax on touch */
    .hero .brand {
        transform: none !important;
    }
}

/* ===================================
   SCROLL BAR STYLING
   =================================== */

::-webkit-scrollbar {
    width: 12px;
}

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

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

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

/* ===================================
   UTILITY CLASSES
   =================================== */

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ===================================
   INTERACTIVE ANIMATIONS
   =================================== */

/* Ripple Effect */
.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.ripple-effect {
    animation: rippleAnimation 0.4s ease-out;
}

@keyframes rippleAnimation {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Float Animation */
.float-animation {
    animation: floatUpDown 1s ease-in-out;
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Card 3D Tilt Effect */
.card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card:hover {
    transition: transform 0.15s ease;
}

/* Input Focus Animation */
.input-focused label {
    color: #667eea;
    transform: translateY(-5px);
    font-size: 0.9rem;
}

/* ===================================
   LOADING ANIMATION
   =================================== */

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===================================
   STAGGER ANIMATION FOR CARDS
   =================================== */

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }

/* ===================================
   GLOW EFFECTS
   =================================== */

.glow-on-hover {
    position: relative;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: inherit;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-on-hover:hover::before {
    opacity: 0.7;
}

/* ===================================
   SCROLL INDICATOR
   =================================== */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    cursor: pointer;
    animation: scrollBounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* ===================================
   SHINE EFFECT
   =================================== */

.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.35s ease;
}

.shine:hover::after {
    left: 100%;
}

/* ===================================
   MAGNETIC BUTTON EFFECT
   =================================== */

.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================================
   BLOB ANIMATION
   =================================== */

@keyframes blob {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.blob-animate {
    animation: blob 8s ease-in-out infinite;
}

/* ===================================
   TEXT SHIMMER EFFECT
   =================================== */

.shimmer {
    background: linear-gradient(90deg, #fff 0%, #e0e7ff 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}
