/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    padding-top: 70px;
}

/* Scroll Reveal Animations */
.reveal {
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0) scale(1);
}

.fade-up {
    transform: translateY(20px);
}

.fade-down {
    transform: translateY(-20px);
}

.fade-left {
    transform: translateX(-20px);
}

.fade-right {
    transform: translateX(20px);
}

.zoom-in {
    transform: scale(0.9);
}

/* Staggered Delay Utilities - Enhanced for speed */
.delay-50 {
    transition-delay: 50ms;
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-150 {
    transition-delay: 150ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-250 {
    transition-delay: 250ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Premium Hover Transitions */
.premium-hover {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.hero-section {
    padding: 60px 0 80px;
    background: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: -70px;
    padding-top: 130px;
    overflow: hidden;
    /* Fix for horizontal scroller */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    /* Remove old overlay so we can control video better */
    z-index: 1;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Slight transparency so it fits the dark tech theme */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(30, 58, 138, 0.4) 100%);
    z-index: 1;
}



/* CTA Banner Section with City Parallax */
.cta-banner-section {
    padding: 80px 0;
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #000000;
    background-image: url('city.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    color: #ffffff;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-description {
    font-size: 18px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button-container {
    margin-top: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 18px 40px;
    background-color: #4a90e2;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.cta-btn:hover {
    background-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
    color: #ffffff;
}

.cta-btn:active {
    transform: translateY(-1px);
}

/* Responsive CTA Banner */
@media (max-width: 768px) {
    .title-welcome {
        font-size: 2.2rem;
    }

    .title-tagline {
        font-size: 1.5rem;
    }

    .cta-banner-section {
        padding: 60px 0;
        min-height: 350px;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-description {
        font-size: 16px;
    }

    .cta-btn {
        padding: 15px 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .cta-banner-section {
        padding: 40px 0;
        min-height: 300px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-description {
        font-size: 14px;
        margin-bottom: 25px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin-bottom: 30px;
    line-height: 1.3;
    text-align: center;
}

.title-welcome {
    color: #4a90e2;
    font-size: 3.8rem;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    line-height: 1.1;
}

.title-tagline {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    line-height: 1.2;
    opacity: 0.95;
}

.hero-description {
    color: #4a90e2;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Contact Us — Outline / Secondary */
.btn-contact {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65);
    padding: 12px 30px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #ffffff !important;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    text-shadow: none;
}

.btn-contact:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-contact:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(0);
}

/* Get a Quote — Bright Blue + Glow */
.btn-internship,
.btn-quote {
    background: linear-gradient(135deg, #2979ff 0%, #1565c0 100%) !important;
    border: none !important;
    padding: 12px 30px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #ffffff !important;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    box-shadow: 0 0 18px rgba(41, 121, 255, 0.55), 0 4px 14px rgba(41, 121, 255, 0.35) !important;
}

.btn-internship:hover,
.btn-quote:hover {
    background: linear-gradient(135deg, #448aff 0%, #2962ff 100%) !important;
    box-shadow: 0 0 30px rgba(41, 121, 255, 0.85), 0 8px 24px rgba(41, 121, 255, 0.5) !important;
    transform: translateY(-3px);
    color: #ffffff !important;
}

.btn-internship:active,
.btn-quote:active {
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(41, 121, 255, 0.5) !important;
}

/* Override Bootstrap button styles */
.btn-contact.btn,
.btn-internship.btn {
    border-radius: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.btn-contact.btn.btn-primary {
    background-color: #4a90e2 !important;
    border-color: #4a90e2 !important;
}

.btn-internship.btn.btn-outline {
    background-color: #4a90e2 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Force internship button styling */
button.btn-internship,
.btn-internship.btn,
.hero-buttons .btn-internship {
    background-color: #4a90e2 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
}

button.btn-internship:hover,
.btn-internship.btn:hover,
.hero-buttons .btn-internship:hover {
    background-color: #3498db !important;
    color: #ffffff !important;
}

/* Navigation Bar */
.navbar {
    background-image: url('building.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000000 !important;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    /* Removed overflow: visible because it creates double scrollbar on mobile */
    border-bottom: none !important;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000 !important;
    z-index: 1;
}

.navbar-pure-black {
    background: #000000 !important;
    background-image: none !important;
}

.navbar-pure-black::before {
    background: #000000 !important;
    backdrop-filter: none !important;
}

.navbar .container {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Force hamburger menu to the right side on main page */
.navbar .navbar-toggler {
    margin-left: auto !important;
    /* Push hamburger to the right */
    order: 3 !important;
    /* Ensure it comes after brand and nav items */
}

.navbar-brand {
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-main-logo {
    height: 50px;
    width: auto;
    min-width: 50px;
    max-width: 80px;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Enhanced logo visibility */
    background: transparent !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    /* Force proper loading */
    content-visibility: visible !important;
    contain: none !important;
}

.navbar-main-logo:hover {
    transform: scale(1.05);
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.brand-subtitle {
    font-size: 14px;
    color: #cccccc;
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 2px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Brand subtitle - force correct capitalization for all browsers including Edge */
.brand-subtitle {
    font-size: 12px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 2px;
    text-transform: none !important;
    -webkit-text-transform: none !important;
    -moz-text-transform: none !important;
    -ms-text-transform: none !important;
    font-variant: normal !important;
    -webkit-font-variant: normal !important;
    -moz-font-variant: normal !important;
    -ms-font-variant: normal !important;
}

/* Force correct capitalization for brand subtitle with highest specificity - Edge compatibility */
.navbar-brand .brand-subtitle,
.brand-text-container .brand-subtitle,
.navbar .navbar-brand .brand-text-container .brand-subtitle,
.navbar .brand-container .brand-text-container .brand-subtitle {
    text-transform: none !important;
    -webkit-text-transform: none !important;
    -moz-text-transform: none !important;
    -ms-text-transform: none !important;
    font-variant: normal !important;
    -webkit-font-variant: normal !important;
    -moz-font-variant: normal !important;
    -ms-font-variant: normal !important;
}

.navbar-nav .nav-link {
    color: #ecf0f1 !important;
    font-weight: 500;
    padding: 10px 16px !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: transparent !important;
    border: none !important;
    border-radius: 6px;
    margin: 0 3px;
    font-size: 14px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #4a90e2 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0);
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.8);
    transform: translateY(-1px);
    /* Edge compatibility */
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    -webkit-box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
    -moz-box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
    -webkit-text-shadow: 0 0 10px rgba(74, 144, 226, 0.8);
    -moz-text-shadow: 0 0 10px rgba(74, 144, 226, 0.8);
}

.navbar-toggler {
    border: none;
    padding: 10px;
    margin-left: auto !important;
    /* Force to right side */
    order: 3 !important;
    /* Ensure proper order */
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }

    .brand-name {
        font-size: 20px;
    }

    .tech-card {
        height: 120px;
    }
}

@media (max-width: 992px) {
    .content-section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-section {
        min-height: 80vh;
    }

    .hero-content {
        margin-left: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .title-welcome,
    .title-company {
        font-size: 2.5rem;
    }

    .title-tagline {
        font-size: 2.2rem;
    }

    .navbar-brand {
        padding: 8px 10px;
    }

    .brand-container {
        gap: 8px;
    }

    .navbar-logo,
    .navbar-favicon {
        height: 35px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-subtitle {
        font-size: 11px;
    }


    .illustration-container {
        padding: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 40px 15px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-section {
        min-height: 100vh;
        padding: 90px 15px 60px;
        display: flex;
        align-items: center;
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }

    .title-welcome {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .title-tagline {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .title-welcome,
    .title-company {
        font-size: 2.2rem;
    }

    .title-tagline {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        /* Center the buttons */
        gap: 15px;
        width: 100%;
    }

    .btn-contact,
    .btn-internship,
    .btn-quote {
        width: 100%;
        max-width: 250px;
        min-height: 48px;
        /* Minimum touch target size */
        touch-action: manipulation;
        /* Improve touch responsiveness */
        -webkit-tap-highlight-color: transparent;
        /* Remove tap highlight */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        font-size: 13px;
        margin: 2px 0;
        border: none !important;
        background: transparent !important;
        width: 120px;
        text-align: center;
        display: block;
        border-radius: 6px;
    }

    /* Move mobile navbar items to the right */
    .navbar-collapse {
        text-align: right;
        padding-bottom: 20px !important;
    }

    .navbar-nav {
        margin: 0 0 0 auto !important;
        padding-right: 15px;
        padding-bottom: 15px;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
    }

    .navbar .container {
        padding-left: 10px !important;
        /* Reduce container left padding */
        padding-right: 15px !important;
    }

    .navbar-brand {
        padding: 8px 0px !important;
        /* Remove padding to move logo left */
        margin-left: 0px !important;
        /* Ensure no left margin */
    }

    .brand-container {
        flex-direction: row !important;
        gap: 8px !important;
        /* Reduce gap between logo and text */
        align-items: center !important;
        justify-content: flex-start !important;
        /* Ensure left alignment */
    }

    .navbar-main-logo {
        height: 35px !important;
        max-width: 40px !important;
        flex-shrink: 0;
    }

    .brand-name {
        font-size: 18px !important;
    }

    .brand-subtitle {
        font-size: 11px !important;
    }

    .brand-text-container {
        align-items: flex-start !important;
        flex-shrink: 0;
    }

    .service-card,
    .portfolio-item,
    .pricing-card,
    .review-card {
        margin-bottom: 20px;
    }

    .tech-card {
        height: 100px;
        padding: 20px 15px;
    }

    .tech-icon i {
        font-size: 30px;
    }

    .tech-card h5 {
        font-size: 14px;
    }


    .tech-category-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .content-section {
        padding: 30px 10px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-section {
        min-height: 100vh;
        padding: 100px 10px 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
        padding-top: 20px;
    }

    .title-welcome {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .title-tagline {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 14px;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .section-description.text-left {
        text-align: center !important;
    }

    .title-welcome,
    .title-company {
        font-size: 1.8rem;
    }

    .title-tagline {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 14px;
    }

    .navbar-brand {
        padding: 8px 10px !important;
    }

    .brand-container {
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .brand-name {
        font-size: 16px !important;
        white-space: nowrap;
    }

    .brand-subtitle {
        font-size: 10px !important;
        white-space: nowrap;
    }

    .navbar-main-logo {
        height: 32px !important;
        max-width: 36px !important;
        flex-shrink: 0;
    }

    .brand-text-container {
        flex-shrink: 0;
        min-width: 0;
    }

    .navbar-nav .nav-link {
        padding: 8px 12px !important;
        font-size: 13px;
        margin: 2px 0;
        border: none !important;
        background: transparent !important;
        width: 120px;
        text-align: right;
        display: block;
        border-radius: 6px;
    }

    /* Move mobile navbar items to the right on small screens */
    .navbar-collapse {
        text-align: right;
        padding-bottom: 20px !important;
    }

    .navbar-nav {
        margin: 0 0 0 auto !important;
        padding-right: 15px;
        padding-bottom: 15px;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
    }

    .service-card,
    .portfolio-item,
    .pricing-card,
    .review-card {
        padding: 20px 15px;
    }

    .tech-card {
        height: 90px;
        padding: 15px 10px;
    }

    .tech-icon i {
        font-size: 25px;
    }

    .tech-card h5 {
        font-size: 13px;
    }


    .pricing-card .price {
        font-size: 1.5rem;
    }

    .tech-category-title {
        font-size: 1.3rem;
    }

    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.4rem;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title.text-left {
        text-align: center !important;
    }

    .title-main {
        font-size: 1.8rem;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-subtitle {
        font-size: 9px;
    }

    .navbar-logo,
    .navbar-favicon {
        height: 25px;
    }

    .tech-card {
        height: 80px;
    }

    .tech-icon i {
        font-size: 20px;
    }
}

/* Content Sections - Full Height & Responsive */
.content-section {
    padding: 80px 20px 60px;
    background: #ffffff;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    width: 100%;
    scroll-margin-top: 70px;
}

section:last-of-type {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.section-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 40px;
    padding-right: 40px;
}

.section-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.section-description {
    color: #666666;
    font-size: 18px;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Cards */
.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #4a90e2;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.2);
}

.service-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card p {
    color: #666666;
}

/* Portfolio Items */
.portfolio-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: #4a90e2;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.2);
}

.portfolio-item h4 {
    color: #4a90e2;
    margin-bottom: 15px;
}

.portfolio-item p {
    color: #666666;
}

/* Pricing Cards */
.pricing-card {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: #4a90e2;
}

.pricing-card h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.pricing-card .price {
    color: #4a90e2;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.pricing-card p {
    color: #cccccc;
}

/* Review Cards */
.review-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: #4a90e2;
}

.review-card p {
    color: #cccccc;
    font-style: italic;
    margin-bottom: 15px;
}

.review-card h5 {
    color: #4a90e2;
    text-align: right;
}

/* Contact Form */
.contact-form {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
}

.contact-form .form-control {
    background: #333;
    border: 1px solid #555;
    color: #ffffff;
}

.contact-form .form-control:focus {
    background: #333;
    border-color: #4a90e2;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.contact-form .form-control::placeholder {
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title.text-left {
        text-align: center !important;
    }

    .section-description {
        font-size: 16px;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .section-description.text-left {
        text-align: center !important;
    }
}

/* Why Choose Section - Accordion Style */
.section-title.text-left {
    text-align: left;
    margin-bottom: 20px;
}

.section-title .highlight {
    color: #4a90e2;
}

.section-description.text-left {
    text-align: left;
    margin-bottom: 40px;
}

.accordion-list {
    margin-top: 30px;
}

/* ============================================================
   RESPONSIVE ACCORDION & FAQ SYSTEM
   ============================================================ */
.faq-underline {
    width: 80px;
    height: 4px;
    background: #4a90e2;
    margin: -20px auto 30px;
    border-radius: 2px;
}

#faq .section-description {
    margin-bottom: 50px;
}

/* FAQ Illustration Side */
.faq-illustration {
    position: relative;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-ai-img {
    border-radius: 40px;
    box-shadow: 0 40px 80px -20px rgba(74, 144, 226, 0.35);
    animation: floatAI 6s ease-in-out infinite;
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-img-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(50px);
    z-index: 1;
    pointer-events: none;
}

@keyframes floatAI {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(2deg);
    }
}

/* Mobile adjustments for FAQ layout */
@media (max-width: 991px) {
    .faq-illustration {
        padding: 0;
        margin-bottom: 40px;
    }

    .floating-ai-img {
        max-width: 80%;
    }
}

/* Compact FAQ Overrides - Making it match the scaled-down look */
#faq .accordion-item {
    margin-bottom: 12px;
    border-radius: 12px;
}

#faq .accordion-header {
    padding: 14px 20px;
}

#faq .accordion-header h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

#faq .accordion-content {
    padding: 0 20px 15px;
}

#faq .accordion-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================================
   MODERN FLOATING CARD ACCORDION SYSTEM
   ============================================================ */
.accordion-item,
.faq-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
}

/* Vertical blue accent bar - Premium Slide-In */
.accordion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #4a90e2;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
}

.accordion-item.opened-box::before {
    transform: scaleY(1);
}

.accordion-item.opened-box {
    border-color: rgba(74, 144, 226, 0.4);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.12);
    transform: translateY(-2px);
}

.accordion-header,
.faq-header {
    padding: 24px 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    background: #fcfdff;
    transition: background 0.3s ease;
}

.accordion-header:hover,
.faq-header:hover {
    background: #f8fbff;
}

.accordion-header h4,
.faq-header h4 {
    margin: 0;
    flex: 1;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.accordion-item.opened-box .accordion-header h4,
.faq-item.opened-box .faq-header h4 {
    color: #4a90e2;
}

/* Dropdown Content - Premium Slide */
.accordion-content,
.faq-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.accordion-item.opened-box .accordion-content,
.faq-item.opened-box .faq-content {
    max-height: 800px;
    opacity: 1;
    padding: 10px 30px 30px 30px;
    border-top: 1px solid #f8f9fa;
}

.accordion-content p,
.faq-content p {
    color: #5d6d7e;
    line-height: 1.6;
    font-size: 1.05rem;
    margin: 0;
}

/* Icon logic - Premium Circular Morph */
.accordion-header::after {
    content: '+';
    width: 40px;
    height: 40px;
    background: #f0f7ff;
    color: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 300;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    margin-left: 20px;
}

.accordion-item.opened-box .accordion-header::after {
    content: '×';
    background: #4a90e2;
    color: #ffffff;
    transform: rotate(90deg);
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
}

@media (max-width: 768px) {

    .accordion-header,
    .faq-header {
        padding: 20px;
    }

    .accordion-header h4,
    .faq-header h4 {
        font-size: 1.1rem;
    }

    .accordion-content,
    .faq-content {
        padding: 0 20px;
    }

    .accordion-item.opened-box .accordion-content,
    .faq-item.opened-box .faq-content {
        padding: 10px 20px 20px 20px;
    }
}

.accordion-content p {
    color: #666666;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.illustration-container {
    text-align: center;
    padding: 40px;
}

.why-choose-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

/* Technologies Section - New Layout */
.tech-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    height: 400px;
}

.tech-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.tech-image-container:hover .tech-main-image {
    transform: scale(1.05);
}

.tech-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.85) 0%, rgba(52, 152, 219, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.tech-image-container:hover .tech-image-overlay {
    opacity: 1;
}

.tech-overlay-content {
    text-align: center;
    color: #ffffff;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.tech-image-container:hover .tech-overlay-content {
    transform: translateY(0);
}

.tech-overlay-content h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tech-overlay-content p {
    font-size: 16px;
    opacity: 0.9;
}

.tech-icons-grid {
    margin-top: 40px;
}

.tech-icons-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tech-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tech-icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tech-icon-box i {
    font-size: 32px;
    color: #ffffff;
}

.tech-icon-item span {
    font-size: 13px;
    color: #666666;
    font-weight: 500;
    text-align: center;
}

/* Technology Icon Colors */
.html5 {
    background: linear-gradient(135deg, #e34c26 0%, #f06529 100%);
}

.css3 {
    background: linear-gradient(135deg, #264de4 0%, #2965f1 100%);
}

.javascript {
    background: linear-gradient(135deg, #f0db4f 0%, #f7df1e 100%);
}

.javascript i {
    color: #323330 !important;
}

.bootstrap {
    background: linear-gradient(135deg, #563d7c 0%, #7952b3 100%);
}

.php {
    background: linear-gradient(135deg, #777bb3 0%, #8892bf 100%);
}

.react {
    background: linear-gradient(135deg, #61dafb 0%, #00d8ff 100%);
}

.react i {
    color: #20232a !important;
}

.nodejs {
    background: linear-gradient(135deg, #68a063 0%, #8cc84b 100%);
}

.express {
    background: linear-gradient(135deg, #000000 0%, #404040 100%);
}

.python {
    background: linear-gradient(135deg, #306998 0%, #ffd43b 100%);
}

.mysql {
    background: linear-gradient(135deg, #00758f 0%, #f29111 100%);
}

/* Technologies Responsive Design */
@media (max-width: 992px) {
    .tech-image-container {
        height: 300px;
        margin-bottom: 40px;
    }

    .tech-icon-box {
        width: 60px;
        height: 60px;
    }

    .tech-icon-box i {
        font-size: 28px;
    }

    .tech-icons-row {
        gap: 15px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tech-image-container {
        height: 250px;
    }

    .tech-overlay-content h3 {
        font-size: 22px;
    }

    .tech-overlay-content p {
        font-size: 14px;
    }

    .tech-icon-box {
        width: 55px;
        height: 55px;
    }

    .tech-icon-box i {
        font-size: 24px;
    }

    .tech-icon-item span {
        font-size: 12px;
    }

    .tech-icons-row {
        gap: 12px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .tech-image-container {
        height: 200px;
    }

    .tech-icon-box {
        width: 50px;
        height: 50px;
    }

    .tech-icon-box i {
        font-size: 20px;
    }

    .tech-icon-item span {
        font-size: 11px;
    }

    .tech-icons-row {
        gap: 10px;
        justify-content: center;
    }
}

/* About Us Section Styling */
.about-underline {
    width: 60px;
    height: 3px;
    background: #4a90e2;
    margin: 0 auto 40px;
}

.about-intro {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-description {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.services-list {
    margin-top: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666666;
}

.service-item i {
    color: #4a90e2;
    margin-right: 12px;
    font-size: 16px;
}

.service-item span {
    font-size: 15px;
    line-height: 1.5;
}

.company-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #4a90e2;
}

.company-info p {
    margin: 0;
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
}

.learn-more-btn {
    margin-top: 25px;
}

.btn-vibrant {
    background-color: #4a90e2 !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.btn-vibrant:hover {
    background-color: #357abd !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    color: #4a90e2;
    border-color: #4a90e2;
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Accordion Animation Keyframes */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    0% {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* New Services Section Styling */
.services-underline {
    width: 60px;
    height: 3px;
    background: #4a90e2;
    margin: 0 auto 40px;
}

.service-card-new {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #4a90e2, #3498db);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card-new:hover::before {
    transform: scaleX(1);
}

.service-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
    border-color: #4a90e2;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4a90e2, #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 35px;
    color: #ffffff;
}

.service-card-new:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-number {
    color: #4a90e2;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-details {
    text-align: left;
}

.service-details p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.service-details strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive adjustments for services */
@media (max-width: 768px) {
    .service-card-new {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 25px;
    }

    .service-number {
        font-size: 16px;
    }

    .service-details p {
        font-size: 13px;
    }
}

/* Portfolio Section Styling */
.portfolio-underline {
    width: 60px;
    height: 3px;
    background: #4a90e2;
    margin: 0 auto 40px;
}

.portfolio-grid {
    margin-top: 40px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 220px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-content p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #cccccc;
}

.portfolio-category {
    display: inline-block;
    background: #4a90e2;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Portfolio Responsive Design - Smaller mobile images */
@media (max-width: 992px) {
    .portfolio-card {
        height: 220px;
        /* Reduced from 250px */
        margin-bottom: 20px;
    }

    .portfolio-content h4 {
        font-size: 20px;
    }

    .portfolio-content p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .portfolio-card {
        height: 180px;
        /* Reduced from 220px */
        margin-bottom: 15px;
    }

    /* Smaller images on mobile */
    .portfolio-img {
        height: 180px;
        object-fit: cover;
    }

    .portfolio-content h4 {
        font-size: 18px;
    }

    .portfolio-content p {
        font-size: 13px;
    }

    .portfolio-category {
        font-size: 11px;
        padding: 4px 12px;
    }
}

@media (max-width: 576px) {
    .portfolio-card {
        height: 160px;
        /* Reduced from 200px */
    }

    /* Even smaller on small mobile */
    .portfolio-img {
        height: 160px;
        object-fit: cover;
    }

    .portfolio-content h4 {
        font-size: 16px;
    }

    .portfolio-content p {
        font-size: 12px;
    }
}

/* Footer Section */
.footer-section {
    background: #f8f9fa;
    padding: 60px 0 0;
    border-top: 1px solid #e0e0e0;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4a90e2;
}

.footer-address p,
.footer-contact p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-contact p strong {
    color: #2c3e50;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.footer-links li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: bold;
    font-size: 16px;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #4a90e2;
    padding-left: 5px;
}

.footer-social-text {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link.twitter {
    background: #1da1f2;
    color: #ffffff;
}

.social-link.facebook {
    background: #3b5998;
    color: #ffffff;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.social-link.linkedin {
    background: #0077b5;
    color: #ffffff;
}

.social-link.github {
    background: #333333;
    color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
    background: #ffffff;
    padding: 20px 0;
    margin-top: 40px;
}

.copyright-text {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    margin: 0;
}

.copyright-text strong {
    color: #4a90e2;
}

.designed-by {
    color: rgba(0, 0, 0, 0.4);
    font-size: 14px;
    margin: 0;
    text-align: right;
}

.designed-by span {
    color: #4a90e2;
    font-weight: 600;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 0;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer-address p,
    .footer-contact p,
    .footer-links a,
    .footer-social-text {
        font-size: 13px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .footer-bottom {
        padding: 15px 0;
        text-align: center;
    }

    .designed-by {
        text-align: center;
        margin-top: 10px;
    }

    .copyright-text,
    .designed-by {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .footer-section {
        padding: 30px 0 0;
    }

    .footer-widget {
        margin-bottom: 25px;
    }

    .footer-title {
        font-size: 15px;
    }

    .footer-social {
        justify-content: center;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* Animation Fallbacks for Better Browser Support */
@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background-color: rgba(0, 0, 0, 0.9) !important;
    }
}

/* Ensure animations work on all browsers */
.accordion-item,
.portfolio-card,
.tech-card,
.service-card-new {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Force hardware acceleration for smoother animations */
.portfolio-card,
.tech-card,
.service-card-new,
.accordion-item {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Ensure Font Awesome icons load properly */
.fab,
.fas,
.far {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900;
}

/* Loading state for better UX */
body.loading {
    overflow: hidden;
}

body.loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

body.loaded::before {
    opacity: 0;
    pointer-events: none;
}

/* Team Section Styling */
.team-header {
    text-align: center;
    margin-bottom: 40px;
}

.team-badge {
    display: inline-block;
    background: #4a90e2;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.team-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #4a90e2, #3498db);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
    border-color: #4a90e2;
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.avatar-initial {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
}

.team-name {
    color: #2c3e50;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
}

.team-role {
    color: #4a90e2;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.team-description {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Team Responsive Design */
@media (max-width: 992px) {
    .team-card {
        padding: 35px 25px;
        margin-bottom: 30px;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-initial {
        font-size: 40px;
    }

    .team-name {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .team-card {
        padding: 30px 20px;
    }

    .team-avatar {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }

    .avatar-initial {
        font-size: 36px;
    }

    .team-name {
        font-size: 17px;
    }

    .team-role {
        font-size: 12px;
    }

    .team-description {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .team-card {
        padding: 25px 15px;
    }

    .team-avatar {
        width: 80px;
        height: 80px;
    }

    .avatar-initial {
        font-size: 32px;
    }

    .team-name {
        font-size: 16px;
    }

    .team-description {
        font-size: 12px;
    }
}

/* New Pricing Section Styling */
.pricing-underline {
    width: 60px;
    height: 3px;
    background: #4a90e2;
    margin: 0 auto 40px;
}

.pricing-card-new {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: left;
    height: 100%;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #4a90e2, #3498db);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card-new:hover::before {
    transform: scaleX(1);
}

.pricing-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
    border-color: #4a90e2;
}

.pricing-plan-title {
    color: #4a90e2;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.pricing-amount {
    color: #4a90e2;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.pricing-features li {
    color: #666666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 0;
}

.pricing-btn {
    background: #4a90e2;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: auto;
}

.pricing-btn:hover {
    background: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Pricing Responsive Design */
@media (max-width: 992px) {
    .pricing-card-new {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .pricing-card-new {
        padding: 20px 15px;
    }
}

/* ===== PREMIUM HOSTINGER-STYLE PRICING ===== */
.pricing-grid-premium {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0px;
    align-items: stretch;
}

@media (min-width: 1200px) {
    .pricing-grid-premium {
        flex-wrap: nowrap;
        /* Force 4 side-by-side on large screens */
    }
}

.plan-card-host {
    background: #ffffff;
    border-radius: 22px;
    padding: 35px 25px;
    width: 100%;
    flex: 1 1 240px;
    max-width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.plan-card-host::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f1f5f9, #e2e8f0);
    border-radius: 22px 22px 0 0;
    transition: all 0.4s ease;
}

.plan-card-host.featured::before {
    display: none;
}

.plan-card-host:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -10px rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.25);
}

.plan-card-host:hover::before {
    background: linear-gradient(90deg, #4a90e2, #7eb6ff);
}

.plan-card-host.featured {
    border: 2px solid #4a90e2;
    box-shadow: 0 30px 60px -15px rgba(74, 144, 226, 0.25);
    padding-top: 65px;
    transform: scale(1.05);
    z-index: 2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.plan-card-host.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 40px 70px -10px rgba(74, 144, 226, 0.35);
}

/* Most Popular Ribbon */
.ribbon-popular {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    text-align: center;
    padding: 12px 10px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #e2ff3b;
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(226, 255, 59, 0.4);
}

.plan-header {
    margin-bottom: 25px;
}

.compare-plans-container {
    text-align: center;
    margin-top: 45px;
}

.compare-plans-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(74, 144, 226, 0.08);
}

.compare-plans-link:hover {
    color: #357abd;
    background: rgba(74, 144, 226, 0.15);
    transform: translateY(-2px);
}

.compare-plans-link i {
    transition: transform 0.3s ease;
}

.compare-plans-link:hover i {
    transform: translateX(4px);
}

.plan-name-h {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.plan-desc-h {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.old-price {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 5px;
    display: block;
}

.main-price-h {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.main-price-h span {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 5px;
}

.price-subtext {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 10px;
    display: block;
}

.deal-bar {
    background: #eef2ff;
    color: #6366f1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.choose-plan-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    border: 2px solid #1e293b;
    background: transparent;
    color: #1e293b;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 15px;
}

.choose-plan-btn:hover {
    background: #f8fafc;
}

.choose-plan-btn.dark {
    background: #1e293b;
    color: #ffffff;
}

.choose-plan-btn.dark:hover {
    background: #0f172a;
}

.renewal-text {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 30px;
}

.plan-features-h {
    border-top: 1px solid #f1f5f9;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-item-h {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #475569;
}

.feature-item-h.header {
    font-weight: 800;
    color: #1e293b;
    margin-top: 15px;
}

.feature-item-h i.ri-check-line {
    color: #10b981;
    font-weight: 900;
    font-size: 1.2rem;
}

.feature-item-h i {
    font-size: 1.1rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .plan-card-host {
        max-width: 100%;
    }
}


/* FAQ Section Styling - Same as Why Choose */
.faq-underline {
    width: 60px;
    height: 3px;
    background: #4a90e2;
    margin: 0 auto 40px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Cleaned up redundant .faq-item and .faq-header overrides. FAQ now successfully matches the premium accordion system */

/* Contact Section Styling - Box Layout */
.contact-underline {
    width: 60px;
    height: 3px;
    background: #4a90e2;
    margin: 0 auto 40px;
}

/* Contact Info Box */
.contact-info-box {
    background: #ffffff;
    border: 2px solid #4a90e2;
    border-radius: 15px;
    padding: 30px;
    height: auto;
    /* Allow box to expand */
    min-height: 100%;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.1);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    background: #4a90e2;
}

.contact-icon i {
    color: #ffffff;
    font-size: 18px;
}

.contact-details h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-details p {
    color: #666666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.contact-map {
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    width: 100%;
    display: block;
    position: relative;
    border: 1px solid #f0f0f0;
    background: #f8f9fa;
    /* Fallback background color */
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100% !important;
}

/* Contact Form Box */
.contact-form-box {
    background: #ffffff;
    border: 2px solid #4a90e2;
    border-radius: 15px;
    padding: 20px;
    height: auto;
    /* Allow box to expand */
    min-height: 100%;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.1);
}

.contact-form-new {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.contact-form-new label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.contact-form-new .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form-new .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    outline: none;
    background: #ffffff;
}

.contact-submit-btn {
    background: #4a90e2;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.contact-submit-btn:hover {
    background: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Responsive Design */
@media (max-width: 768px) {

    .contact-info-box,
    .contact-form-box {
        padding: 20px 15px;
        /* Reduced side padding to increase internal width */
        margin-bottom: 20px;
    }

    .contact-info-item {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

    .contact-icon i {
        font-size: 16px;
    }

    .contact-details h4 {
        font-size: 14px;
    }

    .contact-details p {
        font-size: 13px;
    }

    .contact-submit-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {

    .contact-info-box,
    .contact-form-box {
        padding: 15px 10px;
        /* Reduced side padding to increase internal width */
        border-width: 1px;
    }

    .contact-info-item {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }

    .contact-icon i {
        font-size: 14px;
    }

    .contact-details h4 {
        font-size: 13px;
    }

    .contact-details p {
        font-size: 12px;
    }

    .contact-form-new .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Reviews Section Styling */
.reviews-underline {
    width: 60px;
    height: 3px;
    background: #4a90e2;
    margin: 0 auto 40px;
}

.reviews-grid {
    margin-top: 40px;
}

.review-card-new {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: left;
    height: 100%;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.review-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #4a90e2, #3498db);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.review-card-new:hover::before {
    transform: scaleX(1);
}

.review-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
    border-color: #4a90e2;
}

.review-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.review-stars i {
    color: #4a90e2;
    font-size: 16px;
}

.review-text {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    min-height: 80px;
}

.review-author h5 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.review-author .company {
    color: #4a90e2;
    font-size: 13px;
    font-weight: 500;
}

/* Reviews Responsive Design */
@media (max-width: 992px) {
    .review-card-new {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .review-stars i {
        font-size: 14px;
    }

    .review-text {
        font-size: 13px;
        min-height: 70px;
    }

    .review-author h5 {
        font-size: 15px;
    }

    .review-author .company {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .review-card-new {
        padding: 20px 18px;
    }

    .review-stars {
        margin-bottom: 15px;
    }

    .review-stars i {
        font-size: 13px;
    }

    .review-text {
        font-size: 12px;
        margin-bottom: 20px;
        min-height: 60px;
    }

    .review-author h5 {
        font-size: 14px;
    }

    .review-author .company {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .review-card-new {
        padding: 18px 15px;
    }

    .review-stars i {
        font-size: 12px;
        gap: 3px;
    }

    .review-text {
        font-size: 11px;
        min-height: 50px;
    }

    .review-author h5 {
        font-size: 13px;
    }
}

/* Statistics within Team Section Styling */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: -30px;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Mobile Responsive for Statistics */
@media (max-width: 768px) {
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }

    .stat-item {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .statistics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Portfolio Action Buttons */
.portfolio-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.portfolio-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #4a90e2;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-btn:hover {
    background: #4a90e2;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.portfolio-link-btn:hover {
    background: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.portfolio-zoom-btn:hover {
    background: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #4a90e2;
}

.modal-caption {
    text-align: center;
    margin-top: 20px;
    color: white;
}

.modal-caption h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive for Portfolio Actions */
@media (max-width: 768px) {
    .portfolio-actions {
        gap: 8px;
        margin-top: 12px;
    }

    .portfolio-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .image-modal-content {
        padding: 10px;
    }

    .modal-image {
        max-height: 70vh;
    }

    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Universal Card Action Buttons */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.service-card-new:hover .card-actions,
.team-card:hover .card-actions,
.pricing-card-new:hover .card-actions,
.review-card-new:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #4a90e2;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-link-btn:hover {
    background: #28a745;
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.action-info-btn:hover {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Info Modal Styles */
.info-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.info-modal-content {
    position: relative;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.info-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.info-modal-close:hover {
    color: #4a90e2;
}

.info-modal h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.info-modal p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Modal Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive for Action Buttons */
@media (max-width: 768px) {
    .card-actions {
        gap: 8px;
        margin-top: 15px;
    }

    .action-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .info-modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 95%;
    }

    .info-modal h3 {
        font-size: 1.3rem;
    }

    .info-modal p {
        font-size: 0.9rem;
    }
}

/* Portfolio Hover Effect - Hidden by Default, Show on Touch/Hover */
.portfolio-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
    color: white;
    padding: 40px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2;
}

/* Show overlay ONLY on hover or touch */
.portfolio-card:hover .portfolio-text-overlay,
.portfolio-card:active .portfolio-text-overlay {
    opacity: 1;
    visibility: visible;
}

.portfolio-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.portfolio-subtitle {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Author name styling */
.portfolio-author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-style: italic;
}

/* Portfolio Overlay Actions - Circular buttons */
.portfolio-overlay-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.portfolio-overlay-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-overlay-btn:hover {
    background: #4a90e2;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Image zoom effect on hover */
.portfolio-card:hover .portfolio-img,
.portfolio-card:active .portfolio-img {
    transform: scale(1.05);
}

/* Mobile responsive for overlay */
@media (max-width: 768px) {
    .portfolio-text-overlay {
        padding: 25px 20px 20px;
    }

    .portfolio-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .portfolio-subtitle {
        font-size: 1rem;
    }

    .portfolio-author {
        font-size: 0.8rem;
    }

    .portfolio-overlay-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .portfolio-overlay-actions {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .portfolio-text-overlay {
        padding: 30px 15px 15px;
    }

    .portfolio-title {
        font-size: 1.2rem;
    }

    .portfolio-subtitle {
        font-size: 0.85rem;
    }

    .portfolio-overlay-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .portfolio-overlay-actions {
        gap: 10px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 12px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    z-index: 1000;
    pointer-events: none;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #357abd, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.4);
}

/* Pulse animation for attention */
.scroll-to-top::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    opacity: 0.2;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 38px;
        height: 38px;
        bottom: 18px;
        right: 18px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 35px;
        height: 35px;
        bottom: 15px;
        right: 15px;
        font-size: 14px;
    }
}









/* Page Refresh Spinner - Small Center Spinner */
.page-refresh-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-refresh-spinner.show {
    display: flex !important;
}

.spinner-container {
    position: relative;
    width: 50px;
    height: 50px;
    animation: spinContainer 1s linear infinite;
}

.spinner-favicon {
    position: absolute;
    width: 10px;
    height: 10px;
    /* Make favicon blue #4a90e2 */
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(87deg) brightness(119%) contrast(119%);
}

/* Position 8 favicon images in perfect circle formation */
.favicon-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
}

.favicon-2 {
    top: 6px;
    right: 6px;
    transform: rotate(45deg);
}

.favicon-3 {
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(90deg);
}

.favicon-4 {
    bottom: 6px;
    right: 6px;
    transform: rotate(135deg);
}

.favicon-5 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

.favicon-6 {
    bottom: 6px;
    left: 6px;
    transform: rotate(225deg);
}

.favicon-7 {
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(270deg);
}

.favicon-8 {
    top: 6px;
    left: 6px;
    transform: rotate(315deg);
}

.spinner-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spinContainer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Add staggered opacity for wave effect */
.icon-1 {
    animation-delay: 0s;
}

.icon-2 {
    animation-delay: 0.1s;
}

.icon-3 {
    animation-delay: 0.2s;
}

.icon-4 {
    animation-delay: 0.3s;
}

.icon-5 {
    animation-delay: 0.4s;
}

.icon-6 {
    animation-delay: 0.5s;
}

.icon-7 {
    animation-delay: 0.6s;
}

.icon-8 {
    animation-delay: 0.7s;
}

.icon-9 {
    animation-delay: 0.8s;
}

.icon-10 {
    animation-delay: 0.9s;
}

.icon-11 {
    animation-delay: 1.0s;
}

.icon-12 {
    animation-delay: 1.1s;
}

/* Mobile responsive for page spinner */
@media (max-width: 768px) {
    .spinner-container {
        width: 60px;
        height: 60px;
    }

    .spinner-arrow {
        font-size: 14px;
    }

    .arrow-1 {
        top: 2px;
    }

    .arrow-2 {
        top: 4px;
        right: 12px;
    }

    .arrow-3 {
        top: 12px;
        right: 4px;
    }

    .arrow-4 {
        top: 24px;
        right: 2px;
    }

    .arrow-5 {
        bottom: 24px;
        right: 2px;
    }

    .arrow-6 {
        bottom: 12px;
        right: 4px;
    }

    .arrow-7 {
        bottom: 4px;
        right: 12px;
    }

    .arrow-8 {
        bottom: 2px;
    }

    .arrow-9 {
        bottom: 4px;
        left: 12px;
    }

    .arrow-10 {
        bottom: 12px;
        left: 4px;
    }

    .arrow-11 {
        top: 24px;
        left: 2px;
    }

    .arrow-12 {
        top: 12px;
        left: 4px;
    }

    .spinner-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .spinner-container {
        width: 50px;
        height: 50px;
    }

    .spinner-arrow {
        font-size: 12px;
    }

    .arrow-1 {
        top: 1px;
    }

    .arrow-2 {
        top: 3px;
        right: 10px;
    }

    .arrow-3 {
        top: 10px;
        right: 3px;
    }

    .arrow-4 {
        top: 20px;
        right: 1px;
    }

    .arrow-5 {
        bottom: 20px;
        right: 1px;
    }

    .arrow-6 {
        bottom: 10px;
        right: 3px;
    }

    .arrow-7 {
        bottom: 3px;
        right: 10px;
    }

    .arrow-8 {
        bottom: 1px;
    }

    .arrow-9 {
        bottom: 3px;
        left: 10px;
    }

    .arrow-10 {
        bottom: 10px;
        left: 3px;
    }

    .arrow-11 {
        top: 20px;
        left: 1px;
    }

    .arrow-12 {
        top: 10px;
        left: 3px;
    }

    .spinner-text {
        font-size: 12px;
    }
}

/* Refresh Button with Blue Arrow */
.refresh-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 12px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #357abd, #2c5aa0);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.6);
}

.refresh-btn:hover i {
    animation: rotateRefresh 0.6s ease-in-out;
}

.refresh-btn:active {
    transform: translateY(-1px) scale(0.95);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.4);
}

@keyframes rotateRefresh {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile responsive for refresh button */
@media (max-width: 768px) {
    .refresh-btn {
        width: 38px;
        height: 38px;
        bottom: 18px;
        left: 18px;
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .refresh-btn {
        width: 35px;
        height: 35px;
        bottom: 15px;
        left: 15px;
        font-size: 16px;
    }
}

/* Portfolio Full-Screen Modal - Image Only */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.portfolio-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    transition: all 0.3s ease;
}

.portfolio-modal-close:hover {
    color: #4a90e2;
    transform: scale(1.1);
}

/* Navigation arrows positioned outside the image */
.portfolio-modal-prev,
.portfolio-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10001;
}

.portfolio-modal-prev {
    left: 40px;
    /* Outside the image area */
}

.portfolio-modal-next {
    right: 40px;
    /* Outside the image area */
}

.portfolio-modal-prev:hover,
.portfolio-modal-next:hover {
    background: rgba(74, 144, 226, 0.8);
    border-color: #4a90e2;
    transform: translateY(-50%) scale(1.1);
}

/* Image container - centered and clean */
.portfolio-modal-image-container {
    max-width: calc(100% - 200px);
    /* Leave space for arrows */
    max-height: 85%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-portfolio-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 20px;
}

/* Mobile Responsive for Portfolio Modal - Image Only */
@media (max-width: 768px) {
    .portfolio-modal-content {
        padding: 40px 20px;
    }

    .portfolio-modal-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }

    .portfolio-modal-prev,
    .portfolio-modal-next {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .portfolio-modal-prev {
        left: 20px;
    }

    .portfolio-modal-next {
        right: 20px;
    }

    .portfolio-modal-image-container {
        max-width: calc(100% - 120px);
        /* Less space for smaller arrows */
        max-height: 75%;
        border-radius: 15px;
    }

    .modal-portfolio-img {
        max-height: 70vh;
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    .portfolio-modal-content {
        padding: 30px 15px;
    }

    .portfolio-modal-prev,
    .portfolio-modal-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .portfolio-modal-prev {
        left: 15px;
    }

    .portfolio-modal-next {
        right: 15px;
    }

    .portfolio-modal-image-container {
        max-width: calc(100% - 100px);
        max-height: 70%;
        border-radius: 10px;
    }

    .modal-portfolio-img {
        max-height: 60vh;
        border-radius: 10px;
    }
}

/* Mobile Menu Optimization - JavaScript controlled */
@media (max-width: 991px) {
    .navbar-collapse {
        overflow: hidden;
    }

    /* Remove conflicting CSS animations - JavaScript handles this */
    .navbar-collapse .nav-item {
        transition: none;
        /* Let JavaScript control transitions */
    }

    /* Ensure hamburger button is properly positioned */
    .navbar-toggler {
        position: relative;
        transform: rotate(0deg) !important;
        margin-left: auto;
    }

    /* Force horizontal hamburger icon */
    .navbar-toggler-icon {
        transform: rotate(0deg) !important;
        width: 1.5em !important;
        height: 1.5em !important;
    }
}

/* Hamburger icon animation - horizontal rotation - ENHANCED */
.navbar-toggler {
    transition: all 0.4s ease !important;
    border: none !important;
    padding: 8px 10px !important;
    position: relative !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Hamburger icon horizontal rotation animation */
.navbar-toggler-icon {
    transition: all 0.4s ease;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    transform: rotate(0deg) !important;
}

/* When menu is open - change to vertical lines (side by side) */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    transform: rotate(0deg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M7 4v22M15 4v22M23 4v22'/%3e%3c/svg%3e");
}

/* Ensure hamburger is always horizontal on mobile */
@media (max-width: 991px) {
    .navbar-toggler {
        transform: rotate(0deg) !important;
    }

    .navbar-toggler-icon {
        transform: rotate(0deg) !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
        transform: rotate(0deg);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M7 4v22M15 4v22M23 4v22'/%3e%3c/svg%3e");
    }
}

/* Force horizontal hamburger on all screen sizes */
.navbar-toggler.collapsed .navbar-toggler-icon,
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transform: rotate(0deg) !important;
}


/* Edge-specific fixes */
@supports (-ms-ime-align: auto) {
    .brand-subtitle {
        text-transform: none !important;
        font-variant: normal !important;
    }

    .navbar-nav .nav-link.active {
        color: #4a90e2 !important;
        background-color: rgba(74, 144, 226, 0.2) !important;
        border: 1px solid rgba(74, 144, 226, 0.4) !important;
        border-radius: 6px !important;
        box-shadow: 0 0 15px rgba(74, 144, 226, 0.4) !important;
    }
}

/* Microsoft Edge Legacy support */
@supports (-ms-accelerator: true) {
    .brand-subtitle {
        text-transform: none !important;
        font-variant: normal !important;
    }

    .navbar-nav .nav-link.active {
        color: #4a90e2 !important;
        background-color: rgba(74, 144, 226, 0.2) !important;
        border: 1px solid rgba(74, 144, 226, 0.4) !important;
        border-radius: 6px !important;
        box-shadow: 0 0 15px rgba(74, 144, 226, 0.4) !important;
    }
}

/* Mobile Portfolio Preview Effect */
.portfolio-preview {
    transform: scale(1.05) !important;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.portfolio-preview .portfolio-text-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

.portfolio-preview .portfolio-img {
    transform: scale(1.1) !important;
}

/* Touch-friendly overlay buttons */
@media (max-width: 768px) {
    .portfolio-overlay-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin: 0 3px;
    }

    .portfolio-text-overlay {
        padding: 15px;
    }

    .portfolio-title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .portfolio-subtitle {
        font-size: 12px;
    }
}

/* Mobile touch indicator */
@media (max-width: 768px) {
    .portfolio-card::after {
        content: "👆 Tap to preview • Double tap to open";
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 10px;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 5;
        white-space: nowrap;
    }

    .portfolio-card:hover::after,
    .portfolio-card:active::after {
        opacity: 1;
    }

    /* Hide indicator when preview is active */
    .portfolio-preview::after {
        opacity: 0 !important;
    }
}

/* AGGRESSIVE FAQ ARROW REMOVAL - Multiple approaches to eliminate any arrows */

/* Method 1: Remove all pseudo-elements from FAQ items except our intended ones */
.faq-item *::after,
.faq-item *::before,
.faq-header *::after,
.faq-header *::before,
.faq-header h4::after,
.faq-header h4::before,
.faq-content *::after,
.faq-content *::before {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
}

/* Method 2: Force remove any arrow characters from text content */
.faq-header h4 {
    position: relative;
    text-decoration: none !important;
}

.faq-header h4:after,
.faq-header h4:before {
    content: '' !important;
    display: none !important;
}

/* Method 3: Remove any browser-generated content */
.faq-item,
.faq-header,
.faq-content {
    list-style: none !important;
    list-style-type: none !important;
}

/* Method 4: Hide any potential arrow unicode characters */
.faq-header h4 {
    font-family: Arial, sans-serif !important;
    letter-spacing: normal !important;
}

/* Method 5: Override any translation or browser extension arrows */
.faq-header h4 span,
.faq-header h4 i,
.faq-header h4 em {
    display: none !important;
}

/* Method 6: Force clean text content */
.faq-header h4::first-letter {
    color: #2c3e50 !important;
}

/* OUR INTENDED PLUS/MINUS ICONS - Highest specificity */
.faq-header::after {
    content: '+' !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: #4a90e2 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    z-index: 999 !important;
    font-family: Arial, sans-serif !important;
    line-height: 1 !important;
}


/* Additional safety - remove any arrows that might appear in specific positions */
.faq-header h4:nth-child(1)::after,
.faq-header h4:nth-child(2)::after,
.faq-header h4:last-child::after {
    content: none !important;
    display: none !important;
}

/* BROWSER-SPECIFIC FAQ ARROW FIXES */

/* Edge/IE specific fixes */
.faq-header h4 {
    -ms-text-overflow: clip !important;
    text-overflow: clip !important;
}

/* Chrome/Safari specific fixes */
.faq-header h4::-webkit-details-marker {
    display: none !important;
}

/* Firefox specific fixes */
.faq-header h4::-moz-list-bullet {
    display: none !important;
}

/* Remove any auto-generated content from browser extensions */
.faq-header h4>* {
    display: inline !important;
}

.faq-header h4>span:not(.faq-number),
.faq-header h4>i:not(.fa):not(.fas):not(.far):not(.fab),
.faq-header h4>em:empty,
.faq-header h4>strong:empty {
    display: none !important;
}

/* Force text direction and remove any RTL arrows */
.faq-header h4 {
    direction: ltr !important;
    unicode-bidi: normal !important;
}

/* Remove any translation service arrows */
.faq-header h4 .notranslate,
.faq-header h4 [translate="no"] {
    display: inline !important;
}

/* Hide any auto-inserted elements */
.faq-header h4>.auto-inserted,
.faq-header h4>.browser-inserted,
.faq-header h4>.extension-inserted {
    display: none !important;
}

/* Ensure our plus/minus icons are always visible */
.faq-header::after {
    z-index: 9999 !important;
    pointer-events: none !important;
}

/* Final override for internship button - highest specificity */
.hero-section .hero-buttons button.btn-internship.btn.btn-outline {
    background-color: #4a90e2 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 30px !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    font-size: 14px !important;
    text-shadow: none !important;
}

.hero-section .hero-buttons button.btn-internship.btn.btn-outline:hover {
    background-color: #3498db !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.hero-section .hero-buttons button.btn-internship.btn.btn-outline:active {
    background-color: #2980b9 !important;
    transform: translateY(0) !important;
}

/* Force white text for internship button - maximum specificity */
.hero-section .hero-content .hero-buttons button.btn-internship,
.hero-section .hero-content .hero-buttons button.btn-internship.btn,
.hero-section .hero-content .hero-buttons button.btn-internship.btn.btn-outline,
button.btn-internship * {
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* Ensure text is visible on hover too */
.hero-section .hero-content .hero-buttons button.btn-internship:hover,
.hero-section .hero-content .hero-buttons button.btn-internship.btn:hover,
.hero-section .hero-content .hero-buttons button.btn-internship.btn.btn-outline:hover {
    color: #ffffff !important;
}


/* Navbar Layout */
.navbar-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-nav {
    flex: 1;
    justify-content: center;
}

/* Responsive for Social Icons */
@media (max-width: 991px) {
    .navbar-collapse {
        flex-direction: column;
    }

    .navbar-nav {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }


}

/* IMAGE LOADING OPTIMIZATION - FIX STUCK/SLOW IMAGES */
img {
    /* Prevent layout shifts */
    max-width: 100%;
    height: auto;

    /* Optimize rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;

    /* Prevent stuck loading */
    display: block;

    /* Add fallback background */
    background-color: #f8f9fa;
}

/* Specific optimizations for main page images */
.navbar-main-logo,
.why-choose-illustration,
.portfolio-img {
    /* Force immediate display */
    opacity: 1 !important;
    visibility: visible !important;

    /* Optimize for mobile */
    will-change: auto;
    transform: none;
}

/* HOSTINGER LOGO BACKUP - CSS Background Method */
.navbar-main-logo-backup {
    width: 50px;
    height: 50px;
    background-image: url('favicon_white-removebg-preview.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    vertical-align: middle;
}

/* Force logo visibility on production/Hostinger */
@media screen {
    .navbar-main-logo {
        content: url('favicon_white-removebg-preview.png') !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 80px !important;
        height: 50px !important;
        object-fit: contain !important;
        image-rendering: auto !important;
        -webkit-image-rendering: auto !important;
        -moz-image-rendering: auto !important;
        -ms-image-rendering: auto !important;
    }
}

/* Hostinger specific fixes */
body:not(.localhost) .navbar-main-logo {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Alternative logo display method for problematic hosting */
.brand-container::before {
    content: '';
    display: none;
    width: 50px;
    height: 50px;
    background-image: url('favicon_white-removebg-preview.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 15px;
}

/* Show backup logo if main logo fails */
.navbar-main-logo[src=""],
.navbar-main-logo[src*="data:image/svg+xml"] {
    display: none !important;
}

.navbar-main-logo[src=""]:not(:only-child)+.brand-text-container::before,
.navbar-main-logo[src*="data:image/svg+xml"]:not(:only-child)+.brand-text-container::before {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    background-image: url('favicon_white-removebg-preview.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 15px;
    vertical-align: middle;
}

/* Enhanced Accordion Functionality - Ensure Clickable */
.accordion-header,
.faq-header {
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    transition: all 0.3s ease !important;
}

.accordion-header:hover,
.faq-header:hover {
    background-color: rgba(74, 144, 226, 0.05) !important;
}

.accordion-header:active,
.faq-header:active {
    background-color: rgba(74, 144, 226, 0.1) !important;
    transform: translateY(1px) !important;
}

/* Accordion state logic moved to line 1323 for clarity */

/* ============================================================
   MOBILE FIXES — All changes applied today (2026-02-28)
   ============================================================ */

/* 1. Fixed navbar — add body top padding so content isn't hidden behind it */
body {
    padding-top: 70px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    /* 2. Content sections — reduce padding on tablets */
    .content-section {
        padding: 50px 15px 40px;
        scroll-margin-top: 60px;
    }

    /* 3. Section titles on mobile */
    .section-title {
        font-size: 1.8rem !important;
    }

    /* 4. CTA/Internship banner already handled above — confirm min-height */
    .cta-banner-section {
        min-height: 320px;
        background-attachment: scroll;
        /* parallax off on mobile */
    }

    /* 5. Core Values cards — stack on mobile, keep readable */
    .value-item {
        margin-bottom: 16px;
    }

    /* 6. About page — Mission/Vision cards full width on mobile */
    .about-card {
        margin-bottom: 16px;
    }

    /* 7. Container horizontal padding on tablet */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 58px;
    }

    /* 2. Content sections — tightest padding on small phones */
    .content-section {
        padding: 35px 12px 30px;
        scroll-margin-top: 58px;
    }

    /* 3. Section titles */
    .section-title {
        font-size: 1.6rem !important;
    }

    /* 4. CTA/Internship banner on small phones */
    .cta-banner-section {
        min-height: 280px;
        padding: 40px 15px;
        background-attachment: scroll;
    }

    .cta-title {
        font-size: 1.6rem !important;
    }

    .cta-description {
        font-size: 13px !important;
    }

    .cta-btn {
        width: 90%;
        max-width: 260px;
        text-align: center;
        padding: 14px 20px !important;
        font-size: 13px !important;
    }

    /* 5. Core Values cards — full width, compact on phones */
    .value-item {
        padding: 20px 16px !important;
        margin-bottom: 12px;
    }

    .value-item h5 {
        font-size: 1rem;
    }

    /* 6. About Mission/Vision cards compact */
    .about-card {
        padding: 20px !important;
    }

    /* 7. Container — tight padding on phones */
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* 8. Hero section — no fixed background on older phones */
    .hero-section {
        background-attachment: scroll !important;
        padding-top: 130px !important;
        padding-bottom: 110px !important;
        min-height: 100dvh !important;
    }

    .title-welcome {
        font-size: 2.1rem !important;
    }

    .title-tagline {
        font-size: 1.45rem !important;
    }

    .hero-description {
        font-size: 15px !important;
        margin-bottom: 35px !important;
    }
}

/* ===== CAREERS-STYLE FOOTER - SHARED ACROSS ALL PAGES ===== */
.outer-web-footer {
    background: #ffffff;
    color: #1a2e2e;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-top-bar {
    background: rgba(0, 0, 0, 0.03);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-top-links {
    display: flex;
    gap: 24px;
}

.footer-top-link {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-top-link:hover {
    color: #4a90e2;
}

.footer-social-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.follow-label {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social-icon.youtube {
    background: #ff0000;
}

.footer-social-icon.twitter {
    background: #1da1f2;
}

.footer-social-icon.facebook {
    background: #4267b2;
}

.footer-social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-main-content {
    padding: 60px 0 40px;
}

.footer-company-section {
    margin-bottom: 32px;
}

.footer-company-section .brand-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-company-section .navbar-main-logo {
    height: 50px;
    width: auto;
    margin-right: 12px;
    filter: brightness(0.1);
}

.footer-company-section .brand-name {
    color: #1a2e2e;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-company-section .brand-subtitle {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.75rem;
}

.footer-company-description {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
}

.footer-contact-item i {
    color: #4a90e2;
    width: 16px;
}

.footer-section-title {
    color: #1a2e2e;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-nav-list,
.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li,
.footer-info-list li {
    margin-bottom: 12px;
}

.footer-nav-list a,
.footer-info-list a {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav-list a:hover,
.footer-info-list a:hover {
    color: #4a90e2;
}

.footer-subscribe-section {
    margin-bottom: 32px;
}

.subscribe-description {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-subscribe-form {
    width: 100%;
}

.subscribe-input-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.footer-email-input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 12px 16px;
    color: #1a2e2e;
    font-size: 14px;
    width: 100%;
}

.footer-email-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.footer-email-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.footer-subscribe-btn {
    background: #4a90e2;
    color: #1a2e2e;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.footer-subscribe-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .subscribe-input-container {
        flex-direction: row;
        gap: 8px;
    }

    .footer-email-input {
        flex: 1;
    }

    .footer-subscribe-btn {
        width: auto;
    }
}

@media (max-width: 768px) {
    .footer-top-bar .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-top-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-main-content {
        padding: 40px 0 20px;
    }

    .footer-company-section,
    .footer-nav-section,
    .footer-info-section,
    .footer-subscribe-section {
        margin-bottom: 25px;
        text-align: center;
    }

    .footer-company-section .brand-container {
        justify-content: center;
    }

    .footer-contact-info {
        align-items: center;
    }

    .footer-section-title {
        margin-bottom: 15px;
    }

    .footer-nav-list li,
    .footer-info-list li {
        margin-bottom: 8px;
    }

    .footer-bottom {
        padding: 20px 0;
        margin-top: 15px;
    }
}

/* ==========================================================================
   FINAL EXPERIMENT: THE PURE CODE ARROW (NO BACKGROUND)
   ========================================================================== */
.ofc-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000 !important;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.ofc-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

/* Background Animated Glows */
.glow-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: moveGlow 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    opacity: 0.6;
}

.glow-blob-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-blob-2 {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -5s;
}

.glow-blob-3 {
    top: 40%;
    left: 30%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -10s;
}

@keyframes moveGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10vw, 20vh) scale(1.2);
    }

    66% {
        transform: translate(-15vw, 10vh) scale(0.8);
    }

    100% {
        transform: translate(5vw, -10vh) scale(1.1);
    }
}

.ofc-loader-logo {
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: zoomAndSwipe 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.ofc-loader-img {
    width: 100%;
    height: auto;
    /* MAGIC TRICK: Inverts white to black and shifts hue back to blue */
    filter: invert(1) hue-rotate(185deg) brightness(1.2) contrast(1.5);
    mix-blend-mode: screen;
}

@keyframes zoomAndSwipe {
    0% {
        transform: scale(0.1) translateX(-100vw) rotate(-10deg);
        opacity: 0;
    }

    30% {
        transform: scale(1.5) translateX(0) rotate(0);
        /* Center Scale */
        opacity: 1;
    }

    50% {
        transform: scale(1.5) translateX(0);
        /* Hold point */
        opacity: 1;
    }

    100% {
        transform: scale(1.1) translateX(120vw) rotate(15deg);
        /* FAST swipe away ALL the way to the right */
        opacity: 0;
    }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Make Preloader Responsive for Mobile */
@media (max-width: 768px) {
    .ofc-loader-logo {
        width: 150px;
        height: 150px;
    }
}

/* ==========================================================================
   BLOG SECTION ANIMATIONS
   ========================================================================== */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(74, 144, 226, 0.4);
    }

    50% {
        box-shadow: 0 0 70px rgba(74, 144, 226, 0.7);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ==========================================================================
/* ==========================================================================
   MEGA MENU NAVIGATION - PREMIUM REDESIGN
   ========================================================================== */
.navbar-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-item {
    position: static !important;
}

.split-dropdown {
    display: flex !important;
    align-items: center;
    margin: 0 5px;
}

.split-link-group {
    display: flex;
    align-items: center;
    position: relative;
    padding: 2px;
}

.nav-link-main {
    padding: 10px 4px 10px 16px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500;
    background: transparent !important;
    border: none !important;
    font-size: 15px;
    transition: all 0.2s ease;
}

.nav-link-main:hover {
    color: #4a90e2 !important;
}

.arrow-toggle {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 10px 12px 10px 4px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.arrow-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.arrow-toggle.active i {
    transform: rotate(180deg);
}

/* THE MEGA MENU POPUP - 'POPPY' EDITION */
.custom-dropdown-popover {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: auto;
    min-width: 850px;
    max-width: 95vw;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: #000000 !important;
    border-radius: 16px !important;
    padding: 24px 30px !important;
    margin-top: 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    display: block;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
    z-index: 10001 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.custom-dropdown-popover.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
    overscroll-behavior: contain;
}

/* Custom Scrollbar for Popovers */
.custom-dropdown-popover::-webkit-scrollbar {
    width: 4px;
}

.custom-dropdown-popover::-webkit-scrollbar-track {
    background: transparent;
}

.custom-dropdown-popover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.custom-dropdown-popover::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Backdrop to make it 'pop' */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 1029;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure no clipping */
.navbar,
.navbar-collapse,
.container,
.container-fluid {
    overflow: visible !important;
}



/* Left side links */
.popover-left {
    flex: 1;
    border-right: none;
    padding-right: 0;
}

/* Hostinger-style Multi-column Grid */
.popover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.megamenu-column {
    display: flex;
    flex-direction: column;
}

.megamenu-heading {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #8Ca0b3 !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    padding-left: 16px !important;
    margin-top: 0 !important;
}

.megamenu-item {
    display: flex !important;
    align-items: flex-start !important;
    padding: 16px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    margin-bottom: 4px;
    gap: 16px;
    background: transparent !important;
    border: none !important;
}

.megamenu-item:hover {
    background: rgba(74, 144, 226, 0.1) !important;
    border-left: 3px solid #4a90e2;
    padding-left: 13px !important;
}

.megamenu-item.active-item {
    background: rgba(74, 144, 226, 0.15) !important;
}

.megamenu-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2;
    font-size: 20px;
    flex-shrink: 0;
}

.megamenu-text h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
    text-transform: none !important;
}

.megamenu-text p {
    font-size: 13px !important;
    color: #b0b0b0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Right side featured */
.popover-right {
    flex: 1;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
}

.featured-card {
    width: 100%;
    text-decoration: none !important;
}

.featured-image {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
}

.featured-content h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-content h3 i {
    font-size: 14px;
    color: #ffffff;
}

.featured-content p {
    font-size: 14px !important;
    color: #b0b0b0 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Reset existing navbar link styles if they conflict */
.navbar-nav .nav-link {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.mobile-back-btn {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 991px) {
    .split-dropdown {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        position: static !important;
    }

    .split-link-group {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .custom-dropdown-popover {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-width: unset !important;
        max-width: 100vw !important;
        transform: translateX(100%) !important;
        flex-direction: column !important;
        padding: 20px 15px 80px 15px !important;
        box-shadow: none !important;
        display: flex !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 20000 !important;
        background: #000000 !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
    }

    .custom-dropdown-popover.show {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .mobile-back-btn {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 5px 15px 25px 5px;
        font-size: 16px;
        font-weight: 500;
        color: #ffffff;
        cursor: pointer;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-back-btn i {
        font-size: 16px;
        color: #ffffff;
    }

    .popover-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .popover-left {
        flex: none;
        border-right: none;
        padding-right: 0;
    }

    .popover-right {
        display: none;
        /* Hide featured on mobile to save space */
    }
}

/* ============================================================
   OUR MISSION & VALUES SECTION (GLOBAL)
   ============================================================ */
.site-mission {
    padding: 100px 0;
    background: #ffffff;
}

.mission-text-content {
    padding-right: 40px;
}

.mission-subtitle {
    color: #4a90e2;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.mission-title {
    font-size: 36px;
    font-weight: 800;
    color: #2d3748;
    line-height: 1.2;
    margin-bottom: 25px;
}

.mission-title span {
    color: #4a90e2;
}

.mission-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 35px;
}

.mission-stats {
    display: flex;
    gap: 40px;
}

.mission-stat-item h3 {
    font-size: 32px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 5px;
}

.mission-stat-item p {
    font-size: 13px;
    color: #718096;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-card {
    background: #f8fafc;
    padding: 35px;
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
}

.value-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.08);
    border-color: #4a90e2;
}

.value-icon {
    width: 50px;
    height: 50px;
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    margin-bottom: 20px;
}

.value-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #718096;
    margin: 0;
}

@media (max-width: 991px) {
    .mission-text-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }

    .mission-stats {
        justify-content: center;
    }

    .site-mission {
        padding: 70px 0;
    }
}

/* ============================================================
   TEAM SPOTLIGHT SLIDER (PREMIUM ENHANCED)
   ============================================================ */
.team-spotlight-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.spotlight-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 500px;
}

.spotlight-slider {
    position: relative;
    width: 100%;
}

.spotlight-slide {
    display: none;
    align-items: center;
    gap: 80px;
    padding: 20px;
}

.spotlight-slide.active {
    display: flex;
}

/* Staggered Content Reveal */
.spotlight-slide.active .spotlight-role {
    animation: fadeInUpMask 0.6s forwards;
}

.spotlight-slide.active .spotlight-name {
    animation: fadeInUpMask 0.6s 0.1s forwards;
}

.spotlight-slide.active .spotlight-bio {
    animation: fadeInUpMask 0.6s 0.2s forwards;
}

@keyframes fadeInUpMask {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spotlight-content {
    flex: 1;
    z-index: 2;
    opacity: 0;
    /* Hidden initially for animation */
}

.spotlight-slide.active .spotlight-content {
    opacity: 1;
}

.spotlight-role {
    color: #4a90e2;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(74, 144, 226, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
}

.spotlight-name {
    font-size: 48px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 30px;
    line-height: 1.1;
    background: linear-gradient(90deg, #1a202c, #4a90e2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.spotlight-bio {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 40px;
}

.spotlight-avatar-box {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Liquid Morphing Avatar */
.spotlight-avatar-circle {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 160px;
    font-weight: 800;
    box-shadow: none;
    position: relative;
    animation: liquidMorph 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes liquidMorph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Orbiting Decals */
.avatar-decals {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.decal {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2;
    box-shadow: none;
    border: 1px solid rgba(74, 144, 226, 0.1);
    font-size: 20px;
    z-index: 2;
}

.decal-1 {
    top: 0;
    right: 20px;
    animation: floatAnim 4s ease-in-out infinite;
}

.decal-2 {
    bottom: 40px;
    right: -20px;
    animation: floatAnim 5s ease-in-out infinite 0.5s;
}

.decal-3 {
    top: 50%;
    left: -30px;
    animation: floatAnim 6s ease-in-out infinite 1s;
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

.spotlight-nav {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.spotlight-nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spotlight-nav-btn:hover {
    background: #4a90e2;
    color: #ffffff;
    border-color: #4a90e2;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.2);
}

.spotlight-indicators {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #4a90e2;
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 991px) {
    .spotlight-slide {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .spotlight-avatar-circle {
        width: 250px;
        height: 250px;
        font-size: 90px;
    }

    .decal {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .spotlight-name {
        font-size: 32px;
    }

    .spotlight-bio {
        font-size: 16px;
    }

    .spotlight-nav {
        justify-content: center;
    }

    .spotlight-indicators {
        justify-content: center;
    }
}




/* Premium Pricing Section */
.pricing-section {
 background: #f8fafc !important;
 padding: 100px 0;
}

.pricing-underline {
 width: 60px;
 height: 4px;
 background: #2563eb;
 margin: -20px auto 30px;
 border-radius: 2px;
}

.pricing-grid {
 margin-top: 50px;
}

.premium-pricing-card {
 background: #ffffff;
 border-radius: 24px;
 padding: 40px;
 height: 100%;
 display: flex;
 flex-direction: column;
 border: 1px solid rgba(0, 0, 0, 0.05);
 transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
 position: relative;
 box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.premium-pricing-card:hover {
 transform: translateY(-10px);
 box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
 border-color: rgba(37, 99, 235, 0.1);
}

.premium-pricing-card.popular {
    border: 2px solid #2563eb;
    transform: scale(1.08); /* Increased scale slightly */
    padding: 60px 40px;    /* Extra vertical padding to make it taller */
    z-index: 10;
    margin-top: -10px;      /* Slightly offset upwards */
}

.premium-pricing-card.popular:hover {
    transform: translateY(-15px) scale(1.08);
}

.popular-tag {
 position: absolute;
 top: -15px;
 left: 50%;
 transform: translateX(-50%);
 background: #2563eb;
 color: #ffffff;
 padding: 6px 20px;
 border-radius: 20px;
 font-size: 0.75rem;
 font-weight: 700;
 letter-spacing: 1px;
 box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
}

.pricing-header h3 {
 font-size: 1.75rem;
 font-weight: 800;
 color: #0f172a;
 margin-bottom: 12px;
}

.pricing-header p {
 color: #64748b;
 font-size: 0.95rem;
 line-height: 1.5;
 margin-bottom: 30px;
}

.pricing-features {
 flex-grow: 1;
}

.feature-item {
 display: flex;
 align-items: center;
 gap: 12px;
 margin-bottom: 16px;
 color: #334155;
 font-size: 0.9rem;
}

.feature-item i {
 font-size: 14px;
 width: 20px;
 text-align: center;
}

.feature-item .fa-check {
 color: #cbd5e1;
}

.feature-item .text-success {
 color: #10b981 !important;
}

.feature-item .text-primary {
 color: #2563eb !important;
}

.feature-divider {
 font-weight: 700;
 color: #0f172a;
 font-size: 0.85rem;
 margin: 25px 0 15px;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.pricing-footer {
 margin-top: 40px;
}

.pricing-btn {
 width: 100%;
 padding: 14px;
 border-radius: 12px;
 border: 1px solid #e2e8f0;
 background: transparent;
 color: #0f172a;
 font-weight: 600;
 font-size: 0.95rem;
 transition: all 0.3s ease;
 cursor: pointer;
}

.pricing-btn:hover {
 background: #0f172a;
 color: #ffffff;
 border-color: #0f172a;
}

.pricing-btn.primary {
 background: #2563eb;
 color: #ffffff;
 border-color: #2563eb;
 box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.pricing-btn.primary:hover {
 background: #1d4ed8;
 border-color: #1d4ed8;
 transform: translateY(-2px);
 box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

@media (max-width: 991px) {
 .premium-pricing-card.popular {
 transform: scale(1);
 margin: 20px 0;
 }
 .premium-pricing-card.popular:hover {
 transform: translateY(-10px) scale(1.02);
 }
}
