:root {
   --bg-color: #121212;
  --text-color: #eee;
  --header-bg: #1e1e1e;
  --accent-color: #00FFFF;
   --typing-color: #00FFFF;
  --profile-shadow: 0 0 40px 8px rgba(0, 255, 255, 0.452);
}

.light-mode {
 --bg-color: #f0f0f0;
  --text-color: #222;
  --accent-color: #6c63ff;
  --header-bg: #fff;
  --typing-color: #0077FF;
  --profile-shadow: 0  0 40px 8px rgba(76, 79, 255, 0.63);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.header {
  background: var(--header-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem;
}

.navbar a:hover {
  color: var(--accent-color);
}

#toggle-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-color);
}

section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}


section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 2.2rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, var(--accent-color) 30%, #fff0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

section h2::after {
  content: "";
  display: block;
  margin: 0.7rem auto 0 auto;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-color), #00fff080 80%);
  opacity: 0.7;
}

.home {
  text-align: center;
}

.home h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.home h1 .typing {
  margin-left: 12px; /* Add space between "Hello, I am" and typing text */
}



.typing {
  color: var(--typing-color);
  transition: color 0.3s;
  display: inline-block;
  width: 170px;        
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: bottom;
  text-align: left;
  transform: translateX(-8px);
}

.home h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin-top: 1rem;
  margin-bottom: 2rem;
  border: var(--profile-shadow); ;
  box-shadow: var(--profile-shadow);
  align-content: flex-start;
  
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.about-content {
  display: flex;
  align-items: center;
  background: rgba(0,255,255,0.07);
  border-radius: 18px;
  box-shadow: 0 4px 32px #00fff033;
  padding: 2.2rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  gap: 2rem;
  transition: box-shadow 0.3s;
}

.about-content:hover {
  box-shadow: 0 8px 40px #00fff066;
}


.about-text {
  font-size: 1.15rem;
  color: var(--text-color);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.about-highlight {
  display: block;
  width: 100%;
  text-align: center;
  margin: 2rem auto 0 auto;
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px #00fff0, 0 0 16px #00fff0;
  font-size: 1.15rem;
}

@media (max-width: 700px) {
  .about-content {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem 0.7rem;
  }
  .about-icon span {
    font-size: 2.2rem;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  text-align: center;
}

.skills-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 2rem;
}

.skills-box {
  background: var(--header-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,255,255,0.08);
  padding: 2rem 2.2rem;
  min-width: 240px;
  flex: 1 1 260px;
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  border: 1.5px solid #00ffff33;
}

.skills-box:hover {
  border-color: #00FFFF;
}

.skills-box h3 {
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-align: center;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  font-size: 1.08rem;
  background: rgba(0,255,255,0.07);
  margin-bottom: 0.8rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,255,255,0.04);
}

.skills-list li:hover {
  background: #00FFFF;
  color: #222;
  transform: scale(1.05) translateX(6px);
}

.skills-list li span {
  font-size: 1.2rem;
  display: inline-block;
  transition: transform 0.3s;
}

.skills-list li:hover span {
  transform: rotate(-12deg) scale(1.2);
}


@media (max-width: 800px) {
  .skills-flex {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }
  .skills-box {
    min-width: unset;
    width: 100%;
  }
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--header-bg);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.project-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-color);
  text-decoration: underline;
}


.project-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 1rem;
  background: #222;
  display: block;
}

.project-btn {
  background: #00FFFF;
  color: #222;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.7rem;
}

.project-btn:hover {
  background: #222;
  color: #00FFFF;
  border: 1px solid #00FFFF;
}


/* --- Contact Section --- */
.contact-flex {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-intro {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.13rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background: rgba(0,255,255,0.06);
  border-radius: 12px;
  padding: 1.2rem 0.7rem;
  box-shadow: 0 2px 16px #00fff033;
}

.social-icons {
  padding: 0;
  list-style: none;
  margin: 1em 0 0 0;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.social-icons li {
  display: inline-block;
}

.social-icons a {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00fff0 60%, #6c63ff 100%);
  box-shadow: 0 0 12px #00fff055;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
  text-decoration: none; /* Remove underline */
}

.social-icons a:visited,
.social-icons a:active,
.social-icons a:focus {
  text-decoration: none; /* Remove underline on all states */
}

.social-icons i {
  color: #222;
  font-size: 1.5rem;
  transition: color 0.2s;
}

.social-icons a:hover {
  transform: scale(1.22);
  box-shadow: 0 0 32px #00fff0cc;
}

.social-icons a:hover i {
  color: #fff;
}

.contact-form {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 400px;
  background: rgba(0,255,255,0.04);
  border-radius: 14px;
  box-shadow: 0 2px 16px #00fff033;
  padding: 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--header-bg);
  color: var(--text-color);
  font-size: 1rem;
  resize: none;
}

.contact-form button {
  padding: 0.75rem;
  border: none;
  background: var(--accent-color);
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.2s, color 0.2s;
}

.contact-form button:hover {
  background: #524eff;
  color: #fff;
}

.contact-message {
  display: none;
  margin: 1.2rem auto 0 auto;
  padding: 1rem 1.5rem;
  max-width: 400px;
  border-radius: 10px;
  background: linear-gradient(90deg, #00fff0 0%, #6c63ff 100%);
  color: #222;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 24px #00fff055;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .contact-info, .contact-form {
    max-width: 100%;
    align-items: center;
  }
}

.footer {
  text-align: center;
  padding: 1rem;
  background: var(--header-bg);
  color: var(--text-color);
  border-top: 0.8px solid #ccc;
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
  }
}



