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

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --dark-bg: #0f1724;
  --card-bg: #1a2332;
  --text-primary: #ffffff;
  --text-secondary: #a8b2c0;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--dark-bg);
}

/* SIDEBAR - FIXED ON LEFT */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-header {
  padding: 30px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
}

/* SIDEBAR SOCIAL (First - Above picture) */
.sidebar-social {
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  gap: 15px;
}

.sidebar-social a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.sidebar-social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

/* SIDEBAR PROFILE (After social) */
.sidebar-profile {
  padding: 25px 25px 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* NAVIGATION MENU */
.nav-menu {
  padding: 20px 0;
  flex: 1;
}

.nav-item {
  display: block;
  padding: 15px 30px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.08);
  border-left-color: var(--primary-color);
}

/* MOBILE TOGGLE */
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

/* MAIN CONTENT */
.main-content {
  margin-left: 280px;
}

.section {
  min-height: 100vh;
  padding: 80px 40px;
  display: flex;
  align-items: center;
}

.section-gray {
  background: rgba(255, 255, 255, 0.02);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* HOME SECTION - BACKGROUND IMAGE */
.home-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 100vh;
  color: white;
}

/* Background image - BLACK AND WHITE */
.home-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/profile.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  z-index: 1;
}

/* Purple overlay for text readability */
.home-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.75), rgba(118, 75, 162, 0.65));
  z-index: 1;
}

.home-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.home-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
}

.home-text {
  max-width: 900px;
  margin: 0 auto;
}

.greeting {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.name-title {
  font-size: 80px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1;
  color: #ffffff;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
}

.typing-wrapper {
  font-size: 36px;
  font-weight: 500;
  min-height: 50px;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.typed-text {
  color: #ffffff;
}

.cursor {
  color: #ffffff;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hide the side circular image */
.home-image {
  display: none;
}

/* SECTION TITLES */
.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ABOUT SECTION */
.about-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-grid {
  margin-bottom: 60px;
}

.about-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.about-card > p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.details-list p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.details-list strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* SKILLS */
.skills-section {
  margin-top: 60px;
}

.subsection-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.subsection-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skill-box {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-info span:last-child {
  color: var(--primary-color);
}

.skill-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease;
}

/* RESUME SECTION */
.resume-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.resume-box {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.resume-box h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-box h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.summary-box p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  min-width: 120px;
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
}

.timeline-content ul {
  margin-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.timeline-content li {
  margin-bottom: 8px;
}

.skills-list {
  list-style: none;
  padding: 0;
}

.skills-list li {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.7;
}

.skills-list strong {
  color: var(--primary-color);
}

.resume-download {
  text-align: center;
  margin-top: 40px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* PORTFOLIO SECTION */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-card {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  border-color: var(--primary-color);
}

.portfolio-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #ffffff;
  font-size: 32px;
}

.portfolio-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.portfolio-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.portfolio-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.portfolio-tags span {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.portfolio-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.portfolio-link:hover {
  color: var(--secondary-color);
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.service-item {
  background: var(--card-bg);
  padding: 40px 35px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: #ffffff;
  font-size: 32px;
}

.service-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.service-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #ffffff;
  font-size: 24px;
}

.contact-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.contact-card p,
.contact-card a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}

.contact-card a:hover {
  color: var(--primary-color);
}

/* FOOTER */
.footer {
  background: var(--card-bg);
  color: var(--text-secondary);
  text-align: center;
  padding: 25px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .name-title {
    font-size: 56px;
  }

  .typing-wrapper {
    font-size: 24px;
  }

  .resume-container {
    grid-template-columns: 1fr;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .close-btn {
    display: block;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-content {
    margin-left: 0;
  }

  .section {
    padding: 60px 20px;
  }

  .home-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .home-image img {
    width: 250px;
    height: 250px;
  }

  .name-title {
    font-size: 42px;
  }

  .typing-wrapper {
    font-size: 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .resume-container,
  .skills-container {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .name-title {
    font-size: 36px;
  }

  .greeting {
    font-size: 20px;
  }

  .typing-wrapper {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .home-image img {
    width: 200px;
    height: 200px;
  }
}