:root {
    --primary-color: #2c58a0;
    --secondary-color: #00c8b3;
    --dark-color: #1a1a2e;
    --light-color: #f7f7f7;
    --text-color: #333;
    --transition: all 0.3s ease-in-out;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    direction: rtl;
    transition: var(--transition);
}

.transparent-navbar {
    background-color: transparent;
    box-shadow: none;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-left: 12px;
}

.company-name-container {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1.2;
}

.company-name-en {
    font-size: 0.7rem;
    color: var(--dark-color);
    font-weight: 500;
    opacity: 0.8;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
    background-color: #555;
}

.linkedin {
    background-color: #555;
}

.whatsapp {
    background-color: #555;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.whatsapp:hover {
    background-color: #25D366;
}

/* Hero Section Styles */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,248,255,0.9) 100%);
}

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

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--dark-color);
}

.primary-color {
    color: var(--primary-color);
    position: relative;
}

.primary-color::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: rgba(44, 88, 160, 0.2);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.typed-container {
    min-height: 100px;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--dark-color);
    margin-top: 20px;
}

#typed-text {
    position: relative;
}

.main-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 200, 179, 0.3);
}

.main-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 200, 179, 0.4);
    color: white;
}

.hero-image {
    position: relative;
    text-align: center;
    z-index: 10;
}

.animated-logo {
    max-width: 90%;
    animation: float 8s ease-in-out infinite;
}

/* Support Agent Styles */
.support-agent {
    position: absolute;
    top: -10px;
    right: 15%;
    z-index: 20;
    animation: float-agent 8s ease-in-out infinite;
    animation-delay: 1s;
    transition: transform 0.3s ease-out;
}

.agent-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    position: relative;
    transition: all 0.3s ease-out;
}

.agent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-online-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(0, 200, 179, 0.8);
    z-index: 3;
    animation: pulse 2s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.02);
    }
    100% {
        transform: translateY(0px) scale(1);
    }
}

@keyframes float-agent {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-15px) rotate(-2deg);
    }
    75% {
        transform: translateY(-5px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 200, 179, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 200, 179, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 179, 0);
    }
}

.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.geometric-shapes::before,
.geometric-shapes::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, rgba(44, 88, 160, 0.1), rgba(0, 200, 179, 0.1));
}

.geometric-shapes::before {
    top: -100px;
    right: -100px;
    animation: morphing1 15s linear infinite alternate;
}

.geometric-shapes::after {
    bottom: -100px;
    left: -100px;
    animation: morphing2 15s linear infinite alternate;
}

@keyframes morphing1 {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes morphing2 {
    0% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    25% {
        border-radius: 42% 58% 25% 75% / 46% 76% 24% 54%;
    }
    50% {
        border-radius: 50% 50% 67% 33% / 27% 55% 45% 73%;
    }
    75% {
        border-radius: 67% 33% 42% 58% / 68% 63% 37% 32%;
    }
    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

/* Polygon Animation Styles */
.polygon {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, rgba(44, 88, 160, 0.05), rgba(0, 200, 179, 0.05));
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: float-polygon 20s ease-in-out infinite alternate;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes float-polygon {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.2);
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(0.8);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Copyright */
.copyright {
    position: absolute;
    bottom: 20px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--dark-color);
    opacity: 0.7;
    z-index: 10;
    text-align: left;
    line-height: 1.5;
    width: 100%;
}

.copyright-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
}

.copyright-text {
    flex: 1;
}

.copyright p {
    margin-bottom: 3px;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.oman-image {
    margin-right: 20px;
}

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

/* Navbar Scrolling Effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 10px 0;
}

/* Chat Bubble Styles */
.chat-bubble {
    position: absolute;
    top: 25px;
    right: 110px;
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 280px;
    opacity: 0;
    transform: translateX(20px) scale(0.9);
    transition: all 0.3s ease-out;
    visibility: hidden;
    z-index: 5;
}

.chat-bubble-content {
    position: relative;
}

.chat-message {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-color);
}

.start-chat-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.start-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

.chat-bubble-arrow {
    position: absolute;
    top: 20px;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}

/* Hover Effects */
.support-agent:hover {
    animation-play-state: paused;
}

.support-agent:hover .agent-circle {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.support-agent:hover .chat-bubble {
    opacity: 1;
    transform: translateX(0) scale(1);
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 0;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .typed-container {
        min-height: 150px;
        font-size: 1.2rem;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .copyright {
        position: relative;
        bottom: auto;
        left: auto;
        text-align: center;
        margin-top: 50px;
        line-height: 1.6;
    }
    
    .copyright-container {
        flex-direction: column;
    }
    
    .oman-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .oman-logo {
        max-height: 150px;
    }
    
    .chat-bubble {
        width: 240px;
        padding: 12px;
        top: 20px;
        right: 90px;
    }
    
    .chat-message {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .start-chat-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .typed-container {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .main-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Center hero content in smaller screens */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide large hero image on mobile */
    .hero-image .animated-logo {
        display: none;
    }
    
    /* Mobile Support Agent */
    .mobile-support-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
        padding: 20px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-agent-wrapper {
        position: relative;
        margin-left: 15px;
    }
    
    .mobile-support-header {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .mobile-agent-img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        margin-left: 10px;
        position: relative;
    }
    
    .mobile-agent-indicator {
        position: absolute;
        top: 0;
        right: 0;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: var(--secondary-color);
        border: 2px solid #fff;
        animation: pulse 2s infinite;
    }
    
    .mobile-welcome-text {
        font-size: 0.9rem;
        line-height: 1.4;
        flex: 1;
    }
    
    .mobile-start-btn {
        display: block;
        width: 100%;
        padding: 12px;
        text-align: center;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        color: white;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        box-shadow: 0 5px 15px rgba(0, 200, 179, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-start-btn:hover, .mobile-start-btn:active {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 200, 179, 0.3);
        color: white;
    }
    
    .chat-bubble {
        width: 220px;
        padding: 10px;
        top: 15px;
        right: 80px;
    }
    
    .chat-message {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    /* Hide desktop support agent on mobile */
    .support-agent {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .company-name {
        font-size: 0.9rem;
    }
    
    .company-name-en {
        font-size: 0.65rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .typed-container {
        min-height: 160px;
        font-size: 1rem;
    }
    
    .copyright {
        font-size: 0.7rem;
        margin-top: 30px;
    }
    
    .copyright p {
        margin-bottom: 2px;
    }
    
    .chat-bubble {
        width: 180px;
        right: 70px;
    }
    
    .chat-message {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .start-chat-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .mobile-welcome-text {
        font-size: 0.85rem;
    }
    
    .mobile-start-btn {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .oman-logo {
        max-height: 120px;
    }
}

/* Floating Company Logos */
.floating-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.logo-item {
    position: absolute;
    transform-origin: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0.9;
    will-change: transform;
    transition: all 0.3s ease-out;
    pointer-events: auto;
    cursor: pointer;
    padding: 10px;
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.logo-item:hover .company-logo {
    transform: scale(1.1);
}

.logo-item-1 {
    top: 0%;
    left: 20%;
    width: 120px;
    height: 120px;
    animation: float-company1 12s ease-in-out infinite alternate, pulse-logo 3s ease-in-out infinite;
}

.logo-item-2 {
    top: 60%;
    left: 10%;
    width: 100px;
    height: 100px;
    animation: float-company2 15s ease-in-out infinite alternate, pulse-logo 4s ease-in-out infinite;
}

.logo-item-3 {
    top: 10%;
    right: 30%;
    width: 95px;
    height: 95px;
    animation: float-company3 14s ease-in-out infinite alternate, pulse-logo 3.5s ease-in-out infinite;
}

.logo-item-4 {
    top: 50%;
    right: 20%;
    width: 150px;
    height: 150px;
    animation: float-company4 16s ease-in-out infinite alternate, pulse-logo 4.5s ease-in-out infinite;
}

@keyframes float-company1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(15px, -10px) scale(1.05);
    }
    100% {
        transform: translate(-15px, 10px) scale(0.95);
    }
}

@keyframes float-company2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-15px, -10px) scale(1.08);
    }
    100% {
        transform: translate(15px, 15px) scale(0.92);
    }
}

@keyframes float-company3 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-15px, 15px) scale(0.95);
    }
    100% {
        transform: translate(10px, -10px) scale(1.07);
    }
}

@keyframes float-company4 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10px, 10px) scale(1.03);
    }
    100% {
        transform: translate(-10px, -15px) scale(0.97);
    }
}

/* Pulse Animation for Logos */
@keyframes pulse-logo {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

/* Mouse Interaction with Logos */
.hero-section:hover .logo-item-1 {
    animation-play-state: running;
}

.hero-section:hover .logo-item-2 {
    animation-play-state: running;
}

.hero-section:hover .logo-item-3 {
    animation-play-state: running;
}

.hero-section:hover .logo-item-4 {
    animation-play-state: running;
}

/* Responsive Styles for Company Logos */
@media (max-width: 991.98px) {
    .logo-item-1 {
        width: 75px;
        height: 75px;
    }
    
    .logo-item-2 {
        width: 65px;
        height: 65px;
    }
    
    .logo-item-3 {
        width: 85px;
        height: 85px;
    }
    
    .logo-item-4 {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 767.98px) {
    .floating-logos {
        display: none;
    }
}

/* Infrastructure Partners Styles */
.infrastructure-section {
    text-align: center;
}

.infrastructure-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.server-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.server-logo {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.server-logo-img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%) brightness(0.8) opacity(0.7);
    transition: all 0.3s ease;
}

.server-logo:hover {
    transform: scale(1.15);
}

.server-logo:hover .server-logo-img {
    filter: grayscale(0%) brightness(1) opacity(1);
}

/* Desktop version of infrastructure section */
@media (min-width: 992px) {
    .infrastructure-section {
        text-align: right;
        padding-right: 0;
        padding-left: 0;
        width: 100%;
        display: block;
    }
    
    .server-partners {
        display: block;
        text-align: right;
        width: 100%;
    }
    
    .server-logo {
        display: inline-block;
        margin-left: 45px;
        margin-right: 0;
        width: 120px;
        height: 70px;
    }
    
    .server-logo:last-child {
        margin-left: 0;
    }
}

/* Responsive styles for infrastructure section */
@media (max-width: 991.98px) {
    .infrastructure-section {
        margin-bottom: 30px;
        text-align: center;
    }

    .server-partners {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    .infrastructure-title {
        font-size: 1.1rem;
    }
    
    .server-logo {
        width: 90px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .infrastructure-title {
        font-size: 1rem;
    }
    
    .server-partners {
        gap: 10px;
    }
    
    .server-logo {
        width: 60px;
        height: 35px;
    }
}

.right-aligned {
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .right-aligned {
        display: block;
    }
} 