:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #0056b3;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 100px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.announcement-bar {
    background: #fff2d8;
    color: #333;
    padding: 0.6rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.announcement-bar p {
    margin: 0;
    text-align: center;
}

.announcement-bar a {
    color: #0056b3;
    text-decoration: underline;
    margin-left: 0.5rem;
    font-weight: 700;
    transition: opacity 0.2s;
}

.announcement-bar a:hover {
    opacity: 0.8;
}

.close-announcement {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.close-announcement:hover {
    opacity: 1;
}

.header {
    position: fixed;
    top: 40px;
    /* Offset by announcement bar height (approx) */
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    /* Reduced padding to compensate for larger logo */
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
    /* Initial state */
}

/* Adjust for mobile where text might wrap */
@media (max-width: 768px) {
    .header {
        top: 60px;
        /* Increased offset for potentially wrapped text */
    }

    .announcement-bar {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

.header.scrolled {
    padding: 0.5rem 0;
    /* Slimmer when scrolled */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    /* Glass effect */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo {
    height: 55px;
    /* Increased from 40px */
    width: auto;
    transition: height 0.3s ease;
}

/* Centered Navigation */
.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Header Actions (Right side) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.header-actions .nav-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-actions .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: none;
        /* Reset desktop centering */
        flex-direction: column;
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions .nav-btn {
        display: none;
        /* Hide CTA on mobile header */
    }

    /* Add CTA to mobile menu if needed, or rely on footer/hero */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    padding: 11rem 0 4rem;
    background-color: #f0f7ff;
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 93%, 1) 0, transparent 50%),
        radial-gradient(at 50% 100%, hsla(220, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(200, 100%, 93%, 1) 0, transparent 50%);
    position: relative;
    overflow: hidden;
    /* Added back to prevent horizontal scroll from shapes */
}

/* Abstract shapes for hero background */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -50px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.03) 0%, rgba(0, 123, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.03) 0%, rgba(0, 86, 179, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 40px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.text-blue {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image-container {
    flex: 1;
    position: relative;
    height: 600px;
    /* Increased height for vertical spread */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-img-main {
    position: relative;
    z-index: 20;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.hero-img-side {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy effect */
    z-index: 5;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.hero-image-container:hover .hero-img-main {
    transform: scale(1.02);
    z-index: 30;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.25);
}

/* Vertical Opening Animation */

/* Top 1 (Immediate Top) */
.hero-image-container:hover .hero-img-top-1 {
    transform: translate(-50%, -110%) scale(0.9) perspective(1000px) rotateX(5deg);
    opacity: 1;
    z-index: 15;
}

/* Bottom 1 (Immediate Bottom) */
.hero-image-container:hover .hero-img-bottom-1 {
    transform: translate(-50%, 10%) scale(0.9) perspective(1000px) rotateX(-5deg);
    opacity: 1;
    z-index: 15;
}

/* Top 2 (Far Top) */
.hero-image-container:hover .hero-img-top-2 {
    transform: translate(-50%, -160%) scale(0.8) perspective(1000px) rotateX(10deg);
    opacity: 0.7;
    z-index: 10;
}

/* Bottom 2 (Far Bottom) */
.hero-image-container:hover .hero-img-bottom-2 {
    transform: translate(-50%, 60%) scale(0.8) perspective(1000px) rotateX(-10deg);
    opacity: 0.7;
    z-index: 10;
}

/* Common style for detailed feature images */
.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    display: block;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

/* Features Section */
.features {
    padding: 8rem 0;
    background-color: #f8faff;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e1e9f5 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.features .icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Detailed Features Section */
.detailed-features {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row.reverse {
    flex-direction: row-reverse;
}

.detail-text {
    flex: 1;
}

.detail-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.detail-list li i {
    color: var(--primary-color);
}

.detail-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Sectors Section */
.sectors {
    padding: 8rem 0;
    background-color: var(--white);
    position: relative;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.sector-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.sector-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.sector-card:hover i {
    transform: scale(1.1);
}

.sector-card span {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.sector-card:hover span {
    color: var(--primary-color);
}

.sector-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sector-card:hover::after {
    transform: scaleX(1);
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background-color: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: #fff;
    border-color: var(--primary-color);
}

.faq-question {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-content h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.card-content a {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.card-content a:hover {
    opacity: 0.8;
}

/* Contact Form */
.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
}

.contact-form h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #aaa;
    transition: color 0.3s ease;
}

.input-wrapper.textarea-wrapper {
    align-items: flex-start;
}

.input-wrapper.textarea-wrapper i {
    top: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.form-group input:focus+i,
.form-group textarea:focus+i,
.input-wrapper:focus-within i {
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: 20px;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-header p {
    color: #666;
    font-size: 0.95rem;
}

.demo-form .form-group select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9 url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 1rem center;
    background-size: 0.8rem;
    appearance: none;
    cursor: pointer;
}

.demo-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-brand p {
    color: #a0a0a0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 0.8rem;
}

.footer-nav ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-list li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-list li span {
    display: block;
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.contact-list li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image-container {
        height: 500px;
        width: 100%;
    }

    /* Horizontal Opening Animation for Mobile */

    /* Top 1 -> Left 1 */
    .hero-image-container:hover .hero-img-top-1 {
        transform: translate(-160%, -50%) scale(0.9) perspective(1000px) rotateY(-5deg);
    }

    /* Bottom 1 -> Right 1 */
    .hero-image-container:hover .hero-img-bottom-1 {
        transform: translate(60%, -50%) scale(0.9) perspective(1000px) rotateY(5deg);
    }

    /* Top 2 -> Left 2 */
    .hero-image-container:hover .hero-img-top-2 {
        transform: translate(-220%, -50%) scale(0.8) perspective(1000px) rotateY(-10deg);
    }

    /* Bottom 2 -> Right 2 */
    .hero-image-container:hover .hero-img-bottom-2 {
        transform: translate(120%, -50%) scale(0.8) perspective(1000px) rotateY(10deg);
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .detail-row,
    .detail-row.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .detail-list {
        display: inline-block;
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Modal Mobile Adjustments */
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        margin: 10px auto;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .slide-in-left {
    transform: translateX(50px);
}

[dir="rtl"] .slide-in-right {
    transform: translateX(-50px);
}

[dir="rtl"] .announcement-bar .close-announcement {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .announcement-bar a {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .nav-list a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .input-wrapper i {
    left: auto;
    right: 15px;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea,
[dir="rtl"] .demo-form .form-group select {
    padding: 12px 45px 12px 15px;
}

[dir="rtl"] .demo-form .form-group select {
    background-position: left 1rem center;
}

[dir="rtl"] .feature-card::before {
    transform-origin: right;
}

[dir="rtl"] .sector-card::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

/* Adjust contact cards alignment in RTL if needed */
[dir="rtl"] .contact-card {
    text-align: right;
}

[dir="rtl"] .contact-info {
    text-align: right;
}

/* Ensure mobile menu works in RTL */
@media (max-width: 992px) {
    [dir="rtl"] .nav-menu {
        left: 0;
        /* Keep it full width */
    }
}

/* Additional RTL Fixes */
[dir="rtl"] .fa-chevron-right {
    transform: rotate(180deg);
}

[dir="rtl"] .card-content h3 {
    letter-spacing: 0;
}

[dir="rtl"] .footer-nav ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Modal Styles (General) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalScaleIn 0.3s ease;
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Demo Modal specific adjustments if needed */
.demo-form .form-group {
    margin-bottom: 1rem;
}

/* Promo Modal Specifics */
/* Promo Background Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.promo-content {
    background: linear-gradient(-45deg, #007bff, #0056b3, #004494, #007bff);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    /* Blue Background */
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 0;
    width: 95%;
    max-width: 850px;
    border-radius: 20px;
    overflow: visible;
    /* Allow image to pop out if needed */
    position: relative;
    max-height: 330px;
    display: flex;
    align-items: stretch;
}

.promo-grid {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 0;
}

.promo-text-col {
    flex: 1.5;
    padding: 3rem 0 3rem 4rem;
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
}

.promo-logo {
    height: 50px;
    /* Smaller logo */
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.promo-title {
    font-size: 1.8rem;
    color: #ffc107;
    /* Yellow Text */
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

.promo-title .highlight {
    color: #ffc107;
    display: inline;
    font-size: inherit;
}

.promo-tagline {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin: 0;
}

.promo-image-col {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.promo-man-img {
    height: 125%;
    /* Adjusted to pop out from top */
    width: auto;
    object-fit: contain;
    margin-bottom: 0;
    margin-right: 1rem;
    align-self: flex-end;
}

/* Close button - Make it white/transparent */
.close-promo {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 100;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.close-promo:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.free-badge {
    background-color: #dc3545;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.promo-subtext {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.promo-btn {
    padding: 0.8rem 2rem;
    font-size: 1.0rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    background-color: #ffc107;
    /* Yellow */
    color: #333;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    background-color: #ffca2c;
    color: #000;
}

/* Responsive Design Overrides */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding-top: 2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image-container {
        height: 500px;
        width: 100%;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {

    /* Header & Nav */
    .header {
        top: 60px;
        /* Space for announcement bar */
        padding: 0.8rem 0;
    }

    .announcement-bar {
        padding: 0.6rem 2.5rem 0.6rem 1rem;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        background: #0056b3;
        /* Darker Blue */
        color: white;
        border-bottom: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .announcement-bar p {
        font-size: 0.9rem;
        line-height: 1.4;
        display: block;
        margin: 0;
        width: 100%;
    }

    .announcement-bar p span {
        display: block;
        margin-bottom: 0.4rem;
        font-weight: 500;
        opacity: 0.95;
    }

    .announcement-bar a {
        display: inline-block;
        background-color: #ffc107;
        /* Yellow */
        color: #000;
        padding: 0.3rem 1.2rem;
        border-radius: 50px;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 700;
        margin-left: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s;
    }

    .announcement-bar a:active {
        transform: scale(0.95);
    }

    .close-announcement {
        color: white;
        opacity: 0.8;
        top: 10px;
        right: 10px;
        transform: none;
    }

    .logo {
        height: 40px;
    }

    /* Hero */
    .hero {
        padding: 9rem 0 3rem;
        /* Adjusted for mobile header */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-image-container {
        height: 400px;
        /* Smaller height for mobile */
    }

    .hero-img-main {
        width: 85%;
    }

    /* Features Detail */
    .detail-row,
    .detail-row.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .detail-text h3 {
        font-size: 1.8rem;
    }

    .detail-list {
        display: inline-block;
        text-align: left;
    }

    /* Sectors */
    .sectors-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
        padding: 1rem;
    }

    /* Contact */
    .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-info,
    .contact-form-container {
        width: 100%;
        min-width: auto;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand p {
        margin: 0 auto 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    /* Promo Modal (Existing Responsive Styles) */
    .promo-content {
        flex-direction: column;
        max-height: none;
        overflow: visible;
        width: 90%;
        margin: 20px auto;
    }

    .promo-grid {
        flex-direction: column;
    }

    .promo-text-col {
        padding: 1.5rem 1rem 2rem;
        align-items: center;
        text-align: center;
    }

    .promo-title {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }

    .promo-tagline {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .promo-subtext {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .promo-image-col {
        width: 100%;
        height: 220px;
        order: -1;
        /* Image on top */
        justify-content: center;
        margin-bottom: -15px;
    }

    .promo-man-img {
        height: 100%;
        max-height: 250px;
        margin-right: 0;
        object-position: bottom center;
    }

    /* Animations on Mobile */
    .slide-in-left,
    .slide-in-right {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
        /* Disable scroll animations for better performance */
    }
}

/* Floating Draw Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: float-btn 3s ease-in-out infinite;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(255, 75, 43, 0.6);
}

.floating-btn i {
    animation: shake 4s ease-in-out infinite;
}

.btn-tooltip {
    position: absolute;
    right: 85px;
    background-color: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.btn-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.floating-btn:hover .btn-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes float-btn {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-10deg);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(10deg);
    }
}

/* RTL Support for floating button */
html[dir="rtl"] .floating-btn {
    right: auto;
    left: 30px;
}

html[dir="rtl"] .btn-tooltip {
    right: auto;
    left: 85px;
    transform: translateX(-10px);
}

html[dir="rtl"] .btn-tooltip::after {
    right: auto;
    left: -6px;
    border-width: 6px 6px 6px 0;
    border-color: transparent white transparent transparent;
}

html[dir="rtl"] .floating-btn:hover .btn-tooltip {
    transform: translateX(0);
}

/* Mobile Responsiveness for Draw Feature */
@media (max-width: 768px) {
    .floating-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .btn-tooltip {
        display: none;
        /* Hide tooltip on mobile to save space */
    }

    /* RTL specific overrides for mobile */
    html[dir="rtl"] .floating-btn {
        right: auto;
        left: 20px;
    }

    /* Adjust Modal for Mobile */
    #drawModal .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
        max-height: 85vh;
        overflow-y: auto;
        /* Scrollable if content is too tall */
    }

    #drawModal .modal-header h2 {
        font-size: 1.5rem;
    }
}