/* Reset and Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to top, #4B4B4B 0%, #252525 50%, #000000 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  overflow-x: hidden;
}

/* Particle Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.logo {
  font-size: 24px;
  font-family: 'Baloo 2', cursive;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 30px;
  margin-left: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.nav a:hover {
  color: #FFC400;
  transition: color 0.3s;
}

.contact-btn {
  padding: 8px 16px;
  background-color: white;
  color: black !important;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background-color: #222;
  color: #FFF !important;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* Main Layout */
.main-layout {
  display: flex;
  padding: 120px 20px 20px 20px;
  height: calc(100vh - 100px);
  gap: 20px;
  overflow: hidden;
}

/* Left Panel */
.left-panel {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px;
}

.profile-pic-container {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.info-box {
  border: 2px solid white;
  padding: 20px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  text-align: center;
}

/* 🔄 New Designation Animation */
.designation-container {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 500;
  min-height: 20px;
  position: relative;
}

.designation {
  display: inline-block;
  animation: fadeText 1s ease-in-out;
}

@keyframes fadeText {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Social Links */
.social-links {
  margin-top: 10px;
}

.social-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #fff;
  font-size: 23px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #FFC400;
}

/* Resume Button */
.resume-fixed {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background-color: white;
  color: black;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
}

.resume-btn:hover {
  background-color: black !important;
  color: #fff !important;
  transition: color 0.3s;
}

/* Right Panel */
.right-panel {
  width: 75%;
  padding: 0 20px;
  display: flex;
  height: 100%;
}

/* Scrollable Content Box */
.content-scroll {
  height: 100%;
  width: 100%;
  padding: 15px;
  overflow-y: auto;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

.content-scroll section {
  margin-bottom: 40px;
}

.content-scroll::-webkit-scrollbar {
  width: 8px;
  height: 50px;
}

.content-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.scroll-wrapper {
  padding: 20px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  border-radius: 20px;
  border: 2px solid white;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.content-scroll {
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
  scroll-behavior: smooth;
}

.right-panel {
  width: 75%;
  height: 100%;
  overflow: hidden;
  display: flex;
  padding-right: 0;
}

/* Headings */
.content-scroll h2 {
  font-size: 22px;
  font-weight: 600;
  border-bottom: 2px solid white;
  padding-bottom: 6px;
  margin-bottom: 15px;
  display: inline-block;
}

.content-scroll ul {
  list-style: none;
  padding-left: 20px;
}

.content-scroll p {
  padding-left: 20px;
}

/* ✅ Softwares Grid */
#softwares {
  margin-top: 10px;
  margin-bottom: 20px;
}

#softwares h2 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 2px solid white;
  padding-bottom: 6px;
  display: inline-block;
  padding-top: 20px;
}

.software-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.software-box {
  background-color: rgba(255, 255, 255, 0.08);
  border: 2px solid white;
  border-radius: 12px;
  padding: 20px 10px;
  text-align: center;
}

.software-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
  text-align: center;
}

.software-box ul {
  list-style: none;
  padding: 0;
}

.software-box li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  font-weight: 250;
  text-align: center;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.software-box img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.software-box li:hover img {
  transform: scale(1.1);
}

/* ------------------------------ */
/* ✅ Responsive Fixes - Mobile  */
/* ------------------------------ */
@media (max-width: 768px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 200px;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 999;
    border-left: 2px solid #fff;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    border-radius: 10px 0 0 10px;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    display: block;
    margin: 15px 0;
    color: white;
    text-align: left;
  }

  .main-layout {
    flex-direction: column;
    height: auto;
  }

  .left-panel,
  .right-panel {
    width: 100%;
  }

  .profile-pic-container {
    height: 220px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .profile-pic {
    height: 100%;
    width: 100%;
    object-fit: cover;
    margin-top: 0;
  }

  .resume-btn {
    margin-top: 20px;
  }
}
