/* General Styles */
:root {
    --primary-color: #0a2647; /* Deep Navy Blue */
    --primary-light: #144272; /* Lighter Navy */
    --secondary-color: #f8f9fa; /* Light Gray Background */
    --accent-color: #ff6b00; /* Logistics Orange */
    --accent-hover: #e65100; /* Darker Orange */
    --text-color: #2c3e50; /* Dark Blue-Gray */
    --text-light: #6c757d; /* Muted Gray */
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    direction: rtl; /* Arabic Support */
    text-align: right;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    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;
    border-bottom: 3px solid var(--accent-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: nowrap; /* Prevent wrapping if possible, or handle it */
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem; /* Reduced from 1.8rem to fit better */
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap; /* Keep logo in one line */
}

.nav-links {
    display: flex;
    gap: 15px; /* Reduced from 25px */
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem; /* Slightly smaller */
    position: relative;
    white-space: nowrap; /* Keep links in one line */
}

.nav-links li a:not(.btn-login):hover {
    color: var(--accent-color);
}

.nav-links li a.active {
    color: var(--accent-color);
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-login:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s linear;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 38, 71, 0.85) 0%, rgba(20, 66, 114, 0.75) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 45px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Cards Grid */
.features-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card, .service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3, .service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p, .service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
}

footer p {
    opacity: 0.8;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-light);
}

}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.btn-cta:hover {
    background-color: #b71c1c;
}

/* Section General */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* Why Us */
.why-us {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Services */
.services {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Clients */
.clients {
    background-color: var(--white);
    text-align: center;
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    opacity: 0.7;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    text-align: right;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Inner Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h2 {
    font-size: 2.5rem;
    margin: 0;
}

.content-section {
    margin-bottom: 60px;
}

.bio-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 30px;
    align-items: center;
    border-left: 5px solid var(--accent-color);
}

.bio-image {
    width: 150px;
    height: 150px;
    background-color: #eee;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-content h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.bio-content .role {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vm-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.vm-card:hover {
    transform: translateY(-5px);
}

.vm-card i {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.vm-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}


/* Service Page Styles */
.service-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    border-right: 5px solid transparent;
}

.service-row:hover {
    transform: translateX(-5px);
    border-right-color: var(--accent-color);
}

.service-icon-large {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-content ul {
    margin-top: 15px;
    list-style: none;
}

.service-content ul li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.service-content ul li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--accent-color);
}


/* Contact Page Styles */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--accent-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(-5px);
}

.info-item i {
    color: var(--accent-color);
    margin-left: 20px;
    font-size: 1.5rem;
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 50px;
}


/* Clients Page Styles */
.client-category {
    margin-bottom: 60px;
}

.client-category h3 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
}

.client-category h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.clients-grid-rich {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.client-logo-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    font-weight: bold;
    color: var(--text-light);
    transition: var(--transition);
    border: 1px solid #eee;
}

.client-logo-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.client-info-card {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    text-align: right;
    min-height: 220px;
}

.client-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.client-text h4 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.05rem;
    line-height: 1.4;
}

.client-text p {
    margin: 0;
    color: var(--text-color);
    white-space: pre-line;
    line-height: 1.6;
    font-weight: normal;
}


/* Products Page Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-image {
    height: 220px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image i {
    color: #ccc;
    font-size: 4rem;
}

.product-details {
    padding: 20px;
}

.product-details h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-details p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.product-tag {
    display: inline-block;
    background-color: rgba(10, 38, 71, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}


/* Timeline / Stepper Styles */
.timeline-wrapper {
    width: 100%;
    margin: 50px 0;
    direction: rtl;
}

.progressbar {
    counter-reset: step;
    padding: 0;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progressbar li {
    list-style-type: none;
    width: 25%;
    position: relative;
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1;
}

/* The Circle */
.progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 40px;
    height: 40px;
    line-height: 36px;
    border: 2px solid #ddd;
    display: block;
    text-align: center;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background-color: white;
    color: var(--text-light);
    font-weight: bold;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

/* The Line */
.progressbar li:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #ddd;
    top: 20px;
    right: 50%; /* Starts from center and goes left in RTL */
    z-index: 0;
    transition: all 0.3s ease;
}

/* The last item (Leftmost) should not have a line extending further left */
.progressbar li:last-child:after {
    content: none;
}

/* Active State (Current Step) */
.progressbar li.active {
    color: var(--accent-color);
}

.progressbar li.active:before {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

/* Completed State (Past Steps) */
.progressbar li.completed {
    color: var(--primary-color);
}

.progressbar li.completed:before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    content: "\f00c"; /* FontAwesome Check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.progressbar li.completed:after {
    background-color: var(--primary-color);
}
 
 / *   N o t i f i c a t i o n   S t y l e s   * /  
 . n o t i f i c a t i o n - b e l l   {  
         p o s i t i o n :   r e l a t i v e ;  
         c u r s o r :   p o i n t e r ;  
         m a r g i n - l e f t :   1 5 p x ;  
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;  
         f o n t - s i z e :   1 . 2 r e m ;  
 }  
  
 . n o t i f i c a t i o n - b a d g e   {  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   - 8 p x ;  
         r i g h t :   - 8 p x ;  
         b a c k g r o u n d - c o l o r :   # d c 3 5 4 5 ;  
         c o l o r :   w h i t e ;  
         b o r d e r - r a d i u s :   5 0 % ;  
         p a d d i n g :   2 p x   6 p x ;  
         f o n t - s i z e :   0 . 7 r e m ;  
         f o n t - w e i g h t :   b o l d ;  
         m i n - w i d t h :   1 8 p x ;  
         t e x t - a l i g n :   c e n t e r ;  
 }  
  
 . n o t i f i c a t i o n - d r o p d o w n   {  
         d i s p l a y :   n o n e ;  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   3 0 p x ;  
         l e f t :   0 ;    
         w i d t h :   3 2 0 p x ;  
         b a c k g r o u n d :   w h i t e ;  
         b o r d e r :   1 p x   s o l i d   # d d d ;  
         b o r d e r - r a d i u s :   8 p x ;  
         b o x - s h a d o w :   0   5 p x   2 0 p x   r g b a ( 0 , 0 , 0 , 0 . 1 5 ) ;  
         z - i n d e x :   1 0 0 1 ;  
         m a x - h e i g h t :   4 0 0 p x ;  
         o v e r f l o w - y :   a u t o ;  
         t e x t - a l i g n :   r i g h t ;  
 }  
  
 . n o t i f i c a t i o n - i t e m   {  
         p a d d i n g :   1 2 p x   1 5 p x ;  
         b o r d e r - b o t t o m :   1 p x   s o l i d   # e e e ;  
         t r a n s i t i o n :   b a c k g r o u n d - c o l o r   0 . 2 s ;  
         d i s p l a y :   b l o c k ;  
         t e x t - d e c o r a t i o n :   n o n e ;  
         c o l o r :   v a r ( - - t e x t - c o l o r ) ;  
 }  
  
 . n o t i f i c a t i o n - i t e m : h o v e r   {  
         b a c k g r o u n d - c o l o r :   # f 8 f 9 f a ;  
 }  
  
 . n o t i f i c a t i o n - i t e m . u n r e a d   {  
         b a c k g r o u n d - c o l o r :   # e 3 f 2 f d ;  
         b o r d e r - r i g h t :   3 p x   s o l i d   v a r ( - - a c c e n t - c o l o r ) ;  
 }  
  
 . n o t i f i c a t i o n - i t e m   h 4   {  
         m a r g i n :   0   0   5 p x   0 ;  
         f o n t - s i z e :   0 . 9 r e m ;  
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;  
         f o n t - w e i g h t :   b o l d ;  
 }  
  
 . n o t i f i c a t i o n - i t e m   p   {  
         m a r g i n :   0 ;  
         f o n t - s i z e :   0 . 8 5 r e m ;  
         c o l o r :   v a r ( - - t e x t - l i g h t ) ;  
         l i n e - h e i g h t :   1 . 4 ;  
 }  
  
 . n o t i f i c a t i o n - i t e m   . t i m e   {  
         f o n t - s i z e :   0 . 7 5 r e m ;  
         c o l o r :   # 9 9 9 ;  
         m a r g i n - t o p :   5 p x ;  
         d i s p l a y :   b l o c k ;  
 }  
  
 . n o t i f i c a t i o n - h e a d e r   {  
         p a d d i n g :   1 0 p x   1 5 p x ;  
         b o r d e r - b o t t o m :   1 p x   s o l i d   # d d d ;  
         f o n t - w e i g h t :   b o l d ;  
         d i s p l a y :   f l e x ;  
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;  
         a l i g n - i t e m s :   c e n t e r ;  
         b a c k g r o u n d - c o l o r :   # f f f ;  
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;  
 }  
  
 . n o t i f i c a t i o n - f o o t e r   {  
         p a d d i n g :   1 0 p x ;  
         t e x t - a l i g n :   c e n t e r ;  
         b o r d e r - t o p :   1 p x   s o l i d   # d d d ;  
         b a c k g r o u n d - c o l o r :   # f 8 f 9 f a ;  
 }  
  
 . n o t i f i c a t i o n - f o o t e r   a   {  
         f o n t - s i z e :   0 . 8 5 r e m ;  
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;  
         f o n t - w e i g h t :   6 0 0 ;  
 }  
 
/* --- Enhanced Mobile Responsiveness for PWA --- */
@media (max-width: 768px) {
    /* General Layout */
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Navbar Improvements */
    .navbar {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 15px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 12px;
        background-color: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 5px;
        border: 1px solid #eee;
    }
    
    .nav-links li a.btn-login {
        background-color: var(--primary-color);
        color: white !important;
        margin-top: 10px;
    }

    /* Tables - Horizontal Scroll */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    th, td {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Cards & Flex Containers */
    .bio-card, .service-row {
        flex-direction: column;
        text-align: center;
    }

    .bio-image, .service-icon-large {
        margin: 0 auto 20px;
    }

    .service-row {
        border-right: none;
        border-top: 5px solid transparent;
    }

    .service-row:hover {
        transform: translateY(-5px);
        border-top-color: var(--accent-color);
    }

    /* Dashboard Specifics */
    .dashboard-stats {
        grid-template-columns: 1fr; /* Stack stats cards */
    }

    /* Forms */
    .form-group input, .form-group select, .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Adjust font sizes */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    /* Hero Section */
    .hero {
        padding: 100px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}
