/* GLOBAL */
body, html {
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

/* HEADER */
header {
    background-color: #1e1e1e;
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
    border-bottom: 1px solid #2c2c2c;
}

footer {
    text-align: center;
}

header h1 {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

header p {
    font-size: 1.1rem;
    color: #aaaaaa;
}

header img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 1rem;
}

/* NAVIGATION */
nav ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

nav ul li {
    display: inline-block;
    margin: 0 10px;
}

nav ul li a {
    color: #ffffff;           /* white text */
    text-decoration: none;    /* no underline */
    font-weight: bold;        /* bold font */
}


nav ul li a:hover {
    text-decoration: underline;
}

/* MAIN CONTENT */
main {
    max-width: 850px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* SECTIONS */
section {
    margin-bottom: 2.5rem;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #2c2c2c;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* TITLES */
h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* LINKS */
a {
    color: #80bfff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* LISTS */
ul {
    padding-left: 1.2rem;
}

ul li {
    margin-bottom: 0.5rem;
}

.contact-list li,
.cv-list li {
    display: flex;
    align-items: center; /* <-- changed from flex-start */
    margin-bottom: 0.75rem;
    gap: 12px;
    padding-left: 0;
}

@media (min-width: 600px) {
    .cv-list li {
        padding-left: 8px;
    }
}

.cv-list img {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    flex-shrink: 0;
    object-fit: contain;
}

.contact-list li a,
.cv-list li a {
    font-weight: 500;
    color: #e0e0e0;
    font-size: 1rem;
}


/* Universal logo styling for both CV and contact sections */
.contact-list img {
    background-color: #ffffff;
    padding: 4px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    max-width: 24px;  /* Keeps logos uniform */
    height: auto;
    object-fit: contain;
    margin-right: 6px;
}



.inline-logo {
    background-color: #ffffff;
    padding: 3px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 6px;
}


.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


@media (max-width: 600px) {
    .cv-list img {
        width: 40px;
        height: 40px;
        padding: 4px;
    }
}

/* LIGHT THEME OVERRIDES */
body.light-theme, body.light-theme html {
    background-color: #ffffff;
    color: #121212;
}

body.light-theme header {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

body.light-theme header h1 {
    color: #121212;
}

body.light-theme header p {
    color: #555555;
}

body.light-theme nav ul li a {
    color: #121212;
}

body.light-theme nav ul li a:hover {
    text-decoration: underline;
}

/* Similarly override section backgrounds and borders */
body.light-theme section {
    background-color: #fafafa;
    border: 1px solid #ddd;
    box-shadow: none;
}

body.light-theme h2 {
    color: #121212; /* dark text for light background */
}

body.light-theme a {
    color: #0066cc; /* or another visible blue */
}

body.light-theme a:hover {
    text-decoration: underline;
}

/* Container */
.theme-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
  gap: 0.5rem;
  color: inherit; /* keep text color consistent */
}

/* Hide the default checkbox */
.theme-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* The slider (the pill background) */
.theme-switch .slider {
  position: relative;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

/* The circle inside the slider */
.theme-switch .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: black;  /* black circle for light theme */
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* When checked (dark theme) */
.theme-switch input:checked + .slider {
  background-color: #444; /* darker background */
}

.theme-switch input:checked + .slider::before {
  transform: translateX(26px);
  background-color: white; /* white circle for dark theme */
}

body.preload {
    display: none;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.2rem; /* Smaller title */
    }

    header img {
        width: 120px;
        height: 120px;
    }

    header p {
        font-size: 0.8rem; /* Slightly smaller subtitle text */
    }
}
