/* Global Styles */
:root {
    --primary-dark: #0A1A2F;
    --primary-blue: #007BFF;
    --accent-green: #00D4AA;
    --accent-orange: #FF6B35;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0A1A2F;
    --bg-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 200px;
    height: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

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

.nav-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--primary-blue);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: '▼';
    margin-left: 2px;
    font-size: 0.8rem;
    /* vertical-align: middle; */
    color: inherit;
    opacity: 0.7;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
    display: block !important;
    flex-direction: column !important;
    border: 1px solid #e9ecef;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin: 0 !important;
    white-space: nowrap;
    display: block;
    position: relative;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #3498db;
    padding-left: 1.75rem;
    border-left: 3px solid #3498db;
}

/* Banner Styles */
.banner {
    position: relative;
    height: 60vh;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.banner-slider {
    height: 100%;
    position: relative;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-item.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Hide old arrow controls */
.slider-control {
    display: none;
}

/* Slider dots container */
.slider-dots {
    display: flex;
    gap: 10px;
}

/* Dot styles */
.dot {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background-color: white;
    width: 16px;
    height: 16px;
}

/* Dynamic Data Display */
.dynamic-data {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding:0;
}

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

.data-item {
    text-align: center;
    padding: 2rem 0;
}

.data-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.data-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Solutions Section */
.solutions {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-description {
    color: var(--text-dark);
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.1rem;
}

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

.solution-card {
    background-color: var(--text-light);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    background-color: var(--primary-blue);
    color: var(--text-light);
    transform: scale(1.1);
}

.solution-card h3 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Data Flow Visualization */
.data-flow {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0;
}

.data-flow .section-header h2 {
    color: var(--primary-blue);
}

.flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
}

.flow-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-box {
    background-color: var(--primary-blue);
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.flow-arrow {
    color: var(--primary-blue);
    font-size: 2rem;
    animation: pulse-arrow 2s infinite;
}

.arrow-right {
    font-size: 2rem;
}

@keyframes pulse-arrow {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* Footer Styles */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 2rem;
}

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

.footer-column h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.contact-info {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Bottom Module */
.floating-bottom {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #d5b7b745, #0a2f22);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    transform: translateY(0);
    opacity: 0.95;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-bottom.visible {
    bottom: 0;
    transform: translateY(0);
}

.floating-bottom.hide {
    bottom: -100px;
    transform: translateY(20px);
}

.floating-bottom .container {
        display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0.5rem 0;
}

.floating-bottom img {
    max-width: 170px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.floating-bottom p {
    margin: 0;
    color: #00D4AA;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.floating-bottom .btn-primary {
    background: linear-gradient(135deg, #007BFF, #00D4AA);
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.floating-bottom .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin: 0 1rem;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .data-value {
        font-size: 2rem;
    }
    
    .flow-container {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .floating-bottom .container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .floating-bottom img {
        max-width: 100px;
    }
    
    .floating-bottom p {
        font-size: 1rem;
    }
    
    .floating-bottom .btn-primary {
        margin-top: 0.5rem;
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .solution-card {
        padding: 1.5rem;
    }
    
    .flow-box {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: 150px;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* index3.css - Custom styles for index3.html (now merged into index.css) */

/* Header styles matching index.html */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 5px 0;
}

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

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

.main-nav ul li {
    margin-left: 30px;
    display: block;
}

.dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    display: block !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.main-nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #3498db;
}

.nav-item.active a {
    color: #3498db;
}

/* Adjust banner position for fixed header */
.banner {
    margin-top: 70px;
}

/* Button styles matching index.html */
.btn-primary {
    background-color: #fff;
    color: #667eea;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    color: #667eea;
}

/* Banner specific styles */
.banner-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)), 
                url('../img/banner2.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

.slider-item.active {
    opacity: 1;
    animation: blindsIn 1.2s ease-out forwards;
}

@keyframes blindsIn {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }
    15% {
        clip-path: polygon(0 0, 16.666% 0, 16.666% 100%, 0 100%);
    }
    30% {
        clip-path: polygon(0 0, 33.333% 0, 33.333% 100%, 0 100%);
    }
    45% {
        clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    }
    60% {
        clip-path: polygon(0 0, 66.666% 0, 66.666% 100%, 0 100%);
    }
    75% {
        clip-path: polygon(0 0, 83.333% 0, 83.333% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.banner-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 1000px;
    padding-top: 180px;
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Solution icons */
.solution-icon {
    width: 80px;
    height: 80px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

/* Data flow section color adjustment */
.data-flow {
    background-color: #152D48; /* More noticeable difference from site-footer's #0A1A2F */
}

/* Data flow animation */
.flow-box {
    background-color: #f8f9fa;
    color: #2c3e50;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.flow-arrow {
    color: #3498db;
    font-size: 2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.flow-item:hover .flow-arrow {
    opacity: 1;
    transform: scale(1.1);
}

/* Solution cards */
.solution-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.solution-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.solution-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer layout */
.footer-content {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Footer logo */
.footer-column img {
    margin-bottom: 1rem;
}

/* Responsive adjustments for index3 */
@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .flow-box {
        min-width: 150px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column;
    }
    
    .main-nav ul {
        margin-top: 15px;
    }
    
    .main-nav ul li {
        margin: 0 15px;
    }
    
    /* Banner */
    .banner-slider {
        height: 60vh;
    }
    
    .banner-content {
        padding: 80px 20px 60px;
    }
    
    .banner-content h1 {
        font-size: 1.7rem;
    }
    
    /* Flow container */
    .flow-container {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    /* Solutions */
    .solution-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Banner */
    .banner-slider {
        height: 50vh;
    }
    
    .banner-content h1 {
        font-size: 1.4rem;
    }
    
    /* Solutions */
    .solution-card {
        padding: 1.5rem 1rem;
    }
    
    /* Flow */
    .flow-box {
        min-width: 120px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Button */
    .btn-primary {
        padding: 12px 24px;
        font-size: 16px;
    }
}
