/*
Theme Name: Raneekaay
Theme URI: https://raneekaay.com
Description: Custom WordPress theme for Raneekaay Identity Solutions
Version: 1.0
Author: Raneekaay Team
Author URI: https://raneekaay.com
Text Domain: raneekaay
*/

:root {
    --primary: #4a5699;
    /* Main dark blue from logo */
    --secondary: #2a3a7a;
    /* Darker blue shadow */
    --dark: #1a1f3d;
    /* Deep navy for dark elements */
    --light: #f7fafc;
    /* Light background */
    --accent: #5d6db4;
    /* Lighter blue accent */
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
    min-height: 70px; /* Add minimum height */
    display: flex;
    align-items: center;
}


@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 70px; 
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    object-fit: contain;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
#site-navigation {
    transition: all 0.3s ease;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.selector-container {
    position: relative;
    display: inline-block;
    min-width: 140px;
}

/* Current Language Display */
.current-language {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    min-width: 140px;
}

.current-language:hover {
    border-color: #5d6db4;
}

/* Flag Icons */
.fi {
    display: inline-block;
    width: 20px;
    height: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    flex-shrink: 0;
}

.fi-us {
    background-image: url('https://flagcdn.com/w20/us.png');
}

.fi-fr {
    background-image: url('https://flagcdn.com/w20/fr.png');
}

.fi-es {
    background-image: url('https://flagcdn.com/w20/es.png');
}

.fi-pt {
    background-image: url('https://flagcdn.com/w20/pt.png');
}

.language-text {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

.dropdown-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
}

/* Custom Dropdown Menu */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

.custom-dropdown.active {
    display: block;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #f5f5f5;
}

.dropdown-option.selected {
    background: #5d6db4;
    color: white;
}

.option-text {
    font-size: 0.9rem;
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(74, 86, 153, 0.2);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 86, 153, 0.3);
}

/* Page Styles */
.page {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--dark) 100%);
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 80vh; /* Full viewport height */
    min-height: 600px; /* Minimum height for smaller screens */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Background Elements */
.hero-background-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Hero Content Centering */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Adjust heading size for full-screen hero */
.hero h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s 0.2s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    line-height: 1.6;
}

/* Enhanced floating shapes for full height */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 65%;
    right: 8%;
    animation-delay: -5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 35%;
    right: 15%;
    animation-delay: -15s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    bottom: 45%;
    left: 75%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-40px) translateX(20px) rotate(90deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-20px) translateX(-20px) rotate(180deg);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-30px) translateX(15px) rotate(270deg);
        opacity: 0.15;
    }
}

/* Enhanced wave animation for full height */
.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,224C672,235,768,181,864,160C960,139,1056,149,1152,138.7C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: contain;
    background-position: center;
    animation: waveFlow 25s linear infinite;
}

@keyframes waveFlow {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-25%) translateY(5%);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced Card Animations */
.tech-item, .challenge-card, .application-card, .solution-card, .service-box {
    animation: cardEntrance 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== PARTICLE BUBBLES ===== */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Hover Animations for Cards */
.tech-item:hover, .challenge-card:hover, .application-card:hover, .solution-card:hover, .service-box:hover {
    transform: translateY(-10px) scale(1.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Staggered Animation Delays */
.tech-item:nth-child(1) { animation-delay: 0.1s; }
.tech-item:nth-child(2) { animation-delay: 0.2s; }
.tech-item:nth-child(3) { animation-delay: 0.3s; }
.tech-item:nth-child(4) { animation-delay: 0.4s; }

.challenge-card:nth-child(1) { animation-delay: 0.1s; }
.challenge-card:nth-child(2) { animation-delay: 0.2s; }
.challenge-card:nth-child(3) { animation-delay: 0.3s; }

.application-card:nth-child(1) { animation-delay: 0.1s; }
.application-card:nth-child(2) { animation-delay: 0.2s; }
.application-card:nth-child(3) { animation-delay: 0.3s; }
.application-card:nth-child(4) { animation-delay: 0.4s; }

.solution-card:nth-child(1) { animation-delay: 0.1s; }
.solution-card:nth-child(2) { animation-delay: 0.2s; }
.solution-card:nth-child(3) { animation-delay: 0.3s; }

.service-box:nth-child(1) { animation-delay: 0.1s; }
.service-box:nth-child(2) { animation-delay: 0.2s; }
.service-box:nth-child(3) { animation-delay: 0.3s; }

/* Enhanced Particle Animation */
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Glow Effect for Cards on Hover */
.tech-item:hover, .application-card:hover {
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(93, 109, 180, 0.1);
}

.challenge-card:hover {
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(0, 207, 255, 0.2);
}

/* Pulse Animation for Icons */
.tech-icon, .application-icon, .challenge-icon, .solution-icon, .service-icon {
    transition: all 0.4s ease;
}

.tech-item:hover .tech-icon,
.application-card:hover .application-icon,
.challenge-card:hover .challenge-icon,
.solution-card:hover .solution-icon,
.service-box:hover .service-icon {
    animation: iconPulse 1s ease-in-out;
    transform: scale(1.1);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-shape {
        display: none; /* Hide shapes on mobile for better performance */
    }
    
    .hero:before {
        animation: waveFlow 40s linear infinite; /* Slower animation on mobile */
    }
    
    .tech-item, .challenge-card, .application-card, .solution-card, .service-box {
        transform: translateY(20px) scale(0.98);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s 0.2s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero .btn {
    animation: fadeInUp 1s 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mini description section */
.welcome-section {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

.welcome-container {
    max-width: 900px;
    margin: 0 auto;
}

.welcome-container h2 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.welcome-container p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.welcome-highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Technology Stack Section */
.tech-stack {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.tech-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item.animate {
    animation: fadeInUp 0.5s ease forwards;
}

.tech-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.tech-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.tech-item p {
    color: #64748b;
    line-height: 1.6;
}

/* Animation for fade-in effect */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Challenge Section */
.challenge-section {
    padding: 80px 0;
    background-color: var(--secondary);
    color: white;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.challenge-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin: 0 10px;
}

.challenge-card.animate {
    animation: fadeInUp 0.5s ease forwards;
}

.challenge-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.challenge-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Applications Section */
.applications-section {
    padding: 80px 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.application-card {
    background: white; /* Changed from gray to white for better contrast */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    padding: 40px 30px 30px; /* Added top padding to push content down */
}

.application-card.animate {
    animation: fadeInUp 0.5s ease forwards;
}

.application-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.application-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px; /* Center icon and add space below */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ebf8ff; /* Light blue background */
    color: var(--accent);
    padding: 15px; /* Add padding inside the icon container */
}

.application-icon svg {
    width: 40px;
    height: 40px;
}

.application-content {
    padding: 0; 
}

.application-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.application-content p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    opacity: 0;
    transform: translateY(20px);
}

.stat-item.animate {
    animation: fadeInUp 0.5s ease forwards;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
}

.section-title.light h2,
.section-title.light p {
    color: white;
}

/* Solutions Section */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.solution-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.solution-icon {
    background: var(--light);
    padding: 30px;
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.solution-icon span {
    font-size: 40px;
}

.solution-card:hover .solution-icon {
    background: var(--primary);
    color: white;
}

.solution-content {
    padding: 20px;
}

.solution-content h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.solution-card:hover .solution-content h3 {
    color: var(--primary);
}

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-icon span {
    font-size: 40px;
}

.service-box:hover .service-icon {
    color: var(--accent);
    transform: scale(1.1);
}

/* About Section Styles */
.about-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h3 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
}

.about-text h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent);
    bottom: -10px;
    left: 0;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: imageFloat 6s ease-in-out infinite;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    animation: cardEntrance 0.8s ease forwards;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--light);
    position: relative;
    transition: all 0.4s ease;
}

.team-member:hover .team-photo {
    border-color: var(--primary);
    transform: scale(1.05);
}

.team-member img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid var(--light);
    transition: all 0.3s ease;
}

.team-member:hover img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.team-member:hover .team-photo img {
    transform: scale(1.1);
}

.team-member h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.team-member p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.team-member p strong {
    color: var(--primary);
    font-weight: 600;
}

/* Animation for team members */
.team-member:nth-child(1) {
    animation-delay: 0.2s;
}

.team-member:nth-child(2) {
    animation-delay: 0.4s;
}

/* About section animations */
.about-text {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease 0.3s forwards;
}

.about-image {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease 0.5s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .about-content {
        gap: 40px;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .team-photo {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .about-text {
        text-align: center;
        animation: fadeInUp 0.8s ease 0.3s forwards;
        transform: translateY(30px);
    }
    
    .about-text h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-image {
        animation: fadeInUp 0.8s ease 0.5s forwards;
        transform: translateY(30px);
        order: -1;
    }
    
   .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .team-member {
        padding: 25px 20px;
        margin: 0 auto;
        max-width: 400px;
    }
    
    .team-photo {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }
    
    .team-member h3 {
        font-size: 1.3rem;
    }
    
    .team-member p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-content {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .team-section {
        padding: 40px 0;
    }
    
    .team-member {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
        border-width: 4px;
    }
    
    .team-member h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .team-member p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .team-member p strong {
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .team-member {
        padding: 15px 12px;
    }
    
    .team-member h3 {
        font-size: 1.1rem;
    }
    
    .team-member p {
        font-size: 0.85rem;
    }
}

/* Additional utility animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInRight 0.5s ease forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.office {
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.office h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.contact-form {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInLeft 0.5s ease forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 86, 153, 0.1);
    outline: none;
}

.contact-form textarea {
    height: 150px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 150px;
    height: auto;
}


.footer-links h4 {
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--accent);
    bottom: -8px;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Animation delays for staggered effects */
.solution-card:nth-child(1) {
    animation-delay: 0.1s;
}

.solution-card:nth-child(2) {
    animation-delay: 0.2s;
}

.solution-card:nth-child(3) {
    animation-delay: 0.3s;
}

.solution-card:nth-child(4) {
    animation-delay: 0.4s;
}

.solution-card:nth-child(5) {
    animation-delay: 0.5s;
}

.solution-card:nth-child(6) {
    animation-delay: 0.6s;
}

.service-box:nth-child(1) {
    animation-delay: 0.1s;
}

.service-box:nth-child(2) {
    animation-delay: 0.2s;
}

.service-box:nth-child(3) {
    animation-delay: 0.3s;
}

.service-box:nth-child(4) {
    animation-delay: 0.4s;
}

.service-box:nth-child(5) {
    animation-delay: 0.5s;
}

.service-box:nth-child(6) {
    animation-delay: 0.6s;
}

.team-member:nth-child(1) {
    animation-delay: 0.1s;
}

.team-member:nth-child(2) {
    animation-delay: 0.2s;
}

.office:nth-child(1) {
    animation-delay: 0.1s;
}

.office:nth-child(2) {
    animation-delay: 0.2s;
}

.tech-item:nth-child(1) {
    animation-delay: 0.1s;
}

.tech-item:nth-child(2) {
    animation-delay: 0.2s;
}

.tech-item:nth-child(3) {
    animation-delay: 0.3s;
}

.tech-item:nth-child(4) {
    animation-delay: 0.4s;
}

.challenge-card:nth-child(1) {
    animation-delay: 0.1s;
}

.challenge-card:nth-child(2) {
    animation-delay: 0.2s;
}

.challenge-card:nth-child(3) {
    animation-delay: 0.3s;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.application-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ebf8ff;
    color: var(--accent);
}

.application-icon svg {
    width: 40px;
    height: 40px;
}

.application-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.application-content p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Particle animation background */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-35px) translateX(-10px);
    }

    75% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* Footer styles */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-logo span {
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    display: block;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #cbd5e0;
    max-width: 300px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.social-media h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--secondary);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile Menu Styles - FIXED */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    /* Hide desktop menu on mobile */
    #site-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        padding: 80px 30px 30px;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }

    #site-navigation.active {
        right: 0;
    }

    /* Mobile menu styles */
    .nav-menu {
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
        border-bottom: none !important;
    }

    .nav-menu a:hover {
        color: var(--primary);
        background: none;
    }

    .nav-menu a:after {
        display: none;
    }

    /* Language selector in mobile menu */
    .language-selector {
        margin-top: 30px;
    }

    .selector-container {
        width: 100%;
    }

    .current-language {
        width: 100%;
        justify-content: center;
    }

    /* Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }

    /* Add this OUTSIDE the mobile media query, around line 650 */
    @media (min-width: 769px) {
        #site-navigation {
            display: block !important;
        }
        
        .menu-toggle {
            display: none !important;
        }
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .logo img {
        height: 35px;
    }

    .header-container {
        padding: 0.8rem 1rem;
    }

    .nav-menu {
        padding: 1.5rem 1rem;
    }

    .nav-menu a {
        padding: 0.8rem;
        font-size: 1rem;
    }

    /* Further reduce language selector size on very small screens */
    .selector-container {
        min-width: 100px;
    }

    .current-language {
        min-width: 100px;
        padding: 5px 8px;
    }

    .language-text {
        font-size: 0.75rem;
    }

    .fi {
        width: 16px;
        height: 12px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .hero h3 {
        font-size: 1rem;
    }
}

/* Smooth transitions for all interactive elements */
#site-navigation,
.nav-menu a,
.menu-toggle {
    transition: all 0.3s ease;
}

/* Screen reader text for accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Desktop Navigation Wrapper */
.desktop-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Language Selector */
.language-selector.mobile-language .current-language {
    min-width: 60px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.language-selector.mobile-language .language-text {
    font-size: 0.8rem;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; /* Reduced top/bottom padding */
    border-bottom: 1px solid #eee;
}

.mobile-logo img {
    height: 30px; /* Reduced from 35px */
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.8rem; /* Reduced from 2rem */
    cursor: pointer;
    color: #333;
    width: 35px; /* Reduced from 40px */
    height: 35px; /* Reduced from 40px */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation */
.mobile-nav {
    flex: 0.7; /* Reduced from 1 to take less vertical space */
    padding: 8px 12px; /* Further reduced padding */
    padding-bottom: 0;
    margin-bottom: 0;
    overflow-y: auto;
    max-height: 35vh; 
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-menu li:last-child {
    border-bottom: 1px solid #eee; /* Keep border for seamless transition */
}

.mobile-nav-menu a {
    display: block;
    padding: 12px 0; /* Reduced from 15px */
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.mobile-nav-menu a:hover {
    color: var(--primary);
}

/* Mobile Language Selector in Menu */
.mobile-language-selector {
    padding: 0px 20px 10px 20px; /* Remove top padding, keep bottom */
    border-top: 1px solid #eee;
    margin-top: 0; /* Remove any top margin */
}

.mobile-language-selector h4 {
    margin-bottom: 6px;
    color: var(--secondary);
    font-size: 0.9rem;
}

.mobile-language-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-language-option.active,
.mobile-language-option:hover {
    background: var(--light);
    border-color: var(--primary);
}

.mobile-language-option span:last-child {
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .desktop-nav-wrapper {
        display: none;
    }
    
    .mobile-controls {
        display: flex;
        gap: 0.5rem; /* Ensure gap is reduced */
    }
    
    .language-selector.desktop-language {
        display: none;
    }
    
    /* Additional space reduction for mobile header */
    .header-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (min-width: 769px) {
    .mobile-controls {
        display: none !important;
    }
    
    .mobile-menu-panel {
        display: none !important;
    }
    
    .desktop-nav-wrapper {
        display: flex !important;
        align-items: center;
        gap: 1.5rem; /* You can adjust this for desktop too if needed */
    }
}
/* Enhanced Contact Section Styles */
.contact-section {
    padding: 70px 80px 0 !important; /* Remove top padding, keep bottom */
    margin-top: 0 !important;
    background: var(--light);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 0; /* Remove top margin */
}

/* Remove any top padding from the section title */
.contact-section .section-title {
    margin-bottom: 30px;
}

/* Contact Info Styles */
.contact-info {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.office {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.office:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.office h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
}

.office h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--accent);
    bottom: -8px;
    left: 0;
}

.office p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--secondary);
    line-height: 1.6;
}

.contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    margin-top: 3px;
    flex-shrink: 0;
    fill: var(--primary);
    transition: all 0.3s ease;
}

.office a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 30px;
}

.office a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Social Links in Contact Section */
.contact-info .social-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.contact-info .social-links h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info .social-icons {
    display: flex;
    gap: 12px;
}

.contact-info .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-info .social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 86, 153, 0.3);
}

.contact-info .social-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary);
    transition: fill 0.3s ease;
}

.contact-info .social-icon:hover svg {
    fill: white;
}

/* Contact Form Styles */
.contact-form {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 86, 153, 0.1);
    transform: translateY(-2px);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Button alignment */
.contact-form .btn {
    align-self: flex-start;
    margin-top: 10px;
}

/* Animations for Contact Section */
.contact-info {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInRight 0.6s ease forwards;
}

.contact-form {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInLeft 0.6s ease 0.2s forwards;
}

.office {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.office:nth-child(1) {
    animation-delay: 0.3s;
}

.office:nth-child(2) {
    animation-delay: 0.4s;
}

.social-links {
    opacity: 0;
    animation: fadeInUp 0.5s ease 0.5s forwards;
}

/* Hover effects */
.office:hover .contact-icon {
    fill: var(--accent);
    transform: scale(1.1);
}

/* Responsive Design for Contact Section */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px 25px;
    }
    
    .contact-info {
        animation: fadeInUp 0.6s ease forwards;
        transform: translateY(20px);
    }
    
    .contact-form {
        animation: fadeInUp 0.6s ease 0.2s forwards;
        transform: translateY(20px);
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info,
    .contact-form {
        padding: 25px 20px;
    }
    
    .office p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-icon {
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .office a {
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form {
        padding: 20px 15px;
    }
    
    .contact-info .social-icons {
        justify-content: center;
    }
    
    .contact-form .btn {
        width: 100%;
        text-align: center;
    }
}
@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active Menu Item Styles - FIXED */
.nav-menu li.current-menu-item > a,
.nav-menu li.current-page-ancestor > a,
.nav-menu li.current-page-parent > a,
.nav-menu li.active-menu-item > a,
.mobile-nav-menu li.current-menu-item > a,
.mobile-nav-menu li.current-page-ancestor > a,
.mobile-nav-menu li.current-page-parent > a,
.mobile-nav-menu li.active-menu-item > a {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Desktop underline animation for active items */
.nav-menu li.current-menu-item > a:after,
.nav-menu li.current-page-ancestor > a:after,
.nav-menu li.current-page-parent > a:after,
.nav-menu li.active-menu-item > a:after {
    width: 100%;
}

/* Mobile active menu styling */
.mobile-nav-menu li.current-menu-item > a,
.mobile-nav-menu li.current-page-ancestor > a,
.mobile-nav-menu li.current-page-parent > a,
.mobile-nav-menu li.active-menu-item > a {
    background-color: rgba(74, 86, 153, 0.1);
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-left: -15px;
    color: var(--primary) !important;
    font-weight: 600;
}

/* Home page specific active state */
.home .nav-menu li.menu-item-home > a,
.home .mobile-nav-menu li.menu-item-home > a {
    color: var(--primary) !important;
    font-weight: 600;
}

.home .nav-menu li.menu-item-home > a:after {
    width: 100%;
}

/* Language Switcher Loader */
.language-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.language-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-gif {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.loader-text {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* Language change notification */
.language-change-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.language-change-notice.active {
    opacity: 1;
    transform: translateX(0);
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Styles for Contact Messages */
.post-type-contact_message .wp-list-table .column-title {
    width: 25%;
}

.post-type-contact_message .wp-list-table .column-date {
    width: 15%;
}

