/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f1f3f5;
  color: #222;
  padding-top: 80px;
}


/* ========== HEADER ========== */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #f1f3f5;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #202a44;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a,
.footer-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover,
.footer-nav a:hover {
  color: #4426e7;
}


/* ========== HERO SECTION ========== */
.container {
  display: flex;
  height: 100vh;
  align-items: center;
  padding: 100px 5% 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to right, #4426e7 50%, #d4f657 50%);
  color: white;
}

.left {
  flex: 1;
}

.left h1 {
  font-size: 3.5em;
  font-weight: 700;
  color: #f1f3f5;
  line-height: 1.2;
}

.left p {
  margin-top: 20px;
  font-size: 1.1em;
  color: white;
  max-width: 500px;
}

.details {
  display: flex;
  margin-top: 40px;
  gap: 40px;
  font-size: 0.9em;
  color: #f1f3f5;
  max-width: 600px;
}

.right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px white;
}

#typing-text {
  font-size: 2.5em;
  font-weight: bold;
  color: #f1f3f5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}


/* ========== SECTIONS ========== */
section {
  padding: 80px 5%;
  background-color: #f1f3f5;
  color: #333;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

section:nth-child(even) {
  background-color: #f7f7f7;
}

section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #4426e7;

}

section p {
  max-width: 700px;
  font-size: 1.1em;
}


/* ========== FOOTER ========== */
footer {
  background-color: #f1f3f5;
  padding: 40px 5% 20px;
  color: #333;
  text-align: center;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #202a44;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  justify-content: center;
  margin: 0;
}

footer p {
  margin-top: 20px;
  font-size: 0.9em;
  color: #777;
}


/* ========== BACK TO TOP BUTTON ========== */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #4426e7;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 10%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

#backToTop:hover {
  background-color: #2d19a5;
}


/* ========== LOGIN PAGE ========== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 10px;
  background-color: #f1f1f1;
}

.login-box {
  background-color: white;
  padding: 25px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 350px;
}

h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 22px;
  text-align: center;
}

label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 600;
  font-size: 14px;
  color: #444;
}

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  background-color: #fafafa;
}

.input-icon,
.input-icon-right {
  padding: 8px;
  background-color: #eee;
  color: #555;
  font-size: 14px;
}

.input-group input {
  flex: 1;
  border: none;
  padding: 10px;
  background-color: transparent;
  font-size: 14px;
  outline: none;
}

.login-btn {
  margin-top: 18px;
  width: 100%;
  padding: 10px;
  background-color: #286090;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #1e4e70;
}

.error {
  color: red;
  text-align: center;
  margin-top: 10px;
}

.back-btn {
  align-content: center;
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: #286090;
  font-weight: 500;
  transition: color 0.3s ease;
}