:root {
  --bg-color: #0d0d0d;
  /* Black/Dark background */
  --text-color: #f0f0f0;
  --accent-color: #3b82f6;
  /* Blue accent */
  --glass-bg: rgba(20, 20, 30, 0.6);
  --glass-border: rgba(59, 130, 246, 0.3);
  --card-bg: rgba(59, 130, 246, 0.1);
  --nav-bg: rgba(13, 13, 13, 0.8);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  /* Using a modern font */
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: 0.3s;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

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

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent-color);
  color: #2b2b2b;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(196, 154, 154, 0.4);
}

/* Sections */
section {
  padding: 6rem 10% 2rem;
  min-height: 100vh;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--accent-color);
}

h4 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--accent-color);
}

/* Home */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding-top: 8rem;
}

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

.home h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.profile-img-container {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin-bottom: 2rem;
  overflow: hidden;
  border: 4px solid var(--accent-color);
  background: #ccc;
  /* Placeholder */
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About */
.about-content {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  width: 300px;
  text-align: center;
  transition: 0.3s;
}

.about-card:hover {
  transform: translateY(-10px);
}

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

.skill-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 15px;
  background: var(--card-bg);
  width: 100%;
  transition: 0.3s;
}

.skill-item:hover {
  background: var(--accent-color);
  color: #2b2b2b;
}

.skill-item i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.project-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  transition: 0.3s;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.project-img {
  width: 100%;
  height: 180px;
  background: rgba(255, 255, 255, 0.1);
  /* Placeholder */
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

/* Experience */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background: var(--card-bg);
  position: relative;
  border-radius: 15px;
}

/* Contact */
.contact-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 1rem;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.contact-form ::placeholder {
  color: rgba(240, 240, 240, 0.6);
}

.social-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-color);
  font-size: 2rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    transition: 0.3s;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }
}

/* Coding Icons Styling */
.coding-icon {
  transition: 0.3s;
  /* Dark Gray default (visible on black but dark) - "Like Black" */
  filter: grayscale(100%) brightness(120%);
  opacity: 0.8;
}

.coding-icon:hover {
  transform: scale(1.1);
  opacity: 1;
  /* Blue on hover matches var(--accent-color) - "Like LinkedIn" interaction */
  filter: invert(38%) sepia(93%) saturate(1510%) hue-rotate(202deg)
    brightness(101%) contrast(96%);
}

/* Button Group */
.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.button-group .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}
