/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #000;
  color: #fff;
}

a {
  color: #f39c12;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #ffb74d;
}

/* ===== Navbar ===== */
header {
  background: #111;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: #fff;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #f39c12;
}

/* Mobile Navbar */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #111;
    padding: 20px;
    border-radius: 8px;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 220px;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('/images/Hero1.png') center center/cover no-repeat;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* dark overlay for text readability */
}

.hero-text {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  padding: 25px;
  border-radius: 10px;
  opacity: 0;                  /* start invisible */
  transform: translateY(30px); /* start shifted */
  animation: fadeInUp 1.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-text h1 {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #f39c12;
  width: 0;
  animation: typing 3s steps(30, end) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #f39c12;
  color: #fff;
  border-radius: 5px;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  background: #d35400;
  transform: scale(1.05);
}

/* ===== Sections ===== */
.section {
  padding: 80px 20px;
  text-align: center;
  margin: 20px 0;
  border-radius: 10px;
  background: #111;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.section:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f39c12;
}

/* ===== About Section with Image ===== */
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 60%;
}

/* Add spacing for the "Currently" line */
.current-highlight {
  margin-top: 25px;  /* space above the paragraph */
  font-size: 1.05rem;
  line-height: 1.6;
}


.bulb-icon {
  color: #0244f7;
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 5px #f39c12, 0 0 10px #f39c12; }
  to   { text-shadow: 0 0 15px #ffcc00, 0 0 30px #ffcc00; }
}

.about-img {
  flex: 1 1 30%;  /* slightly smaller image container */
  text-align: center;
}

.about-img img {
  max-width: 90%;  /* reduce the image size */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.about-img img:hover {
  transform: scale(1.05);
}


/* ===== Skills Grid ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.skill-card i {
  margin-right: 10px;
  color: #f39c12;
}

.skill-card:hover {
  background: #f39c12;
  color: #111;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.skill-card:hover i {
  color: #111;
}

/* ===== Timeline (Experience) ===== */
.timeline {
  text-align: left;
  max-width: 800px;
  margin: auto;
}

.timeline-item {
  margin-bottom: 20px;
  padding: 15px 20px;
  background: #222;
  border-left: 4px solid #f39c12;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.timeline-item h3 {
  font-size: 1.3rem;
  color: #f39c12; /* job title color */
  margin-bottom: 5px;
}

.timeline-item span {
  display: block;
  font-size: 0.9rem;
  color: #ccc; /* company & years */
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 1rem;
  color: #fff; /* details */
  line-height: 1.5;
  margin: 0;
}

/* ===== Contact ===== */
.contact p {
  margin: 10px 0;
}

.contact i {
  color: #f39c12;
  margin-right: 8px;
}

/* ===== Footer ===== */
footer {
  background: #111;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #aaa;
}
