@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-100px) translateX(50px); }
    50% { transform: translateY(-200px) translateX(-50px); }
    75% { transform: translateY(-100px) translateX(100px); }
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar {
    padding: 1.2rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo h1 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    -webkit-text-fill-color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
    animation: heroGlow 20s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 12px 30px;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: floatBadge 4s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

@keyframes floatBadge {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-10px) scale(1.05);
    }
}

.badge-text {
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.2);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 2px 4px 8px rgba(0,0,0,0.2);
    }
    50% { 
        text-shadow: 2px 4px 20px rgba(255,255,255,0.3), 2px 4px 8px rgba(0,0,0,0.2);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: white;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    border-color: white;
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.service-card:hover::before {
    opacity: 0.08;
}

.service-card:hover::after {
    opacity: 1;
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 70px rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient);
    opacity: 0.12;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .icon-bg {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.3);
    opacity: 0.25;
    border-radius: 50%;
}

.service-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.service-card:hover .tag {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    text-align: right;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #64748b;
    line-height: 1.9;
}

.highlight-text {
    font-size: 1.3rem !important;
    color: var(--dark) !important;
    font-weight: 600;
    position: relative;
    padding-right: 20px;
}

.highlight-text::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
}

.tech-stack h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark);
    font-weight: 700;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: white;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.3);
}

.tech-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.tech-item i {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 3rem;
    border-radius: 20px;
    color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: contactGlow 15s linear infinite;
}

@keyframes contactGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info > p {
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    padding: 0.5rem;
    border-radius: 10px;
}

.contact-item:hover {
    transform: translateX(-5px);
    background: rgba(255,255,255,0.1);
}

.contact-item i {
    font-size: 1.5rem;
    margin-top: 5px;
    background: rgba(255,255,255,0.25);
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255,255,255,0.35);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-item p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links {
    position: relative;
    z-index: 1;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s;
}

.social-links a:hover::before {
    width: 100%;
    height: 100%;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.5;
}

.form-group textarea + i {
    top: 20px;
    transform: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s;
}

.btn-submit:hover::before {
    width: 400%;
    height: 400%;
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-submit span,
.btn-submit i {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h3 i {
    color: var(--primary);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: pulse-btn 2s ease-in-out infinite;
}

@keyframes pulse-btn {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(99, 102, 241, 0.7);
    }
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.back-to-top:active {
    transform: translateY(-5px) scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .tech-icons {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Flutter Icon Special Styling */
.flutter-icon {
    color: #02569B !important;
    -webkit-text-fill-color: #02569B !important;
}

.service-card:hover .flutter-icon {
    animation: flutterSpin 2s ease-in-out infinite;
}

@keyframes flutterSpin {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        transform: scale(1.15) rotate(5deg); 
    }
    50% { 
        transform: scale(1.1) rotate(0deg); 
    }
    75% { 
        transform: scale(1.15) rotate(-5deg); 
    }
}

/* Tech Icons Colored */
.tech-item i.colored {
    -webkit-text-fill-color: unset !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Additional Animations */
@keyframes techBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-in {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading State */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Focus Styles */
*:focus {
    outline: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 5px;
}

.nav-links a:focus {
    outline: none;
}

/* Improved Section Transitions */
section {
    opacity: 0;
    animation: sectionFadeIn 1s ease forwards;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
    }
}

.services {
    animation-delay: 0.2s;
}

.about {
    animation-delay: 0.3s;
}

.contact {
    animation-delay: 0.4s;
}

/* Enhanced Hover States */
.nav-links a,
.footer-section ul li a {
    position: relative;
    display: inline-block;
}

.footer-section ul li a::before {
    content: '◀';
    position: absolute;
    right: -15px;
    opacity: 0;
    transition: all 0.3s;
}

.footer-section ul li a:hover::before {
    right: -20px;
    opacity: 1;
}

/* Improved Form Focus States */
.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
}

/* Enhanced Section Title */
.section-title {
    animation: titleSlideIn 1s ease;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo h1 {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Improved Mobile Menu Button */
.mobile-menu-btn {
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: white;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.portfolio-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Process Section */
.process {
    padding: 100px 0;
    background: var(--light);
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .step-content {
    text-align: left;
}

.step-number {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    z-index: 2;
}

.step-content {
    width: 45%;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    text-align: right;
    transition: all 0.4s;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-content p {
    color: #64748b;
    line-height: 1.8;
}

/* Clients Section */
.clients {
    padding: 80px 0;
    background: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.client-item {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.client-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.client-logo {
    margin-bottom: 1rem;
}

.client-logo i {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.client-logo h3 {
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.client-item p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--light);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.4s;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.author-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    gap: 0.2rem;
}

.rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 700;
    margin: 0;
}

.faq-question i {
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: #64748b;
    line-height: 1.8;
    font-size: 1rem;
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        right: 30px;
        transform: none;
    }
    
    .process-step {
        flex-direction: column !important;
        align-items: flex-start;
        padding-right: 60px;
    }
    
    .step-number {
        right: 0;
        transform: none;
    }
    
    .step-content {
        width: 100%;
        text-align: right !important;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--light);
    padding: 5px;
    border-radius: 25px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.lang-btn i {
    font-size: 1rem;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* RTL/LTR Support */
html[dir="ltr"] {
    direction: ltr;
}

html[dir="ltr"] body {
    text-align: left;
}

html[dir="ltr"] .navbar .container {
    flex-direction: row;
}

html[dir="ltr"] .nav-links {
    flex-direction: row;
}

html[dir="ltr"] .hero-content,
html[dir="ltr"] .section-title,
html[dir="ltr"] .section-subtitle {
    text-align: center;
}

html[dir="ltr"] .about-text {
    text-align: left;
}

html[dir="ltr"] .highlight-text::before {
    right: auto;
    left: 0;
}

html[dir="ltr"] .step-content {
    text-align: left;
}

html[dir="ltr"] .process-step:nth-child(even) .step-content {
    text-align: right;
}

html[dir="ltr"] .form-group i {
    right: auto;
    left: 20px;
}

html[dir="ltr"] .contact-form input,
html[dir="ltr"] .contact-form textarea {
    padding: 15px 20px 15px 50px;
}

html[dir="ltr"] .footer-section ul li a::before {
    right: auto;
    left: -15px;
}

html[dir="ltr"] .footer-section ul li a:hover::before {
    right: auto;
    left: -20px;
}

html[dir="ltr"] .back-to-top {
    left: auto;
    right: 30px;
}

html[dir="ltr"] .btn-primary i,
html[dir="ltr"] .btn-secondary i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .language-switcher {
        display: none;
    }
}
