/* =====================
   Global Styles
===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   Header
===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 2rem;
  background: transparent;
  z-index: 9999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header .logo h1 {
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
}

.navmenu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navmenu ul li a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
  color: #0d6efd;
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

/* Header social links */
.header-social-links {
  display: flex;
  gap: 1rem;
}

.header-social-links a {
  color: #fff;
  transition: color 0.3s;
}

.header-social-links a:hover {
  color: #0d6efd;
}

/* =====================
   Hero Section
===================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: url('assets/img/profile/hero-bg.jpg') center center/cover no-repeat;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
}

.hero .cta-buttons a {
  padding: 10px 30px;
  margin-right: 10px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Hero */
@media (max-width: 991px) {
  .hero {
    text-align: center;
    padding-top: 120px;
  }

  .hero h2 {
    font-size: 2.3rem;
  }

  .hero .cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 1.9rem;
  }

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

/* =====================
   About Section
===================== */
.about {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.about-image {
  flex: 1 1 45%;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-height: 750px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-content {
  flex: 1 1 50%;
}

.about-content .subtitle {
  color: #0d6efd;
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

.about-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-content p {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Personal Info Grid */
.personal-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.personal-info .info-item {
  font-size: 15px;
  color: #333;
}

/* Signature */
.signature {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.signature img {
  width: 100px;
  margin-right: 15px;
}

.signature-info h4 {
  margin: 0;
  font-weight: 700;
}

.signature-info p {
  margin: 0;
  color: #555;
}

/* Responsive About */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
  }

  .about-image img {
    max-height: 500px;
  }

  .about-content {
    text-align: center;
    margin-top: 30px;
  }

  .personal-info {
    grid-template-columns: 1fr;
  }
}

/* =====================
   Skills Section
===================== */
.skill-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.progress {
  height: 8px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 8px;
  background-color: #007bff;
  transition: width 1.5s ease;
}

/* =====================
   Resume Section
===================== */
.resume .timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 20px;
}

.timeline-item {
  display: flex;
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: #0d6efd;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 5px;
}

.timeline-left {
  flex: 0 0 150px;
  font-weight: 600;
  color: #0d6efd;
}

.timeline-right {
  flex: 1;
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 0;
  }

  .timeline-left,
  .timeline-right {
    width: 100%;
    text-align: left;
  }
}

/* =====================
   Portfolio Section
===================== */
.portfolio-card {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 30px;
}

.portfolio-content {
  padding: 15px;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-actions a {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 5px;
}

/* Responsive Portfolio */
@media (max-width: 768px) {
  .portfolio-content {
    text-align: center;
  }
}

/* =====================
   Services Section
===================== */
.service-item {
  height: 100%;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-item i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #0d6efd;
}

/* =====================
   Contact Section
===================== */
.contact-info {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

.contact-info .info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

/* =====================
   Footer
===================== */
.footer {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer a {
  color: #0d6efd;
}

.footer .social-links a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.2rem;
}

/* =====================
   Scroll Top
===================== */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #0d6efd;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 9999;
}

.scroll-top.show {
  opacity: 1;
}

/* =====================
   Media Queries: Mobile Nav
===================== */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navmenu ul {
    position: fixed;
    inset: 0;
    background: #111;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: 0.3s;
    gap: 2rem;
  }

  .navmenu.active ul {
    transform: translateX(0);
  }

  .navmenu ul li a {
    color: #fff;
    font-size: 1.2rem;
  }
}
/* Mobile nav hidden by default */
.navmenu {
  transition: all 0.3s ease;
}

.navmenu.active {
  display: block;
  /* or flex depending on your design */
  position: absolute;
  top: 70px;
  /* adjust based on header height */
  left: 0;
  width: 100%;
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

/* Hide nav links on small screens initially */
@media (max-width: 1199px) {
  .navmenu ul {
    flex-direction: column;
    gap: 15px;
    display: none;
  }

  .navmenu.active ul {
    display: flex;
  }
}