/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */

:root {
    /* Updated color palette for a more vibrant, modern tech feel */
    --primary-purple: #4A00E0;
    --primary-purple-dark: #392b58;
    --accent-orange: #fF512f;
    --accent-orange-hover: #e5421a;
    --brand-gradient: linear-gradient(90deg, var(--primary-purple), #8e2de2);
    --light-bg: #f8f9fa;
    --text-dark: #2d2d2d;
    --text-muted-custom: #6c757d;
    --transition-speed: 0.3s;
}

body {
    /* Switched to Manrope for a cleaner font */
    font-family: 'Manrope', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: var(--accent-orange);
}

a:hover {
    color: var(--accent-orange-hover);
}


/* Helper Classes */

.text-purple {
    color: var(--primary-purple) !important;
}

.text-orange {
    color: var(--accent-orange) !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}


/* =========================================
   2. SCROLLBAR & SCROLL-TO-TOP
   ========================================= */


/* Blue Scroll Line REMOVED per request */


/* Back to Top Button (Styled to match your image) */

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    /* Blue color from your image */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: #0056b3;
    color: white;
    transform: translateY(-3px);
}


/* =========================================
   3. NAVIGATION & BUTTONS
   ========================================= */

.navbar {
    padding: 0.5rem 0;
    /* Reduced padding for a tighter header */
    transition: all var(--transition-speed) ease;
    height: 80px;
    /* Fixed height for consistency */
}


/* Sticky Navbar Shadow */

.navbar.shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07) !important;
    height: 80px;
}


/* Fixed Logo Style */

.navbar-brand {
    line-height: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 2px;
    /* Prevents text merging */
}

.logo-text-1 {
    font-size: 1.6rem;
    /* Slightly adjusted for balance */
    font-weight: 800;
    color: var(--text-dark);
}

.logo-text-2 {
    font-size: 1.6rem;
    /* Slightly adjusted for balance */
    font-weight: 800;
    color: var(--primary-purple);
}

.logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted-custom);
    text-transform: uppercase;
    margin-top: 2px;
    /* Fixed spacing */
    margin-left: 2px;
}


/* New CSS Hamburger Icon */

.hamburger-icon {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-purple);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    transition: var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--primary-purple);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-purple);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}


/* Updated Custom Orange Button (Smaller) */

.btn-orange {
    background-color: var(--accent-orange);
    color: white;
    font-weight: 600;
    border: none;
    transition: all var(--transition-speed) ease;
    padding: 0.6rem 1.25rem;
    /* Reduced padding */
    font-size: 0.9rem;
    /* Reduced font size */
    border-radius: 50px;
    /* Make all buttons rounded-pill */
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-orange:hover {
    background-color: var(--accent-orange-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-orange:active {
    transform: translateY(0);
}


/* Dropdown Arrow Rotation */

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
    margin-left: 5px;
}

.nav-link.show .dropdown-arrow {
    transform: rotate(180deg);
}


/* =========================================
   3. SPACER
   ========================================= */


/* SPACER to remove white space issues */

.header-spacer {
    height: 80px;
    width: 100%;
    background: transparent;
}

@media (max-width: 991px) {
    .header-spacer {
        height: 80px;
    }
}


/* =========================================
   4. RESPONSIVE NAVIGATION (MOBILE VS DESKTOP)
   ========================================= */

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .dropdown-menu {
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        padding: 10px;
        min-width: 230px;
    }
    .navbar-nav .nav-link {
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        padding: 20px;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .navbar-nav .nav-link {
        padding: 15px 5px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }
    .navbar-nav .nav-link::after {
        display: none;
        /* No underline on mobile */
    }
    .dropdown-menu {
        border: none;
        background-color: #f8f9fa;
        margin-left: 0;
        padding: 10px 15px;
        box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.03);
        border-radius: 8px;
        margin-top: 5px;
    }
    .dropdown-item {
        padding: 12px 0;
        font-size: 0.95rem;
        color: #666;
        border-bottom: 1px solid #eee;
    }
    .dropdown-item:last-child {
        border-bottom: none;
    }
}

.dropdown-item {
    border-radius: 5px;
    transition: 0.2s;
    font-weight: 500;
    padding: 10px 15px;
}

.dropdown-item:hover {
    background-color: rgba(74, 0, 224, 0.07);
    color: var(--primary-purple);
    transform: translateX(3px);
    padding-left: 18px;
    /* Keep padding consistent */
}


/* =========================================
   5. HERO SECTION (RESIZED & COMPACT)
   ========================================= */

.hero-section {
    /* Added background image with overlay for better text contrast */
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../images/11.png');
    background-size: cover;
    background-position: center;
    /* REDUCED PADDING significantly for both mobile and desktop */
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    /* Ensures vertical centering in available space */
    display: flex;
    align-items: center;
    min-height: 320px;
    /* reduced height */
}


/* Center font on desktop and mobile */

.hero-section .col-lg-6,
.hero-section .col-lg-5 {
    text-align: center !important;
}


/* Target the H1 inside hero specifically to make it smaller */

.hero-section h1 {
    font-size: 2rem !important;
    /* Further reduced */
    margin-bottom: 10px !important;
    line-height: 1.3;
}

.hero-section h5 {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
}

.hero-section p.lead,
.hero-section p.text-muted {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
}


/* Animated Text Color Cycle */

.color-cycle {
    animation: colorCycle 3s infinite ease-in-out;
    font-weight: 800;
}

@keyframes colorCycle {
    0%,
    100% {
        color: var(--primary-purple);
    }
    33% {
        color: var(--accent-orange);
    }
    66% {
        color: #00d2ff;
    }
}


/* Hero Card - Bigger form, less whitespace */

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    /* Glass-ish effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 25px;
    /* Increased padding slightly to fill card */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
    /* Increased width to make form bigger */
    margin: 0 auto;
    /* Center it */
}

.hero-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.hero-form {
    margin-top: 15px;
}

.hero-form input,
.hero-form select,
.hero-form textarea {
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    padding: 8px 12px;
    /* Comfortable padding */
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 81, 47, 0.1);
    outline: none;
}

.hero-form .btn-orange {
    padding: 0.6rem 1.5rem;
    width: 100%;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 5px;
    font-size: 1rem;
}


/* Mobile Adjustments for Hero */

@media (max-width: 991px) {
    .hero-section {
        padding: 20px 0;
        /* Minimal padding on mobile */
        text-align: center;
        min-height: auto;
    }
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
    .hero-card {
        margin-top: 20px;
        padding: 20px;
        max-width: 100%;
        /* Full width on mobile */
    }
    /* Center the icons on mobile */
    .d-flex.justify-content-lg-start {
        justify-content: center !important;
    }
}


/* Modal Styling */

.modal-content {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: var(--brand-gradient);
    border-bottom: none;
}

.modal-body {
    padding: 2rem;
}

.modal-body .form-control {
    padding: 12px;
    font-size: 0.95rem;
    border-radius: 8px;
    background: #f8f9fa;
}


/* =========================================
   6. PAGE SPECIFIC SECTIONS
   ========================================= */


/* Supercharge Strip */

.supercharge-section {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}


/* Why SlickWhiz / Features */

.why-box {
    padding: 25px;
    transition: var(--transition-speed);
    border-radius: 10px;
}

.why-box:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-square {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.why-box:hover .icon-square {
    transform: scale(1.1) rotate(-10deg);
}


/* Stats Counter */

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    /* Bolder */
    color: var(--primary-purple);
}


/* Client Logos */

.client-logo-fix {
    max-height: 60px;
    /* Slightly smaller */
    max-width: 100%;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s all ease;
    display: block;
    margin: 0 auto;
}

.client-logo-fix:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}


/* Testimonials */

.testimonial-section {
    background-color: var(--light-bg);
}

.testimonial-card {
    padding: 40px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    /* Softer controls */
    border-radius: 50%;
    background-size: 50%;
    padding: 25px;
    transition: 0.3s;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--primary-purple);
}


/* About Page: Vision Card */

.vision-card {
    background: #fff;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--accent-orange);
    border-radius: 10px;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}


/* About Page: Center Phone Features */

.feature-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: 0.3s;
}

.feature-box:hover i {
    transform: scale(1.2);
    color: var(--primary-purple);
}

.feature-box h5 {
    color: var(--primary-purple);
    font-weight: 700;
}

.center-phone-img {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}


/* Industry Grid */

.industry-card {
    text-align: center;
    padding: 25px 15px;
    transition: all 0.3s ease;
    border-radius: 10px;
    background: #fff;
    height: 100%;
    border: 1px solid #eee;
}

.industry-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary-purple);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-orange);
}


/* Contact Page Cards */

.contact-card {
    background: var(--primary-purple-dark);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card.orange {
    background-color: var(--accent-orange);
}

.contact-card.blue {
    background-color: #007bff;
}


/* =========================================
   7. ANIMATIONS (NEW & UPDATED)
   ========================================= */


/* Updated Reveal Animation */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* Staggered animations for children */

.reveal.active .reveal-child {
    opacity: 0;
    transform: translateY(30px);
    animation: revealChild 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes revealChild {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Delay helpers */

.reveal.active .reveal-child:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal.active .reveal-child:nth-child(2) {
    animation-delay: 0.2s;
}

.reveal.active .reveal-child:nth-child(3) {
    animation-delay: 0.3s;
}

.reveal.active .reveal-child:nth-child(4) {
    animation-delay: 0.4s;
}


/* "Sliding Font" Animation */

.text-animate {
    opacity: 0;
    /* Start hidden until JS adds .active */
}

.text-animate.active .word {
    display: inline-block;
    overflow: hidden;
}

.text-animate.active .char {
    display: inline-block;
    transform: translateY(110%);
    animation: slideUpChar 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideUpChar {
    to {
        transform: translateY(0);
    }
}


/* =========================================
   8. FOOTER
   ========================================= */

footer {
    background-color: var(--primary-purple-dark);
    color: #ccc;
    /* Lighter text for better contrast */
    padding: 60px 0 30px 0;
    border-top: 5px solid var(--accent-orange);
}

footer h5 {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer-links li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    padding-bottom: 3px;
}

.footer-links li a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-orange);
    transition: 0.3s;
}

.footer-links li a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple-dark);
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-orange);
    color: white;
    transform: translateY(-3px);
}