/* NairaCrest Brand Colors */
:root {
    --deep-royal-blue: #2246C7;
    --electric-blue: #2B46C8;
    --violet-blue-accent: #1246C7;
    --light-blue-highlight: #75A0DB;
    --dark-neutral-text: #1B1F3B;
    --background-light: #FFFFFF;
    --background-dark: #0E1229;
    --gradient-primary: linear-gradient(135deg, #2246C7 0%, #2B46C8 50%, #1246C7 100%);
    --gradient-secondary: linear-gradient(45deg, rgba(34, 70, 199, 0.1) 0%, rgba(43, 70, 200, 0.1) 100%);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-neutral-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve text rendering on mobile */
@media (max-width: 767.98px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
    
    p {
        margin-bottom: 1rem;
    }
}

.section-title {
    color: var(--deep-royal-blue);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

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

.section-subtitle {
    color: var(--electric-blue);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.lead {
    color: var(--electric-blue);
    font-weight: 500;
    font-size: 1.25rem;
}

@media (max-width: 767.98px) {
    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .lead {
        font-size: 1rem;
    }
}

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

/* Navigation */
.navbar {
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1000;
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.25rem 0;
    }
    
    /* Ensure mobile menu always has background */
    .navbar:not(.scrolled) .navbar-collapse.show {
        background: rgba(14, 18, 41, 0.95);
        backdrop-filter: blur(15px);
    }
}

.navbar.scrolled {
    background: rgba(14, 18, 41, 0.95);
    backdrop-filter: blur(15px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(34, 70, 199, 0.1);
}

/* Mobile navbar styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(14, 18, 41, 0.98);
        backdrop-filter: blur(20px);
        margin-top: 1rem;
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(117, 160, 219, 0.2);
    }
    
    .navbar-nav {
        gap: 0.75rem;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .mobile-nav-link {
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
        padding: 1rem 1.5rem !important;
        transition: all 0.3s ease !important;
        font-weight: 600 !important;
        font-size: 1.1rem !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: block !important;
        width: 100% !important;
    }
    
    .mobile-nav-link:hover {
        background: var(--gradient-primary) !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(34, 70, 199, 0.3) !important;
        border-color: var(--light-blue-highlight) !important;
    }
    
    .mobile-nav-link::after {
        display: none !important;
    }
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--light-blue-highlight);
    transform: translateY(-1px);
}

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

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

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 70px;
        padding-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 1.5rem;
    }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 10s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/outline-pattern .png');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    width: 100%;
    display: block;
}

/* Ensure typing effect works on larger screens */
@media (min-width: 768px) {
    .hero-title.typing-effect {
        display: inline-block;
        min-width: 100%;
        width: auto;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid white;
    white-space: nowrap;
    animation: typing 5s steps(80) 1s both, blink 1s step-end infinite 6s;
    max-width: 100%;
    width: 100%;
}

@keyframes typing {
    from { 
        width: 0; 
        max-width: 0;
    }
    to { 
        width: 100%; 
        max-width: 100%;
    }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Remove typing effect on mobile for better performance */
@media (max-width: 767.98px) {
    .typing-effect {
        animation: none;
        border-right: none;
        white-space: normal;
        overflow: visible;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    margin-bottom: 3rem;
}

.hero-logo-container {
    position: relative;
    display: inline-block;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--violet-blue-accent);
    border-color: var(--violet-blue-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 70, 199, 0.3);
}

.pulse-btn {
    animation: pulse-shadow 2s infinite;
}

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

.btn-outline-light {
    border-width: 2px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.glow-btn {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.glow-btn:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.contact-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    margin-bottom: 1rem;
}

/* Business Section */
.business-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(34, 70, 199, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(117, 160, 219, 0.1);
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 70, 199, 0.05), transparent);
    transition: left 0.6s ease;
}

.business-card:hover::before {
    left: 100%;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(34, 70, 199, 0.15);
    border-color: var(--light-blue-highlight);
}

.business-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.business-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: -1;
    animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.business-icon i {
    font-size: 2.2rem;
    color: white;
    z-index: 3;
}

.business-card h3 {
    color: var(--deep-royal-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.business-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.feature-item:hover {
    background: var(--gradient-secondary);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--electric-blue);
    margin-right: 1rem;
    font-size: 1.3rem;
}

.feature-item span {
    color: var(--dark-neutral-text);
    font-weight: 500;
}

/* Approach Section */
.approach-section {
    background: var(--gradient-secondary);
    position: relative;
}

.approach-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/solid-pattern 1.png');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
}

.approach-grid {
    display: grid;
    gap: 2rem;
}

.approach-item {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(34, 70, 199, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.approach-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(34, 70, 199, 0.1), transparent);
    opacity: 0;
    transition: all 0.6s ease;
}

.approach-item:hover::before {
    opacity: 1;
    transform: rotate(360deg);
}

.approach-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 70, 199, 0.15);
}

.approach-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.approach-item h4 {
    color: var(--deep-royal-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
}

.approach-item p {
    color: var(--dark-neutral-text);
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #ffffff 0%, rgba(117, 160, 219, 0.02) 100%);
}

.about-image {
    position: relative;
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 3px solid var(--light-blue-highlight);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-features {
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.about-feature:hover {
    background: var(--gradient-secondary);
    transform: translateX(10px);
}

.about-feature i {
    color: var(--electric-blue);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.about-feature span {
    color: var(--dark-neutral-text);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: var(--background-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-title::after {
    background: linear-gradient(90deg, white, var(--light-blue-highlight));
}

.contact-section .lead {
    color: var(--light-blue-highlight);
}

.contact-methods {
    position: relative;
    z-index: 2;
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-neutral-text);
    color: white;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .business-card {
        padding: 2rem;
    }
    
    .approach-item {
        padding: 2rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        text-align: center;
    }
    
    .btn-lg {
        display: inline-block;
        width: auto;
        min-width: 200px;
        margin-bottom: 1rem;
        margin-right: 0.5rem;
    }
    
    .btn-lg:last-child {
        margin-right: 0;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-item {
        flex: 1;
        min-width: 140px;
    }
    
    .approach-grid {
        gap: 1.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }
    
    .business-card {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .about-features {
        text-align: center;
    }
    
    .about-feature {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .business-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .approach-grid {
        gap: 1rem;
    }
    
    .approach-item {
        padding: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .stat-item {
        width: 180px;
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-logo {
        max-width: 280px;
        margin-top: 1rem;
    }
    
    .business-icon {
        width: 70px;
        height: 70px;
    }
    
    .business-icon i {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        margin-right: 0;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-cta {
        margin-bottom: 2rem;
    }
    
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.5);
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover,
    .navbar-toggler:focus {
        border-color: var(--light-blue-highlight);
        box-shadow: 0 0 10px rgba(117, 160, 219, 0.3);
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
        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.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .feature-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .approach-number {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .hero-section {
        padding-top: 70px;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .business-card,
    .approach-item {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .approach-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .business-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .business-icon i {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }
    
    .contact-btn {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    .stat-item {
        width: 160px;
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .hero-logo {
        max-width: 240px;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .feature-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .about-feature {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .approach-item h4 {
        font-size: 1.1rem;
    }
    
    .approach-item p {
        font-size: 0.9rem;
    }
    
    .business-card h3 {
        font-size: 1.3rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .row > * {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .footer .row > *:last-child {
        margin-bottom: 0;
    }
}

/* Landscape phone optimizations */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .stat-item {
        width: 120px;
        padding: 0.5rem;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Extra small devices (phones in landscape, less than 480px) */
@media (max-width: 479.98px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .business-card,
    .approach-item {
        padding: 1rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .stat-item {
        width: 140px;
    }
    
    .navbar-brand img {
        height: 28px;
    }
    
    .approach-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .business-icon {
        width: 55px;
        height: 55px;
    }
    
    .business-icon i {
        font-size: 1.3rem;
    }
    
    /* Better mobile spacing */
    .hero-section .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Ensure proper mobile layout order */
    .order-1 {
        order: 1 !important;
    }
    
    .order-2 {
        order: 2 !important;
    }
    
    /* Mobile-first text alignment */
    .about-section .order-1 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .about-section .order-2 {
        margin-bottom: 2rem;
    }
    
    /* Improve mobile business cards */
    .business-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .approach-item {
        text-align: center;
    }
    
    /* Mobile contact section improvements */
    .contact-section {
        text-align: center;
    }
}

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

/* Loading states and interactions */
.btn {
    position: relative;
    overflow: hidden;
}

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

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

/* Touch optimizations for mobile */
@media (max-width: 991.98px) {
    .btn,
    .business-card,
    .approach-item,
    .feature-item,
    .about-feature {
        touch-action: manipulation;
    }
    
    /* Increase touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 44px;
    }
    
    /* Reduce animations on mobile for better performance */
    .particle,
    .floating,
    .typing-effect {
        animation-duration: 4s;
    }
    
    /* Better tap highlights */
    .btn,
    .nav-link {
        -webkit-tap-highlight-color: rgba(34, 70, 199, 0.3);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--light-blue-highlight);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--electric-blue);
}

/* Hide scrollbar on mobile for cleaner look */
@media (max-width: 767.98px) {
    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
}

/* Mobile performance optimizations */
@media (max-width: 767.98px) {
    /* Reduce GPU-intensive effects on mobile */
    .hero-particles,
    .contact-particles {
        display: none;
    }
    
    .logo-glow,
    .image-decoration {
        display: none;
    }
    
    /* Simplify hover effects on touch devices */
    .business-card:hover,
    .approach-item:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(34, 70, 199, 0.1);
    }
    
    /* Disable complex animations on mobile */
    .business-icon::after,
    .approach-item::before {
        display: none;
    }
    
    /* Optimize font loading */
    * {
        font-display: swap;
    }
}

/* Performance optimizations */
.hero-section,
.contact-section {
    will-change: transform;
}

.business-card,
.approach-item {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle,
    .floating,
    .typing-effect {
        animation: none !important;
    }
}