* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Heebo", Arial, serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    direction: rtl;
    background-image: url('../images/website-background.webp');
    background-repeat: repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Body Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    z-index: 0;
}

/* Ensure all content is above the overlay */
.navbar,
.header,
.action-buttons,
.about-section {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
}

.logo img {
    animation: smooth-pulse 1.5s ease-in-out infinite;
}

@keyframes smooth-pulse {
    0%, 100% {
        transform: scale(1); /* גודל רגיל */
    }
    50% {
        transform: scale(1.1); /* גודל מוגדל ב-10% */
    }
}

/* Fancy Button with Animation */
.fancy-button {
    position: relative;
    overflow: hidden;
    border: none;
    color: #C0954F;
    display: inline-block;
    font-size: 1.2rem;
    padding: 18px 40px;
    text-decoration: none;
    cursor: pointer;
    background: #121212;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    border-radius: 5px;
    transition: transform 0.2s ease;
  }
  
  .fancy-button span {
    position: relative;
    font-weight: bold;
    z-index: 10;
    transition: color 450ms cubic-bezier(0.48, 0, 0.12, 1);
  }
  
  .fancy-button:after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #C0954F;
    transform-origin: bottom center;
    transition: transform 450ms cubic-bezier(0.48, 0, 0.12, 1);
    transform: skewY(9.3deg) scaleY(0);
    z-index: 5;
  }
  
  .fancy-button:hover:after {
    transform-origin: bottom center;
    transform: skewY(9.3deg) scaleY(2);
  }
  
  .fancy-button:hover span {
    color: #121212;
  }
  
  .fancy-button:active {
    transform: translateY(2px);
  }

/* Header */
.header {
    height: 80vh;
    position: relative;
    background-image: url('/assets/images/barbershop.webp');
    background-size: cover;
    background-position: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.overlay img {
    max-width: 200px;
}

.overlay button {
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, .5);
    -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, .5);
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, .5);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    border-top: 6px solid #C0954F;
    border-bottom: 6px solid #C0954F;
}

.action-button {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #121212;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-button:hover {
    background: #161616;
}

.action-button i {
    font-size: 2rem;
    color: #C0954F;
}

.action-button .title {
    margin-top: 16px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
}

.action-button .description {
    margin-top: 8px;
    color: #ccc;
    text-align: center;
}

/* About Section */
.about-section {
    margin: 60px 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 60px 0;
}

.about-section h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: bold;
}

.about-content {
    text-align: right;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #fff;
}

.about-content .strong {
    font-weight: bold;
    color: #C0954F;
}

/* Media Queries */
@media (max-width: 768px) {
    .about-section {
        margin: 40px 0;
    }
    
    .about-section h2 {
        font-size: 2rem;
    }
    
    .about-content {
        font-size: 1rem;
    }
}

.gallery-section {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 60vh);
    gap: 0;
    overflow: hidden;
    border-top: 6px solid #C0954F;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
    pointer-events: none;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.location-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    color: white;
    border-top: 6px solid #C0954F;
}

.location-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.location-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.location-icon {
    font-size: 3rem;
    color: #C0954F;
    margin-bottom: 20px;
}

.location-address {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #C0954F;
    background: #121212;
    color: #C0954F;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-button:hover {
    background: #C0954F;
    color: #121212;
    transform: translateY(-5px);
}

.nav-button img {
    position: relative;
    z-index: 2;
    width: 50%;
    height: 50%;
}

.nav-button.waze {
    border: none;
    background: #05C8F7;
}

.nav-button.google-maps {
    border: none;
    background: #fff;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg);
}

.working-hours {
    margin-top: 40px;
    padding: 20px;
    background: rgba(18, 18, 18, 0.8);
    border-radius: 10px;
    border: 1px solid #C0954F;
}

.working-hours h3 {
    color: #C0954F;
    margin-bottom: 15px;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.hours-item {
    padding: 10px;
    border-bottom: 1px solid rgba(192, 149, 79, 0.3);
}

.hours-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .location-address {
        font-size: 1.2rem;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Footer Styles */
.footer-section {
    position: relative;
    background: #121212;
    color: #fff;
    padding: 60px 20px 20px;
    border-top: 6px solid #C0954F;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.footer-contact div {
    margin: 10px 0;
}

.footer-contact i {
    color: #C0954F;
    margin-left: 10px;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-social h3 {
    color: #C0954F;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #C0954F;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* WhatsApp Button Styles */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.whatsapp-pulse {
    position: absolute;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    background: #25D366;
    opacity: 0.5;
    animation: pulse 2s ease-out infinite;
}

.whatsapp-pulse:nth-child(2) {
    animation-delay: 0.5s;
}

.whatsapp-icon {
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Dialog Styles */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dialog-overlay.active {
    display: flex;
    opacity: 1;
}

.dialog-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid #C0954F;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.dialog-overlay.active .dialog-content {
    transform: translateY(0);
}

.dialog-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #C0954F;
    font-size: 24px;
    cursor: pointer;
}

.dialog-content h2 {
    color: #C0954F;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.hours-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(192,149,79,0.2);
    color: #fff;
}

.dialog-contact {
    text-align: center;
    color: #fff;
}

.dialog-contact p {
    margin: 10px 0;
}

.dialog-contact i {
    color: #C0954F;
    margin-left: 10px;
}

.dialog-contact a {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}


/* Responsive Adjustments for Tablets */
@media (max-width: 768px) {
    body {
        font-size: 90%;
    }
    .fancy-button {
        font-size: 1rem;
        padding: 15px 30px;
    }
    .header {
        height: 70vh;
    }
    .overlay img {
        max-width: 150px;
    }
    .about-section h2 {
        font-size: 1.8rem;
    }
    .about-content {
        font-size: 0.95rem;
    }
    .gallery-section {
        grid-template-rows: repeat(2, 40vh);
    }
    .location-address {
        font-size: 1rem;
    }
    .map-container {
        height: 250px;
    }
    .footer-content {
        font-size: 90%;
    }
}

/* Responsive Adjustments for Phones */
@media (max-width: 480px) {
    body {
        font-size: 80%;
    }
    .fancy-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    .header {
        height: 60vh;
    }
    .about-section h2 {
        font-size: 1.5rem;
    }
    .about-content {
        font-size: 0.85rem;
    }
    .gallery-section {
        grid-template-rows: repeat(2, 30vh);
    }
    .location-address {
        font-size: 0.9rem;
    }
    .map-container {
        height: 200px;
    }
    .footer-content {
        font-size: 80%;
    }
}

/* Adjust spacing under gallery images */
.gallery-item img {
    margin-bottom: 0;
}

/* Add padding to the sides of the "about-section" for smaller screens */
@media (max-width: 768px) {
    .about-section {
        padding: 0 15px;
    }
}
@media (max-width: 480px) {
    .about-section {
        padding: 0 10px;
    }
}

/* Stack action buttons vertically for smaller screens */
@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .action-button {
        width: 90%;
        margin: 0 auto;
    }
}

/* Increase footer text size for phones */
@media (max-width: 480px) {
    .footer-content {
        font-size: 90%;
    }
    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Add credit line to footer */
.footer-bottom::after {
    content: "האתר נבנה ע\"י בנאל חלפון";
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #C0954F;
}

/* Full-width buttons without spacing between them */
@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
        gap: 0;
    }
    .action-button {
        width: 100%;
        margin: 0;
        border-radius: 0; /* Ensure they align flush */
    }
}
