:root {
  --accent: #0a84ff;
  --text: #131518;
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Raleway', sans-serif;
}

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

html {
  font-size: clamp(14px, 1vw, 16px);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Layout */
.layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .layout {
    flex-direction: row;
  }
}

/* Sidebar */
.sidebar {
  background: #040b14;
  width: 20vw;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-img img {
  width: 12vw;
  max-width: 200px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: block;
  margin: 0 auto;
}

.logos {
  font-family: var(--font-heading);
  font-size: 1.5vw;
  color: #ffffffd4;
  margin-top: 1%;
  margin-bottom: 10%;
  text-align: left;
  margin-left: 3vw;
}

.navmenu ul {
  list-style: none;
  display: grid;
  gap: 3vw;
  padding: 0;
  justify-items: start;
  margin-left: 3vw;
}

.navmenu a {
  color: #ffffffd4;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  font-size: 1vw;
  width: 2vw;
  display: flex;
  align-items: center;
}

.logo {
  width: 1vw;
  height: 1vw;
  margin-right: 1vw;
}

/* Main Content */
.main {
  margin-left: 20vw;
  flex: 1;
  overflow-y: auto;
  height: 100vh;

}

/* Section Styles */
.section {
  display: grid;
  gap: 20px;
  padding: 3vw;
}

.section-title {
  text-align: center;
  margin-bottom: 1vw;
}

.section-title h2 {
  font-size: 28px;
  font-family: var(--font-heading);
  margin-bottom: 1vw;
  color: var(--text);
}

.section-title p {
  font-size: 1vw;
  line-height: 2vw;
  text-align: justify;
  font-style: italic;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  align-items: end;
}

.hero-section img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* About Section */
.about-section {
  margin: 2vw auto;
}

.abouts p {
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 0.8fr 2.2fr;
  }
}

.about-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  border: 1px solid var(--accent);
}

.about-info h3 {
  font-size: 20px;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.intro-text {
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.info-grid ul {
  list-style: none;
}

.info-grid li {
  margin-bottom: 10px;
}

.info-grid strong {
  color: var(--accent);
}

/* Skills Section */
.skills-section {
  background-color: #f0f8ff8f;
}



.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25vw, 1fr));
  gap: 3rem;
  width: 100%;
}

.skill-item {
  padding: 0.5rem 0;
}


@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(25vw, 1fr));
  }
}

.skill-item label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.skill-bar {
  height: 1rem;
  background: #2a2e3d;
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  background-color: var(--accent);
  border-radius: 5px 0 0 5px;
  transition: width 0.5s ease-in-out;
}

/* Resume Section */
.resume-grid {
  display: grid;
  gap: 30px;
  margin-top: 20px;
}

.resume-item {
  border-left: 5px solid var(--accent);
  padding-left: 20px;
  position: relative;
}

.resume-item::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -10px;
  top: 5px;
}

.resume-item h2 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 5px;
}

.resume-item span {
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.resume-item p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  background-color: aliceblue;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  background: #cdbbbb38;
  padding: 2rem;
  border-radius: 10px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3 {
  margin-bottom: 0.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-map {
  display: flex;
  justify-content: center;
  align-items: center;
}

.map,
.contact-map iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  border: none;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 14px;
  padding: 1.5rem;
  color: #888;
  border-top: 1px solid #e6e6e6;
}

/* Toggle Button */
.menu-toggle {
  display: none;
  font-size: 1rem;
  color: #ffffffd4;
  cursor: pointer;
}

/* 🎯 Responsive Sidebar with Toggle Menu */
@media (max-width: 768px) {
  .sidebar {
    width: auto;
    height: auto;
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #040b14;
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 999;
  }

  .profile-img,
  .logos {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-top: 0;
  }

  .navmenu {
    display: none;
    position: absolute;
    top: 60px;
    left: 10px;
    background-color: #040b14;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .navmenu.visible {
    display: block;
  }

  .navmenu ul {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 20px;
    margin-left: 0;
  }

  .navmenu a {
    font-size: 1rem;
    width: auto;
  }

  .logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }

  .main {
    margin-left: 0;
    padding: 1rem;
  }

  .section-title p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}