/* General Body Styles */
* {
    box-sizing: border-box;
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: rgba(242, 242, 242, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 120, 212, 0.6);
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 120, 212, 0.8);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Darker, more professional gradient with better contrast */
    background: linear-gradient(135deg, 
        #e8f4f8 0%, 
        #d1e7dd 25%, 
        #e2e3e5 50%, 
        #dee2e6 75%, 
        #e9ecef 100%);
    background-attachment: fixed;
    color: #003366; /* Dark blue for excellent contrast */
    margin: 0;
    padding-top: 60px; /* Adjust for fixed navbar */
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.85); /* Fluent acrylic white */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand {
    color: #002244; /* Dark blue to match banner text */
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: #002244; /* Dark blue navigation text */
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #0078d4; /* Microsoft blue */
    border-bottom: 2px solid #0078d4;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0078d4, #40e0d0);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu for Mobile */
.navbar-toggler {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.toggler-icon {
    background-color: #002244; /* Dark blue hamburger menu */
    height: 3px;
    width: 25px;
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Main Content Area */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.section {
    background: rgba(255, 255, 255, 0.9); /* More opaque for better text readability */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px; /* More rounded corners for modern look */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset; /* Fluent elevation */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    color: #002244; /* Very dark blue for headings */
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 2.2rem;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, #0078d4, #40e0d0) left bottom no-repeat;
    background-size: 100% 2px;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h3 {
    color: #002244; /* Dark blue for consistency */
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(0, 120, 212, 0.3);
    font-weight: 600;
}

h3:first-of-type {
    margin-top: 1.5rem;
}

p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #003366; /* Dark blue paragraph text for excellent readability */
}

/* Banner */
.banner {
    position: relative;
    color: #003366; /* Changed from white to dark blue */
    text-align: center;
    padding: 3.2rem 2rem;
    background: url('banner1.png') no-repeat center center/cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(240, 248, 255, 0.9) 100%); /* Light overlay for dark text readability */
    backdrop-filter: blur(1px);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    color: #002244; /* Dark blue instead of white */
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8); /* White text shadow for readability */
}

.banner-content p {
    color: #003366; /* Dark blue instead of white */
    font-size: 1.8rem;
    margin-bottom: 0.5rem; /* Reduced from 1rem to bring lines closer */
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8); /* White text shadow for readability */
}

.banner-content p:last-child {
    margin-bottom: 1rem; /* Keep bottom margin for last paragraph */
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #002244; /* Dark blue for form labels */
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 120, 212, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.btn {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #106ebe 0%, #005a9e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 120, 212, 0.4);
}

.data-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.data-stack-item {
    background: rgba(255, 255, 255, 0.92); /* More opaque for better readability */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-stack-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.data-stack-item img {
    height: 80px;
    margin-bottom: 1rem;
}

.data-stack-item h4 {
    color: #002244; /* Dark blue for headers */
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255, 255, 255, 0.95); /* Fluent acrylic for mobile */
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        padding: 1.2rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1.1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #002244; /* Dark blue for mobile consistency */
    }

    .navbar-toggler {
        display: flex;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .banner-content h1 {
        font-size: 2.2rem;
        color: #002244; /* Dark blue for mobile consistency */
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    }

    .banner-content p {
        font-size: 1.4rem;
        color: #003366; /* Dark blue for mobile consistency */
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
        margin-bottom: 0.5rem; /* Consistent spacing on mobile */
    }

    .banner-content p:last-child {
        margin-bottom: 1rem; /* Keep bottom margin for last paragraph on mobile */
    }
}

/* Fluent Design Reveal Effect */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
        rgba(0, 120, 212, 0.05) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 12px;
}

.section:hover::before {
    opacity: 1;
}

/* Loading animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out forwards;
    position: relative;
}

/* Staggered animation delay for multiple sections */
.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }

/* Accordion Styles */
.accordion {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.08);
}

.accordion-item {
    border: none;
    margin-bottom: 0;
    background: #fff;
    overflow: hidden;
}

.accordion-item:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2em;
    background: linear-gradient(135deg, #f8faff 0%, #f3f6ff 100%);
    border: none;
    color: #2d3748;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #f3f6ff 0%, #eef2ff 100%);
    color: #667eea;
}

.accordion-header::after {
    content: '▼';
    font-size: 0.9em;
    color: #667eea;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #fff;
}

.accordion-content.active {
    max-height: 2000px;
    padding: 25px;
}

.accordion-content h4 {
    color: #4a5568;
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.accordion-content h4:first-child {
    margin-top: 0;
}

.accordion-content p {
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 15px;
}

.accordion-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.accordion-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* AVIS Framework specific accordion styling */
.avis-accordion .accordion-header {
    font-size: 1.3em;
    padding: 25px;
}

.avis-accordion .accordion-item:nth-child(1) .accordion-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.avis-accordion .accordion-item:nth-child(2) .accordion-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.avis-accordion .accordion-item:nth-child(3) .accordion-header {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
}

.avis-accordion .accordion-item:nth-child(4) .accordion-header {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.avis-accordion .accordion-header em {
    font-style: italic;
    color: #64748b;
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
    font-weight: normal;
}

/* Deliverables accordion styling */
.deliverables-accordion .accordion-header {
    font-size: 1.1em;
    padding: 18px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.deliverables-accordion .accordion-content ul {
    list-style-type: none;
    padding-left: 0;
}

.deliverables-accordion .accordion-content ul li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.deliverables-accordion .accordion-content ul li:hover {
    background: #f1f5f9;
    transform: translateX(3px);
}
