/* Global */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #111;
    color: #eee;
    scroll-behavior: smooth;
}

/* Header / Nav */
header {
    position: fixed;
    width: 100%;
    background: #222;
    padding: 1rem 0;
    z-index: 1000;
}

header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0 1rem;
}

header nav ul li a {
    color: #eee;
    text-decoration: none;
    transition: 0.3s;
}

header nav ul li a:hover {
    color: #00bcd4;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #111, #222);
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
}

.hero p {
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Sections */
section {
    padding: 100px 20px;
    min-height: 100vh;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.card {
    background: #222;
    padding: 1.5rem;
    width: 250px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card a {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #00bcd4;
}

/* Resume Button */
.resume-btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #fff;
    background: #00bcd4;
    border-radius: 5px;
    transition: 0.3s;
}

.resume-btn:hover {
    background: #0097a7;
}

/* Socials */
.socials {
    text-align: center;
    padding: 1rem 0;
}

.socials li {
    display: inline-block;
    margin: 0 1rem;
}

.socials li a {
    color: #00bcd4;
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #222;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

form label {
    font-weight: bold;
}

form input,
form textarea {
    padding: 0.8rem;
    border-radius: 5px;
    border: none;
    background: #333;
    color: #eee;
}

form input:focus,
form textarea:focus {
    outline: 2px solid #00bcd4;
}

form button {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background: #00bcd4;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #0097a7;
}

/* Featured Section */
#featured {
    padding: 80px 20px;
    text-align: center;
    background: #111;
}

/* Card */
.featured-card {
    position: relative;
    max-width: 750px;
    margin: auto;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 15px;
    transition: 0.3s;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px #007bff;
}

/* Layout */
.featured-content {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
}

/* Image */
.featured-image img {
    width: 200px;
    border-radius: 10px;
}

/* Text */
.featured-text h3 {
    margin-top: 0;
}

.featured-text p {
    color: #ccc;
}

/* Play Button */
.play-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.play-btn:hover {
    background: #0056b3;
}

/* GitHub Icon Corner */
.github-corner {
    position: absolute;
    top: 15px;
    right: 15px;
}

.github-corner img {
    width: 30px;
    filter: invert(1);
    transition: 0.3s;
}

.github-corner img:hover {
    transform: scale(1.2);
}

#featured {
    padding: 80px 20px;
    text-align: center;
}

/* Tile container */
.project-tile {
    max-width: 320px;
    margin: auto;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
}

.project-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px #007bff;
}

/* Image */
.project-image img {
    width: 100%;
    display: block;
}

/* Info */
.project-info {
    padding: 20px;
    text-align: left;
}

.project-info h3 {
    margin-top: 0;
}

.project-info p {
    color: #ccc;
    font-size: 0.95rem;
}

/* Buttons Row */
.project-links {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* GitHub icon */
.github-link img {
    width: 28px;
    filter: invert(1);
    transition: 0.3s;
}

.github-link img:hover {
    transform: scale(1.2);
}

/* Live Button */
.live-btn {
    padding: 6px 14px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.live-btn:hover {
    background: #0056b3;
}

/* PROJECTS GRID */

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

/* CARD */

.project-card {
  background: #111;
  padding: 18px;
  border-radius: 16px;
  transition: 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  background: #181818;
}

/* IMAGE */

.project-card img {
  width: 100%;
  border-radius: 10px;
}

/* TEXT */

.project-card h3 {
  margin: 12px 0 5px;
}

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

/* BUTTONS */

.project-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.github-btn {
  width: 30px;
  height: 30px;
  filter: invert(1);
  border-radius: 8px;
  display: flex;
}

.github-btn img {
  width: 100%;
}

.github-btn img:hover {
    transform: scale(1.2);
}

.live-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 20px;
}

.project-card {
  position: relative;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.25s ease;
}

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

.project-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-info {
  padding: 15px;
}

.project-info h3 {
  margin: 0;
  font-size: 1.2rem;
}

.project-info p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #bbb;
}

.project-link {
  text-decoration: none;
  color: white;
  display: block;
}

.github-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
}

.github-icon img {
  width: 100%;
  filter: invert(1);
  opacity: 0.8;
  transition: 0.2s;
}

.github-icon img:hover {
  opacity: 1;
}
