/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #0d1424;
  color: white;
}

/* Header */
header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0f172a;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

header h2 {
  font-size: 1.5rem;
  color: white;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
  transition: color 0.3s;
}

nav a:hover {
  color: #3b82f6;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 140px 60px 60px;
}

.left {
  max-width: 500px;
}

.left h1 {
  font-size: 3rem;
  line-height: 1.2;
}

.left h1 span {
  color: #ff7a45;
}

.left p {
  margin-top: 20px;
  color: #aaa;
  font-size: 16px;
}

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


.hire {
  background: transparent;
  text-decoration: none;
  border: 1px solid #555;
  padding: 12px 25px;
  border-radius: 50px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.hire:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.work {
  background: transparent;
  text-decoration: none;
  border: 1px solid #555;
  padding: 12px 25px;
  border-radius: 50px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.work:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

/* Right hero image */
.right img {
  width: 320px;
  border-radius: 20px;
  transition: transform 0.3s;
}

.right img:hover {
  transform: scale(1.05);
}

/* Sections */
section {
  padding: 80px 20px;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #f8fafc;
}

/* About Section */
#about pre {
  white-space: pre-wrap;
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
  padding: 0 20px;
}

.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(59,130,246,0.5);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  text-align: center;
  color: #f8fafc;
}

.card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 12px;
  object-position: center;
  transition: transform 0.3s;
}

.card img:hover {
  transform: scale(1.05);
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #cbd5e1;
  text-align: center;
}

/* Tech stack badges */
.card .tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.card .tech-stack span {
  background: #3b82f6;
  color: white;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
}

/* Links */
.card a {
  text-decoration: none;
  color: #3b82f6;
  margin: 0 5px;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.card a:hover {
  color: #60a5fa;
}

/* Contact Form */
.contact {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #1e293b;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  background-color: #334155;
  color: white;
  font-size: 1rem;
  transition: 0.3s;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #94a3b8;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  background-color: #3b4257;
  box-shadow: 0 0 0 2px #3b82f6;
}

.contact textarea {
  min-height: 120px;
  resize: vertical;
}

.contact .btn {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background-color: #3b82f6;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.contact .btn:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #020617;
  color: #94a3b8;
}