/* ==================== Reset & Variables ==================== */
:root {
    --primary-color: #0891b2;
    --secondary-color: #0c4a6e;
    --accent-color: #06b6d4;
    --dark: #0f172a;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-3: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(8, 145, 178, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(8, 145, 178, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 145, 178, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

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

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Navigation layout */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    flex: 0 0 auto;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.25rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .nav-link::after {
    left: auto;
    right: 0;
}

body.rtl .stat-item::before {
    left: auto;
    right: 0;
}

body.rtl .about-card ul li,
body.rtl .service-card ul li,
body.rtl .case-content ul li {
    padding-left: 0;
    padding-right: 1.5rem;
}

body.rtl .about-card ul li::before,
body.rtl .service-card ul li::before,
body.rtl .case-content ul li::before {
    left: auto;
    right: 0;
}

body.rtl .scroll-top {
    right: auto;
    left: 2rem;
}

/* Language Selector Style */
.lang-selector {
    position: relative;
    cursor: pointer;
    margin-left: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(8, 145, 178, 0.05);
    border: 1px solid rgba(8, 145, 178, 0.1);
    border-radius: 50px;
    transition: var(--transition);
    user-select: none;
}

body.rtl .lang-selector {
    margin-left: 0;
    margin-right: 1.5rem;
}

.lang-selector:hover {
    background: rgba(8, 145, 178, 0.1);
    border-color: var(--primary-color);
}

.selected-lang-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.lang-icon {
    font-size: 1.1rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.lang-selector.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 140px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

body.rtl .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.lang-option:hover {
    background: rgba(8, 145, 178, 0.05);
    color: var(--primary-color);
}

.lang-option.active {
    background: var(--gradient-1);
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -150px;
    animation: pulse 10s ease-in-out infinite reverse;
}

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

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(8, 145, 178, 0.6);
    border-radius: 50%;
    animation: float-particles 15s linear infinite;
}

.particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

@keyframes float-particles {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease, glow 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(8, 145, 178, 0.3);
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--gradient-3);
    color: white;
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 32px rgba(8, 145, 178, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(8, 145, 178, 0.2);
    transition: var(--transition);
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: var(--gradient-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

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

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(8, 145, 178, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ==================== Section Styles ==================== */
section {
    padding: 4rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-top: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    margin-top: 1.5rem;
}

/* ==================== About Section ==================== */
.about {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.about-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(8, 145, 178, 0.1);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(8, 145, 178, 0.15);
    border-color: rgba(8, 145, 178, 0.3);
}

.about-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-3);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.25);
    position: relative;
    transition: var(--transition);
}

.about-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-1);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.about-card:hover .about-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.about-card:hover .about-icon::after {
    opacity: 0.3;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.about-icon svg {
    width: 36px;
    height: 36px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.about-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.about-card ul li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: var(--transition);
}

.about-card ul li:hover {
    color: var(--primary-color);
    padding-left: 1.8rem;
}

.about-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.about-card ul li:hover::before {
    transform: scale(1.2);
}

/* ==================== Services Section ==================== */
.services {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 3px solid transparent;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(8, 145, 178, 0.15);
    border-top-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 14px;
    border: 2px solid rgba(8, 145, 178, 0.2);
    transition: var(--transition);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-1);
    border-radius: 14px;
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-1);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
    transform: scale(1.1);
}

.service-card:hover .service-icon::before {
    opacity: 0.2;
    animation: rotate 3s linear infinite;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    fill: white;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.3rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: var(--transition);
}

.service-card ul li:hover {
    color: var(--primary-color);
    padding-left: 1.8rem;
}

.service-card ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.7rem;
    transition: var(--transition);
}

.service-card ul li:hover::before {
    transform: translateX(2px);
}

/* ==================== Technology Section ==================== */
.technology {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.technology::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.technology .section-title {
    color: white;
}

.technology .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.8rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition-slow);
    border: 1px solid rgba(8, 145, 178, 0.2);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.tech-card:hover::before {
    opacity: 0.1;
}

.tech-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(8, 145, 178, 0.3);
}

.tech-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.4);
    position: relative;
    transition: var(--transition);
}

.tech-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-1);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.tech-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

.tech-card h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ==================== Cases Section ==================== */
.cases {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.cases::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    opacity: 0.3;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.case-card {
    background: white;
    padding: 2rem 1.8rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition-slow);
    position: relative;
    border: 1px solid rgba(8, 145, 178, 0.1);
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.05), transparent);
    transition: var(--transition);
}

.case-card:hover::before {
    left: 100%;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(8, 145, 178, 0.15);
    border-color: rgba(8, 145, 178, 0.3);
}

.case-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(8, 145, 178, 0.3);
    position: relative;
    transition: var(--transition);
}

.case-card:hover .case-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-glow);
}

.case-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.case-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.case-content p {
    margin-bottom: 0.9rem;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.case-content strong {
    color: var(--dark);
    font-weight: 700;
}

.case-content ul {
    margin: 0.8rem 0;
}

.case-content ul li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: var(--transition);
}

.case-content ul li:hover {
    color: var(--primary-color);
    padding-left: 1.8rem;
}

.case-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
}

.case-content ul li:hover::before {
    transform: scale(1.2);
}

/* ==================== Contact Section ==================== */
.contact {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: var(--transition-slow);
    border: 1px solid rgba(8, 145, 178, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(8, 145, 178, 0.15);
    border-color: rgba(8, 145, 178, 0.3);
}

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-3);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(8, 145, 178, 0.3);
    transition: var(--transition);
    position: relative;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotateY(360deg);
    box-shadow: var(--shadow-glow);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.contact-card h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-dark);
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-box {
    background: var(--gradient-dark);
    color: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 12px 48px rgba(8, 145, 178, 0.25);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(8, 145, 178, 0.3);
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(8, 145, 178, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    animation: gradient-shift 10s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 800;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-box .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.cta-box .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(8, 145, 178, 0.5) 50%, transparent 100%);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo .logo-img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 4px 8px rgba(8, 145, 178, 0.3));
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==================== Scroll to Top ==================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.4);
    z-index: 999;
}

.scroll-top::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
    animation: pulse-ring 2s ease-out infinite;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.scroll-top:hover::before {
    opacity: 0.3;
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

/* Glowing effect */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(8, 145, 178, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(8, 145, 178, 0.6);
    }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid,
    .services-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .language-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .about-grid,
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-box {
        padding: 2rem;
    }
    
    .cta-box h3 {
        font-size: 1.5rem;
    }
    
    .cta-box p {
        font-size: 1rem;
    }
}
