/* ============================== */
/* ===== 1. Global & Reset ===== */
/* ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}
a {
  color: #38bdf8;
  text-decoration: none;
}
ul {
  list-style: none; /* Globally remove list style for clean lists */
}
/* ============================== */
/* ===== 2. Utility Classes ===== */
/* ============================== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #020617;
  padding: 25px;
  border-radius: 14px;
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
}
.key-highlight {
  color: #38bdf8;
  font-weight: 600;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  transition: 0.3s;
}
.btn:hover {
  transform: translateY(-3px);
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #38bdf8;
}
.btn-outline {
  display: inline-block;
  background: #0f172a;
  color: #38bdf8;
  border-radius: 30px;
  border: 1px solid #38bdf8;
  padding: 12px 28px;
  margin-left: 1%;
  font-weight: 600;
  transition: 0.3s;
}
.btn-outline:hover {
  transform: translateY(-3px);
  background: #38bdf8;
  color: #0f172a;
}
.btn-sm {
  padding: 8px 15px;
  font-size: 14px;
  margin-top: 15px;
}

/* ============================== */
/* ===== 3. Header & Navbar ===== */
/* ============================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}
.scrolled {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  max-width: 1200px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.scrolled .nav {
  padding: 20px 20px;
}
.nav {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 1px;
}
.nav ul {
  display: flex;
  gap: 25px;
}
.nav ul li a {
  color: #e5e7eb;
  font-weight: 500;
  position: relative;
}
.nav ul li a::after {
  content: "";
  width: 0;
  height: 2px;
  background: #38bdf8;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}
.nav ul li a:hover::after {
  width: 100%;
}

/* ============================== */
/* ===== 4. Section Headings ===== */
/* ============================== */
section {
  margin-bottom: 70px;
  animation: fadeUp 1s ease forwards;
}
h2 {
  font-size: 28px;
  margin-bottom: 20px;
  position: relative;
  display: table;
  margin-left: auto;
  margin-right: auto;
  animation: heading-fade 1s ease-out 0.2s forwards;
  opacity: 0;
  padding-bottom: 10px;
}
h2::after {
  content: "";
  width: 100%;
  height: 3px;
  background: #38bdf8;
  position: absolute;
  left: 0;
  bottom: 0;
  transform: none;
}

/* ============================== */
/* ===== 5. Hero Section ===== */
/* ============================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h6 {
  font-size: 18px;
  font-weight: 500;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  display: block;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
}
.hero span {
  color: #38bdf8;
}
.hero p {
  margin: 15px 0 25px;
  color: #cbd5f5;
}
.profile-img img {
  padding: 0% 15%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================== */
/* ===== 6. About Section ===== */
/* ============================== */
.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.about-left {
  flex: 0 0 350px;
  text-align: center;
}
.about-right {
  flex: 1;
}
.about-right ul {
  margin-top: 5%;
  padding-left: 5%;
  list-style: none; /* Use custom bullet style if needed */
}
.about-right ul li {
  margin-bottom: 8px;
  color: #cbd5f5; /* Muted text for soft skills */
  position: relative;
  padding-left: 15px;
}
/* Simple dot bullet for soft skills */
.about-right ul li::before {
  content: "•";
  color: #38bdf8;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.about-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================== */
/* ===== 7. Experience Section ===== */
/* ============================== */
#experience .card p {
  margin-top: 4%;
  color: #cbd5f5; /* Muted text for descriptions */
  font-weight: 400;
}
#experience .card p strong {
  color: #e5e7eb; /* Company name slightly brighter */
}
/* Dates/Info below company name */
#experience .card p:nth-child(3) {
  color: #94a3b8; /* Dates can be slightly darker */
  margin-top: 0;
}

/* ============================== */
/* ===== 8. Education Section ===== */
/* ============================== */
.full-width-card {
  grid-column: 1 / -1;
}
.education-title {
  font-size: 20px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 5px;
  margin-top: 20px;
}
.education-subtitle {
  font-size: 16px;
  color: #cbd5f5;
  margin-bottom: 5px;
}
.education-detail {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 15px;
}
.education-divider {
  border: 0;
  height: 1px;
  background: #1e293b;
  margin: 20px 0;
}

/* ============================== */
/* ===== 9. Skills Section ===== */
/* ============================== */
.skill-list {
  padding-left: 0;
  margin-top: 15px;
}
.skill-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  color: #cbd5f5;
}
.skill-list li::before {
  content: "\2713"; /* Checkmark */
  color: #38bdf8;
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ============================== */
/* ===== 10. Projects Section ===== */
/* ============================== */
.project-card h3 {
  color: #38bdf8;
  margin-bottom: 5px;
}
.project-tech {
  font-size: 14px;
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 10px !important;
}

/* ============================== */
/* ===== 11. Contact Section (Form + Links) ===== */
/* ============================== */
.contact-card-wrapper {
  padding: 40px;
  /* Card background is inherited from .card */
}
.contact-wrapper {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.contact-form-container {
  flex: 1.5; /* Form takes more space */
  background: none;
  padding: 0;
}
.contact-form-container h3 {
  font-size: 22px;
  color: #38bdf8; /* Highlighted title for Form */
  margin-bottom: 25px;
}

/* Form Input Styles */
.input-group {
  margin-bottom: 20px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #1e293b;
  background: #0f172a; /* Darker input background for contrast */
  color: #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #38bdf8;
  outline: none;
}

/* Links Column Styles */
.contact-links-container {
  flex: 1; /* Links take less space */
  padding-top: 15px;
}
.contact-links-container h3 {
  font-size: 22px;
  color: #e5e7eb;
  margin-bottom: 25px;
}
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}
.contact-icon {
  font-size: 24px;
  color: #38bdf8;
  margin-right: 15px;
  flex-shrink: 0;
}
.contact-detail-item p {
  color: #94a3b8; /* Label (e.g., Email Address) */
  font-size: 14px;
  margin: 0;
  line-height: 1.2;
}
.contact-link,
.contact-location-text {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #cbd5f5; /* Actual detail/link text */
  text-decoration: none;
  transition: color 0.3s;
}
.contact-link:hover {
  color: #38bdf8;
}

/* ============================== */
/* ===== 12. Footer ===== */
/* ============================== */
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 14px;
}

/* ============================== */
/* ===== 13. Animations ===== */
/* ============================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heading-fade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================== */
/* ===== 14. Responsive Layouts ===== */
/* ============================== */
@media (max-width: 900px) {
  /* General Layouts */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-content {
    flex-direction: column;
    gap: 20px;
  }
  .about-left {
    flex: auto;
    width: 100%;
    margin-bottom: 20px;
  }

  /* Contact Section Responsive */
  .contact-wrapper {
    flex-direction: column;
  }
  .contact-links-container {
    width: 100%;
    margin-top: 20px;
  }
}

/* Tablet/Large Phone adjustments */
@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    padding-top: 20px;
  }
  .nav ul {
    margin-top: 10px;
    gap: 15px;
  }
  .scrolled .nav {
    padding: 15px 20px;
  }
}
