/* --- משתנים ואיפוס --- */
:root {
    --primary-color: #C62828; /* Strong Red */
    --secondary-color: #F8F9FA;
    --accent-color: #D32F2F; /* Bright Red */
    --accent-hover: #B71C1C; /* Darker Red */
    --text-dark: #222222;
    --text-light: #555555;
    --white: #ffffff;
    --shadow-card: 0 10px 30px rgba(198, 40, 40, 0.15);
    --shadow-hover: 0 15px 40px rgba(198, 40, 40, 0.2);
    --radius: 12px;
    --focus-color: #2196F3; /* Blue for focus - accessible */
}

/* --- Accessibility (נגישות) --- */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 700;
    z-index: 9999;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for keyboard navigation */
*:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

/* Better focus for interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Ensure high contrast for text */
.high-contrast {
    color: var(--text-dark);
    background-color: var(--white);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Assistant', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* אנימציות כלליות */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animation for children */
.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* --- רכיבים כלליים --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.15rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-text {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: inherit;
    font-weight: 600;
    transition: color 0.3s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.btn-text:hover {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(198, 40, 40, 0.5);
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.3);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-family: 'Heebo', sans-serif;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 900;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 20px;
}

section { padding: 80px 0; }

/* --- Social Media Icons --- */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-icon.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
    color: white;
}

.social-icon.instagram {
    background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
    color: white;
}

.social-icon.tiktok {
    background: linear-gradient(135deg, #000000 0%, #EE1D52 100%);
    color: white;
}

.social-icon:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Social links in footer */
.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.footer-social .social-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
}

/* --- Header --- */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 130px; /* Increased height for larger logo */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 6px 30px rgba(0,0,0,0.12);
    height: 90px; /* Increased scrolled height */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 110px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
    mix-blend-mode: multiply;
}

header.scrolled .logo-image {
    height: 70px; /* Smaller logo when scrolled */
}

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

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-btn-header {
    background-color: #25D366;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: none;
}

@media (min-width: 768px) {
    .whatsapp-btn-header { display: inline-block; }
}

/* --- Hero --- */
.hero {
    margin-top: 130px; /* Match new header height */
    /* Hero Image Zoom Out Adjustment */
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.85) 0%, rgba(183, 28, 28, 0.75) 100%), 
                url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?q=80&w=2940&auto=format&fit=crop') no-repeat center 30%/cover;
    background-attachment: fixed; /* Parallax effect for "zoomed out" feel */
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(211, 47, 47, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-layout { grid-template-columns: 1.2fr 0.8fr; }
}

.hero-text {
    color: var(--white);
    text-align: center;
}

@media (min-width: 992px) {
    .hero-text { text-align: right; }
}

.hero-text h1 {
    font-family: 'Heebo', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 span {
    background: linear-gradient(135deg, #ffffff 0%, #ffdddd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-profile-wrapper {
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-profile-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.hero-profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.95);
    object-fit: cover;
    background-color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.hero-profile-wrapper:hover .hero-profile-img {
    transform: scale(1.05);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-text .btn {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* --- Forms --- */
.lead-form-container, .admin-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.3) inset;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lead-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
}

.admin-container {
    max-width: 800px;
    margin-top: 120px;
    margin-bottom: 50px;
}

.lead-form-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 20px;
}

.lead-form-header h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 900;
}

.lead-form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-group { 
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    transform-origin: right;
}

.form-group:focus-within label {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Assistant', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
    background-color: white;
    transform: translateY(-2px);
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.form-submit:hover::before {
    width: 300px;
    height: 300px;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.4);
}

.form-submit:active {
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner for forms */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

/* --- Services & Projects Grid --- */
/* Note: Projects Grid is now overridden by accessibility-roller.css for carousel view */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(198, 40, 40, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.project-card:hover { 
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(198, 40, 40, 0.2);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: transparent;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    transition: opacity 0.3s;
}

.project-card:hover .card-img-wrapper::after {
    opacity: 0.5;
}

.card-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

/* Sold Properties - Original Style (cover with fixed aspect ratio) */
#sold-properties-container .card-img-wrapper {
    aspect-ratio: 4 / 3;
    height: auto;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sold-properties-container .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill container, may crop */
}

/* Sale Properties - Keep current style (contain, full image visible) */
#sale-properties-container .card-img-wrapper {
    height: auto;
    background: transparent;
}

#sale-properties-container .card-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Show full image without cropping */
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: pulse 2s ease-in-out infinite;
}

.badge-sold { 
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white; 
}
.badge-sale { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white; 
}

.card-content { 
    padding: 25px; 
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-dark);
    transition: color 0.3s;
}

.project-card:hover .card-title {
    color: var(--primary-color);
}

.card-location {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-price {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: block;
}

.card-features {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    border-top: 2px solid #f0f0f0;
    padding-top: 15px;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.gallery-item {
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: white;
    transition: transform 0.3s ease;
    z-index: 2;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(198, 40, 40, 0.7);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

/* --- Testimonials --- */
.testimonials {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-hover) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.testimonials .section-title h2 {
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px; /* Reduced padding */
    border-radius: 15px; /* Smaller radius */
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.testimonial-card:hover {
    transform: translateY(-5px); /* Reduced hover movement */
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.testimonial-card p {
    font-size: 0.95rem; /* Smaller font size */
    line-height: 1.6; /* Tighter line height */
    margin-bottom: 15px;
    font-style: italic;
    max-height: 180px; /* Limit height */
    overflow-y: auto; /* Add scroll if needed */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255,255,255,0.5) transparent;
}

/* Custom scrollbar for webkit */
.testimonial-card p::-webkit-scrollbar {
    width: 4px;
}
.testimonial-card p::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.5);
    border-radius: 4px;
}

.testimonial-stars {
    text-align: center;
    font-size: 1.3rem;
    margin: 15px 0 10px 0;
    color: #FFD700; /* Gold color for stars */
    letter-spacing: 3px;
}

.client-name {
    font-weight: 700;
    font-size: 1rem; /* Smaller name */
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.testimonial-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    font-style: normal;
    font-weight: 400;
}

.testimonial-card h4 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
}

/* --- Footer --- */
footer {
    background: linear-gradient(135deg, #0a1929 0%, #081a2f 100%);
    color: #ccc;
    padding: 60px 0 30px;
    font-size: 0.95rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-content h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-links li { 
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.footer-links li:hover {
    transform: translateX(-5px);
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info-item { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 15px;
    align-items: center;
}

.contact-info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.copyright { 
    text-align: center; 
    opacity: 0.7;
    padding-top: 20px;
    font-size: 0.9rem;
}

.developer-credit {
    display: inline-block;
    margin-right: 5px;
}

.developer-credit a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--primary-color);
}

/* --- Admin Table --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.admin-table th, .admin-table td {
    text-align: right;
    padding: 12px;
    border-bottom: 1px solid #ddd;
}
.admin-table th { background-color: #f8f9fa; color: var(--primary-color); }
.admin-actions { display: flex; gap: 10px; }
.status-badge { padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; color: white; }

/* --- Floating WhatsApp --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    /* Header & Hero Adjustments */
    header {
        height: 80px; /* Reduced height for mobile */
        padding: 0;
    }
    
    header.scrolled {
        height: 65px;
    }
    
    .hero {
        margin-top: 80px; /* Match new header height */
        min-height: 550px;
        padding: 30px 0;
    }
    
    /* Logo Adjustments */
    .logo {
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    .logo-image {
        height: 55px; /* Compact logo size */
    }
    
    header.scrolled .logo-image {
        height: 45px;
    }

    /* Contact Section Adjustments */
    .header-contact {
        gap: 12px;
        flex-wrap: nowrap;
    }
    
    .header-contact span { 
        display: none; 
    }
    
    /* Phone Button Style - Circular on mobile */
    .phone-link {
        font-size: 1rem;
        background: rgba(198, 40, 40, 0.1);
        padding: 0;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--primary-color);
    }
    
    .phone-link svg {
        width: 20px;
        height: 20px;
    }

    /* Social Icons Adjustments */
    .social-links {
        gap: 8px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    /* Typography & Layout */
    .hero-text h1 { 
        font-size: 2.2rem;
        text-align: center; 
    }
    
    .hero-text p {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .hero-layout { 
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lead-form-container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        font-size: 30px;
        bottom: 20px;
        left: 20px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .hero-profile-img {
        width: 130px;
        height: 130px;
    }
    
    .footer-content {
        gap: 30px;
        text-align: center;
        grid-template-columns: 1fr;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-info-item {
        justify-content: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 1.7rem;
    }
    
    .card-price {
        font-size: 1.3rem;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Social in header visible on very small screens now */
    .header-contact .social-links {
        display: flex;
    }
    
    /* Make footer social icons bigger on small screens */
    .footer-social .social-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
}

/* --- Accessibility Page Styles --- */
.accessibility-section {
    padding: 120px 0 60px; /* Space for fixed header */
    background-color: var(--secondary-color);
    min-height: 100vh;
}

.accessibility-container {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    max-width: 900px; /* Readability width */
}

.accessibility-container h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 15px;
}

.accessibility-container h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.accessibility-container p, 
.accessibility-container li {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 10px;
}

.accessibility-features-list {
    list-style-type: disc;
    padding-right: 25px; /* RTL list padding */
    margin-bottom: 25px;
}

.accessibility-features-list li {
    margin-bottom: 12px;
}

.contact-accessibility {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.coordinator-details {
    margin-top: 15px;
}

.coordinator-details p {
    margin-bottom: 5px;
}

.coordinator-details a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.coordinator-details a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

.last-update {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Mobile adjustments for accessibility page */
@media (max-width: 768px) {
    .accessibility-container {
        padding: 25px;
    }
    
    .accessibility-container h1 {
        font-size: 2rem;
    }
}

/* --- Developer Credit Section --- */
.developer-credit-section {
    text-align: center;
    margin-top: 15px; /* Reduced margin */
    padding-top: 0; /* Removed padding */
    border-top: none; /* Removed border */
}

.developer-credit-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.developer-credit-section .btn-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.developer-credit-section .btn-text:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(198, 40, 40, 0.5);
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
