html {
  font-family: 'Times New Roman', sans-serif;
}


body {
    text-align: center;
    background: #e6e5d8;
    padding: 2rem;
    color: #333;
    transition: background-color 0.4s, color 0.4s;
}

header{
    color: #12074a;
}

h1{
    font-size: 3rem;
}

h2{
    font-size: 1.25rem;
}

.cursive{
    font-style: italic;
}

h3{
    font-size:1.6rem;
    font-weight:bold;
}

footer{
    color: #12074a;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: beige;
  padding: 10px 40px;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

/* Centered nav links */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Nav link styles */
.navbar a {
  color: #69685f;
  text-decoration: none;
  font-weight: bold;
  trainstion: color 0.3s ease;
}

/* Toggle stays to the right due to flex layout */
.theme-toggle {
  margin-left: auto;
}

/* Toggle switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    background-color: #ccc;
    border-radius: 30px;
    position: absolute;
    cursor: pointer;
    inset: 0;
    transition: background-color 0.4s;
}

.slider.round .icon {
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    font-size: 18px;
    transition: left 0.4s ease, transform 0.4s;
}

/* Checked state: dark background + moon icon slide */
input:checked + .slider {
    background-color: #666;
}

input:checked + .slider .icon {
    left: 34px;
    content: "🌙";
}


.projects {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 4px 0;
}

.project-card img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 48, 68, 0.2);
    transition: transform 0.3s ease;
}

.project-card img:hover {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .projects {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
        height: auto;
    }
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: #444;
    margin: 4rem auto 2rem;
    width: 100%;
}

.profile-img {
    width: 185px;
    height: auto;
    float: right;
    margin: 0 0 1rem 1.5rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.tech-stack {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.tech-stack li {
    margin-bottom: 0.5rem;
    background-color: #f4f4ed;
    padding: 0.75rem 1rem;
    border-left: 4px solid #12074a;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}




.navbar a.active {
    text-decoration: underline;
    font-weight: bold;
    color: #065c1d;
}

.top-banner {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

/* Optional: override navbar color too */
body.dark-mode .navbar {
  background-color: #1e1e1e;
}

body.dark-mode a {
  color: #f0f0f0;
}


body.dark-mode h1,
body.dark-mode h2 {
  color: #ffffff;
}

body.dark-mode .tech-stack li {
  background-color: #2c2c2c;
  color: #ffffff;
  border-left-color: #bb86fc; /* optional: soft purple accent */
}

body.dark-mode footer {
  background-color: transparent; /* or #121212 if you want contrast */
  color: #ffffff;
}

.navbar a:hover {
  color: #003366;
  text-decoration: underline;
}

body.dark-mode .navbar a:hover {
  color: #90caf9; /* soft blue pop */
}
