html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow-x: hidden;
  overflow-wrap: break-word;
  background: #000000;
  color: #e8e8e8;
}

/* ==================== LOADING SCREEN ==================== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #050505 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.loader-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.loader-logo {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #b8b8b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  opacity: 0;
}

.loader-text {
  font-size: 1.5rem;
  color: #888888;
  margin-bottom: 2rem;
  opacity: 0;
}

.loader-bar-container {
  width: 350px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  opacity: 0;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #888888, #ffffff);
  background-size: 200% 100%;
  border-radius: 10px;
  width: 0%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.loading-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* ==================== ANIMATED BACKGROUND ==================== */
#animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #000000 0%, #0f0f0f 50%, #0a0a0a 100%);
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.float-element {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.1);
}

/* ==================== LAYOUT ==================== */
.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 2rem;
}

.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

.main-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

#main-content {
  max-width: 1200px;
  margin-left: 280px;
  padding: 3rem 2rem;
}

main {
  position: relative;
}

/* ==================== TYPOGRAPHY ==================== */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2, h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ffffff;
}

.subtitle {
  font-size: 1.5rem;
  color: #888888;
  margin-bottom: 2rem;
}

/* ==================== HEADER ==================== */
header {
  text-align: center;
  margin-bottom: 4rem;
}

header h1 {
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #b0b0b0;
}

header button {
  transition-duration: 200ms;
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  background-color: #1a1a1a;
  font-weight: 600;
  border: 1px solid #333333;
  border-radius: 5px;
  cursor: pointer;
}

header button:hover {
  background: #2a2a2a;
  border-color: #555555;
}

/* ==================== SIDEBAR NAVIGATION ==================== */
.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 280px;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.photo-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 1.5rem 1rem;
}

#content-nav-list {
  list-style: none;
  padding: 0 1rem;
  padding-bottom: 1rem;
}

#content-nav-list li {
  margin: 0.5rem 0;
}

#content-nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  color: #888888;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#content-nav-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, #ffffff, #888888);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

#content-nav-list a:hover,
#content-nav-list a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(5px);
}

#content-nav-list a.active::before {
  transform: scaleY(1);
}

/* ==================== MOBILE MENU ==================== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 101;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 3px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99;
}

.overlay.show {
  display: block;
}

/* ==================== SECTIONS ==================== */
section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ==================== CARDS ==================== */
.card {
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.card.child {
  padding-top: .1rem;
  background: rgba(15, 15, 15, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
}

.card h2, .card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.card .company {
  color: #888888;
  font-weight: 500;
}

.card .duration {
  color: #777777;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card ul {
  margin: 0;
}

.card p {
  line-height: 1.8;
  color: #b0b0b0;
}

.card li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: #c0c0c0;
}

.card li::before {
  content: '➢';
  color: #666666;
  margin-right: 0.5rem;
  display: inline-block;
}

/* ==================== SKILLS ==================== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.skills-container img {
  justify-self: center;
  width: max-content;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.skills-container img:hover {
  transform: translateY(-5px);
  filter: brightness(1.2);
}

.about-explain-container {
  padding: .25rem 0 .25rem 0;
}

/* ==================== CONTACT ==================== */
.contact-container img {
  width: 25px;
  height: 25px;
  filter: brightness(0.9);
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-content {
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* ==================== LINKS ==================== */
a {
  color: #d0d0d0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

a.disabled {
  pointer-events: none;
  color: #555555;
  cursor: default;
}

/* ==================== LISTS ==================== */
ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 1.5rem;
}

li h3 {
  margin-bottom: 0.3rem;
}

/* ==================== FOOTER ==================== */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: rgba(10, 10, 10, 0.98);
  color: #b0b0b0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
  color: #d0d0d0;
}

footer a:hover {
  color: #ffffff;
}

/* ==================== VISIBILITY CLASSES ==================== */
.mobile {
  display: none;
}

.desktop {
  display: flex;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1000px) {
  .skills-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .sidebar-nav {
    transform: translateX(-100%);
  }
  
  .sidebar-nav.open {
    transform: translateX(0);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  #main-content {
    padding: 5rem 1.5rem 2rem;
    margin-left: 0;
  }
  
  .loader-logo {
    font-size: 3.5rem;
  }
  
  .loader-text {
    font-size: 1.2rem;
  }
  
  .loader-bar-container {
    width: 250px;
  }
}