/* CSS Variables fallback for old browsers */
:root {
    --primary-color: #FF8C00;
    --secondary-color: #FFA500;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fallback for browsers that don't support CSS variables */
.primary-color { color: #FF8C00; }
.secondary-color { color: #FFA500; }
.success-color { color: #28a745; }
.danger-color { color: #dc3545; }
.dark-color { color: #343a40; }
.light-color { background-color: #f8f9fa; }
.white { color: #ffffff; background-color: #ffffff; }

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

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

.text-center { text-align: center; }

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}



/* Search Functionality */
.search-container {
    position: relative;
    margin: 0 1rem;
    flex: 1;
    max-width: 400px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: rgba(255, 140, 0, 0.1);
    color: var(--secondary-color);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
    padding-left: 1.5rem;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.search-result-description {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.search-result-category {
    color: var(--secondary-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

mark {
    background: #fff3cd;
    color: #856404;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    font-weight: 600;
}



.header-logo {
    position: absolute;
    top: 1rem;
    left: 2rem;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

nav {
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

nav ul li {
    min-width: 120px;
    text-align: center;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul li a:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

/* Dropdown Services */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 4px;
    top: 100%;
    left: 0;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-content a {
    color: var(--dark-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #FFA500, #FF8C00);
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FF4500, #FFA500);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #FF6347, #FF8C00);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
}

.admin-link {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    margin-left: 1rem;
}

.admin-link:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    filter: brightness(1.1);
}

.cta-button, .cta-button-small {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.cta-button-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.cta-button:hover, .cta-button-small:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
    filter: brightness(1.1);
}

.cta-button:active, .cta-button-small:active {
    transform: scale(0.98);
}

.lang-selector {
    padding: 0.3rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rotating-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    animation: cycle-images 20s linear infinite;
    pointer-events: none;
}

@keyframes cycle-images {
    0% {
        background-image: url('../Images%20background/accuray-5VkNa1LrS8A-unsplash.jpg');
    }
    16.67% {
        background-image: url('../Images%20background/alexandr-podvalny-tE7_jvK-_YU-unsplash.jpg');
    }
    33.33% {
        background-image: url('../Images%20background/Designer.png');
    }
    50% {
        background-image: url('../Images%20background/ocho-artex-rm7rZYdl3rY-unsplash.jpg');
    }
    66.67% {
        background-image: url('../Images%20background/OIP.webp');
    }
    83.33% {
        background-image: url('../Images%20background/usman-yousaf-pTrhfmj2jDA-unsplash.jpg');
    }
    100% {
        background-image: url('../Images%20background/accuray-5VkNa1LrS8A-unsplash.jpg');
    }
}

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .cta-button {
    margin-right: 1rem;
}

.secondary-button {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s;
}

.secondary-button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-illustration .illustration-placeholder {
    font-size: 8rem;
    opacity: 0.8;
}

/* Sections General */
section { padding: 5rem 0; }
h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: 2.2rem;
    position: relative;
}

h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Why Us Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--light-color);
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-item:hover { transform: translateY(-5px); }

.feature-item .icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.2rem;
}

.summary-text {
    text-align: center;
    margin-top: 3.5rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

/* Specialties Grid */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.specialty-card {
    text-align: center;
    padding: 1.8rem;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s;
    background: var(--white);
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.specialty-card i {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.8rem;
}

.view-all {
    display: inline-block;
    margin-top: 2.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
}

.view-all:hover { border-bottom-color: var(--primary-color); }

/* How it works */
.steps {
    display: flex;
    gap: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

/* Presentation */
.presentation-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.presentation-text { flex: 1; }
.presentation-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.creator-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: colorCycle 3s infinite;
}

@keyframes colorCycle {
    0% { border-color: #FF8C00; }
    25% { border-color: #007bff; }
    50% { border-color: #28a745; }
    75% { border-color: #dc3545; }
    100% { border-color: #FF8C00; }
}

.creator-description {
    font-style: italic;
    margin-top: 1rem;
    max-width: 400px;
    color: var(--secondary-color);
    line-height: 1.6;
}

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

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.testimonial p { color: #f1c40f; margin-bottom: 1rem; }

/* Emergencies */
#emergencies {
    background: #fff5f5;
    text-align: center;
}

.emergency-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.emergency-links a {
    color: var(--danger-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.cta-button.danger {
    background: var(--danger-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.cta-button.danger:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.blog-post {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: var(--white);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: #ddd;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

/* PC Footer Layout */
@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover { color: var(--white); }

.social-links { margin-top: 1.5rem; }
.social-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
    font-size: 0.85rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background: linear-gradient(-45deg, #FF8C00, #FFA500, #FF4500, #FF6347);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: white;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Social Login Buttons */
.social-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-btn {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.google-btn {
    color: #db4437;
    border-color: #db4437;
}

.google-btn:hover {
    background: #db4437;
    color: white;
}

.facebook-btn {
    color: #4267B2;
    border-color: #4267B2;
}

.facebook-btn:hover {
    background: #4267B2;
    color: white;
}

.linkedin-btn {
    color: #0077b5;
    border-color: #0077b5;
}

.linkedin-btn:hover {
    background: #0077b5;
    color: white;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.tabs .tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tabs .tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tabs .tab-button:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Photo Upload Styles */
.photo-upload-container {
    position: relative;
}

.photo-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light-color);
}

.photo-upload-area:hover {
    border-color: var(--primary-color);
    background: #e8f4fd;
}

.photo-upload-area i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.photo-upload-area p {
    margin: 0;
    font-weight: bold;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.photo-upload-area small {
    color: var(--secondary-color);
    font-size: 0.75rem;
}

/* Form Section */
.form-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

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

.form-section h3 {
    margin: 0 0 1rem 0;
    color: #FFD700;
    font-size: 1.3rem;
}

.form-section .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    width: 0%;
    transition: width 0.3s ease;
}

/* Error Messages */
.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: none;
}

/* Required Star */
.required-star {
    color: #ff6b6b;
    margin-left: 0.25rem;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #FFD700;
}

.checkbox-group label {
    margin: 0;
    line-height: 1.4;
    color: var(--dark-color);
}

/* Campaigns and Conferences */
.campaigns-grid, .conferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.campaign-item, .conference-item {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: var(--white);
    transition: transform 0.3s;
}

.campaign-item:hover, .conference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.campaign-item h3, .conference-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Feedback Button */
.feedback-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--success-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s;
    z-index: 1000;
    text-decoration: none;
}

.feedback-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    transition: all 0.3s;
    z-index: 1000;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* Chat Modal Styles */
.chat-modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: var(--light-color);
    border-radius: 8px;
    margin-bottom: 10px;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background-color: var(--primary-color);
    color: var(--white);
    align-self: flex-start;
}

.user-message {
    background-color: var(--success-color);
    color: var(--white);
    align-self: flex-end;
    margin-left: auto;
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

.chat-input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.send-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.send-button:hover {
    background: #0056b3;
}



}









/* Landscape orientation for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #hero {
        padding: 2rem 0;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero-buttons .cta-button {
        max-width: 200px;
    }
}

/* Mobile Background Image Optimizations */
@media (max-width: 768px) {
    .rotating-bg {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll; /* Better performance on mobile */
        opacity: 0.2; /* Slightly more visible on mobile */
        transform: scale(1.1); /* Slight zoom for better coverage */
    }

    /* Ensure background images are high quality on mobile */
    @keyframes cycle-images {
        0% {
            background-image: url('../Images%20background/accuray-5VkNa1LrS8A-unsplash.jpg');
            background-size: cover;
            background-position: center center;
        }
        16.67% {
            background-image: url('../Images%20background/alexandr-podvalny-tE7_jvK-_YU-unsplash.jpg');
            background-size: cover;
            background-position: center center;
        }
        33.33% {
            background-image: url('../Images%20background/Designer.png');
            background-size: cover;
            background-position: center center;
        }
        50% {
            background-image: url('../Images%20background/ocho-artex-rm7rZYdl3rY-unsplash.jpg');
            background-size: cover;
            background-position: center center;
        }
        66.67% {
            background-image: url('../Images%20background/OIP.webp');
            background-size: cover;
            background-position: center center;
        }
        83.33% {
            background-image: url('../Images%20background/usman-yousaf-pTrhfmj2jDA-unsplash.jpg');
            background-size: cover;
            background-position: center center;
        }
        100% {
            background-image: url('../Images%20background/accuray-5VkNa1LrS8A-unsplash.jpg');
            background-size: cover;
            background-position: center center;
        }
    }

    /* Add overlay for better text readability on mobile */
    #hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.1);
        z-index: 1;
    }

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

/* Extra small mobile devices */
@media (max-width: 480px) {
    .rotating-bg {
        opacity: 0.15; /* Even more visible on very small screens */
        transform: scale(1.2); /* More zoom for better coverage */
    }

    #hero::before {
        background: rgba(0,0,0,0.05); /* Lighter overlay for very small screens */
    }
}

/* PC Optimizations - Wider screens */
@media (min-width: 769px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }

    body {
        font-size: 18px;
    }

    #hero h1 {
        font-size: 3.5rem;
    }

    #hero p {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 3rem;
    }

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

    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 3rem;
    }

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



    /* Optimize desktop nav */
    .desktop-nav ul {
        gap: 1rem;
    }

    .desktop-nav ul li a {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* New Badge for Recently Developed Modules */
.new-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

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

/* Animated Cards */
.animated-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.animated-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 140, 0, 0.2);
    border-color: var(--primary-color);
}

.partner-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.partner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
    filter: brightness(1.1);
}

/* Services Dropdown Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    max-width: 800px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 100px;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 140, 0, 0.3);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
}

.service-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.service-card:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.service-card span {
    display: block;
    line-height: 1.3;
}
