/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent browser default link colors */
a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Rubik', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    direction: rtl;
    text-align: right;
}

/* RTL Support */
html {
    direction: rtl;
}

/* English text within Hebrew site */
.ltr {
    direction: ltr;
    text-align: left;
}

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

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
    flex-direction: row;
    min-height: 120px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    position: absolute !important;
    right: 20px !important;
    left: auto !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-logo {
    height: 100px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
    margin-left: 20px;
    margin-right: 150px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Remove blue color after clicking dropdown */
.dropdown-toggle:visited,
.dropdown-toggle:focus {
    color: var(--text-color) !important;
    outline: none;
}

.dropdown-toggle:hover {
    color: var(--primary-color);
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
    display: inline-block;
}

.dropdown:hover .arrow {
    transform: rotate(-180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    min-width: 500px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    margin-top: 1rem;
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.mega-menu-column {
    flex: 1;
}

.mega-menu-column h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
    text-align: right;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    text-align: right;
}

.mega-menu-column li {
    margin-bottom: 0.75rem;
}

.mega-menu-column a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.25rem 0.5rem;
    display: block;
    border-radius: 5px;
    text-align: right;
}

/* Remove blue color and background after click */
.mega-menu-column a:visited {
    color: var(--text-color);
    background: transparent;
}

.mega-menu-column a:focus {
    color: var(--text-color);
    background: transparent;
    outline: none;
}

.mega-menu-column a:active {
    color: var(--text-color);
    background: transparent;
}

.mega-menu-column a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mega-menu-column a.active {
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.mega-menu-column a.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: var(--primary-color);
    border-radius: 2px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

/* Remove blue color after click */
.nav-menu a:visited {
    color: var(--text-color);
}

.nav-menu a:focus {
    color: var(--text-color);
    outline: none;
}

.nav-menu a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 1px rgba(30, 64, 175, 0.3);
    transform: translateY(-1px);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: none;
    transform: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    margin-left: 1rem;
    margin-right: 0;
    position: relative;
    width: 25px;
    height: 25px;
}

.hamburger span {
    width: 20px;
    height: 2.5px;
    background: var(--dark-color);
    margin: 2.5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a415f 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Services Grid on Homepage */
.services-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-home-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.service-home-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    color: white;
}

.service-home-card:hover h3 {
    color: white;
}

.service-home-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.service-home-card .service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.service-home-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.service-home-card p {
    color: var(--text-color);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a415f 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* About Content */
.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

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

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Values Section */
.values-section {
    margin-top: 4rem;
}

.values-section h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* About Hero Minimal Section */
.about-hero-minimal {
    padding: 60px 0 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a415f 100%);
    border-bottom: none;
}

.about-hero-simple {
    text-align: center;
}

.about-hero-simple h1 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.about-hero-minimal .hero-title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 400;
    opacity: 0.95;
}

.hero-credentials {
    font-size: 1rem;
    color: white;
    font-weight: 300;
    opacity: 0.9;
}

/* Personal Story */
.personal-story {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

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

.story-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

.story-content p {
    margin-bottom: 1.5rem;
}

/* Service Approach */
.service-approach {
    margin-bottom: 80px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.approach-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.approach-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.approach-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.approach-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Professional Credentials */
.credentials-section {
    background: var(--light-color);
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 80px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.credential-item {
    text-align: center;
}

.credential-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.credential-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.credential-item p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Why Choose Section */
.why-choose-section {
    text-align: center;
    padding: 60px 0;
}

.why-choose-content {
    max-width: 800px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-direction: row-reverse;
}

/* Services Content */
.services-content {
    padding: 80px 0;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.services-intro .lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    padding-left: 0;
    position: relative;
    text-align: right;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Service Detail Pages */
.service-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.service-detail h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-detail h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-detail p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-detail ul {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.service-detail li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.service-detail strong {
    color: var(--dark-color);
}

.cta-section {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h3 {
    color: var(--dark-color);
    margin-top: 0;
}

.cta-section p {
    margin-bottom: 1.5rem;
}

/* Info Sections for Service Pages */
.info-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.info-section:last-of-type {
    border-bottom: none;
}

.section-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-right: 1rem;
}

.section-heading::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--primary-color);
}

.content-block {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.lead-paragraph {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.content-block p {
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Features Grid for Service Pages */
.service-detail .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-detail .feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-detail .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-detail .feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    margin-top: 0;
}

.service-detail .feature-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Offered Section */
.services-offered {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 3rem;
    border-radius: 15px;
    margin: 3rem 0;
}

.services-list {
    margin-top: 2rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-direction: row-reverse;
}

.service-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateX(-5px);
}

.service-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.service-text h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: right;
}

.service-text p {
    color: var(--text-color);
    line-height: 1.6;
    text-align: right;
}

/* Service CTA Section */
.service-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a415f 100%);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
    text-align: center;
}

.cta-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.service-cta .btn {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Compact Services List */
.services-compact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.services-compact h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.service-list-compact {
    list-style: none;
    padding: 0;
}

.service-list-compact li {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-color);
}

.service-list-compact li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-list-compact strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Modern Services Offered Section */
.services-offered-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.services-offered-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.services-offered-modern h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.modern-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.modern-service-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-service-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.modern-service-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.modern-service-item:hover::before {
    height: 100%;
}

.modern-service-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.service-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #2a415f);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.modern-service-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.modern-service-item p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Animation delays for staggered effect */
.modern-service-item:nth-child(1) { animation-delay: 0.1s; }
.modern-service-item:nth-child(2) { animation-delay: 0.2s; }
.modern-service-item:nth-child(3) { animation-delay: 0.3s; }
.modern-service-item:nth-child(4) { animation-delay: 0.4s; }
.modern-service-item:nth-child(5) { animation-delay: 0.5s; }
.modern-service-item:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 768px) {
    .modern-services-grid {
        grid-template-columns: 1fr;
    }
}


/* Process Section */
.process-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.process-section h2 {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    position: relative;
    direction: rtl;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Process Section - Home Page */
.process-home {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    position: relative;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.process-home .section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.process-home .section-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.process-home .process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
    direction: rtl;
}

.process-home .process-step {
    flex: 1;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.process-home .process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.process-home .process-step h4 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.process-home .process-step p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-arrow {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.5;
    flex-shrink: 0;
    transform: scaleX(-1);
}

/* Contact Content */
.contact-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
    text-align: right;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    direction: rtl;
    text-align: right;
    font-family: 'Rubik', 'Heebo', Arial, sans-serif;
}

.form-group input[type="email"],
.form-group input[type="tel"] {
    direction: ltr;
    text-align: left;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.checkbox-label input {
    width: auto;
    margin-left: 0.5rem;
    margin-right: 0;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Contact Info */
.contact-info {
    background: var(--light-color);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 300px;
    text-align: right;
    direction: rtl;
}

.contact-info h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    text-align: right !important;
    font-size: 1.15rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.4rem;
    width: 100%;
}

/* Ensure all text inside contact-info is right-aligned */
.contact-info * {
    text-align: right;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-direction: row-reverse;
    text-align: right;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item > div {
    text-align: right;
    width: 100%;
}

.info-icon {
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    text-align: right !important;
    font-size: 0.95rem;
    width: 100%;
}

.info-item p {
    margin: 0;
    line-height: 1.5;
    color: var(--text-color);
    text-align: right !important;
    font-size: 0.9rem;
    width: 100%;
}

.info-item p.ltr {
    direction: ltr;
    text-align: right;
    unicode-bidi: embed;
    display: block;
}

/* Social Links */
.social-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.social-links h4 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.social-icons a {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* About Me Section */
.about-me-section {
    padding: 80px 0;
    background: white;
}

.about-me-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-me-content h2 {
    color: var(--dark-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-me-content p {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

.about-me-image {
    position: relative;
}

.about-me-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    max-height: 500px;
}


/* Companies Section */
.companies-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.companies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.3), transparent);
}

.companies-section .section-title {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Modern Companies Showcase Grid */
.companies-showcase {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
    max-width: 900px;
    margin: 0 auto;
}

/* Logo items with staggered animation */
.logo-item {
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--index) * 0.06s);
}

.logo-item:nth-child(1) { --index: 0; }
.logo-item:nth-child(2) { --index: 1; }
.logo-item:nth-child(3) { --index: 2; }
.logo-item:nth-child(4) { --index: 3; }
.logo-item:nth-child(5) { --index: 4; }
.logo-item:nth-child(6) { --index: 5; }
.logo-item:nth-child(7) { --index: 6; }
.logo-item:nth-child(8) { --index: 7; }

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

/* Logo wrapper with hover effects */
.logo-wrapper {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

/* Shimmer effect on hover */
.logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.08), transparent);
    transition: left 0.5s ease;
}

.logo-item:hover .logo-wrapper::before {
    left: 100%;
}

/* Logo image styling */
.logo-wrapper img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.65);
    transition: all 0.3s ease;
}

/* Hover effects */
.logo-item:hover .logo-wrapper {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.12);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Subtle overlay effect */
.logo-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(30, 64, 175, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.logo-item:hover .logo-overlay {
    opacity: 1;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a415f 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* CTA section button - white on blue background */
.cta .btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    border-color: white;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* WhatsApp Button */
.fab-whatsapp {
    background: #25D366;
    color: white;
}

.fab-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Accessibility Button */
.fab-accessibility {
    background: #4A5FDC;
    color: white;
}

.fab-accessibility svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Accessibility Panel */
.accessibility-panel {
    position: fixed;
    left: 20px;
    bottom: 170px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 280px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 999;
    direction: rtl;
}

.accessibility-panel.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accessibility-panel h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: var(--dark-color);
    border-bottom: 2px solid #4A5FDC;
    padding-bottom: 10px;
}

.accessibility-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.accessibility-option label {
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
}

.accessibility-option button {
    background: #4A5FDC;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.accessibility-option button:hover {
    background: #3a4fc7;
}

.accessibility-option button.active {
    background: #2ecc71;
}

/* Accessibility Modifications */
body.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast * {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.high-contrast .btn {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #fff !important;
}

body.large-text {
    font-size: 120% !important;
}

body.large-text * {
    font-size: inherit !important;
}

body.readable-font * {
    font-family: Arial, sans-serif !important;
}

body.underline-links a {
    text-decoration: underline !important;
}

/* Medium screens */
@media (max-width: 1024px) {
    .mega-menu {
        min-width: 400px;
    }
    
    /* Services Grid for Tablets - 2x4 layout */
    .services-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Approach Grid Tablet */
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Process Home Tablet */
    .process-home .process-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .process-home .process-step {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .process-home .process-arrow {
        display: none;
    }
    
    /* Service Detail Tablet */
    .service-detail .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Hero Minimal Tablet */
    .about-hero-simple h1 {
        font-size: 2rem;
    }
    
    .about-hero-minimal .hero-title {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation container fixes */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
    }
    
    .navbar .container {
        min-height: 80px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        position: relative;
    }
    
    /* Logo positioning in mobile */
    .nav-brand {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        order: 2;
        padding: 0.5rem 0;
    }
    
    .nav-logo {
        height: 70px;
        max-width: 70px;
        object-fit: contain;
    }
    
    /* Hamburger positioning and visibility */
    .hamburger {
        display: flex !important;
        order: 1;
        margin-right: 0;
        margin-left: 0;
        background: none;
        border: none;
        z-index: 1002;
        width: 25px;
        height: 25px;
    }
    
    .services-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Mobile dropdown styles */
    .dropdown {
        position: relative;
    }
    
    .dropdown .mega-menu {
        position: static !important;
        width: 100%;
        min-width: auto;
        margin: 0;
        padding: 0.5rem 0 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        background: #f8f9fa;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        display: none;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        border-left: 3px solid var(--primary-color);
        margin-top: 0.5rem;
    }
    
    .dropdown.active .mega-menu {
        display: block !important;
    }
    
    .mega-menu::before {
        display: none !important;
    }
    
    .dropdown-toggle {
        cursor: pointer;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
    }
    
    .dropdown.active .arrow {
        transform: rotate(-180deg);
    }
    
    .mega-menu-column {
        margin-bottom: 0.5rem;
        width: 100%;
        flex: none;
        padding: 0;
    }
    
    .mega-menu-column h3 {
        font-size: 0.9rem;
        color: var(--primary-color);
        margin-bottom: 0.3rem;
        padding: 0.3rem 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .mega-menu-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mega-menu-column a {
        padding: 0.4rem 0.8rem;
        display: block;
        font-size: 0.9rem;
        color: var(--text-color);
        text-decoration: none;
        transition: all 0.2s;
    }
    
    .mega-menu-column a:hover {
        background: rgba(30, 64, 175, 0.1);
        transform: none !important;
        padding-right: 1rem;
    }
    
    /* Ensure dropdown content doesn't overflow */
    .dropdown.active {
        position: relative;
    }
    
    .dropdown.active .mega-menu {
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 999;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: right;
        padding: 0.5rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.5rem 1rem;
        width: 100%;
    }
    
    /* Dropdown inside mobile menu */
    .nav-menu .dropdown {
        width: 100%;
    }
    
    .nav-menu .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.5rem 1rem;
        background: none;
        border: none;
        text-align: right;
        color: var(--text-color);
        font-weight: 500;
        cursor: pointer;
    }
    
    .nav-menu .dropdown-toggle .arrow {
        transition: transform 0.3s;
    }
    
    .nav-menu .dropdown.active .arrow {
        transform: rotate(-180deg);
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        margin-left: 1rem;
        width: 25px;
        height: 25px;
    }
    
    .hamburger span {
        display: block !important;
        width: 20px;
        height: 2.5px;
        background: #333;
        margin: 2.5px 0;
        transition: all 0.3s;
        visibility: visible !important;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(6.5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-6.5px);
    }
    
    /* Make sure navbar stays visible */
    .navbar {
        display: block !important;
    }
    
    /* Make sure container is visible */
    .navbar .container {
        display: flex !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* About Hero Minimal Responsive */
    .about-hero-minimal {
        padding: 50px 0 40px;
    }
    
    .about-hero-simple h1 {
        font-size: 1.8rem;
    }
    
    .about-hero-minimal .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-credentials {
        font-size: 0.9rem;
    }
    
    /* Approach Grid Responsive */
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    /* Credentials Grid Responsive */
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .credentials-section {
        padding: 40px 20px;
    }
    
    /* CTA Buttons Responsive */
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .contact-info {
        max-width: 100%;
        margin: 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Compact service cards for mobile - keeping 2 columns */
    .services-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .service-home-card {
        padding: 1rem 0.75rem;
    }
    
    .service-home-card .service-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .service-home-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .service-home-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .about-me-grid {
        grid-template-columns: 1fr;
    }
    
    .about-me-image {
        order: -1;
    }
    
    .about-me-image img {
        max-height: 400px;
    }
    
    .carousel-track {
        animation: infinite-scroll-mobile 20s linear infinite;
        gap: 0.5rem;
    }
    
    .carousel-slide {
        flex: 0 0 160px;
        height: 90px;
        padding: 1rem 0.5rem;
        margin: 0 0.25rem;
    }
    
    .carousel-slide img {
        max-height: 50px;
    }
    
    @keyframes infinite-scroll-mobile {
        from {
            transform: translateX(0);
        }
        to {
            /* Each mobile slide: 160px + margins/gap = ~165px */
            transform: translateX(calc(-165px * 7));
        }
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
    
    /* Process Home Responsive */
    /* Compact process steps for mobile */
    .process-home {
        padding: 2rem 1rem;
    }
    
    .process-home .process-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-home .process-arrow {
        transform: rotate(90deg) scaleX(-1);
        margin: -1rem 0;
    }
    
    .process-home .process-step {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }
    
    .process-home .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .process-home .process-step h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .process-home .process-step p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Service Detail Responsive */
    .service-detail .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-offered {
        padding: 2rem;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-cta {
        padding: 2rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* ====================================================
   ENHANCED MOBILE RESPONSIVE DESIGN
   ==================================================== */

/* Ensure full responsiveness for all mobile devices */
@media (max-width: 768px) {
    /* Fix horizontal scroll issues */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Container adjustments */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Fix images overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Form elements mobile optimization */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Tables responsive */
    table {
        width: 100%;
        overflow-x: auto;
        display: block;
    }
    
    /* Fix FAB buttons position */
    .fab-container {
        position: fixed;
        z-index: 9999;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 576px) {
    /* Typography adjustments */
    body {
        font-size: 14px;
    }
    
    /* Sections padding */
    section {
        padding: 35px 0;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    /* Buttons full width on small screens */
    .btn {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        display: block;
    }
    
    /* Contact form responsive */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        width: 100%;
        max-width: 100%;
        margin-top: 2rem;
    }
    
    /* Service cards responsive - keep 2 columns */
    .services-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .service-home-card {
        width: 100%;
        padding: 0.75rem 0.5rem;
    }
    
    .service-home-card .service-icon {
        font-size: 1.75rem;
    }
    
    .service-home-card h3 {
        font-size: 0.85rem;
    }
    
    .service-home-card p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 480px) {
    /* Container padding for very small screens */
    .container {
        padding: 0 10px;
    }
    
    /* Navigation adjustments */
    .navbar .container {
        padding: 0.5rem;
        min-height: 70px;
    }
    
    .nav-logo {
        height: 60px;
    }
    
    .nav-brand {
        right: 5px !important;
    }
    
    /* Typography for very small screens */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* FAB buttons smaller on very small screens */
    .fab-btn {
        width: 45px;
        height: 45px;
    }
    
    .fab-whatsapp svg {
        width: 24px;
        height: 24px;
    }
    
    .fab-accessibility svg {
        width: 20px;
        height: 20px;
    }
    
    /* Accessibility panel full width */
    .accessibility-panel {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        padding: 12px;
    }
    
    /* Modern services grid */
    .modern-services-grid {
        gap: 0.8rem;
    }
    
    .modern-service-item {
        padding: 1rem;
    }
    
    .service-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    /* Companies grid responsive - keep 2x4 but smaller */
    .companies-showcase {
        padding: 1.5rem 0.5rem;
    }
    
    .logo-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .logo-wrapper {
        height: 80px;
        padding: 0.5rem;
    }
    
    .logo-wrapper img {
        max-height: 45px;
    }
    
    /* Process steps */
    /* Companies grid for small screens - 2x2 for better visibility */
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .logo-wrapper {
        height: 70px;
        padding: 0.4rem;
    }
    
    .logo-wrapper img {
        max-height: 35px;
    }
    
    /* Even more compact for small phones */
    .process-home .process-step {
        padding: 0.75rem;
    }
    
    .process-home .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .process-home .process-step h4 {
        font-size: 0.9rem;
    }
    
    .process-home .process-step p {
        font-size: 0.8rem;
    }
    
    /* About me section */
    .about-me-image {
        max-width: 200px;
    }
    
    /* Companies carousel */
    .carousel-slide {
        flex: 0 0 130px;
        height: 75px;
        padding: 0.5rem;
    }
    
    .carousel-slide img {
        max-height: 35px;
    }
    
    /* Footer */
    .footer {
        padding: 1rem 0;
        font-size: 0.8rem;
    }
}

/* Very small devices (old phones, less than 360px) */
@media (max-width: 360px) {
    /* Even smaller adjustments */
    
    /* Keep 2 columns for very small screens */
    .services-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    /* Ultra compact service cards for very small screens */
    .service-home-card {
        display: block;
        padding: 0.5rem;
        text-align: center;
    }
    
    .service-home-card .service-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .service-home-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }
    
    .service-home-card p {
        font-size: 0.65rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .nav-logo {
        height: 55px;
    }
    
    /* Ultra compact service cards for very small phones */
    .service-home-card {
        padding: 0.6rem;
    }
    
    .service-home-card .service-icon {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .service-home-card h3 {
        font-size: 0.85rem;
    }
    
    .service-home-card p {
        font-size: 0.7rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .modern-service-item h4 {
        font-size: 0.9rem;
    }
    
    .modern-service-item p {
        font-size: 0.8rem;
    }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
        min-height: auto;
    }
    
    /* Companies grid for landscape - maintain 4x2 */
    .logo-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .logo-wrapper {
        height: 65px;
        padding: 0.4rem;
    }
    
    .logo-wrapper img {
        max-height: 35px;
    }
    
    /* Compact services grid for landscape */
    .services-home-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .service-home-card {
        padding: 0.5rem;
    }
    
    .service-home-card .service-icon {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .service-home-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .service-home-card p {
        font-size: 0.65rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Compact process steps for landscape */
    .process-home {
        padding: 1.5rem 0.5rem;
    }
    
    .process-home .process-steps {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .process-home .process-step {
        flex: 1;
        padding: 0.5rem;
    }
    
    .process-home .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .process-home .process-step h4 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .process-home .process-step p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .navbar .container {
        min-height: 60px;
    }
    
    .nav-logo {
        height: 50px;
    }
    
    section {
        padding: 25px 0;
    }
    
    .fab-container {
        bottom: 5px;
        left: 5px;
    }
    
    .fab-btn {
        width: 40px;
        height: 40px;
    }
}
