@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

/* =========== THEME VARIABLES =========== */
:root{
  --bg: #000000;
  --text: #ffffff;
  --accent: #b74b4b;
  --muted: #aaa;
  --btn-bg: #000000;
  --btn-text: var(--accent);
  --input-bg: #111111;
  --input-text: #ffffff;
  --input-border: #444444;
  --shadow: rgba(183,75,75,0.12);
}

/* Light mode overrides */
body.light-mode{
  --bg: #ffffff;
  --text: #000000;
  --muted: #666666;
  --btn-bg: #ffffff;
  --btn-text: var(--accent);
  --input-bg: #f5f5f5;
  --input-text: #000000;
  --input-border: #cccccc;
  --shadow: rgba(183,75,75,0.08);
}

/* =========== BASE =========== */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}
html{ font-size: 62.5%; }

body{
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.28s ease, color 0.28s ease;
}

/* =========== HEADER / NAV =========== */
header{
  margin-top: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: transparent;
  filter: drop-shadow(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.logo{
  font-size: 3rem;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}
.logo:hover{ transform: scale(1.1); }

nav a{
  font-size: 1.8rem;
  color: var(--text);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}
nav a:hover,
nav a.active{
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

@media(max-width:995px){
  nav{
    position: absolute;
    display: none;
    top: 0;
    right: 0;
    width: 40%;
    border-left: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    border-bottom-left-radius: 2rem;
    padding: 1rem solid;
    background-color: #161616;
    border-top: 0.1rem solid rgba(0,0,0,0.1);
  }
  nav.active{ display: block; }
  nav a{
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }
  nav a:hover,
  nav a.active{
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid var(--accent);
  }
}

/* =========== HOME SECTION =========== */
section{ min-height: 100vh; padding: 5rem 9% 5rem; }
.home{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background-color: transparent;
}
.home .home-content h1{ font-size: 6rem; font-weight: 700; line-height: 1.3; }
span{ color: var(--accent); }
.home-content h3{ font-size: 4rem; margin-bottom: 1rem; font-weight: 700; }
.home-content p{ font-size: 1.6rem; }

/* IMAGE */
.home-img{ border-radius: 50%; }
.home-img img{
  position: relative;
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--accent);
  cursor: pointer;
  transition: transform .2s linear, box-shadow .2s linear;
}
.home-img img:hover{ transform: translateY(-6px); }

/* SOCIAL ICONS */
.social-icons a{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid var(--accent);
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.25s ease;
  color: var(--accent);
}
.social-icons a:hover{
  color: var(--bg);
  transform: scale(1.3) translateY(-5px);
  background-color: var(--accent);
  box-shadow: 0 0 25px var(--shadow);
}

/* BUTTONS */
.btn{
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: var(--btn-bg);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: var(--btn-text);
  letter-spacing: 0.3rem;
  font-weight: 600;
  border: 2px solid var(--accent);
  transition: 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover{
  transform: scale3d(1.03,1.03,1);
  background-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 25px var(--shadow);
}

/* TYPING TEXT CURSOR */
.typing-text{ font-size: 34px; font-weight: 600; min-width: 280px; }
.typing-text span{ position: relative; display:inline-block; }
/* Blinking cursor */
.typing-text span::after{
  content: "";
  background-color: var(--bg);
  position: absolute;
  width: 3px;
  height: 100%;
  border-left: 3px solid var(--accent);
  right: -3px;
  animation: cursorBlink 0.7s infinite;
}
@keyframes cursorBlink{
  0%, 50%, 100%{ border-color: var(--accent); }
  25%, 75%{ border-color: transparent; }
}

/* RESPONSIVE */
@media (max-width: 1000px){ .home{ gap: 4rem; } }
@media (max-width: 995px){
  .home{ flex-direction: column; margin: 5rem 4rem; }
  .home .home-content h3{ font-size: 2.5rem; }
  .home-content h1{ font-size: 5rem; }
  .home-img img{ width: 70vw; margin-top: 4rem; }
}

/* FORM INPUTS */
input, textarea{
  background-color: var(--input-bg);
  color: var(--input-text);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 1rem;
  width: 100%;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: 0.25s ease;
}
input:focus, textarea:focus{
  border-color: var(--accent);
  outline: none;
  background-color: var(--input-bg);
  box-shadow: 0 0 10px var(--shadow);
}

/* FOOTER */
footer{
  text-align: center;
  padding: 15px;
  font-size: 14px;
  color: var(--muted);
}

/* THEME TOGGLE BUTTON */
#theme-toggle{
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: 20px;
}

/* Light Mode Styling */
body.light-mode {
  background-color: white;
  color: black;
}
body.light-mode .logo,
body.light-mode span,
body.light-mode .social-icons a,
body.light-mode .btn {
  color: #b74b4b;
  border-color: #b74b4b;
}
body.light-mode .home-img img {
  box-shadow: 0 0 25px #b74b4b;
}
body.light-mode .btn:hover {
  background-color: #b74b4b;
  color: white;
  box-shadow: 0 0 25px #b74b4b;
}
