/* General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0f0f0f;
  color: #e0e0e0;
  line-height: 1.6;
}

a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}
a:hover {
  color: #bbb;
}

section {
  padding: 5rem 10%;
}

/* Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 10%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}
.logo span {
  color: #999;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 10%;
}

.hero-content {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero h1 span {
  color: #bbb;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 500;
  transition: 0.3s ease;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-img {
  flex: 0.8;
  min-width: 220px;
}
.hero-img img {
  width: 260px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}
.hero-img img:hover {
  transform: scale(1.05);
}

/* Glass Section Base */
.section {
  margin-top: 5rem;
  text-align: center;
}
.section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.about {
  text-align: center;
  padding: 4rem 2rem;
}

.about-card {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.about-card strong {
  color: #fff;
}

.about-card em {
  color: #aaa;
  font-style: italic;
}


.skills {
  text-align: center;
  padding: 4rem 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: 900px;   /* limits overall width */
  padding: 0 1rem;    /* adds breathing room on small screens */
}


.skill-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, background 0.3s ease;
}

.skill-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.skill-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
}

/* Experience */
.timeline-item {
  max-width: 700px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
}
.timeline-item h3 {
  margin-bottom: 0.5rem;
}
.timeline-item span {
  color: #888;
  font-size: 0.9rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
  transition: 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}
.project-card h3 {
  margin-bottom: 0.7rem;
  color: #fff;
}
.project-card p {
  color: #aaa;
  font-size: 0.95rem;
}

/* Contact */
.contact-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.contact-links a {
  font-size: 1.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem 0.9rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}
.contact-links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #777;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}
.contact {
  text-align: center;
  padding: 4rem 2rem;
}

.contact-intro {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  width: 120px;
}

.contact-card img {
  width: 40px;
  height: 40px;
  filter: grayscale(100%) brightness(0.9);
  transition: transform 0.3s, filter 0.3s;
}

.contact-card span {
  font-size: 1rem;
  color: #eee;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}

.contact-card:hover img {
  filter: brightness(1.2);
  transform: scale(1.1);
}
