/* assets/css/style.css */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    direction: ltr;
}

body.urdu-mode {
    font-family: 'Noto Sans Arabic', 'Poppins', sans-serif;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    font-size: 28px;
    margin-right: 10px;
}

body.urdu-mode .logo i {
    margin-right: 0;
    margin-left: 10px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin: 0 15px;
}

body.urdu-mode .main-nav ul li {
    margin: 0 15px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.language-switcher .lang-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.language-switcher .lang-btn i {
    margin-right: 5px;
}

body.urdu-mode .language-switcher .lang-btn i {
    margin-right: 0;
    margin-left: 5px;
}

.language-switcher .lang-btn:hover {
    background-color: var(--primary-dark);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn i {
    margin-right: 8px;
}

body.urdu-mode .btn i {
    margin-right: 0;
    margin-left: 8px;
}

/* Section Common */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 20px auto 0;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    background-color: rgba(37, 99, 235, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding-bottom: 25px;
}

.member-img {
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.member-img i {
    font-size: 80px;
    color: var(--gray);
}

.team-member h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--dark);
}

.team-member p {
    color: var(--primary);
    font-weight: 500;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-img {
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 14px;
}

.blog-category {
    background-color: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.blog-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.blog-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
}

body.urdu-mode .read-more i {
    margin-left: 0;
    margin-right: 5px;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

body.urdu-mode .floating-buttons {
    right: auto;
    left: 30px;
}

.whatsapp-float,
.call-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float {
    background-color: #25d366;
}

.call-float {
    background-color: var(--primary);
}

.whatsapp-float:hover,
.call-float:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column p,
.footer-column a {
    color: #d1d5db;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 14px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    transition: left 0.3s;
}

.mobile-menu.active {
    left: 0;
}

body.urdu-mode .mobile-menu {
    left: auto;
    right: -100%;
}

body.urdu-mode .mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
}

.mobile-nav ul li a.active {
    color: var(--primary);
}

.mobile-contact {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

.mobile-contact p {
    margin-bottom: 10px;
    color: var(--gray);
}

.mobile-contact i {
    margin-right: 10px;
    color: var(--primary);
}

body.urdu-mode .mobile-contact i {
    margin-right: 0;
    margin-left: 10px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 38px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .language-switcher {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 80%;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section {
        padding: 70px 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    body.urdu-mode .floating-buttons {
        left: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}