:root {
  --bg: #0f172a;
  --card: #111827;
  --accent: #38bdf8;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: linear-gradient(180deg, #020617, #0f172a);
  color: var(--text);
  line-height: 1.6;
}

header {
  padding: 4rem 1.5rem;
  text-align: center;
  background: radial-gradient(circle at top, #1e293b, #020617);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

header p {
  color: var(--muted);
  font-size: 1.1rem;
}

nav {
  margin-top: 1.5rem;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.75rem;
  font-weight: 500;
}

/* Resume download button */
/* Resume button now behaves like social buttons in nav */
.resume-btn {
  background-color: var(--accent);
  color: #020617;
  display: inline-flex;       /* inline with nav links */
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;    /* smaller than social buttons to fit nav */
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;         /* smaller text */
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resume-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.resume-btn:hover {
  background-color: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(56,189,248,0.2);
}


section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* About section image layout */
.about-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.5);
}

.image-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(56,189,248,0.2);
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.skill {
  background: #020617;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #1e293b;
  font-size: 0.95rem;
}


/* Social media buttons */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  text-decoration: none;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #020617;
  color: var(--text);
  border: 1px solid #1e293b;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.25);
  border-color: var(--accent);
}

/* Platform accent colors */
.social-btn.linkedin:hover {
  color: #0a66c2;
}

.social-btn.email:hover {
  color: var(--accent);
}

.social-btn.github:hover {
  color: #ffffff;
}

.contact-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0077b5;
  outline: none;
}

.contact-btn {
  padding: 14px;
  background: linear-gradient(90deg, #00ffff, #0077b5);
  color: #121212;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}


.contact-btn:hover {
  background: linear-gradient(90deg, #0077b5, #00ffff);
  transform: translateY(-2px);
}


.form-response {
  margin-top: 10px;
  font-weight: 600;
  color: #00ff99; /* green for success */
}

.contact-form {
  margin-top: 20px;
  width: 100%;
  max-width: 500px;   /* prevents it from being too wide */
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #1e1e1e; /* dark cyber background */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  color: #fff;  /* force left alignment */
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #00ffff; /* cyan labels for cyber look */
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #00ffff;
  border-radius: 8px;
  font-size: 14px;
  background-color: #121212;
  color: #fff;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  outline: none;
}


#contact .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* THIS moves everything left */
}

.email-section {
  margin-top: 25px;
  display: flex;
}

.social-btn.email {
  background-color: #2d2d2d;  /* sleek dark tone */
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;             /* same as other social buttons */
  padding: 0.75rem 1.25rem; 
  border-radius: 12px;      /* same as other social buttons */
}

.social-btn.email:hover {
  background-color: #1a1a1a;
}

.email-display {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  word-break: break-all; /* prevents overflow on mobile */
}


button {
  background: var(--accent);
  color: #020617;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  border-top: 1px solid #1e293b;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  .skills {
    grid-template-columns: 1fr;
  }
  section {
    margin: 2rem auto;
    padding: 0 1rem;
  }
  .card {
    padding: 1rem;
  }
}




