/* --- Basic Setup & Variables --- */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #f0f4f8;
  --accent-color: #34d399;
  --text-color: #111827;
  --light-text: #ffffff;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Lato", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--secondary-color);
  scroll-behavior: smooth;
}

/* --- Custom Cursor --- */
#cursor {
  height: 20px;
  width: 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: fixed;
  z-index: 9999;
  mix-blend-mode: difference;
  pointer-events: none;
  transition: transform 0.3s ease;
}

/* --- Navigation Bar --- */
#nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  height: 90px;
  width: 100%;
  position: fixed;
  z-index: 100;
  transition: background-color 0.4s ease, height 0.4s ease;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}
.nav-brand img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
}
.nav-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  text-decoration: none;
  color: var(--light-text);
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.github-icon {
  height: 40px;
  width: 40px;
  transition: transform 0.3s ease;
}
.github-icon:hover {
  transform: scale(1.1);
}

/* --- Main Container & Hero Section (#page1) --- */
#main {
  position: relative;
  background-color: var(--primary-color);
}
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8vw;
  color: var(--light-text);
  position: relative;
  overflow: hidden;
}
.hero-text {
  z-index: 2;
}

/* --- Hero Title Styles --- */
.hero-text .main-heading {
  font-family: var(--font-heading);
  font-size: 7vw;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-color);
  text-shadow: 0 0 15px rgba(52, 211, 153, 0.7),
    0 0 25px rgba(52, 211, 153, 0.4);
  padding-bottom: 10px;
}
.main-heading span {
  display: inline-block;
}

.hero-text h3 {
  font-size: 1.8vw;
  font-weight: 400;
  margin: 10px 0 20px;
  min-height: 3vw;
}
.hero-text p {
  font-size: 1.2vw;
  max-width: 500px;
  margin-bottom: 30px;
  min-height: 4vw;
}
.cta-button {
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--light-text);
  background-color: var(--accent-color);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 211, 153, 0.4);
  opacity: 0;
}
.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(52, 211, 153, 0.6);
}
.hero-image img {
  height: 400px;
  width: 400px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
}

/* --- Typewriter Effect Blinking Cursor --- */
.typing-effect::after {
  content: "|";
  font-weight: 200;
  color: var(--accent-color);
  animation: blink 0.7s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* --- About Section (#page2) --- */
.about-section {
  min-height: 70vh;
  width: 100%;
  padding: 100px 8vw;
  text-align: center;
  background-color: var(--secondary-color);
}
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
.about-image {
  display: flex;
  gap: 30px;
}
.about-image img {
  width: 200px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.about-section h3 {
  font-family: var(--font-heading);
  font-size: 3vw;
  max-width: 60%;
}

/* --- Features Section (#features) --- */
.features-section {
  padding: 120px 8vw;
  background-color: #fff;
  text-align: center;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 4vw;
  margin-bottom: 80px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  min-height: 350px;
}
.feature-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.feature-card h2 {
  position: absolute;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(30, 58, 138, 0.9);
  color: var(--light-text);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-align: center;
  padding: 20px;
  transition: background-color 0.5s ease;
}
.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 0.5s ease;
}
.feature-card:hover h2 {
  background-color: transparent;
}
.feature-card:hover img {
  transform: scale(1);
}

/* --- Footer --- */
footer {
  padding: 40px 8vw;
  background-color: var(--primary-color);
  color: var(--light-text);
  text-align: center;
}
.icon {
  border-radius: 60%;
}