/* Variables */
:root {
    --primary-color: #0e4e8f;
    --secondary-color: #17a2ff;
    --accent-color: #e74c3c;
    --text-color: #000000;
    --light-text: #ecf0f1;
    --background: #ffffff;
    --description-color: #747474;
    --dark-background: #1a1a1a;
    --section-padding: 100px 0;
    --transition: all 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #0e4e8f;
    --text-color: #ecf0f1;
    --background: #1a1a1a;
    --dark-background: #2c3e50;
    --description-color: #ecf0f1;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}


.section-padding {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50%;
    height: 3px;
    background: var(--secondary-color);
    transform: translateX(50%);
}

/* RTL Support */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .navbar-brand::before {
    left: auto;
    right: -100%;
}

html[dir="rtl"] .navbar-brand:hover::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .nav-link::before {
    left: auto;
    right: -100%;
}

html[dir="rtl"] .nav-link:hover::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .nav-link::after {
    transform-origin: left;
}

html[dir="rtl"] .nav-link:hover::after {
    transform-origin: right;
}

html[dir="rtl"] .theme-toggle {
    margin-left: 0;
    margin-right: 10px;
}

/* RTL Mobile Navigation */
html[dir="rtl"] .mobile-nav-toggle {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .nav-menu {
    right: auto;
    left: -100%;
}

html[dir="rtl"] .nav-menu.active {
    right: auto;
    left: 0;
}

/* RTL Specific Styles for Other Components */
html[dir="rtl"] .about-content {
    text-align: right;
}

html[dir="rtl"] .service-card {
    text-align: right;
}

html[dir="rtl"] .portfolio-category {
    right: auto;
    left: 25px;
}

html[dir="rtl"] .testimonial-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .testimonial-content {
    text-align: right;
}

html[dir="rtl"] .contact-form {
    text-align: right;
}

html[dir="rtl"] .form-label {
    right: 15px;
    left: auto;
}

html[dir="rtl"] .footer-info,
html[dir="rtl"] .footer-links {
    text-align: right;
}

/* Font Family for Arabic */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

/* Adjust spacing for RTL */
html[dir="rtl"] .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .mr-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Animation adjustments for RTL */
html[dir="rtl"] .fade-in-left {
    animation: fadeInRight 1s forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header */
.header {
    padding: 30px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transform: translateY(0);
}

.header.scrolled {
    padding: 20px 0;
}

.header.nav-hidden {
    transform: translateY(-100%);
}

/* [data-theme="dark"] .header {
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
} */

[data-theme="dark"] .header.scrolled .navbar {
    background: var(--background);
    box-shadow: 0 2px 20px rgba(233, 228, 228, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    margin: 0 auto;
    border-radius: 10px;
    width: 90%;
    background: var(--background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    position: relative;
    overflow: hidden;
    padding: 5px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-logo {
    height: 50px;
    width: 50px;
    transition: transform 0.3s ease;
}

.brand-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.brand-text .highlight {
    color: var(--secondary-color);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar-brand:hover .brand-text {
    color: var(--secondary-color);
}

.navbar-brand:hover .brand-text .highlight {
    color: var(--primary-color);
}

.navbar-brand::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: -100%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.navbar-brand:hover::before {
    left: 0;
}

.navbar-brand span {
    color: var(--secondary-color);
    display: inline-block;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.navbar-brand:hover span {
    transform: translateY(-2px) rotate(5deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    padding: 8px 12px !important;
    color: var(--text-color) !important;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 5px;
    left: -100%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 4px;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    z-index: -1;
    opacity: 0.1;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: scale(0);
    opacity: 0.1;
    transition: all 0.3s ease;
}

.theme-toggle:hover::before {
    transform: scale(1);
}

.theme-toggle:hover {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background: var(--background);
        flex-direction: column;
        padding: 20px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px !important;
    }

    .nav-link::before {
        bottom: auto;
        top: 0;
        height: 100%;
        width: 3px;
        left: 0;
        transform: scaleY(0);
    }

    .nav-link:hover::before {
        transform: scaleY(1);
    }
}

/* Navigation Animation Classes */
.nav-item {
    opacity: 0;
    transform: translateY(20px);
    animation: navItemFade 0.5s ease forwards;
}

@keyframes navItemFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }

/* Header Slide Animation */
.header-slide-down {
    animation: slideDown 0.5s ease forwards;
}

.header-slide-up {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), transparent);
    opacity: 0.3;
    animation: gradientFlow 8s infinite;
}

@keyframes gradientFlow {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    border: 1px solid var(--secondary-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.3s;
}

.cta-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--secondary-color);
    color: var(--light-text);
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.6s;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-30deg);
    transition: var(--transition);
}

.cta-btn:hover::before {
    left: 100%;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

/* Animated background shapes */
.about::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(var(--primary-rgb), 0.03) 0%,
        rgba(var(--secondary-rgb), 0.03) 100%);
    animation: rotateBackground 20s linear infinite;
    top: -50%;
    left: -50%;
    z-index: -1;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-image-container {
    position: relative;
    overflow: visible;
    border-radius: 20px;
    transform-style: preserve-3d;
    perspective: 1000px;
    margin: 40px 0;
}

.about-image-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    transform: translateZ(-50px);
    opacity: 0.5;
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { transform: translateZ(-50px) scale(1); opacity: 0.5; }
    50% { transform: translateZ(-30px) scale(1.05); opacity: 0.8; }
}

.about-image-container img {
    border-radius: 20px;
    transform: translateZ(0) scale(1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image-container:hover img {
    transform: translateZ(50px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Floating particles */
.about-particles {
    position: absolute;
    inset: -100px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: floatParticle 4s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(var(--tx), var(--ty)) scale(1.5); opacity: 0.2; }
}

/* About content enhancements */
.about-content {
    position: relative;
    z-index: 1;
    padding: 30px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-content.animate {
    transform: translateY(0);
    opacity: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.about-content.animate h2::after {
    transform: scaleX(1);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
    transition-delay: 0.3s;
}

.about-content.animate p {
    transform: translateY(0);
    opacity: 1;
}

/* Stats section enhancement */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 40px;
}

.stat-item {
    background: var(--background);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(var(--secondary-rgb), 0.1),
        rgba(var(--primary-rgb), 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.stat-item h3::after {
    content: '+';
    font-size: 2rem;
    position: absolute;
    right: -20px;
    top: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.stat-item.animate h3::after {
    opacity: 1;
    transform: translateX(0);
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

/* Hover effect for stat items */
.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-item:hover h3 {
    transform: scale(1.1);
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-image-container {
        margin: 20px 0;
    }

    .stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .about-image-container::before {
    border-color: var(--secondary-color);
    opacity: 0.3;
}

[data-theme="dark"] .stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.about-image-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.15) 48%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.15) 52%,
        transparent 55%
    );
    transform: rotate(45deg) translateY(-100%);
    animation: shine-effect 5s infinite;
    z-index: 2;
    pointer-events: none;
}

.about-image-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
}

@keyframes shine-effect {
    0% {
        transform: rotate(45deg) translateY(-100%);
    }
    20%, 100% {
        transform: rotate(45deg) translateY(100%);
    }
}

@keyframes float-particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* About Image Animation States */
.about-image-container.animate-in {
    animation: image-enter 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes image-enter {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0);
    }
}

/* About Image Tilt Effect */
.about-image-container.tilt {
    transition: transform 0.1s ease-out;
}

.about-image-container.tilt img {
    transition: transform 0.1s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-image-container {
        margin-bottom: 30px;
    }
    
    .about-image-container::after {
        inset: -3px;
    }
}

.about-content {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
    transform: skewY(-3deg);
    transform-origin: top left;
    z-index: -1;
    transition: transform 0.5s ease;
}

.about-content:hover::before {
    transform: skewY(-5deg);
}

.about img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
}

.about img:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about img::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transform: translate(20px, 20px);
    transition: all 0.5s ease;
}

.about img:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--background);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), transparent);
    top: -100%;
    left: -100%;
    transition: all 0.5s ease;
}

.stat-item:hover::before {
    top: 0;
    left: 0;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item:hover h3,
.stat-item:hover p {
    color: var(--light-text);
    position: relative;
    z-index: 1;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

/* Services Section */
.services {
    position: relative;
    overflow: hidden;
}

.services .row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.services .col-lg-3 {
    padding: 15px;
    display: flex;
}

.service-card {
    background: var(--background-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    direction: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: 320px;
}

.service-card .service-icon {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.service-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 20px 0 15px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
}

/* Service Card Hover Effects */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

/* RTL Support for Services Section */
html[dir="rtl"] .service-card {
    text-align: center;
}

html[dir="rtl"] .service-card h3 {
    text-align: center;
}

html[dir="rtl"] .service-card p {
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .service-card {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .service-card {
        min-height: 280px;
    }
}

@media (max-width: 576px) {
    .service-card {
        min-height: 260px;
    }
}

/* Services Section Animated Shapes */
.services::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(-45deg, rgba(52, 152, 219, 0.05) 0%, rgba(155, 89, 182, 0.05) 100%);
    z-index: -1;
}

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

.services-shape {
    position: absolute;
    animation: floatShape 25s infinite;
    opacity: 0.4;
}

.services-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, #3498db, #2ecc71);
    top: 15%;
    left: 10%;
    animation-delay: -2s;
}

.services-shape:nth-child(2) {
    width: 80px;
    height: 80px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(135deg, #e74c3c, #f1c40f);
    top: 70%;
    right: 15%;
    animation-delay: -7s;
}

.services-shape:nth-child(3) {
    width: 120px;
    height: 120px;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    background: linear-gradient(135deg, #9b59b6, #3498db);
    bottom: 20%;
    left: 5%;
    animation-delay: -12s;
}

.services-shape:nth-child(4) {
    width: 90px;
    height: 90px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    top: 40%;
    right: 8%;
    animation-delay: -17s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(10px, -15px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-5px, 20px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(-15px, -10px) rotate(270deg) scale(1.05);
    }
}

@media (max-width: 768px) {
    .about-shape, .services-shape {
        opacity: 0.3;
    }
}

/* Portfolio Section */
.portfolio {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--secondary-rgb), 0.03) 100%);
}

.portfolio-filters {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: 2px solid transparent;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--light-text);
    transform: translateY(-2px);
}

.portfolio-grid {
    margin: 0 -10px;
    display: flex;
    flex-wrap: wrap;
}

.portfolio-item {
    padding: 10px;
    width: calc(33.333% - 20px);
    margin: 10px;
    position: relative;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.portfolio-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(var(--primary-rgb), 0.9),
        rgba(var(--secondary-rgb), 0.9)
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-overlay h4 {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
}

.portfolio-overlay .portfolio-links {
    margin-top: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.3s;
}

.portfolio-links a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    margin: 0 5px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.portfolio-links a:hover {
    background: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

.portfolio-item:hover .portfolio-wrap img {
    transform: scale(1.1) rotate(2deg);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .portfolio-links {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Item Categories */
.portfolio-category {
    position: absolute;
    top: 15px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
    z-index: 2;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-category {
    transform: translateY(0);
    opacity: 1;
}

/* Portfolio Grid Animation */
.portfolio-grid {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-grid.loaded {
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .portfolio-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .portfolio-wrap {
        height: 220px;
    }

    .portfolio-overlay h4 {
        font-size: 1rem;
    }

    .portfolio-overlay p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .portfolio-item {
        width: calc(100% - 20px);
    }

    .portfolio-wrap {
        height: 200px;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .portfolio-wrap {
    background: var(--dark-background);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .portfolio-category {
    background: rgba(0, 0, 0, 0.8);
    color: var(--light-text);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    color: var(--light-text);
    padding: 60px 0;
}

.testimonials::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    top: -25%;
    left: -25%;
    animation: rotateGradient 15s linear infinite;
}

.testimonials-slider {
    position: relative;
    padding: 20px 0;
    overflow: visible;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 45%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 55%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.swiper-slide-active .testimonial-card {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.swiper-slide-active .testimonial-card::before {
    transform: translateX(100%);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.testimonial-card:hover .testimonial-img {
    transform: scale(1.1);
    border-color: var(--secondary-color);
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.2s;
}

.testimonial-info p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.3s;
}

.swiper-slide-active .testimonial-info h4,
.swiper-slide-active .testimonial-info p {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-content {
    position: relative;
    padding: 0;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: -8px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(180deg);
    transition: all 0.4s ease;
}

.testimonial-card:hover .quote-icon {
    transform: rotate(180deg) scale(1.2);
    color: rgba(255, 255, 255, 0.2);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.4s;
}

.swiper-slide-active .testimonial-content p {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-rating {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.5s;
}

.swiper-slide-active .testimonial-rating {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-rating i {
    animation: starPulse 1s ease infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Enhanced Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--light-text);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    width: 30px;
    background: var(--light-text);
    opacity: 1;
}

/* Smooth Loop Animation */
@keyframes smoothLoop {
    0% { opacity: 1; transform: translateX(0); }
    45% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0; transform: translateX(-10px); }
    55% { opacity: 0; transform: translateX(10px); }
    60% { opacity: 1; transform: translateX(0); }
    100% { opacity: 1; transform: translateX(0); }
}

.swiper-slide-duplicate-active .testimonial-card {
    animation: smoothLoop 0.5s ease-in-out;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .testimonial-card {
        padding: 1.8rem;
    }

    .testimonial-img {
        width: 70px;
        height: 70px;
    }

    .testimonial-info h4 {
        font-size: 1.2rem;
    }

    .testimonial-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .testimonial-header {
        gap: 1rem;
        margin-bottom: 1.2rem;
    }

    .testimonial-img {
        width: 60px;
        height: 60px;
    }

    .testimonial-info h4 {
        font-size: 1.1rem;
    }

    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1.2rem;
    }
}

/* Accessibility Improvements */
.testimonial-card {
    outline: none;
}

.testimonial-card:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.swiper-button-next:focus,
.swiper-button-prev:focus {
    outline: 2px solid var(--light-text);
    outline-offset: 2px;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .testimonial-card {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .swiper-button-next,
[data-theme="dark"] .swiper-button-prev {
    background: rgba(0, 0, 0, 0.3);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .testimonial-img,
    .testimonial-rating i,
    .swiper-button-next,
    .swiper-button-prev {
        transition: none;
        animation: none;
    }
}

/* Team Section */
.team-member {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.team-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
    transform: translateZ(0);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(var(--primary-rgb), 0.8) 0%,
        rgba(var(--secondary-rgb), 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.team-img img {
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-social {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
}

.team-member:hover .team-social {
    bottom: 0;
    opacity: 1;
}

.team-member:hover .team-img::before {
    opacity: 1;
}

.team-member:hover .team-img img {
    transform: scale(1.1) translateY(-10px);
}

.team-social a {
    color: var(--light-text);
    margin: 0 10px;
    font-size: 1.2rem;
    display: inline-block;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-member:hover .team-social a {
    transform: translateY(0);
    opacity: 1;
}

.team-member:hover .team-social a:nth-child(1) { transition-delay: 0.1s; }
.team-member:hover .team-social a:nth-child(2) { transition-delay: 0.2s; }
.team-member:hover .team-social a:nth-child(3) { transition-delay: 0.3s; }
.team-member:hover .team-social a:nth-child(4) { transition-delay: 0.4s; }

.team-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px) scale(1.2);
}

.team-member h4 {
    font-size: 1.2rem;
    margin: 15px 0 5px;
    position: relative;
    display: inline-block;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.team-member p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    position: relative;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.team-member:hover h4 {
    transform: translateY(-5px);
}

.team-member:hover p {
    transform: translateY(-3px);
}

.team-member::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.team-member:hover::after {
    width: 50%;
}

/* Team Member Card Tilt Effect */
.team-member.tilt {
    transform: perspective(1000px) rotateX(0) rotateY(0);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-member.tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
}

/* Team Member Loading Animation */
@keyframes teamMemberLoad {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member {
    opacity: 0;
    animation: teamMemberLoad 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Team Member Shimmer Effect */
.team-img::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Team Grid Layout Animation */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

@media (max-width: 768px) {
    .team-member {
        margin-bottom: 40px;
    }

    .team-img {
        border-radius: 10px;
    }

    .team-social {
        padding: 15px;
    }

    .team-social a {
        font-size: 1.1rem;
        margin: 0 8px;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .team-member p {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .team-img {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--secondary-rgb), 0.05) 100%);
}

.contact::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, 
        rgba(23, 162, 255, 0.03) 0%,
        rgba(26, 60, 94, 0.03) 100%
    );
    transform: skewY(-6deg);
    transform-origin: top left;
}

.contact::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2317a2ff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,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-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

.contact .section-header h2,
.contact .section-header p {
    position: relative;
    z-index: 1;
}

.contact-info {
    position: relative;
    z-index: 1;
}

.info-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--secondary-rgb), 0.1);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--secondary-rgb), 0.1);
}

[data-theme="dark"] .contact {
    background: linear-gradient(135deg, 
        rgba(26, 60, 94, 0.1) 0%, 
        rgba(23, 162, 255, 0.1) 100%
    );
}

[data-theme="dark"] .info-item {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(var(--secondary-rgb), 0.2);
}

[data-theme="dark"] .info-item:hover {
    background: rgba(26, 26, 26, 0.95);
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--light-text);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-item:hover i {
    border-radius: 50%;
    transform: rotate(360deg);
    background: var(--primary-color);
}

.info-item i::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    top: -100%;
    left: -100%;
    transition: all 0.3s ease;
}
.info-item h3 {
    font-size: 1.2rem;
   font-weight: 800;
   padding: 10px;
   color: var(--text-color);
}


.info-item p {
    font-size: 1.2rem;
    font-weight: 300;
    padding: 0 10px;
    color: var(--text-color);   
}
.info-item:hover p {
    color: var(--secondary-color);
}

.info-item:hover i::after {
    top: 0;
    left: 0;
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.info-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--background);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    height: 55px;
    background: transparent;
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    padding: 0 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-color);
    width: 100%;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.2);
    outline: none;
}

textarea.form-control {
    height: 150px;
    padding: 15px 20px;
    resize: none;
}

.form-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--background);
    padding: 0 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

textarea.form-control + .form-label {
    top: 25px;
    transform: none;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: 0;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.submit-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 15px 40px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--secondary-rgb), 0.3);
}

.submit-btn .spinner {
    display: none;
    margin-right: 8px;
}

.submit-btn.loading .spinner {
    display: inline-block;
}

/* Form Validation Styles */
.form-group.error .form-control {
    border-color: #ff4757;
}

.form-group.error .form-label {
    color: #ff4757;
}

.error-message {
    color: #ff4757;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Success Message Styles */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--background-rgb), 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.success-message.show {
    opacity: 1;
    visibility: visible;
}

.success-message i {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.success-message h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.success-message p {
    color: var(--text-muted);
    text-align: center;
    max-width: 300px;
}

/* Map Container Styles */
.map-container {
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-top: 10px;
    background: var(--background);
    transition: all 0.3s ease;
}

.map-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--background);
    z-index: 2;
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.map-container.loaded::before {
    opacity: 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container.loaded iframe {
    opacity: 1;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.05);
    z-index: 3;
    transition: opacity 0.3s ease;
}

.map-container.loaded .map-overlay {
    opacity: 0;
    pointer-events: none;
}

.map-loading {
    text-align: center;
    color: var(--text-color);
}

.map-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    animation: rotate 1s linear infinite;
}

/* Accessibility Improvements */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.2);
    outline: none;
}

.form-group {
    position: relative;
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
}

/* High Contrast Focus States */
.form-control:focus,
.submit-btn:focus,
.info-item a:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Skip to Content Link for Keyboard Users */
.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 0 0 10px 10px;
    z-index: 9999;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ARIA Labels and Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Error Message Accessibility */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d63031;
    font-weight: 500;
}

.form-group.error .form-control {
    border-color: #d63031;
    background-color: rgba(214, 48, 49, 0.05);
}

.form-group.error .form-label {
    color: #d63031;
}

/* Success Message Accessibility */
.success-message {
    background: rgba(46, 213, 115, 0.95);
    color: #fff;
}

/* Responsive Map Sizing */
@media (max-width: 991px) {
    .map-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 250px;
        border-radius: 15px;
    }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .form-control:focus {
        outline: 2px solid CanvasText;
    }
    
    .error-message {
        color: CanvasText;
        border: 1px solid CanvasText;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .map-container,
    .form-control,
    .submit-btn,
    .error-message,
    .success-message {
        transition: none;
    }
    
    .map-loading i {
        animation: none;
    }
}

/* Dark Mode Accessibility */
[data-theme="dark"] .error-message {
    color: #ff6b6b;
}

[data-theme="dark"] .form-group.error .form-control {
    background-color: rgba(255, 107, 107, 0.1);
}

/* Footer */
.footer {
    background: var(--dark-background);
    color: var(--light-text);
    padding-top: 80px;
}

.footer-info h3 {
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-newsletter input {
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 100%;
    padding: 0 20px;
    color: var(--light-text);
    margin-bottom: 20px;
}

.footer-newsletter button {
    background: var(--secondary-color);
    color: var(--light-text);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* iOS Safari and Mobile Browser Fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
        -webkit-background-size: cover;
        background-size: cover;
    }
}

/* Mobile Safari specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .hero {
        background-attachment: scroll;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero {
        height: 100vh;
        min-height: 600px;
        background-attachment: scroll;
    }
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        margin-top: 30px;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .hero {
        height: 100vh;
        min-height: 500px;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    .hero h1 {
        font-size: 2.5rem;
        padding: 0 15px;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .portfolio-filters button {
        margin-bottom: 10px;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
}

@media (max-width: 575px) {
    .hero {
        height: 100vh;
        min-height: 450px;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    .hero h1 {
        font-size: 2rem;
        padding: 0 10px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .cta-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .footer-newsletter {
        margin-top: 30px;
    }
}

/* Animations */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    animation: ripple 1s linear;
}

/* Header Transitions */
.header {
    transform: translateY(0);
    transition: transform 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
}

/* Navigation Hover Effects */
.nav-item {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Service Cards Enhanced Hover */
.service-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    z-index: -1;
}

.service-card:hover::after {
    top: -50%;
    left: -50%;
}

/* Stats Animation */
.stat-item h3 {
    position: relative;
    display: inline-block;
}

.stat-item h3::after {
    content: '+';
    position: absolute;
    right: -20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.stat-item h3.animated::after {
    opacity: 1;
    transform: translateX(0);
}

/* Hero Section Enhancements */
.hero-content h1 {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    background: radial-gradient(circle, rgba(52,152,219,0.1) 0%, rgba(52,152,219,0) 70%);
    z-index: -1;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

/* Service Icons Animation */
.service-card i {
    transition: transform 0.3s ease;
}

/* Enhanced Hover States */
.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.service-card {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                box-shadow 0.5s ease;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Language Switcher */
.lang-switch {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.lang-switch::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: scale(0);
    opacity: 0.1;
    transition: all 0.3s ease;
}

.lang-switch:hover::before {
    transform: scale(1);
}

.lang-switch:hover {
    color: var(--secondary-color);
}

.navbar-toggler {
    border: none;
    padding: 0;
    outline: none;
    position: relative;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    display: inline-block;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

[data-theme="dark"] .navbar-toggler-icon,
[data-theme="dark"] .navbar-toggler-icon::before,
[data-theme="dark"] .navbar-toggler-icon::after {
    background-color: var(--light-text);
}

/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    animation: loaderRotate 2s linear infinite;
}

.loader-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: loaderScale 1.5s ease-in-out infinite;
}

.loader-circle:nth-child(1) {
    border-top-color: var(--primary-color);
    animation-delay: 0s;
}

.loader-circle:nth-child(2) {
    border-right-color: var(--secondary-color);
    animation-delay: 0.2s;
}

.loader-circle:nth-child(3) {
    border-bottom-color: var(--accent-color);
    animation-delay: 0.4s;
}

.loader-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: loaderPulse 1s ease-in-out infinite;
}

@keyframes loaderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loaderScale {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes loaderPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.6;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .loader-circle:nth-child(1) {
    border-top-color: var(--secondary-color);
}

[data-theme="dark"] .loader-circle:nth-child(2) {
    border-right-color: var(--primary-color);
}

[data-theme="dark"] .loader-circle:nth-child(3) {
    border-bottom-color: var(--light-text);
}

[data-theme="dark"] .loader-dot {
    background: var(--light-text);
}

/* Hide loader when content is loaded */
.loader-container.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    background: rgba(var(--secondary-rgb), 0.2);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    transform: translate(-50%, -50%) scale(1);
    mix-blend-mode: difference;
    backdrop-filter: blur(2px);
}

.cursor-follower::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 2s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
}

.cursor-follower.active {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(var(--secondary-rgb), 0.3);
}

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

/* Hide cursor follower on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-follower {
        display: none;
    }
}

.footer-info {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-brand-logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff3131;
    letter-spacing: 1px;
}

.footer-brand-text .highlight {
    color: #ff3131;
}

.footer-logo:hover .footer-brand-logo {
    transform: scale(1.05);
}

/* .footer-logo:hover .footer-brand-text {
    color: var(--secondary-color);
}

.footer-logo:hover .footer-brand-text .highlight {
    color: var(--light-text);
} */

/* Dark mode adjustments */
[data-theme="dark"] .brand-text {
    color: var(--light-text);
}

[data-theme="dark"] .brand-text .highlight {
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .brand-text, .footer-brand-text {
        font-size: 1.2rem;
    }
    
    .navbar-logo {
        height: 40px;
        width: 40px;
    }
    
    .footer-brand-logo {
        height: 50px;
        width: 50px;
    }
}

