/* CSS to replace inline styles for better maintainability */

/* Logo styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 60px;
    width: auto;
    vertical-align: middle;
}

.logo-text {
    font-weight: 700;
    font-size: 1em;
    color: inherit;
    letter-spacing: 1px;
}

/* Header styles for visibility and sticky behavior */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    transition: all 0.3s ease;
    box-shadow: none;
}

/* Header when scrolled */
#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Navigation text color when scrolled */
#main-header.scrolled #mainNav a {
    color: var(--text-color, #333) !important;
}

#main-header.scrolled .logo {
    color: var(--primary-blue, #0066cc) !important;
}

/* Ensure body has top padding to account for fixed header */
body {
    padding-top: 0;
}

/* Header container */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Navigation styles for fixed header */
#mainNav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 30px;
}

#mainNav a {
    text-decoration: none;
    color: var(--white, #fff);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

#mainNav a:hover,
#mainNav a:focus {
    color: var(--primary-blue, #0066cc);
}

#mainNav a[aria-current="page"] {
    color: var(--primary-blue, #0066cc);
    font-weight: 600;
}

/* Button styles in navigation */
#mainNav .btn {
    padding: 10px 20px;
    border-radius: 5px;
    background-color: var(--primary-blue, #0066cc);
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

#mainNav .btn:hover,
#mainNav .btn:focus {
    background-color: var(--primary-blue-dark, #0052a3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Mobile menu styles */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* Services section styles */
.services-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.service-list {
    text-align: left;
    margin: 0 0 0 1em;
    padding: 0;
    color: var(--text-color);
    font-size: 1em;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
}

/* Service category titles */
.service-category-title {
    margin-top: 60px;
    color: var(--primary-blue);
}


/* Thank you page styles */
.thank-you-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.thank-you-title {
    color: var(--primary-blue);
    margin-top: 80px;
}

.thank-you-content {
    max-width: 600px;
}

.thank-you-message,
.thank-you-details,
.thank-you-closing {
    font-size: 1.2em;
    color: var(--text-color);
    margin-top: 24px;
    line-height: 1.6;
}

.thank-you-btn {
    margin-top: 32px;
}

/* Animation styles for scroll-triggered elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered animations */
.stagger-animation .animate-on-scroll:nth-child(1) { 
    transition-delay: 0.1s; 
}
.stagger-animation .animate-on-scroll:nth-child(2) { 
    transition-delay: 0.2s; 
}
.stagger-animation .animate-on-scroll:nth-child(3) { 
    transition-delay: 0.3s; 
}
.stagger-animation .animate-on-scroll:nth-child(4) { 
    transition-delay: 0.4s; 
}
.stagger-animation .animate-on-scroll:nth-child(5) { 
    transition-delay: 0.5s; 
}
.stagger-animation .animate-on-scroll:nth-child(6) { 
    transition-delay: 0.6s; 
}

/* Portfolio item animations */
.portfolio-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Service card animations */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure all sections are visible by default */
.page-section {
    opacity: 1;
    transform: none;
}

/* Override any hidden sections */
#intro-about,
#intro-services,
.portfolio-showcase,
#our-process,
.cta-section {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

/* Mobile navigation styles */
#mainNav.show-mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 77, 153, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#mainNav.show-mobile-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    align-items: stretch;
}

#mainNav.show-mobile-nav a {
    padding: 15px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    display: block;
    color: white;
}

#mainNav.show-mobile-nav .btn {
    margin-top: 10px;
    text-align: center;
}

/* Responsive mobile menu */
@media (max-width: 768px) {
    .mobile-menu-icon {
        display: flex;
    }
    
    /* Hide desktop navigation on mobile */
    #mainNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    /* Adjust body padding for mobile */
    body {
        padding-top: 0;
    }
    
    /* Smaller header on mobile */
    .header-flex {
        padding: 10px 0;
    }
    
    .logo-image {
        height: 50px;
    }
    
    /* Faster animations on mobile */
    .animate-on-scroll {
        transition-duration: 0.6s;
    }
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    #mainNav ul {
        gap: 20px;
    }
    
    .header-flex {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Large screen optimization */
@media (min-width: 1200px) {
    .header-flex {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .portfolio-item,
    .service-card {
        transition: opacity 0.3s ease;
        transform: none !important;
    }
}

/* Center headings on about pages */
#about-intro h1 {
    text-align: center;
}

/* Center all headings in about page sections */
#about-intro h3 {
    text-align: center;
}

/* Ensure Zoho SalesIQ chatbot is visible on desktop */
#zsiq_float,
#zsiq_agtpic,
#zsiq_chatbox,
.zsiq_floatmain,
.zsiq_float,
.zsiq_theme1,
div[id*="zsiq"],
iframe[id*="zsiq"] {
    z-index: 99999 !important;
    position: fixed !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Force chatbot to show on desktop */
@media (min-width: 769px) {
    #zsiq_float,
    .zsiq_floatmain,
    div[id*="zsiq"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 99999 !important;
        pointer-events: auto !important;
    }
}

/* Ensure chatbot button is clickable */
.zsiq_float,
#zsiq_float {
    cursor: pointer !important;
    user-select: none !important;
}

/* Enhanced Contact Information Styling */
.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue, #0066cc), var(--accent-blue, #007bff));
}

.contact-info h2 {
    color: var(--primary-blue, #0066cc);
    margin-bottom: 30px;
    font-size: 1.8em;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue, #0066cc);
    border-radius: 2px;
}

.contact-info address {
    font-style: normal;
    line-height: 1.8;
}

.contact-info address p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue, #0066cc);
    transition: all 0.3s ease;
    position: relative;
}

.contact-info address p:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.1);
}

.contact-info address p::before {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-blue, #0066cc);
    margin-right: 15px;
    font-size: 1.2em;
    min-width: 20px;
    text-align: center;
}

/* Address icon */
.contact-info address p:first-child::before {
    content: '\f3c5'; /* fa-map-marker-alt */
}

/* Phone icon */
.contact-info address p:nth-child(2)::before {
    content: '\f095'; /* fa-phone */
}

/* Email icon */
.contact-info address p:nth-child(3)::before {
    content: '\f0e0'; /* fa-envelope */
}

.contact-info address p strong {
    color: var(--dark-blue, #004d99);
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.contact-info address p a {
    color: var(--primary-blue, #0066cc);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info address p a:hover {
    color: var(--dark-blue, #004d99);
    text-decoration: underline;
}

/* Contact form styling improvements */
.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue, #007bff), var(--primary-blue, #0066cc));
}

.contact-form h2 {
    color: var(--primary-blue, #0066cc);
    margin-bottom: 30px;
    font-size: 1.8em;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue, #0066cc);
    border-radius: 2px;
}

/* Contact content layout improvements */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    align-items: start;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info,
    .contact-form {
        padding: 25px;
    }
    
    .contact-info address p {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .contact-info address p::before {
        margin-right: 12px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form {
        padding: 20px;
    }
    
    .contact-info h2,
    .contact-form h2 {
        font-size: 1.5em;
    }
}