/* ===================================
   InfotechZen - Modern Website Styles
   =================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===================================
   Global Styles
   =================================== */
:root {
    --primary-color: #075fb1;
    --secondary-color: #efd400;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --gradient: linear-gradient(135deg, #075fb1 0%, #0891d4 50%, #efd400 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utility class for spacing from fixed navbar */
.navbar-spacer {
    padding-top: 80px;
}

/* ===================================
   Preloader
   =================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

/* ===================================
   Top Bar
   =================================== */
.top-bar {
    position: relative;
    background: var(--dark-color);
    color: white;
    padding: 2px 0;
    font-size: 0.875rem;
    width: 100%;
    border-bottom: 2px solid rgba(239, 212, 0, 0.2);
    z-index: 999;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.top-bar-item i {
    color: var(--secondary-color);
}

.top-bar-item:hover {
    color: var(--secondary-color);
}

.top-bar-social {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-left: 1rem;
}

.top-bar-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.top-bar-social a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.75rem;
        padding: 10px 0;
    }
    
    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
    }
    
    .top-bar-item {
        font-size: 0.7rem;
    }
    
    .top-bar-social {
        margin-left: 0;
        gap: 0.5rem;
    }
    
    .top-bar-social a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    right: 0;
    padding: 0.5rem 0;
    transition: var(--transition);
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    width: 100%;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: white !important;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--gradient);
    color: white !important;
    transform: translateY(-2px);
}

/* Dropdown Menu Styles */
.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 250px;
}

/* Hover to show dropdown on desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.navbar-nav .dropdown-item {
    padding: 0.7rem 1.5rem;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav .dropdown-item:hover {
    background: var(--gradient);
    color: white;
    padding-left: 2rem;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Mobile dropdown - default open */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        display: block !important;
        border: none;
        box-shadow: none;
        background: rgba(7, 95, 177, 0.05);
        margin: 0.5rem 0;
        border-radius: 10px;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.5rem 1rem;
        margin: 0.2rem 0.5rem;
        border-radius: 8px;
    }
}

.btn-primary-custom {
    background: var(--gradient) !important;
    border: none !important;
    padding: 12px 30px;
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(7, 95, 177, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(7, 95, 177, 0.5);
    color: white !important;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #fef9e7 100%);
    position: relative;
    overflow: hidden;
    padding-top: 40px;
    text-align: center;
}

/* Floating blur effect for hero - uses different approach to not conflict with bg animations */
.hero-section .hero-blur {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===================================
   Animated Backgrounds
   =================================== */

/* Ensure content stays above animated backgrounds */
.bg-spiderweb > *,
.bg-particles > *,
.bg-geometric > *,
.bg-waves > *,
.bg-dots > *,
.bg-gradient-pulse > *,
.bg-hexagon > * {
    position: relative;
    z-index: 1;
}

/* Spiderweb Animation */
.bg-spiderweb {
    position: relative;
    overflow: hidden;
}

.bg-spiderweb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(7, 95, 177, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(7, 95, 177, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: spiderweb 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.bg-spiderweb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(7, 95, 177, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(239, 212, 0, 0.08) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: spiderweb 15s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes spiderweb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Particles Network Animation */
.bg-particles {
    position: relative;
    overflow: hidden;
}

.bg-particles::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle, rgba(7, 95, 177, 0.2) 2px, transparent 2px),
        radial-gradient(circle, rgba(239, 212, 0, 0.15) 1px, transparent 1px);
    background-size: 100px 100px, 50px 50px;
    animation: particleFloat 40s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particleFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

/* Geometric Pattern Animation */
.bg-geometric {
    position: relative;
    overflow: hidden;
}

.bg-geometric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(7, 95, 177, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(7, 95, 177, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(239, 212, 0, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(239, 212, 0, 0.05) 75%);
    background-size: 80px 80px;
    background-position: 0 0, 0 40px, 40px -40px, -40px 0px;
    animation: geometricSlide 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes geometricSlide {
    0% { background-position: 0 0, 0 40px, 40px -40px, -40px 0px; }
    100% { background-position: 80px 80px, 80px 120px, 120px 40px, 40px 80px; }
}

/* Water Wave Animation - SVG-based curved wave lines */
.bg-waves {
    position: relative;
    overflow: hidden;
}

.bg-waves::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 Q150,20 300,60 T600,60 T900,60 T1200,60' fill='none' stroke='rgba(7,95,177,0.15)' stroke-width='2'/%3E%3Cpath d='M0,80 Q150,40 300,80 T600,80 T900,80 T1200,80' fill='none' stroke='rgba(7,95,177,0.1)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 600px 100%;
    background-repeat: repeat-x;
    animation: waveFlow 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.bg-waves::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q200,10 400,40 T800,40 T1200,40' fill='none' stroke='rgba(239,212,0,0.12)' stroke-width='2.5'/%3E%3Cpath d='M0,70 Q200,45 400,70 T800,70 T1200,70' fill='none' stroke='rgba(7,95,177,0.08)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 800px 100%;
    background-repeat: repeat-x;
    animation: waveFlow 15s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

@keyframes waveFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-600px); }
}

/* Dots Grid Animation */
.bg-dots {
    position: relative;
    overflow: hidden;
}

.bg-dots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(7, 95, 177, 0.15) 2px, transparent 2px);
    background-size: 30px 30px;
    animation: dotsMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes dotsMove {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    50% { transform: scale(1.2) translate(10px, 10px); opacity: 0.7; }
}

/* Gradient Pulse Animation */
.bg-gradient-pulse {
    position: relative;
    overflow: hidden;
}

.bg-gradient-pulse::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(7, 95, 177, 0.08) 0%, transparent 50%);
    animation: gradientPulse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientPulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    50% { transform: scale(1.5) translate(25%, 25%); opacity: 1; }
}

/* Hexagon Pattern Animation */
.bg-hexagon {
    position: relative;
    overflow: hidden;
}

.bg-hexagon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, rgba(7, 95, 177, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(7, 95, 177, 0.05) 87.5%, rgba(7, 95, 177, 0.05)),
        linear-gradient(150deg, rgba(7, 95, 177, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(7, 95, 177, 0.05) 87.5%, rgba(7, 95, 177, 0.05)),
        linear-gradient(30deg, rgba(7, 95, 177, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(7, 95, 177, 0.05) 87.5%, rgba(7, 95, 177, 0.05)),
        linear-gradient(150deg, rgba(7, 95, 177, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(7, 95, 177, 0.05) 87.5%, rgba(7, 95, 177, 0.05));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    animation: hexagonMove 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes hexagonMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(140px); }
}

/* Ensure content stays above animated backgrounds */
.bg-spiderweb > *,
.bg-particles > *,
.bg-geometric > *,
.bg-waves > *,
.bg-dots > *,
.bg-gradient-pulse > *,
.bg-hexagon > * {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.hero-image {
    animation: floatImage 3s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ===================================
   Section Titles
   =================================== */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   Cards & Boxes
   =================================== */
.card-custom {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    background: white;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-box {
    padding: 2.5rem;
    border-radius: 20px;
    background: white;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    top: 0;
    left: 0;
    opacity: 0;
    transition: var(--transition);
}

.service-box:hover::before {
    opacity: 0.05;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: white;
    transition: var(--transition);
}

.service-box:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-box h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-box p {
    color: var(--text-color);
    margin-bottom: 0;
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    background: var(--gradient);
    color: white;
    padding: 60px 0;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-box h3 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 1.1rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 0;
}

/* ===================================
   Portfolio/Work Section
   =================================== */
.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background: white;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.portfolio-overlay {
    position: relative;
    background: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.portfolio-overlay h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.portfolio-overlay .btn-portfolio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

.portfolio-overlay .btn-portfolio:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(7, 95, 177, 0.3);
    color: white;
}

/* ===================================
   Testimonials
   =================================== */
.testimonial-box {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: var(--transition);
}

.testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-info h5 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.testimonial-info span {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: var(--gradient);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section .cta-decoration {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    left: -100px;
    pointer-events: none;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-white {
    background: white !important;
    color: var(--primary-color) !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-color) !important;
    background: white !important;
}

/* ===================================
   Contact Form
   =================================== */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 20px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* reCAPTCHA styling */
.g-recaptcha {
    display: inline-block;
    transform-origin: 0 0;
}

.g-recaptcha.is-invalid {
    border: 2px solid #dc3545;
    border-radius: 4px;
    padding: 2px;
}

@media (max-width: 576px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

.contact-info-box {
    background: var(--gradient);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
    transition: var(--transition);
}

.contact-info-box:hover {
    transform: translateY(-5px);
}

.contact-info-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: white;
}

.contact-info-box h5 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-info-box p {
    margin-bottom: 0;
    color: white;
    opacity: 0.95;
}

.contact-info-box a {
    color: white;
}

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h5 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.8;
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.8rem;
}

.footer-widget ul li a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

/* Social links inside card-custom (for contact page Follow Us section) */
.card-custom .social-links a {
    background: var(--gradient);
    color: white;
}

.card-custom .social-links a:hover {
    background: var(--dark-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(7, 95, 177, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    opacity: 0.8;
}

/* Office Locations in Footer */
.office-locations {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.office-box {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.office-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.office-box i.fa-building {
    font-size: 2rem;
    color: var(--secondary-color);
}

.office-box h6 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.office-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.office-box a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.office-box a:hover {
    color: white;
}

/* ===================================
   About Page Specific
   =================================== */
.about-banner {
    background: var(--gradient);
    color: white;
    padding: 180px 0 80px;
    text-align: center;
    margin-top: 0;
}

.about-banner h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.feature-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-box:hover {
    transform: translateY(-10px);
}

/* ===================================
   Page Banner
   Increased top padding to prevent fixed navbar overlap
   =================================== */
.page-banner {
    background: var(--gradient);
    color: white;
    padding: 70px 0 70px;
    text-align: center;
    margin-top: 0;
}

.page-banner h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-banner p {
    font-size: 1.2rem;
    color: white;
    opacity: 0.95;
}

/* ===================================
   Responsive Design - Mobile Optimized
   =================================== */
@media (max-width: 768px) {
    /* Global mobile adjustments */
    body {
        font-size: 14px;
    }
    
    /* Reduce section padding for mobile app feel */
    .section-padding {
        padding: 40px 0;
    }
    
    /* Navbar mobile optimization */
    .navbar {
        position: sticky !important;
        top: 0 !important;
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0.2rem 0;
    }
    
    .btn-primary-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 70vh;
        padding-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        margin: 0.3rem;
    }
    
    /* Button groups on mobile - ensure side by side layout */
    .btn-lg {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }
    
    /* Ensure button containers allow wrapping */
    .mt-4 {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    /* Center align section content on mobile (not header/footer) */
    section .section-title,
    section .lead,
    section > .container > .row > div > p {
        text-align: center !important;
    }
    
    section .section-title .underline {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    section .text-start {
        text-align: center !important;
    }
    
    /* Center feature items on mobile */
    section .row .col-12 .d-flex {
        justify-content: center;
    }
    
    section .row .col-12 {
        text-align: center;
    }
    
    /* Center all buttons on mobile - ensure parent containers are centered */
    section > .container,
    section > .container > .row > div,
    section .col-lg-6,
    section .col-lg-5,
    section .col-lg-7,
    section .col-lg-8,
    section .col-lg-12,
    section .about-content,
    section .ceo-profile-content,
    section .cta-section .container .row > div {
        text-align: center !important;
    }
    
    /* Keep button groups (flex containers) centered */
    section .mt-4,
    section .mt-5 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* Individual buttons */
    section .btn,
    section a.btn {
        display: inline-block;
    }

    /* Section titles mobile */
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    .section-title .underline {
        width: 60px;
        height: 3px;
    }

    /* Cards and boxes mobile */
    .card-custom,
    .service-box {
        padding: 1.5rem;
        border-radius: 15px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-box h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .service-box p {
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Stats section mobile - 2x2 grid */
    .stats-section {
        padding: 30px 0;
    }
    
    .stats-section .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .stat-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-box h3 {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-box p {
        font-size: 0.9rem;
    }
    
    /* Portfolio mobile */
    .portfolio-item {
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .portfolio-image {
        height: 220px;
    }
    
    .portfolio-overlay {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .portfolio-overlay h4 {
        font-size: 1rem;
    }
    
    .btn-portfolio {
        font-size: 0.85rem;
        padding: 8px 20px;
        max-width: 180px;
    }
    
    /* Testimonials mobile */
    .testimonial-box {
        padding: 1.5rem;
        border-radius: 15px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .testimonial-content {
        text-align: center;
    }
    
    .testimonial-author {
        justify-content: center;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .testimonial-info h5 {
        font-size: 1rem;
    }
    
    .testimonial-info span {
        font-size: 0.85rem;
    }

    /* CTA section mobile */
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-white {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    /* Page banners mobile */
    .page-banner h1,
    .about-banner h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .page-banner p {
        font-size: 0.95rem;
    }
    
    .page-banner {
        padding: 50px 20px 40px;
    }
    
    .about-banner {
        padding: 110px 20px 40px;
    }

    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
        border-radius: 15px;
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .contact-info-box {
        padding: 1.5rem;
        border-radius: 15px;
        margin-bottom: 15px;
    }
    
    .contact-info-box i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-info-box h5 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-info-box p {
        font-size: 0.85rem;
    }
    
    /* Footer mobile */
    footer {
        padding: 40px 0 15px;
    }
    
    .footer-widget {
        margin-bottom: 20px;
    }
    
    .footer-widget h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-widget p,
    .footer-widget ul li a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 15px;
        margin-top: 20px;
    }
    
    /* Feature boxes mobile */
    .feature-box {
        padding: 1.5rem;
    }
    
    .feature-box i {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-box h5 {
        font-size: 1rem;
    }
    
    .feature-box p {
        font-size: 0.9rem;
    }
    
    /* Button adjustments for mobile */
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    /* Container padding for mobile app feel */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Reduce gaps between grid items */
    .row {
        margin-left: -7.5px;
        margin-right: -7.5px;
    }
    
    .row > * {
        padding-left: 7.5px;
        padding-right: 7.5px;
    }
}

/* Extra small devices optimization */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .page-banner h1,
    .about-banner h1 {
        font-size: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.4rem;
    }
    
    .stat-box h3 {
        font-size: 1.8rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .service-box,
    .card-custom,
    .testimonial-box {
        padding: 1.2rem;
    }
}

/* ===================================
   Animations
   =================================== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
    scroll-padding-top: 80px; /* Offset for sticky navbar */
}

body {
    max-width: 100vw;
    position: relative;
}

/* Loading animation */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   Additional Styles
   =================================== */
.portfolio-overlay .badge {
    background: white !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

/* Ensure all links on dark backgrounds are light */
.stats-section a,
.cta-section a,
.page-banner a,
footer a {
    color: white;
}

footer a:hover {
    color: var(--secondary-color);
}

/* ===================================
   Button Variants
   =================================== */
.btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(7, 95, 177, 0.3);
}

.btn-secondary {
    background: var(--secondary-color) !important;
    color: var(--dark-color) !important;
    border: none !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(239, 212, 0, 0.3);
}

.btn-secondary:hover {
    background: var(--secondary-color) !important;
    color: var(--dark-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 212, 0, 0.5);
}

/* Fix for buttons with light backgrounds */
.btn-light {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-light:hover {
    background: transparent !important;
    color: white !important;
    border-color: white !important;
    transform: translateY(-3px);
}

/* Accordion buttons fix */
.accordion-button {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(7, 95, 177, 0.25);
}

/* Ensure btn-sm visibility */
.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Portfolio overlay buttons - ensure visibility */
.portfolio-overlay .btn-white,
.portfolio-overlay .btn-light {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid white !important;
}

.portfolio-overlay .btn-white:hover,
.portfolio-overlay .btn-light:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: white !important;
}

/* Hero section buttons - ensure proper visibility */
.hero-section .btn-outline-primary {
    background: white !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.hero-section .btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Text color utilities for better contrast */
.text-white {
    color: white !important;
}

.text-dark {
    color: var(--dark-color) !important;
}
