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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f172a;
  color: #f1f5f9;
  line-height: 1.6;
}

header {
  background: #1e293b;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 40px;
  font-size: 1.2rem;
}

nav a {
  text-decoration: none;
  color: #f1f5f9;
  font-weight: 600;
  transition: color 0.3s;
}

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

section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  animation: fadeIn 1s ease-in-out;
}


.hero {
  text-align: left;
  padding-top: 100px;
  position: relative;

  
}
.image{
  text-align: right;
  margin-top: -305px;
  margin-right: 150px;

}

.hero h1 {
  font-size: 3em;
  color: #38bdf8;
}

.hero p {
  font-size: 1.2em;
  margin-top: 10px;
  color: #cbd5e1;
}

h2 {
  color: #38bdf8;
  margin-bottom: 20px;
  text-align: center;
  font-size: 2rem;
}


.skills ul {
  display: flex;
  flex-wrap: wrap;
  row-gap: 40px;
  gap: 20px;
  justify-content: center;
}

.skills li {
  background: #1e293b;
  padding: 10px 16px;
  border-radius: 20px;
  list-style: none;
  color: #f1f5f9;
  border: 1px solid #38bdf8;

}
.projects {
  padding: 50px 20px;
  text-align: center;
}


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

.project-card {
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 2px solid #334155;
}

.project-card h3 {
  color: #38bdf8;
  margin: 10px 0;
}

.project-card p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  background: #ef4444;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background: #dc2626;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card);
  color: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-2);
  outline: none;
  box-shadow: 0 0 6px var(--accent-2);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
contact-form button.btn {
  margin-top: 10px;
  background: var(--accent-2);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.contact-form button.btn:hover {
  transform: translateY(-2px);
}

.contact-info a {
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.3s;
  margin-top: 20px;
}
.contact-info{
  text-align:center;
  gap:100px;
  display:flex;
  justify-content:center;
}

.contact-info a:hover {
  color: #facc15;
  transform: translateY(-2px);
}

footer {
  text-align: center;
  padding: 20px;
  background: #1e293b;
  font-size: 0.9em;
  color: #cbd5e1;
  margin-top: -30px;
}
.footer-margin{
  margin-top: 220px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #38bdf8;
  color: #0f172a;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;

}

.btn:hover {
  background-color: #0ea5e9;
  transform: translateY(-1px);

}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width:768px) {
 .image{
  display: none; 
}
.hero{
   text-align: center;

}
.projects-grid{
   margin:auto;
}
nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
}

.footer-margin{
  margin-top: 320px;
}
}
