/* Tech4Idea - Main Stylesheet */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Poppins', sans-serif;
}

.section-padding {
    padding: 80px 0;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 20%;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar-main {
    min-height: 72px;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 46px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    background: transparent;
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.nav-link {
    font-weight: 600;
    margin: 0 12px;
    padding: 8px 6px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.2px;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-main .nav-link {
    color: rgba(255, 255, 255, 0.92);
}

.nav-main .nav-link:hover,
.nav-main .nav-link:focus {
    color: #ffffff;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(102, 126, 234, 0.12);
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 12px 0;
    }

    .navbar-main {
        min-height: 62px;
    }

    .brand-logo {
        height: 40px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        backdrop-filter: blur(6px);
    }

    .nav-link {
        margin: 6px 0;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.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-size: cover;
    background-position: bottom;
}

.hero-image {
    text-align: center;
    padding: 50px;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.service-link:hover {
    transform: translateX(5px);
}

.service-card-detailed {
    background: white;
    border-radius: 15px;
    padding: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.service-card-detailed:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 3rem;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--warning-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

[dir="rtl"] .pricing-badge {
    right: auto;
    left: 20px;
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.pricing-price {
    margin: 20px 0;
    font-size: 3rem;
    font-weight: 700;
}

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-price .period {
    font-size: 1rem;
}

.pricing-body {
    padding: 30px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-footer {
    padding: 0 30px 30px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 120px 0 60px;
    margin-bottom: 0;
}

.page-header h1 {
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Feature Box */
.feature-box {
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

/* Info Box */
.info-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Contact Info */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.social-links-contact .social-link {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links-contact .social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

/* Footer */
footer {
    margin-top: 80px;
}

footer .social-links a {
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

.scroll-to-top.show {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}
