/* Design System */
:root {
  --primary: #007bff;
  --primary-light: #3fa2ff;
  --secondary: #00a8a8;

  --bg-dark: #050608;
  --bg-card: rgba(34, 36, 40, 0.95);

  --text-light: #f5f5f5;
  --text-muted: #b0b0b0;

  --blur: 14px;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.65);
}

/* General Styles */
* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-light);
  background-color: var(--bg-dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin: 0 auto;
  display: inline-block;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

/* Navigation Bar */
nav {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(var(--blur));
  color: var(--text-light);
  padding: 14px 0;
  max-width: 100vw;
  z-index: 5;
}

nav .logo {
  font-size: 1.1rem;
  font-weight: 700;
}

nav .nav-links {
  margin: 0.2em auto;
  list-style: none;
  display: flex;
  gap: 40px;
  justify-content: flex-end;
  align-items: center;
  font-size: 1rem;
}

nav .nav-links a {
  position: relative;
  color: var(--text-light);
  padding-bottom: 4px;
}

nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

nav .nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  nav .nav-links {
    gap: 20px;
    font-size: 0.9rem;
  }
}

/* Hero Section */
.hero {
  min-height: 70vh;
  background: radial-gradient(circle at top, rgba(0, 168, 168, 0.18), transparent 55%),
    radial-gradient(circle at bottom, rgba(0, 123, 255, 0.12), transparent 60%),
    var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero span {
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .btn {
  display: inline-block;
  background: darkgrey;
  color: #333;
  padding: 10px 20px;
  margin-top: 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: #f39c12;
  color: #333;
}

.hero ul {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 1.5rem;
}

.hero ul li {
  cursor: pointer;
  color: darkgrey;
  transition: color 0.3s ease;
}

.hero ul li:hover {
  color: rgb(135, 135, 135);
}

/* About Section */
.about {
  padding: 80px 0 40px 0;
  background-color: var(--bg-dark);
  text-align: center;
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  animation: scaleInOut 2s ease-in-out infinite alternate;
  color: var(--primary-light);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.profile-img {
  width: 100%;
  max-width: 300px;
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(0, 168, 168, 0.4);
}

.about-text {
  text-align: left;
  color: var(--text-light);
  flex: 2;
  max-width: 600px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.qualifications {
  margin-top: 20px;
}

.qualifications h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.qualifications ul {
  list-style: none;
  padding: 0;
}

.qualifications li {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qualifications i {
  color: #007bff;

  @media (max-width: 768px) {
    .about-content {
      flex-direction: column;
      text-align: center;
    }

    .qualifications ul {
      text-align: left;
    }
  }
}

/* Skills Section */
.skills {
  padding: 60px 0 90px 0;
  text-align: center;
  background-color: var(--bg-dark);
}

.skills h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  animation: scaleInOut 2s ease-in-out infinite alternate;
  color: var(--primary-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}

.skill {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 168, 168, 0.35);
  color: var(--text-light);
  font-size: 0.95rem;
}

.skill:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}
.skill animate__animated {
  justify-content: center;
  display: flex;
  color: #f4f4f4;
}

/* Projects Section */
/* Projects Section */
.projects {
  padding: 100px 20px;
  text-align: center;
  background-color: var(--bg-dark);
}
.project-image{
  margin-top: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 70px;
  color: #00a8a8;
  text-shadow: 0 0 10px rgba(0, 168, 168, 0.5);
  animation: scaleInOut 2s ease-in-out infinite alternate;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 60px 70px;
  align-items: stretch;
  justify-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Card */
.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 123, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 220px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.project-card:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  border-color: rgba(0, 123, 255, 0.8);
}


.project-content {
  padding: 35px;
  flex: 1;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color:orange;
}

.project-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 15px;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* Project Links */
.project-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.project-links .btn {
  flex: 1;
  text-align: center;
  color:whitesmoke;
  background-color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 999px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.project-links .btn:hover {
  background-color: #0056b3;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
  transform: translateY(-1px);
}
.project-links .btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  box-shadow: none;
}

.project-links .btn-outline:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 168, 168, 0.6);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  text-align: center;
  background-color: var(--bg-dark);
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--primary-light);
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-muted);
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.contact button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 24px;
}

.contact button:hover {
  background-color: #0056b3;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.7);
  transform: translateY(-1px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  color: var(--text-muted);
}

.contact-item i {
  color: var(--secondary);
  font-size: 22px;
  text-shadow: 0 0 10px rgba(0, 168, 168, 0.7);
}

.contact-item p {
  text-decoration:wavy;
  color: cadetblue;
  transition: 0.3s;
  gap: 5px;
  margin: 0px;
}

.contact-item p:hover {
  color: var(--primary-light);
}
/* Footer */
footer {
  background-color: #111317;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

/* DEMO-SPECIFIC STYLES */
:has(>.typewriter) {
  font-family: monospace;
}

.typewriter {
  font-family: monospace;
  margin: 0 auto;
  border-right: 0.3rem solid #f39c12;
  animation: cursor-blink 900ms infinite;
}

/* The typing effect */
@keyframes cursor-blink {
  0%,
  100% {
    border-right-color: #f39c12;
  }
  50% {
    border-right-color: transparent;
  }
}

@keyframes scaleInOut {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle motion hooks (apply via classes in HTML if desired) */
.fade-in-up {
  animation: fadeUp 0.6s ease-out both;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .about h2,
  .skills h2,
  .projects h2,
  .contact h2 {
    font-size: 2rem;
  }

  .projects {
    padding: 70px 16px;
  }

  nav .nav-links {
    gap: 16px;
  }
}
