/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #f5f5f5;
  background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
  padding: 0;
  margin: 0;
}

/* === Global Layout === */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

h1, h2, h3 {
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 3rem;
  color: #4dd0e1; /* Accent cyan */
}

h2 {
  font-size: 2rem;
  color: #ffffff;
}

p {
  margin-bottom: 1rem;
  max-width: 700px;
}

/* === Header / Nav === */
header {
  background: #121212;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: #f5f5f5;
  margin-left: 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #4dd0e1;
}

/* === Hero / About === */
.hero {
  text-align: center;
  padding: 6rem 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #cccccc;
}

/* === Projects Section === */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  color: #4dd0e1;
}

.project-card p {
  font-size: 0.95rem;
  color: #dddddd;
}

.project-card a {
  display: inline-block;
  margin-top: 0.8rem;
  color: #ffffff;
  background: #4dd0e1;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.project-card a:hover {
  background: #26c6da;
}

/* Contact Links */
.contact ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  justify-content: center; /* centers horizontally */
  gap: 1rem; /* space between items */
}

.contact li {
  margin: 0; /* reset */
}

.contact a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: #1a1a1a;
  color: #4dd0e1;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact a:hover {
  background: #4dd0e1;
  color: #121212;
}


/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #f0f0f0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #1e1e1e;
  color: #fff;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form button {
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 6px;
  background-color: #00bcd4;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #0097a7;
}

/* === Footer === */
footer {
  background: #121212;
  text-align: center;
  padding: 1.5rem;
  color: #777;
  font-size: 0.85rem;
}


/* Hero Buttons */
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  background: #4dd0e1;
  color: #121212;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #26c6da;
}

.btn-outline {
  background: transparent;
  border: 2px solid #4dd0e1;
  color: #4dd0e1;
}

.btn-outline:hover {
  background: #4dd0e1;
  color: #121212;
}

/* About Preview */
.about-preview {
  text-align: center;
}

.about-preview p {
  margin: 1rem auto 2rem;
  color: #cccccc;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.skills-grid span {
  background: #1a1a1a;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  color: #f5f5f5;
  transition: background 0.3s ease;
}

.skills-grid span:hover {
  background: #4dd0e1;
  color: #121212;
}

/* Contact CTA */
.contact-cta {
  text-align: center;
  background: #1a1a1a;
  padding: 3rem 2rem;
  border-radius: 12px;
}

.contact-cta h2 {
  color: #4dd0e1;
  margin-bottom: 1rem;
}

.contact-cta p {
  color: #cccccc;
  margin-bottom: 1.5rem;
}
