:root {
    --primary-blue: #0066cc;
    --dark-blue: #004499;
    --light-blue: #3399ff;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --white: #ffffff;
    --gray: #f5f5f5;
}

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

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    padding-top: 80px;
}

body[dir="ltr"] {
    font-family: 'Tajawal', 'Arial', sans-serif;
}

/* Navigation */
.navbar {
    background-color: var(--black) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.3rem;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-inline-end: 10px;
}

.brand-name {
    color: var(--white);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--light-blue) !important;
}

/* Hero Section / Slideshow */
.hero-section {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
    background: rgba(0, 102, 204, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: var(--white) !important;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary-blue) !important;
    opacity: 1;
}

/* Sections */
section {
    padding: 0px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--primary-blue);
    margin: 0 auto 2rem;
}

/* About Section */
.about-content {
    padding: 2rem;
}

.about-content h3 {
    color: var(--primary-blue);
    font-size: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.vision-mission-goals {
    padding: 1rem;
}

.vm-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vm-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.2);
}

.vm-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-inline-end: 1.5rem;
    flex-shrink: 0;
}

.vm-content h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.vm-content p {
    color: #555;
    line-height: 1.7;
}

/* Triscom Section */
.triscom-logo {
    max-width: 300px;
    height: auto;
    padding: 2rem;
}

.triscom-content {
    padding: 2rem;
}

.triscom-content h3 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.triscom-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

/* Products Section */
.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.product-image {
    height: 250px;
    overflow: hidden;
    background: var(--gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.product-info p {
    color: #666;
    margin: 0;
}

/* Contact Section */
.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-inline-end: 1rem;
    margin-top: 0.3rem;
    width: 30px;
}

.contact-item strong {
    color: var(--white);
    display: block;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: #ccc;
    margin: 0;
}

.contact-item a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-form {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.contact-form .form-label {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem;
    border-radius: 5px;
}

.contact-form .form-control:focus {
    background: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

/* Footer */
footer {
    background-color: var(--black) !important;
    border-top: 3px solid var(--primary-blue);
}

footer p {
    margin: 0;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .hero-section {
        height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .vm-item {
        flex-direction: column;
        text-align: center;
    }

    .vm-icon {
        margin-inline-end: 0;
        margin-bottom: 1rem;
    }

    .triscom-logo {
        max-width: 200px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        margin-inline-end: 0;
        margin-bottom: 0.5rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .logo-img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-content,
    .triscom-content,
    .contact-info,
    .contact-form {
        padding: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Language Toggle */
#langToggle {
    border-color: var(--primary-blue);
    color: var(--white);
}

#langToggle:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* RTL Support */
[dir="rtl"] .vm-icon {
    margin-inline-end: 1.5rem;
    margin-inline-start: 0;
}

[dir="ltr"] .vm-icon {
    margin-inline-start: 1.5rem;
    margin-inline-end: 0;
}

[dir="rtl"] .contact-item i {
    margin-inline-end: 1rem;
    margin-inline-start: 0;
}

[dir="ltr"] .contact-item i {
    margin-inline-start: 1rem;
    margin-inline-end: 0;
}

[dir="rtl"] .logo-img {
    margin-inline-end: 10px;
    margin-inline-start: 0;
}

[dir="ltr"] .logo-img {
    margin-inline-start: 10px;
    margin-inline-end: 0;
}

/* ============================================
   Animations & Effects
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In From Right (RTL) / Left (LTR) */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

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

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.8), 0 0 30px rgba(0, 102, 204, 0.6);
    }
}

/* Apply Animations to Elements */
.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero-title {
    animation: fadeIn 1.2s ease-out;
}

.hero-subtitle {
    animation: fadeIn 1.4s ease-out;
}

.section-title {
    animation: fadeIn 0.8s ease-out;
}

[dir="rtl"] .vm-item {
    animation: slideInRight 0.8s ease-out;
}

[dir="ltr"] .vm-item {
    animation: slideInLeft 0.8s ease-out;
}

.product-card {
    animation: scaleIn 0.6s ease-out;
}

.triscom-logo {
    animation: scaleIn 1s ease-out;
}

/* Hover Effects with Animations */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.vm-icon {
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.vm-item:hover .vm-icon {
    animation: pulse 1s ease-in-out infinite;
    transform: scale(1.1);
}

.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    animation: pulse 0.6s ease-in-out;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.5);
}

/* Logo Animation */
.logo-img {
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-img {
    animation: pulse 1s ease-in-out;
    transform: scale(1.1);
}

/* Contact Form Input Animations */
.contact-form .form-control {
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    animation: glow 2s ease-in-out infinite;
    transform: scale(1.02);
}

/* Icon Animations */
.contact-item i {
    transition: all 0.3s ease;
}

.contact-item:hover i {
    animation: bounce 1s ease-in-out;
    color: var(--light-blue);
}

/* Swiper Custom Animations */
.swiper-slide {
    transition: all 0.5s ease;
}

.swiper-slide-active .hero-content {
    animation: fadeIn 1s ease-out;
}

/* Scroll Reveal Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Text Typing Effect */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-blue);
    }
}

/* Smooth Transitions for All Interactive Elements */
a, button, .btn, .nav-link, .product-card, .vm-item {
    transition: all 0.3s ease;
}

/* Navbar Scroll Effect */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Section Entrance Animations */
section {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

section:nth-child(1) {
    animation-delay: 0.1s;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
}

section:nth-child(4) {
    animation-delay: 0.4s;
}

/* Language Toggle Button Animation */
#langToggle {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#langToggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#langToggle:hover::after {
    width: 200px;
    height: 200px;
}

#langToggle:hover {
    transform: scale(1.1);
}

/* Footer Animation */
footer {
    animation: fadeIn 1.5s ease-out;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary,
#langToggle {
    position: relative;
    overflow: hidden;
}

/* Parallax Effect */
.hero-content {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .hero-title {
        animation-duration: 0.8s;
    }
    
    .hero-subtitle {
        animation-duration: 1s;
    }
    
    .vm-item,
    .product-card {
        animation-duration: 0.5s;
    }
}

