/* --- Modernized Styles for iM7meD Portfolio --- */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}
*::selection {
  color: #0063e4;
}
html {
  scroll-behavior: smooth;
}
.max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
  background: #121212;
}
::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: #0063e4;
  box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.25), inset -2px -2px -2px rgba(0,0,0,0.25);
}

/* Navbar styles */
.navbar {
  position: fixed;
  width: 100%;
  padding: 20px 0;
  font-family: 'Ubuntu', sans-serif;
  transition: all 0.3s ease;
  z-index: 99999;
}
.navbar.sticky {
  padding: 15px 0;
  background: #000000b2;
}
.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo a {
  color: #fff;
  font-size: 35px;
  font-weight: 600;
}
.navbar .logo a span {
  color: #0063e4;
  transition: all 0.3s ease;
}
.navbar.sticky .logo a span {
  color: #fff;
}
.navbar .menu li {
  list-style: none;
  display: inline-block;
}
.navbar .menu li a {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-left: 25px;
  transition: color 0.3s ease;
}
.navbar .menu li a:hover {
  color: #0063e4;
}
.navbar.sticky .menu li a:hover {
  color: #fff;
}

.menu-btn {
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  display: none;
}

/* Home section */
#particles-js {
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}
.home {
  display: flex;
  background: transparent;
  height: 100vh;
  color: #fff;
  min-height: 500px;
  font-family: 'Ubuntu', sans-serif;
  position: relative;
  z-index: 1;
}
.home .max-width {
  margin: auto 0 auto 150px;
  position: relative;
  z-index: 2;
}
.home .home-content .text-1 {
  font-size: 27px;
}
.home .home-content .text-2 {
  font-size: 75px;
  font-weight: 600;
  margin-left: -3px;
}
.home .home-content .text-3 {
  font-size: 40px;
  margin: 5px 0;
}
.home .home-content .text-3 span {
  color: #ffffff;
  font-weight: 250;
}
.this-is-pain {
  position: absolute;
  display: inline-block;
  background: #0063e4;
  color: #fff;
  font-size: 25px;
  padding: 12px 36px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid #0063e4;
  transition: all 0.3s ease;
}
.this-is-pain:hover {
  background: none;
  color: #0063e4;
}

/* Section and title styles */
section {
  background: transparent !important;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
section .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 60px;
  padding-bottom: 20px;
  font-family: 'Ubuntu', sans-serif;
}
section .title::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 220px;
  height: 3px;
  background: #121212;
  transform: translateX(-50%);
}
section .title::after {
  position: absolute;
  bottom: -12px;
  left: 50%;
  font-size: 20px;
  color: #0063e4;
  padding: 5px;
  background: #fff;
  transform: translateX(-50%);
}

/* Features and contributors */
.features, .contributors {
  color: #fff;
  background: transparent !important;
  font-family: 'Poppins', sans-serif;
}
.features .title::before,
.contributors .title::before {
  background: #fff;
}

/* Features content */
.features .features-content, 
.stats .stats-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* Card styles */
.card {
  width: calc(33% - 20px);
  background: transparent;
  text-align: center;
  border-radius: 6px;
  padding: 20px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.card:hover {
  background: #0063e4;
}
.card:hover i {
  color: #fff;
}
.card .box {
  transition: all 0.3s ease;
}
.card:hover .box {
  transform: scale(1.05);
}
.card i {
  font-size: 50px;
  color: #0063e4;
  transition: color 0.3s ease;
}
.card .text {
  font-size: 25px;
  font-weight: 500;
  margin: 10px 0 7px 0;
  color: #fff;
}

/* Work card spacing (for startups and work sections) */
.work-card {
  margin-bottom: 32px;
}

/* Owl carousel dots */
.owl-dots {
  text-align: center;
  margin-top: 20px;
}
.owl-dot {
  height: 13px;
  width: 13px;
  margin: 0 5px;
  outline: none!important;
  border-radius: 50%;
  border: 2px solid #0063e4!important;
  transition: all 0.3s ease;
}
.owl-dot.active {
  width: 35px;
  border-radius: 14px;
}
.owl-dot.active,
.owl-dot:hover {
  background: #0063e4!important;
}

/* Footer */
footer {
  font-family: 'Poppins', sans-serif;
  background: #121212;
  padding: 20px 23px;
  color: #fff;
  text-align: center;
}
footer span a {
  color: #0063e4;
  text-decoration: none;
}
footer span a:hover {
  text-decoration: underline;
}

/* Modern styles */
body {
  /* Restore previous background */
  background: #121212 no-repeat center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Ubuntu', sans-serif;
  color: #fff;
}

/* Navbar */
.modern-navbar {
  background: rgba(18, 18, 18, 0.95);
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  border-bottom: 1.5px solid #222;
}
.navbar .logo a {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.navbar .menu li a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s;
}
.navbar .menu li a:hover {
  color: #00bcd4;
}

/* Hero Section */
.modern-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background: linear-gradient(120deg, #23272f 60%, #181c24 100%);
  position: relative;
  z-index: 1;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.home-content {
  max-width: 600px;
}
.text-1 {
  font-size: 1.5rem;
  color: #00bcd4;
  font-weight: 500;
  margin-bottom: 8px;
}
.text-2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.text-3 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: #eaeaea;
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}
.modern-btn {
  background: #00bcd4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,188,212,0.18);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  outline: none;
  text-decoration: none;
}
.modern-btn.secondary {
  background: #23272f;
  color: #00bcd4;
  border: 1.5px solid #00bcd4;
}
.modern-btn:hover {
  background: #0097a7;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-img {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,188,212,0.18);
  border: 3px solid #23272f;
}

/* Section Titles */
.section-title {
  color: #00bcd4;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 1px;
}

/* About Section */
.about-text {
  font-size: 1.2rem;
  color: #eaeaea;
  line-height: 1.7;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Features/Tools/Languages Grid */
.modern-section {
  padding: 80px 0 60px 0;
}
.modern-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
  margin-top: 32px;
}
.modern-card {
  background: transparent;
  color: #fff;
  border-radius: 18px;
  padding: 48px 36px;
  min-width: 180px;
  max-width: 240px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  text-align: center;
}
.modern-card i {
  font-size: 3rem;
  margin-bottom: 18px;
  color: #00bcd4;
  transition: color 0.2s, text-shadow 0.2s;
}
.modern-card span {
  font-size: 1.2rem;
  font-weight: 600;
}
.modern-card:hover {
  background: #1a1d23;
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 16px 40px 0 rgba(0,188,212,0.18), 0 0 0 4px #00bcd4;
}
.modern-card:hover i {
  color: #fff;
  text-shadow: 0 0 12px #00bcd4, 0 2px 8px #00bcd4;
}

/* Socials */
.modern-socials {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.modern-social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: #fff;
  background: transparent;
  border-radius: 8px;
  padding: 12px 28px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0,188,212,0.10);
  font-weight: 500;
}
.modern-social i {
  font-size: 2rem;
  color: #00bcd4;
  transition: color 0.2s;
}
.modern-social:hover {
  background: #00bcd4;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,188,212,0.18);
}
.modern-social:hover i {
  color: #fff;
}

/* Footer */
.modern-footer {
  background: #181c24;
  color: #00bcd4;
  padding: 32px 0 18px 0;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  border-top: 1.5px solid #23272f;
  margin-top: 48px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .modern-card {
    min-width: 140px;
    max-width: 90vw;
    padding: 32px 12px;
  }
  .profile-img {
    width: 160px;
    height: 160px;
  }
}
@media (max-width: 600px) {
  .max-width {
    padding: 0 12px;
  }
  .text-2 {
    font-size: 2.1rem;
  }
  .text-3 {
    font-size: 1.1rem;
  }
  .modern-btn, .modern-social {
    font-size: 1rem;
    padding: 10px 16px;
  }
  .modern-card {
    padding: 18px 4px;
  }
  .profile-img {
    width: 100px;
    height: 100px;
  }
}