@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,900;1,700&display=swap");

:root {
  --font-family: "Roboto", sans-serf;
  --normal-font: 400;
  --bold-font: 700;
  --bolder-font: 900;
  --bg-color: #fcfcfc;
  --primary-color: #4756df;
  --secondary-color: #ff7235;
  --primary-shadow: #8b8eaf;
  --secondary-shadow: #a17a69;
  --bottom-margin: 0.5rem;
  --bottom-margin-2: 1rem;
  --line-height: 1.7rem;
  --transition: 0.3s;
  --card-bg: #ffffff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--secondary-color);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--primary-color);
  transition: background-color 0.3s, color 0.3s;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-shadow); /* Greyish */
  border-radius: 20px;
  border: 3px solid var(--bg-color); /* Creates padding effect */
}

nav {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3.5rem;
  background-color: var(--bg-color);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

nav h1 {
  color: var(--primary-color);
}

nav a {
  color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

nav ul {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

nav ul li {
  font-weight: var(--bold-font);
}

/* Dark Mode Variables */
body.dark-mode {
  --bg-color: #000000; /* Amoled Black */
  --primary-color: #ffffff; /* White text for contrast */
  --primary-shadow: #333333;
  --card-bg: #000000;
}

.theme-toggle {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.burger-menu {
  color: var(--primary-color);
  font-size: 2rem;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  display: none;
}

/* Home Section Slider */
.home {
  position: relative;
  width: 100%;
  height: 90vh; /* Adjust height as needed */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
  transform: translateX(100%); /* Default: off-screen to the right */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide States */
.slide.active {
  transform: translateX(0);
  z-index: 1;
}

.slide.exit {
  transform: translateX(-100%);
  z-index: 0;
}

/* Dark Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Darken images */
  z-index: -1;
}

/* Content on top of images */
.home-content {
  z-index: 2;
  color: #fff;
}

.home-content h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: yellow;
}

.home-content p {
  font-size: 1.5rem;
  color: yellow;
}

.intro-text {
  color: yellow;
  margin-bottom: 1rem;
}

.About {
  margin: 2rem auto;
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding: 10px;
  border-radius: 11px;
  border: solid;
  box-shadow: 0 3px 10px var(--primary-shadow);
  max-width: 60rem;
  align-items: center;
}

.About h2 {
  margin-bottom: var(--bottom-margin-2);
  text-align: center;
}

.About p {
  line-height: var(--line-height);
  padding: 0.4rem;
  text-align: center;
}

.about-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap; 
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-weight: var(--bold-font);
  transition: var(--transition);
  text-decoration: none;
  min-width: 137px;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.skills {
  margin: 2rem auto;
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding: 1rem 6 rem;
}

.skills h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  margin-bottom: 4rem;
}

.skills-container img {
  width: 90px;
  height: 90px;
}

.projects {
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding: 2rem 1rem;
}

.projects h2 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2.5rem;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--primary-shadow);
  overflow: hidden;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none; /* Remove underline from anchor */
  color: inherit; /* Ensure text color doesn't default to blue link color */
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px var(--secondary-shadow);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card h3 {
  margin: 1rem 0 0.5rem;
  text-align: center;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.project-card p {
  padding: 0 1rem 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--primary-color);
  line-height: 1.5;
}

.contact{
  margin-top: 2rem;
}

.contact h2{
    text-align: center;
    margin-bottom: var(--bottom-margin-2);
    color: var(--primary-color);
}

.contact-container{
    max-width: 40.75rem;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px var(--secondary-shadow);
    background-color: var(--card-bg);
}

.contact-form label{
    line-height: 2.5em;
    font-weight: var(--bold-font);
    color: var(--primary-color);
}

.contact-form textarea{
  min-height: 6.25rem;
  font-size: 14px;
  width: 100%;
  border-radius: 5px;
  border: none;
  border: 2px outset var(--primary-color);
  outline: none;
  background-color: var(--bg-color);
  color: var(--primary-color);
}

.contact-form input{
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
  border: none;
  border: 2px outset var(--primary-color);
  font-size: 0.875rem;
  outline: none;
  background-color: var(--bg-color);
  color: var(--primary-color);
}

.input-field::placeholder {
  padding: 0.5rem;
  color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1rem;
  font-weight: var(--bold-font);
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.scroll-up {
  position: fixed;
  right: 0.5%;
  bottom: 3%;
  cursor: pointer;
}

.up-arrow {
  font-size: 3rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.scroll-up:hover .up-arrow {
  transform: translateY(-5px);
}

footer {
  background-color: var(--bg-color);
  padding: 1.25rem;
  text-align: center;
  margin: 2rem 0 0;
}

@media screen and (max-width: 720px) {
  /*changes reflects on screen with a width of 720px and below*/
  nav {
    padding: 1.5rem 1rem;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    display: flex; /* Kept flex, but hidden via height */
    gap: 1rem;
    margin: 0;
    padding: 0;
  }

  nav ul.show {
    max-height: 300px; /* Sufficient height to show all items */
    padding: 1rem 0;
  }

  .burger-menu {
    display: block;
  }
} 