* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  font-family:'Poppins', sans-serif;
  background:#020617;
  color:#fff;
  scroll-behavior:smooth;
}

header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 60px;
  position:fixed;
  width:100%;
  z-index:1000;
  background:rgba(2,6,23,0.8);
  backdrop-filter:blur(10px);
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #e2e8f0; /* softer white */
  font-size: 1.2rem;   /* 🔥 increased size */
  font-weight: 500;    /* 🔥 slightly bold */
  letter-spacing: 0.5px;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  transition: 0.3s;
}

nav a:hover {
  color: #38bdf8;
}

nav a:hover::after {
  width: 100%;
}

section {
  padding:100px 60px;
}

.logo {
  background: #38bdf8;
  color: #000;
  padding: 5px 10px;
  border-radius: 8px;
  margin-right: 5px;
}

.hero {
  height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px; 
  width: 100%;
  max-width: 1200px; 
  margin: auto;
}



.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 3.2rem;
  line-height: 1.3;
}

.hero-text {
  max-width: 550px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 360px;   /* increased */
  height: 360px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #38bdf8;
  box-shadow: 0 0 40px rgba(56,189,248,0.6);
  transition: 0.4s;
}

.hero-image img:hover {
  transform: scale(1.05);
}

.hero h2 {
  font-size:3.5rem;
}

.intro {
  color: #ffffff;
}

.name {
  color: #38bdf8;
}

.typing {
  margin-top: 15px;
  color: #94a3b8;
  font-size: 2rem;   /* 🔥 increased size */
  font-weight: 700;  /* 🔥 bold */
  letter-spacing: 1px; /* optional - looks cleaner */
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* keeps text left aligned */
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 25px;
  border-radius: 10px;
  background: #38bdf8;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* Contact button style */
.btn-outline {
  background: transparent;
  border: 2px solid #38bdf8;
  color: #38bdf8;
}

.btn-outline:hover {
  background: #38bdf8;
  color: #000;
}

.section-title {
  font-size:2rem;
  margin-bottom:30px;
  color:#38bdf8;
}

.skills {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.skill {
  padding:8px 15px;
  background:#0f172a;
  border-radius:20px;
  border:1px solid #38bdf8;
}

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

.card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 15px;
  padding: 22px;

  transition: 0.4s;
  cursor: pointer;
}

/* TITLE */
.card h3 {
  font-size: 1.25rem;   /* not too big */
  font-weight: 600;
  margin-bottom: 10px;
  color: #e2e8f0;       /* softer white */
}

/* DESCRIPTION */
.card p {
  font-size: 0.95rem;   /* smaller text */
  line-height: 1.6;     /* spacing between lines */
  color: #94a3b8;       /* light grey */
}
.card:hover {
  transform:translateY(-10px) scale(1.02);
}

.card::after {
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  background:linear-gradient(transparent, rgba(56,189,248,0.2));
  opacity:0;
  transition:0.4s;
}

.card:hover::after {
  opacity:1;
}


footer {
  text-align:center;
  padding:20px;
}

/* Modal */
.modal {
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.8);
  justify-content:center;
  align-items:center;
}

.modal-content {
  background:#0f172a;
  padding:30px;
  border-radius:15px;
  max-width:500px;
}

.modal-content h2 {
  font-size: 1.25rem;   /* same as card title */
  font-weight: 600;
  margin-bottom: 10px;
  color: #e2e8f0;
}

.modal-content p {
  font-size: 0.95rem;   /* same as card text */
  line-height: 1.6;
  color: #94a3b8;
}

.hero-social {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.hero-social a {
  font-size: 2rem;
  color: #94a3b8;
  transition: 0.3s;
}

.hero-social a:hover {
  color: #38bdf8;
  transform: scale(1.2);
}



/*about*/

.about-box {
  max-width: 1100px;
  margin: auto;

  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 15px;

  padding: 25px;
}

/* Text styling */
.about-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 15px;
  text-align: justify; /* 👈 clean alignment */
}

/* Highlight */
.about-box strong {
  color: #e2e8f0;
}



.contact {
  text-align: center;
}

.contact-line {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

/* Links */
.contact-line a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

/* Icons */
.contact-line i {
  font-size: 1.2rem;
  color: #38bdf8;
}

/* Hover */
.contact-line a:hover {
  color: #38bdf8;
}

/* Underline animation */
.contact-line a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #38bdf8;
  transition: 0.3s;
}

.contact-line a:hover::after {
  width: 100%;
}

/* Separator */
.contact-line span {
  color: #475569;
}


.name {
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: #38bdf8;
  filter: blur(120px);
  opacity: 0.2;
  top: 20%;
  left: 10%;
  z-index: -1;
}


.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  left: 0;
  top: 0;
  transition: 0.4s;
}

.btn:hover::after {
  width: 100%;
}

.card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56,189,248,0.2);

}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 0 30px rgba(56,189,248,0.3);
}

.skill {
  transition: 0.3s;
  cursor: pointer;
}

.skill:hover {
  background: #38bdf8;
  color: #000;
  transform: scale(1.1);
}


.section-title {
  position: relative;
  display: block;
  text-align: center;
  margin-bottom: 40px;
  

  font-size: 2.3rem;
  font-weight: 700;

  background: linear-gradient(90deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: "";
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
}

.section-title:hover {
  transform: scale(1.05);
  transition: 0.3s;
}


.animate-card {
  opacity: 0;
  transform: translateY(60px);
  transition: 0.6s ease;
}

.animate-card.show {
  opacity: 1;
  transform: translateY(0);
}

.view-more {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #38bdf8;

  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}

/* show on hover */
.card:hover .view-more {
  opacity: 1;
  transform: translateY(0);
}

.card {
  cursor: pointer;
}

.card:active {
  transform: scale(0.98);
}



.skills-container {
  max-width: 1000px;
  margin: auto;
}

.skill-category {
  margin-bottom: 30px;
}

/* CATEGORY TITLE */
.skill-category h3 {
  color: #38bdf8;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* SKILLS GRID */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* SKILL TAG */
.skill {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 25px;

  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56,189,248,0.2);

  font-size: 0.9rem;
  color: #cbd5f5;

  transition: 0.3s;
}

/* ICON */
.skill i {
  color: #38bdf8;
  text-align: center;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center; /* 🔥 THIS IS THE MAIN FIX */
}

/* HOVER */
.skill:hover {
  background: #38bdf8;
  color: #000;
  transform: translateY(-5px) scale(1.05);
}

.skill:hover i {
  color: #000;
}

.skill-category {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s;
}

.skill-category.show {
  opacity: 1;
  transform: translateY(0);
}

.skills-container {
  max-width: 900px;
  margin: auto;
}

.skill-category {
  margin-bottom: 35px;
  text-align: center;
}

.skill-category h3 {
  color: #38bdf8;
  margin-bottom: 15px;
  font-size: 1.3rem;
  text-align: center;
  letter-spacing: 1px;
}

.skill-category h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #38bdf8;
  margin: 6px auto 0;
}