:root {
    --bg-light: url('assets/images/background-light.jpg');
    --bg-dark: url('assets/images/background-dark.jpg.jpg');
    --text-color-light: #444;
    --text-color-dark: #fff;
    --link-color-light: #666;
    --link-color-dark: #bbb;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Avenir', sans-serif;
    text-align: center;
    direction: ltr; /* יישור משמאל לימין */
    color: var(--text-color-dark);
}


.background-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* יישור למעלה */
    align-items: center;
    background-image: var(--bg-dark);
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
    position: relative;
    padding-top: 100px; /* פאדינג עליון */
}

.theme-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background-color: rgba(248, 248, 248, 0.2); /* 10% opacity */
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-dark);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .theme-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* Make SVG white */
}

.theme-toggle:hover .sun-icon {
    transform: rotate(90deg);
}

.theme-toggle:hover .moon-icon {
    transform: rotate(20deg);
}

/* Icon styling */
.link-icon, .contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    filter: brightness(0) invert(1); /* Make SVG white in dark mode */
}

/* Light mode - make all icons dark */
body.light-mode .theme-toggle .theme-icon,
body.light-mode .link-icon,
body.light-mode .contact-icon {
    filter: brightness(0); /* Make SVG black in light mode */
}

/* Dark mode - keep theme icon white */
.theme-toggle .theme-icon {
    filter: brightness(0) invert(1); /* Make SVG white */
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px 40px 20px; /* הסר פאדינג עליון כאן */
}

.name {
    font-size: 3em;
    font-weight: 300;
    margin: 0 0 0px 0;
}

.title {
    font-size: 1.5em;
    font-weight: 200;
    margin: 0;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.links, .contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.link-item, .contact-item {
    color: var(--link-color-dark);
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.link-item:hover, .contact-item:hover {
    color: #fff;
}

.copy-email {
    cursor: pointer;
}

/* Light Mode */
body.light-mode {
    color: var(--text-color-light);
}

body.light-mode .background-container {
    background-image: var(--bg-light);
}

body.light-mode .link-item,
body.light-mode .contact-item {
    color: var(--link-color-light);
}

body.light-mode .link-item:hover,
body.light-mode .contact-item:hover {
    color: #000;
}

body.light-mode .theme-toggle {
    color: var(--text-color-light);
}

body.light-mode .content-container {
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.4);
}

body.light-mode .title {
    color: var(--text-color-light);
}