* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f172a;
  color: white;
  line-height: 1.8;
}

a {
  color: #38bdf8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.logo span {
  color: #f472b6;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #f472b6;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 5px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, #1e293b, #0f172a);
}

.cursor {
  display: inline-block;
  animation: blink 0.7s steps(1) infinite;
  color: #000;
  font-weight: bold;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}


.hero-text {
  flex: 1;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text h1 span {
  color: #38bdf8;
}

.hero-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.socials a i {
  font-size: 1.8rem;
  color: #38bdf8;
  margin-right: 1rem;
  transition: color 0.3s, transform 0.3s;
}

.socials a i:hover {
  color: #f472b6;
  transform: scale(1.2);
}


.hero-img img {
  width: 300px;
  border-radius: 50%;
  border: 4px solid #38bdf8;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  margin-top: 25px;
}

.skills {
  padding: 3rem 2rem;
  text-align: center;
}

.skills h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.skills ul {
  list-style: none;
  display: grid;
  gap: 1rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.skills ul {
  grid-template-columns: repeat(4, 1fr);
}

.skills ul li {
  background: #1e293b;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
}

.skills ul li:hover {
  background-color: #38bdf8;
  color: #0f172a;
  transform: scale(1.05);
  transition: all 0.3s ease;
  cursor: default;
} 

.contact {
  padding: 3rem 2rem;
  text-align: center;
  background: #1e293b;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  margin: 0.5rem 0;
}

.contact-links a:hover {
  background: #f472b6;
  color: white;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 10px;
  background: #0f172a;
  color: white;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form button {
  padding: 0.8rem 1.2rem;
  background: #38bdf8;
  color: #0f172a;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #f472b6;
  color: white;
}


.projects {
  padding: 3rem 2rem;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
}

.project-card {
  background: #1e293b;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.project-btn {
  padding: 0.5rem 1.2rem;
  background-color: #38bdf8;
  color: #0f172a;
  border: none;
  border-radius: 30px;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.3s;
  text-decoration: none;
}

.project-btn:hover {
  background-color: #f472b6;
  color: white;
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 1.5rem; 
  }

  .hero-text p {
    font-size: 1rem; 
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    flex-direction: column;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .skills ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .skills ul {
    grid-template-columns: 1fr;
  }
}

footer {
  padding: 1rem;
  text-align: center;
  background: #0f172a;
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 1.5rem;   
    white-space: nowrap;  
  }

  .hero-text h1 span#typed-text {
    font-size: 1.2rem;   
  }

  .hero-text p {
    font-size: 1rem;     
  }
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav-links {
    position: absolute; 
    top: 100%;           
    left: 0;
    right: 0;
    background: #1e293b; 
    flex-direction: column; 
    display: none;    
    padding:  0;     
  }

  .nav-links li {
    padding: 0.8rem 2rem; 
    text-align: left;    
  }

  .nav-links.active {
    display: flex;      
  }

  .hamburger {
    display: flex;       
  }
}
