:root {
--bg-color: #e8e8e3;
--text-color: #C2B1A2;
--overlay-bg: rgba(0, 0, 0, 0.4);
}

:root.dark-mode {
--bg-color: #1a1a1a;
--text-color: #e0e0e0;
--overlay-bg: rgba(0, 0, 0, 0.4);
}

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;700&amp;display=swap');

@font-face {
font-family: 'GoldenHopes';
src: url('fonts/GoldenHopes.otf') format('opentype');
}

@font-face {
font-family: 'MiriamMonoCLM';
src: url('fonts/MiriamMonoCLM-Regular.ttf') format('truetype');
}

body,
html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
font-family: 'MiriamMonoCLM', sans-serif;
background-color: var(--bg-color);
transition: background-color 0.4s ease;
user-select: none; /* Disables text selection */
-webkit-user-select: none; /* For Safari */
-moz-user-select: none; /* For Firefox */
}

.skip-link {
position: absolute;
top: -100px;
left: 0;
background: #333;
color: white;
padding: 10px;
z-index: 100;
transition: top 0.3s;
}

.skip-link:focus {
top: 0;
}
.background-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto; /* <-- הוסף שורה זו */
}


/* Hide mobile slider by default on desktop */
.mobile-slider {
  display: none;
}

.swiper-slide {
background-size: cover;
background-position: center;
}

.swiper-button-next,
.swiper-button-prev {
 color: var(--text-color);
 transition: opacity 0.3s, transform 0.3s, color 0.3s;
opacity: 1; 
z-index: 15;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
opacity: 1;
transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
font-size: 2rem;
font-weight: 900;
}

:root.dark-mode .swiper-button-next,
:root.dark-mode .swiper-button-prev {
color: var(--text-color);
}

.floating-ribbon {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 5;
}

.floating-ribbon img {
position: absolute;
top: 15%;
left: 10%;
width: 28px;
opacity: 0.75;
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
animation: ribbon-drift 60s linear infinite;
will-change: transform;
}

:root.dark-mode .floating-ribbon img {
opacity: 0.85;
filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.12));
}

@keyframes ribbon-drift {
0% { transform: translate(0, 0) rotate(0deg); }
25% { transform: translate(30vw, -10vh) rotate(6deg); }
50% { transform: translate(55vw, 10vh) rotate(-4deg); }
75% { transform: translate(25vw, 18vh) rotate(8deg); }
100% { transform: translate(0, 0) rotate(0deg); }
}

#overlay-content {
position: relative;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
z-index: 10;
background: var(--overlay-bg);
transition: background-color 0.4s ease;
pointer-events: none; /* Makes the entire overlay transparent to clicks */
}

.main-content {
margin-top: 15vh;
}

.portfolio-button, .social-links a {
pointer-events: auto; /* Re-enables clicks ONLY for the button and social links */
}

#main-content-anchor {
position: absolute;
}

.subtitle {
font-family: 'Assistant', sans-serif;
font-size: 1rem;
font-weight: 400;
letter-spacing: 1.5px;
color: var(--text-color);
margin-bottom: 8px;
}

#overlay-content h1 {
font-family: 'MiriamMonoCLM', monospace;
font-size: 2.5rem;
font-weight: 400;
letter-spacing: 2px;
color: var(--text-color);
margin: 0 0 10px 0;
}

#overlay-content p:not(.subtitle) {
font-family: 'Assistant', sans-serif;
font-size: 1.1rem;
font-weight: 300;
letter-spacing: 2px;
color: var(--text-color);
white-space: nowrap;
}

.portfolio-button {
display: inline-block;
margin-top: 30px;
font-family: 'GoldenHopes', serif;
font-size: 2.2rem;
color: var(--text-color);
text-decoration: none;
transition: transform 0.3s;
}

.portfolio-button:hover {
transform: scale(1.05);
}

.page-header {
position: fixed;
top: 30px;
left: 40px;
right: 40px;
z-index: 20;
display: flex;
justify-content: space-between;
align-items: center;
}

.company-logo {
width: 120px;
order: 2;
}

#darkModeToggle {
order: 1;
background: transparent;
border: none;
color: var(--text-color);
font-size: 1.5rem;
cursor: pointer;
padding: 10px;
transition: color 0.3s ease;
pointer-events: auto; /* Ensure dark mode toggle is clickable */
}

#darkModeToggle:hover {
color: #a78c5a;
}

.page-footer {
position: fixed;
bottom: 20px;
left: 0;
width: 100%;
z-index: 20;
text-align: center;
pointer-events: none; /* Container doesn't block clicks */
}

.social-links {
display: flex;
justify-content: center;
gap: 25px;
margin-bottom: 20px;
pointer-events: auto; /* Makes the links area clickable */
}

.social-links a {
color: var(--text-color);
font-size: 1.4rem;
text-decoration: none;
transition: transform 0.3s;
}

.social-links a:hover {
transform: scale(1.15);
}

.copyright {
font-size: 0.8rem;
color: var(--text-color);
opacity: 0.7;
}

@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

.page-header,
.main-content,
.page-footer {
animation: fadeInUp 1s ease-out 0.2s forwards;
opacity: 0;
}

/* שורת הקישורים בפוטר */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;                /* רווח בין איברים */
  margin-top: 8px;
  font-family: 'MiriamMonoCLM', sans-serif;
  color: var(--text-color); /* צבע מותג */
}

/* קישוריות */
.footer-links .footer-policy-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;          /* לישיבה נקייה עם המפריד */
}

/* מצבי נגישות */
.footer-links .footer-policy-link:hover,
.footer-links .footer-policy-link:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: 2px solid transparent;
}

/* שמירת אותו צבע גם לאחר ביקור */
.footer-links .footer-policy-link:visited {
  color: var(--text-color);
}

/* מפריד אנכי בין הקישורים (אם מעדיפים מפריד באמצעות CSS במקום span, ניתן להשתמש ב::after) */
.footer-links .footer-sep {
  color: var(--text-color);
  opacity: 0.7;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

/* חלופה ללא span: מפריד באמצעות פס אנכי דק
.footer-links .footer-policy-link + .footer-policy-link {
  position: relative;
  padding-inline-start: 14px;
}
.footer-links .footer-policy-link + .footer-policy-link::before {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background-color: currentColor;
  opacity: 0.7;
}
*/


.page-footer { pointer-events: none; } /* נשאר כפי שהיה */
.page-footer .social-links,
.page-footer .footer-links {
  pointer-events: auto; /* מאפשר קליקים רק כאן */
}
.page-footer .social-links a,
.page-footer .footer-links a {
  pointer-events: auto;
}



@media (max-width: 768px) {
.page-header { top: 20px; left: 20px; right: 20px; }
#darkModeToggle { font-size: 1.2rem; }
.company-logo { width: 90px; }
.main-content { margin-top: 0; }
#overlay-content h1 { font-size: 1.4rem; letter-spacing: 1px; }
#overlay-content p:not(.subtitle) { white-space: normal; font-size: 0.9rem; }
.portfolio-button { font-size: 1.8rem; }
.floating-ribbon img { width: 18px; animation-duration: 80s; }
.page-footer { bottom: 15px; }
.social-links { gap: 20px; margin-bottom: 15px; }
.social-links a { font-size: 1.2rem; }
.copyright { font-size: 0.7rem; }
/* חצים בשליש התחתון */
.background-slider .swiper-button-prev,
.background-slider .swiper-button-next {
  color: var(--text-color);
  z-index: 15;
  top: auto;
  bottom: 33%;
  transform: none;
  transition: opacity .25s, transform .25s, color .25s;
}
.background-slider .swiper-button-prev:hover,
.background-slider .swiper-button-next:hover {
  transform: scale(1.05);
}
.background-slider .swiper-button-prev::after,
.background-slider .swiper-button-next::after {
  font-size: 2rem;
  font-weight: 900;
}

/* Hide desktop slider on mobile */
.desktop-slider {
  display: none;
}
/* שמירה על מרכזיות הכותרת והכפתור */
#overlay-content, .main-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* מרכז אנכי */
  align-items: center;     /* מרכז אופקי */
  height: 100%;
}

/* עיצוב הכפתור עם האייקון בשורה חדשה */  
.portfolio-button {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.35); /* או שימוש ב-var(--text-color) בהיר */
    background: rgba(255,255,255,0.08); /* שקוף-לבן עדין מעל הרקע */
    backdrop-filter: blur(4px); /* אם נתמך, מוסיף עומק זכוכיתית */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    letter-spacing: 1px;
  }

  /* לחיצה/פוקוס נגישים */
  .portfolio-button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  }
/* סיגנון האייקון בשורה חדשה */
.portfolio-button i {
  display: block;      /* שורה נפרדת */
  margin: 6px auto 0;  /* מרווח קטן למעלה ומרכז אופקי */
  font-size: 1.5rem;   /* גודל האייקון */
  line-height: 1;
}

/* מדיה מובייל - התאמת גודל הכפתור */
@media (max-width: 768px) {
  .portfolio-button {
    font-size: 1.8rem;
    line-height: 1.1;
  }
  .portfolio-button i {
    font-size: 1.3rem;
    margin-top: 4px;
  }
}

/* Show mobile slider on mobile */
.mobile-slider {
  display: block;
  
  
  
}
}
