/* ================================
   AqsaTech Modern Website Styles
   ================================ */

/* CSS Variables for consistent theming - Updated for Dark Theme */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #9333ea;
    --secondary-dark: #7c3aed;
    --secondary-light: #a855f7;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Dark Theme Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-light: rgba(255, 255, 255, 0.05);
    --bg-lighter: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-light: rgba(255, 255, 255, 0.6);
    --text-dark: #1e293b;
    
    /* Legacy color support */
    --light-color: var(--bg-lighter);
    --dark-color: var(--text-primary);
    --white: #ffffff;
    --black: #000000;
    
    /* Enhanced Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    
    --font-primary: 'Poppins', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.4);
    --box-shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    
    --transition: all 0.3s ease-in-out;
}

/* Global Styles - Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* ====================================
   BACKGROUND PATTERNS & EFFECTS
   ==================================== */

/* Global background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(147, 51, 234, 0.03) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(59, 130, 246, 0.01) 50%, transparent 51%);
    background-size: 400px 400px, 600px 600px, 60px 60px;
    animation: backgroundMove 30s linear infinite;
    pointer-events: none;
    z-index: -10;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, -60px); }
}

/* Section dividers */
section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(59, 130, 246, 0.5) 50%,
        transparent 100%
    );
    transform: translateX(-50%);
    z-index: 1;
}

/* Floating geometric shapes */
.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.geometric-bg::before,
.geometric-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: floatGeometric 20s ease-in-out infinite;
}

.geometric-bg::before {
    top: 10%;
    right: -150px;
    animation-delay: 0s;
}

.geometric-bg::after {
    bottom: 10%;
    left: -150px;
    animation-delay: 10s;
}

@keyframes floatGeometric {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.5; }
    50% { transform: translateY(-50px) scale(1.1); opacity: 0.8; }
}

/* Glow effects for interactive elements */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 40px rgba(59, 130, 246, 0.2),
        0 0 60px rgba(59, 130, 246, 0.1);
}

/* Smooth section transitions */
section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

section.section-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Enhanced visual hierarchy */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Card hover glow effects */
.card:hover,
.service-card:hover,
.portfolio-item:hover,
.team-member:hover,
.testimonial-card:hover {
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2);
}

/* Content area enhancements */
.container {
    position: relative;
    z-index: 2;
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0.5;
    filter: blur(2px);
}

img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Typography - Dark Theme */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-white-75 {
    color: var(--text-muted);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: var(--text-primary) !important;
}

.lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    margin: 1rem auto;
}

/* Navigation - Updated to Futuristic Style */
.navbar {
    background: transparent !important;
    transition: var(--transition);
    padding: 0;
}

.navbar.navbar-scrolled {
    background: transparent !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color) !important;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
    min-height: 100vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.8;
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
    padding: 8rem 0 4rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

.feature-item {
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Services Section */
.service-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: var(--transition);
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    position: relative;
    z-index: 2;
}

.service-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.service-features li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio-item {
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tags .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
}

/* Team Section */
.team-member {
    transition: var(--transition);
}

.team-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    transition: var(--transition);
    border: 4px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.team-photo.error-fallback {
    background: var(--gradient-secondary);
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo.error-fallback::after {
    content: attr(data-initials);
}

.team-photo[src*="unsplash"] {
    background: var(--bg-lighter);
}

.team-photo:not([src]),
.team-photo[src=""] {
    background: var(--gradient-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.team-photo:not([src])::after,
.team-photo[src=""]::after {
    content: "AM";
}

.team-member:hover .team-photo {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.team-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: var(--light-color);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-3px);
}

/* Testimonials Section */
.testimonial-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.stars i {
    font-size: 0.9rem;
    margin-right: 0.2rem;
}

/* Contact Section */
.contact-item {
    padding: 2rem 1rem;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    opacity: 0.8;
}

.contact-form {
    box-shadow: var(--box-shadow-lg);
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white) !important;
    padding-left: 0.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

.newsletter-form .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    border: none;
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    border: none;
    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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color) !important;
}

/* Hero Section Enhanced Styles */
.hero-section {
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
    min-height: 100vh;
}

/* Enhanced animated gradient text */
.text-gradient-animated {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    display: inline-block;
    font-weight: 800;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Tech Icons */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.7;
    animation: floatUpDown 3s ease-in-out infinite;
}

.floating-icon-1 {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.floating-icon-2 {
    top: 60%;
    right: 10%;
    animation-delay: 1s;
}

.floating-icon-3 {
    top: 30%;
    left: 10%;
    animation-delay: 2s;
}

.floating-icon-4 {
    top: 70%;
    left: 15%;
    animation-delay: 1.5s;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Enhanced Hero Badge */
.hero-badge .bg-primary-soft {
    background: rgba(0, 123, 255, 0.1) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: badgePulse 2s ease-in-out infinite alternate;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Enhanced Stats with Icons */
.hero-stats {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-item {
    position: relative;
    text-align: center;
    padding: 1rem 0.5rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-item h3::after {
    content: '+';
    font-size: 1.5rem;
    opacity: 0.8;
}

.stat-item small {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.4;
    animation: iconFloat 2s ease-in-out infinite alternate;
}

@keyframes iconFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}

/* Enhanced Button Styles */
.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.btn-hover-fill {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
}

.btn-hover-fill:hover::before {
    width: 100%;
}

.btn-hover-fill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Hero Image Container Enhancements */
.hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-image-backdrop {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.main-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    z-index: 3;
    animation: cardFloat 3s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 1.5s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(5px); }
    66% { transform: translateY(5px) translateX(-3px); }
}

.floating-card .card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: cardPulse 2s ease-in-out infinite alternate;
}

@keyframes cardPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Enhanced Quick Contact */
.hero-contact {
    animation: fadeInUp 1s ease-out 1.2s both;
}

.quick-contact .contact-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.quick-contact .contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.quick-contact .contact-item i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.scroll-arrow i {
    font-size: 1.5rem;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* Particle Effect Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: particleMove 20s linear infinite;
    z-index: 1;
}

@keyframes particleMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Particle Animation Styles */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.particle-container {
    overflow: hidden;
}

.particle {
    will-change: transform;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    color: white;
}

/* Loading Animation */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.loaded)::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Notification Styles */
.notification {
    font-family: var(--font-primary);
    font-weight: 500;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====================================
   FUTURISTIC NAVIGATION STYLES
   ==================================== */

/* Base Futuristic Navigation */
.futuristic-nav {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.8rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(59, 130, 246, 0.1);
}

.futuristic-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(59, 130, 246, 0.5) 20%,
        rgba(147, 51, 234, 0.5) 50%,
        rgba(59, 130, 246, 0.5) 80%,
        transparent 100%
    );
    animation: borderGlow 3s ease-in-out infinite alternate;
}

.futuristic-nav.navbar-scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(59, 130, 246, 0.15);
    border-bottom: 1px solid rgba(59, 130, 246, 0.5);
}

/* Navigation Background Pattern */
.nav-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(147, 51, 234, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Scanner Line Animation */
.nav-scanner-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(59, 130, 246, 0.8) 50%,
        transparent 100%
    );
    animation: scannerMove 4s linear infinite;
    z-index: -1;
}

@keyframes scannerMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes borderGlow {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Enhanced Brand Logo */
.futuristic-brand {
    display: flex !important;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoGlow 2s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes logoGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 50%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: -2px;
}

.futuristic-brand:hover .brand-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
}

.futuristic-brand:hover .logo-glow {
    animation-duration: 1s;
}

/* Futuristic Navigation Menu */
.futuristic-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.futuristic-nav-link {
    position: relative;
    padding: 0.75rem 1.25rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.futuristic-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-text {
    position: relative;
    z-index: 2;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.futuristic-nav-link:hover::before {
    width: 100%;
}

.futuristic-nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.futuristic-nav-link:hover .nav-indicator {
    width: 80%;
}

.futuristic-nav-link.active .nav-indicator {
    width: 80%;
}

/* Futuristic CTA Button */
.futuristic-cta-btn {
    position: relative;
    padding: 0.75rem 1.5rem !important;
    margin-left: 1rem;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(147, 51, 234, 0.8) 100%);
    transition: all 0.3s ease;
    z-index: -2;
}

.btn-glow-effect {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -3;
    filter: blur(4px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.futuristic-cta-btn:hover {
    transform: translateY(-3px);
    color: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.6);
}

.futuristic-cta-btn:hover .btn-bg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(147, 51, 234, 1) 100%);
}

.futuristic-cta-btn:hover .btn-glow-effect {
    opacity: 0.6;
}

/* Futuristic Hamburger Menu */
.futuristic-toggler {
    border: none !important;
    padding: 0.5rem;
    background: transparent;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.futuristic-toggler:focus {
    box-shadow: none !important;
    outline: 1px solid rgba(59, 130, 246, 0.5);
}

.hamburger-lines {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #9333ea 100%);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.futuristic-toggler:hover .line {
    background: linear-gradient(90deg, #60a5fa 0%, #a855f7 100%);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.futuristic-toggler[aria-expanded="true"] .line1 {
    transform: rotate(45deg) translate(6px, 6px);
}

.futuristic-toggler[aria-expanded="true"] .line2 {
    opacity: 0;
    transform: scale(0);
}

.futuristic-toggler[aria-expanded="true"] .line3 {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ====================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ==================================== */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        padding: 8rem 0 6rem;
    }
    
    .section {
        padding: 6rem 0;
    }
}

/* Large Screens */
@media (max-width: 1199.98px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .floating-card {
        transform: scale(0.9);
    }
    
    .hero-stats .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* Mobile Menu Enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        border: 1px solid rgba(59, 130, 246, 0.2);
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .futuristic-nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .futuristic-nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem !important;
        border-radius: 12px;
    }
    
    .futuristic-cta-btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 1rem;
    }
      /* Hero Section Mobile */
    .hero-section {
        padding: 4rem 0 3rem;
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .hero-badge {
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
    }
    
    .hero-badge .badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        text-align: center;
        white-space: nowrap;
        max-width: 90%;
        word-wrap: break-word;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
        padding: 2rem 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }
    
    .hero-stats .row {
        margin: 0;
        justify-content: center;
    }
    
    .hero-stats .col-3 {
        flex: 0 0 auto;
        width: 22%;
        min-width: 70px;
        margin-bottom: 0;
        padding: 0.5rem 0.25rem;
    }
    
    .hero-stats .stat-item {
        text-align: center;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-stats .stat-item small {
        font-size: 0.7rem;
        line-height: 1.2;
        display: block;
    }
    
    .stat-icon {
        font-size: 0.8rem;
        margin-top: 0.25rem;
        opacity: 0.7;
    }
    
    .floating-elements {
        display: none;
    }
    
    /* Services Mobile */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Portfolio Mobile */
    .portfolio-item {
        margin-bottom: 2rem;
    }
    
    /* Team Mobile */
    .team-card {
        margin-bottom: 2rem;
    }
    
    /* Contact Mobile */
    .contact-item {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Tablet and Mobile */
@media (max-width: 768px) {
    /* Base Spacing */
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Navigation Mobile */
    .futuristic-nav {
        padding: 0.8rem 0;
    }
    
    .brand-container {
        gap: 0.75rem;
    }
    
    .logo-wrapper {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .brand-logo {
        width: 35px;
        height: 35px;
    }
    
    .brand-text {
        display: flex;
        flex-direction: column;
    }
    
    .brand-name {
        font-size: 1.4rem;
        line-height: 1.2;
        margin: 0;
    }
    
    .brand-tagline {
        font-size: 0.7rem;
        line-height: 1;
        margin-top: 0.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
      /* Hero Section Mobile */
    .hero-section {
        padding: 3rem 0 2rem;
        text-align: center;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-content .text-gradient-animated {
        display: block;
        margin-top: 0.5rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0;
        line-height: 1.4;
    }
      .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
        display: inline-block;
        max-width: 95%;
        text-align: center;
    }
    
    .hero-badge .badge {
        white-space: normal;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    .hero-badge-enhanced {
        white-space: normal !important;
        line-height: 1.3 !important;
        text-align: center !important;
        word-wrap: break-word !important;
        max-width: 100% !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin: 0;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
      .hero-stats {
        margin-top: 2rem;
        padding: 2rem 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }
    
    .hero-stats .row {
        margin: 0;
        justify-content: center;
        gap: 0;
    }
    
    .hero-stats .col-3 {
        flex: 0 0 auto;
        width: 23%;
        min-width: 75px;
        max-width: 90px;
        margin-bottom: 0;
        padding: 0.5rem 0.25rem;
    }
    
    .hero-stats .stat-item {
        text-align: center;
        padding: 0.5rem 0.25rem;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
        line-height: 1;
    }
    
    .hero-stats .stat-item small {
        font-size: 0.7rem;
        line-height: 1.1;
        display: block;
        word-wrap: break-word;
        hyphens: auto;
        padding: 0 0.1rem;
    }
    
    .stat-icon {
        font-size: 0.8rem;
        margin-top: 0.25rem;
        opacity: 0.7;
    }
    
    /* Floating Cards Mobile */
    .floating-card {
        display: none; /* Hide floating cards on mobile for performance */
    }
      /* Quick Contact Mobile */
    .quick-contact {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(10px);
    }
    
    .quick-contact h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-item i {
        flex-shrink: 0;
        font-size: 1rem;
        color: var(--primary-color);
    }
    
    .contact-item span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }
    
    /* Hero Contact Section */
    .hero-contact {
        margin-top: 2rem;
    }
    
    .hero-contact .quick-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .hero-contact .contact-item {
        margin: 0;
        padding: 0.75rem 1rem;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        min-width: 200px;
        justify-content: center;
    }
    
    /* About Section Mobile */
    .about-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .about-features {
        margin-top: 2rem;
    }
    
    /* Services Mobile */
    .service-card {
        padding: 2rem 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        margin-bottom: 1rem;
    }
    
    /* Portfolio Mobile */
    .portfolio-item {
        margin-bottom: 1.5rem;
    }
    
    .portfolio-overlay {
        padding: 1.5rem !important;
    }
    
    .portfolio-overlay h4 {
        font-size: 1.1rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.9rem;
    }
    
    /* Team Mobile */
    .team-card {
        padding: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .team-photo {
        margin-bottom: 1rem;
    }
    
    /* Testimonials Mobile */
    .testimonial-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .testimonial-avatar {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto !important;
    }
      /* Contact Form Mobile */
    .contact-form {
        padding: 2rem 1.5rem !important;
        margin-top: 2rem;
        border-radius: 15px;
    }
    
    .contact-form h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        padding: 2rem 1.5rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .contact-item h5 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: white;
    }
    
    .contact-item p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.9);
        word-wrap: break-word;
    }
    
    .contact-item small {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .contact-item i {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    /* Footer Mobile */
    .footer-dark {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-brand .d-flex {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0;
    }
    
    .footer-brand-text {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .footer-brand p {
        text-align: center;
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-link {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem;
    }
    
    .footer-heading {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form {
        text-align: center;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }
    
    .newsletter-input {
        text-align: center;
        width: 100%;
    }
    
    .newsletter-btn {
        margin-top: 0;
        width: 100%;
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-dark .row:last-child .col-md-6:last-child {
        text-align: center !important;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    /* Base Spacing */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    /* Navigation Ultra Mobile */
    .futuristic-nav {
        padding: 0.6rem 0;
    }
    
    .navbar-brand {
        padding: 0;
    }
    
    .brand-container {
        gap: 0.5rem;
    }
    
    .logo-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .brand-logo {
        width: 30px;
        height: 30px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-tagline {
        font-size: 0.65rem;
        max-width: 120px;
    }
    
    .futuristic-toggler {
        padding: 0.5rem;
        margin-right: 0.5rem;
    }
      /* Hero Ultra Mobile */
    .hero-section {
        padding: 2rem 0 1.5rem;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 1rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-content .text-gradient-animated {
        display: block;
        margin-top: 0.5rem;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
        max-width: 100%;
    }
    
    .hero-badge .badge {
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        max-width: 260px;
    }
    
    .hero-stats {
        padding: 1.5rem 0.5rem;
        margin-top: 1.5rem;
    }
    
    .hero-stats .col {
        min-width: 65px;
        max-width: 23%;
        padding: 0.25rem;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.1rem;
    }
    
    .hero-stats .stat-item small {
        font-size: 0.65rem;
        line-height: 1.1;
        display: block;
        word-wrap: break-word;
        hyphens: auto;
        padding: 0 0.1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
      /* Quick Contact Ultra Mobile */
    .quick-contact {
        padding: 1rem 0.5rem;
        margin-top: 1.5rem;
    }
    
    .quick-contact h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-info {
        gap: 0.8rem;
    }
    
    .contact-info div {
        font-size: 0.8rem;
    }
    
    .hero-contact .contact-item {
        min-width: 180px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        margin: 0.25rem;
    }
    
    .hero-contact .contact-item span {
        max-width: 150px;
        font-size: 0.8rem;
    }
    
    .hero-contact .contact-item i {
        font-size: 0.9rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    /* Cards Ultra Mobile */
    .service-card,
    .team-card,
    .testimonial-card {
        padding: 1.25rem 1rem !important;
    }
    
    .portfolio-overlay {
        padding: 1rem !important;
    }
    
    .portfolio-overlay h4 {
        font-size: 1rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .portfolio-tags .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Contact Form Ultra Mobile */
    .contact-form {
        padding: 1.5rem 1rem !important;
    }
    
    .contact-form h3 {
        font-size: 1.1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    /* Footer Ultra Mobile */
    .footer-dark {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand-text {
        font-size: 1.4rem;
    }
    
    .footer-logo {
        width: 45px !important;
        height: 45px !important;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .social-link {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem;
    }
    
    .footer-heading {
        font-size: 1rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .newsletter-input {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    .newsletter-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Hero Extra Small */
    .hero-section {
        padding: 1.5rem 0 1rem;
    }
    
    .hero-content {
        padding: 0 0.25rem;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-content .text-gradient-animated {
        font-size: 1.3rem;
        margin-top: 0.25rem;
    }
    
    .hero-content .lead {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        max-width: 220px;
    }
}

/* iPhone SE and similar small screens */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.3rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-content .text-gradient-animated {
        font-size: 1.2rem !important;
    }
    
    .section-title {
        font-size: 1.4rem !important;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        max-width: 200px;
    }
}

/* ====================================
   HERO SECTION MOBILE FIXES
   ==================================== */

/* Prevent text overflow and ensure proper wrapping */
.hero-content h1,
.hero-content .lead,
.hero-badge {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Mobile container fixes */
@media (max-width: 768px) {
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    .hero-section .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-section .col-lg-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Ensure badge doesn't wrap awkwardly */
    .hero-badge-enhanced {
        white-space: normal !important;
        line-height: 1.3 !important;
        text-align: center;
        display: inline-block;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    /* Better button spacing */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        min-height: 48px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 576px) {
    .hero-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section .col-lg-6 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    /* More compact badge for small screens */
    .hero-badge-enhanced {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-badge-enhanced i {
        font-size: 0.6rem;
        margin-right: 0.25rem !important;
    }
}

@media (max-width: 400px) {
    .hero-section .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
      /* Ultra compact badge */
    .hero-badge-enhanced {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.6rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-buttons .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        max-width: 220px;
    }
}

/* iPhone SE specific fixes */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.3rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-content .text-gradient-animated {
        font-size: 1.2rem !important;
    }
    
    .section-title {
        font-size: 1.4rem !important;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        max-width: 200px;
    }
}

/* ====================================
   MOBILE CONTACT & STATS FIXES
   ==================================== */

/* Mobile contact improvements */
@media (max-width: 768px) {
    .hero-contact {
        margin-top: 1.5rem;
    }
    
    .hero-contact .quick-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .hero-contact .contact-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 25px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        min-width: 200px;
        max-width: 280px;
        margin: 0;
    }
    
    .hero-contact .contact-item i {
        flex-shrink: 0;
        font-size: 1rem;
        color: var(--primary-color);
    }
    
    .hero-contact .contact-item span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* Better stats layout */
    .hero-stats .col-3 {
        padding: 0.5rem 0.25rem;
    }
    
    .hero-stats .stat-item small {
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
}

@media (max-width: 576px) {
    .hero-contact .contact-item {
        min-width: 180px;
        max-width: 260px;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .hero-contact .contact-item span {
        font-size: 0.8rem;
        max-width: 150px;
    }
    
    .hero-contact .contact-item i {
        font-size: 0.9rem;
    }
    
    .hero-stats .col-3 {
        width: 23%;
        min-width: 65px;
        padding: 0.25rem 0.15rem;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 1.1rem;
    }
    
    .hero-stats .stat-item small {
        font-size: 0.65rem;
        line-height: 1.1;
    }
}

@media (max-width: 400px) {
    .hero-contact .contact-item {
        min-width: 160px;
        max-width: 240px;
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .hero-contact .contact-item span {
        font-size: 0.75rem;
        max-width: 130px;
    }
    
    .hero-contact .contact-item i {
        font-size: 0.8rem;
    }
    
    .hero-stats .col-3 {
        width: 22%;
        min-width: 58px;
        padding: 0.2rem 0.1rem;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 0.95rem;
    }
    
    .hero-stats .stat-item small {
        font-size: 0.6rem;
        line-height: 1;
        padding: 0 0.05rem;
    }
}

@media (max-width: 375px) {
    .hero-contact .contact-item {
        min-width: 150px;
        max-width: 220px;
        padding: 0.45rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .hero-contact .contact-item span {
        font-size: 0.7rem;
        max-width: 120px;
    }
    
    .hero-contact .contact-item i {
        font-size: 0.75rem;
    }
    
    .hero-stats .col-3 {
        width: 21%;
        min-width: 52px;
        padding: 0.15rem 0.05rem;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 0.9rem;
    }
    
    .hero-stats .stat-item small {
        font-size: 0.55rem;
        line-height: 0.9;
    }
}

/* ====================================
   DARK THEME SECTION STYLES
   ==================================== */

/* Section Backgrounds */
section {
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
}

section:nth-child(even) {
    background: var(--bg-secondary);
}

section.bg-light {
    background: var(--bg-secondary) !important;
}

section.bg-primary {
    background: var(--gradient-primary) !important;
}

/* About Section */
#about {
    background: var(--bg-secondary);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Services Section */
#services {
    background: var(--bg-primary);
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 49%, rgba(59, 130, 246, 0.05) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(147, 51, 234, 0.05) 50%, transparent 51%);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Portfolio Section */
#portfolio {
    background: var(--bg-secondary);
}

/* Team Section */
#team {
    background: var(--bg-primary);
}

/* Testimonials Section */
#testimonials {
    background: var(--bg-secondary);
}

/* Contact Section */
#contact {
    background: var(--gradient-primary) !important;
}

/* About Section */
#about {
    background: var(--bg-secondary);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Services Section */
#services {
    background: var(--bg-primary);
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 49%, rgba(59, 130, 246, 0.05) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(147, 51, 234, 0.05) 50%, transparent 51%);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Portfolio Section */
#portfolio {
    background: var(--bg-secondary);
}

/* Team Section */
#team {
    background: var(--bg-primary);
}

/* Testimonials Section */
#testimonials {
    background: var(--bg-secondary);
}

/* Contact Section */
#contact {
    background: var(--gradient-primary) !important;
}

/* Enhanced Card Styles for Dark Theme */
.service-card {
    background: var(--bg-lighter) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0.1;
    transition: var(--transition);
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-glow);
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1) !important;
}

.service-card h4 {
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-muted);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-lighter) !important;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-glow);
    background: rgba(59, 130, 246, 0.1) !important;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Portfolio Image Error Handling */
.portfolio-item img {
    transition: opacity 0.3s ease;
    opacity: 0;
    min-height: 300px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.portfolio-item img[src] {
    opacity: 1;
}

.portfolio-item img.fallback-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.portfolio-item img.fallback-icon::after {
    content: attr(data-fallback-text);
}

/* Specific fallback colors for different portfolio items */
.portfolio-item img[alt*="Healthcare"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.portfolio-item img[alt*="E-commerce"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.portfolio-item img[alt*="Financial"] {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.portfolio-item img[alt*="Mobile"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.portfolio-item img[alt*="AI"] {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.portfolio-item img[alt*="Logistics"] {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* Loading state */
.portfolio-item img:not([src]) {
    background: var(--bg-secondary);
    opacity: 1;
}

.portfolio-item .portfolio-overlay {
    z-index: 2;
}

/* Ensure overlay is always visible */
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* ====================================
   ENHANCED FOOTER STYLES
   ==================================== */

/* Footer Dark Theme */
.footer-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

/* Footer Background Elements */
.footer-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(59, 130, 246, 0.02) 50%, transparent 51%);
    background-size: 300px 300px, 400px 400px, 40px 40px;
    animation: footerPatternMove 20s linear infinite;
}

.footer-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: footerGlow 15s ease-in-out infinite alternate;
}

@keyframes footerPatternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-40px) translateY(-40px); }
}

@keyframes footerGlow {
    0% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.1; transform: translateX(-50%) scale(1.1); }
}

/* Footer Content */
.footer-dark .container {
    position: relative;
    z-index: 2;
}

/* Footer Logo */
.footer-logo {
    width: 50px;
    height: 50px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.footer-logo-fallback {
    color: white;
    font-size: 1.5rem;
    display: none;
}

.footer-logo-img:not([src]),
.footer-logo-img[src=""] {
    display: none;
}

.footer-logo-img:not([src]) + .footer-logo-fallback,
.footer-logo-img[src=""] + .footer-logo-fallback {
    display: block;
}

/* Footer Brand Text */
.footer-brand-text {
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.8rem;
}

/* Footer Headings */
.footer-heading {
    color: white;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

/* Footer Links */
.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 10px;
}

/* Social Links */
.social-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Newsletter Form */
.newsletter-input-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    background: transparent;
    border: none;
    box-shadow: none;
    color: white;
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.newsletter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.newsletter-btn i {
    margin-right: 0.5rem;
}

/* Footer Divider */
.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    margin: 2rem 0 1.5rem;
}

/* Footer Copyright */
.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Testimonials Dark Theme Styling */
.testimonial-card {
    background: var(--bg-secondary) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.testimonial-card > * {
    position: relative;
    z-index: 2;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Logo Error Handling for Mobile */
.brand-logo:not([src]),
.brand-logo[src=""],
.footer-logo-img:not([src]),
.footer-logo-img[src=""] {
    display: none;
}

.logo-wrapper .brand-logo:not([src]) + .logo-fallback,
.logo-wrapper .brand-logo[src=""] + .logo-fallback,
.footer-logo .footer-logo-img:not([src]) + .footer-logo-fallback,
.footer-logo .footer-logo-img[src=""] + .footer-logo-fallback {
    display: flex !important;
}

/* Mobile Logo Fallback */
.logo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Ensure logo visibility on mobile */
    .logo-wrapper {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        border-radius: 8px;
        padding: 4px;
    }
    
    .brand-logo {
        border-radius: 4px;
        background: white;
        padding: 2px;
    }
    
    /* Footer logo mobile fix */
    .footer-logo {
        border: 2px solid rgba(59, 130, 246, 0.3);
    }
    
    .footer-logo-fallback {
        font-size: 1.2rem;
    }
}

/* ====================================
   MOBILE TOUCH & VIEWPORT OPTIMIZATIONS
   ==================================== */

/* Touch-friendly interactions */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem !important;
    }
    
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Improved form controls for mobile */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for cards */
    .card,
    .service-card,
    .team-card,
    .testimonial-card,
    .portfolio-item {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile-friendly tables */
    .table-responsive {
        font-size: 0.9rem;
    }
    
    /* Improved mobile navigation */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Better mobile typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
    
    /* Mobile-specific animations */
    .portfolio-item:hover {
        transform: none; /* Disable hover transforms on mobile */
    }
    
    .service-card:hover,
    .team-card:hover {
        transform: translateY(-2px); /* Reduced hover effect */
    }
}

/* Ultra-small devices */
@media (max-width: 400px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
      /* Contact Form Ultra Mobile */
    .contact-form {
        padding: 1.5rem 1rem !important;
        margin-top: 2rem;
    }
    
    .contact-form h3 {
        font-size: 1.1rem;
    }
    
    .contact-item {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .contact-item i {
        font-size: 2rem !important;
    }
    
    .contact-item h5 {
        font-size: 1.1rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .contact-item small {
        font-size: 0.75rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    
    /* Ultra-compact spacing */
    .section {
        padding: 2rem 0;
    }
    
    /* Smaller text for tiny screens */
    .lead {
        font-size: 0.9rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
}

/* iPhone SE and similar small screens */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.3rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-content .text-gradient-animated {
        font-size: 1.2rem !important;
    }
    
    .section-title {
        font-size: 1.4rem !important;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        max-width: 200px;
    }
}

/* Contact Section Mobile Layout Fixes */
@media (max-width: 768px) {
    #contact {
        padding: 3rem 0 !important;
    }
    
    #contact .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #contact .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    #contact .lead {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    #contact .row.g-4 > * {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    #contact {
        padding: 2.5rem 0 !important;
    }
    
    #contact .section-title {
        font-size: 1.6rem;
    }
    
    #contact .lead {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 400px) {
    #contact {
        padding: 2rem 0 !important;
    }
    
    #contact .section-title {
        font-size: 1.4rem;
    }
    
    #contact .lead {
        font-size: 0.85rem;
    }
}
