/* ============================================
   MODERN MINIMAL PORTFOLIO
   ============================================ */
/**
 * style.css
 * This file contains all the CSS styling for the portfolio website.
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px; /* Offset for fixed elements when scrolling to anchors */
  overflow-y: scroll;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari, Opera) */
html::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge, and Firefox */
html {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Typography & Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #000000;
  color: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; /* Improve font rendering */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Full viewport height */
  background:
    /* A more visible grid pattern */
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  animation: backgroundShift 20s ease-in-out infinite;
}

/* Keyframe animation for the background grid to subtly shift and scale,
   creating a dynamic, non-distracting effect. */
@keyframes backgroundShift {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  /* Make it larger to allow for smooth animation */
  width: 200%;
  height: 200%;
  background-image:
    /* Radial gradient to create a starfield effect */
    radial-gradient(circle, #FFF 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  animation: moveStars 60s linear infinite;
}

@keyframes moveStars {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-50%, -50%);
  }
}

/* Smooth Animations */
/* Fade in and move up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in and move down animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from left animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Smooth floating animation for elements */
@keyframes smoothFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Simple fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide up animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Subtle glow animation for buttons/elements */
@keyframes subtleGlow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
  }
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

nav.sidebar {
  /* Fixed position for desktop, sticky for mobile */
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideInLeft 0.6s ease;
  border-right: 1px solid #1a1a1a;
  /* Ensure sidebar is above other content */
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  /* Combine fade-in and smooth-float animations */
  animation: fadeInDown 0.6s ease, smoothFloat 3s ease-in-out infinite;
  color: #ffffff;
}

.professions {
  text-align: center;
  /* Spacing and visual separation */
  margin-bottom: 2rem;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.professions p {
  /* Styling for profession text */
  font-size: 0.75rem;
  color: #cccccc;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0.3rem 0;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  /* Spacing between nav links */
  gap: 0.5rem;
  width: 100%;
  margin-top: 2rem;
  padding: 0 0.5rem;
}

.nav-link {
  /* Base styling for nav links */
  position: relative;
  text-decoration: none;
  color: #cccccc;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.75rem 1rem;
  display: block;
  border-radius: 4px;
}

/* Underline effect on hover */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.nav-link:hover::before {
  width: 100%;
}

/* Active state for current section */
.nav-link.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08); /* Slightly more prominent background for active */
}

.nav-link.active::before {
  width: 100%;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main.main-pattern-bg {
  /* Offset main content to make space for the fixed sidebar */
  margin-left: 240px;
  padding: 0;
  background: #000000;
  position: relative;
  /* Ensure main content is above body background but below sidebar */
  z-index: 1;
}

main.main-pattern-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Blueprint-like grid pattern for the main content background */
  background-image:
    /* Major grid lines */
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    /* Minor grid lines */
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  pointer-events: none;
  /* Ensure this background is below content but above body background */
  z-index: 0;
  opacity: 1;
}

main.main-pattern-bg > * {
  /* Ensure all direct children of main are above its background pattern */
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for better mobile compatibility */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  text-align: center;
  /* Initial animation on page load */
  animation: fadeInUp 0.8s ease-out;
  position: relative;
}


.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -1px;
  /* Animation for the main heading */
  animation: fadeInDown 0.8s ease-out;
  color: #ffffff;
}

.hero-content h1 .greeting {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #ffffff 100%);
  -webkit-background-clip: text;
  /* For older Webkit browsers */
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
  font-size: 3.5rem;
  font-weight: 700;
  position: relative;
}

.hero-content h1 .greeting::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: underlineGlow 2s ease-in-out infinite;
}

.hero-content h1 .name {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #999999 100%);
  -webkit-background-clip: text;
  /* For older Webkit browsers */
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 2px;
  position: relative;
}

/* Keyframe animation for the gradient text effect */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Keyframe animation for the subtle underline glow */
@keyframes underlineGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 0.8;
    transform: scaleX(1);
  }
}

.hero-content p {
  font-size: 1.3rem;
  /* Styling for the hero description text */
  color: #cccccc;
  animation: fadeInDown 0.9s ease-out 0.2s backwards;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

.scroll-down {
  /* Position the scroll indicator at the bottom center of the hero section */
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
}

.mouse {
  /* Styling for the mouse icon */
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
  margin-bottom: 0.5rem;
}

.wheel {
  /* Styling for the mouse wheel (animated) */
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

/* Keyframe animation for the mouse wheel movement */
@keyframes scrollWheel {
  0% {
    opacity: 1;
    top: 6px;
  }
  100% {
    opacity: 0;
    top: 26px;
  }
}

.arrow-scroll span {
  /* Styling for the animated scroll arrows */
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  margin: -4px;
  animation: scrollArrow 2s infinite;
}

/* Stagger animation delays for the arrows */
.arrow-scroll span:nth-child(2) {
  animation-delay: -0.2s;
}

.arrow-scroll span:nth-child(3) {
  animation-delay: -0.4s;
}

/* Keyframe animation for the scroll arrows */
@keyframes scrollArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* ============================================
   SECTIONS & TYPOGRAPHY
   ============================================ */

section {
  /* Base styling for all content sections */
  padding: 3rem 3rem;
  padding-right: 4rem;
  border-top: 1px solid #1a1a1a;
  /* Initial hidden state for scroll-triggered animation */
  opacity: 0;
  max-width: 100%;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  /* Styling for main section headings */
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'Satoshi', sans-serif;
  letter-spacing: -0.5px;
  color: #ffffff;
  transition: all 0.6s ease;
  display: inline-block;
  /* Prevent text selection on title */
  cursor: default;
  opacity: 0;
  transform: scale(0.9);
}

.section-title.visible {
  opacity: 1;
  transform: scale(1);
}

.section-divider {
  /* Styling for horizontal rule dividers */
  height: 1px;
  background: linear-gradient(90deg, transparent, #333333, transparent);
  border: none;
  margin-bottom: 2rem;
}

/* About Section */
#about {
  /* Ensure about section doesn't exceed max width */
  max-width: 100%;
}

#about p {
  color: #cccccc;
  line-height: 1.8;
  /* Limit line length for readability on large screens */
  max-width: 900px;
  text-align: justify;
  padding-right: 2rem;
  font-family: 'Satoshi', sans-serif;
}

.about-p {
  /* Initial hidden state for staggered animation */
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease-out 0.4s; /* Delay to animate after section container */
}

.about-p.visible {
  opacity: 1;
  transform: translateX(0);
}

#about p:last-child {
  /* Specific styling for the last paragraph in about section */
  color: #cccccc;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

#experience {
  max-width: 100%;
  /* Ensure experience section doesn't exceed max width */
}

.exp-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  padding-right: 2rem;
  border-bottom: 1px solid #1a1a1a;
  transition: all 0.3s ease;
  opacity: 0;
  /* Initial hidden state for staggered animation */
  transform: translateX(-20px);
}

.exp-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.exp-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.exp-item:last-child {
  border-bottom: none;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.exp-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
  font-family: 'Satoshi', sans-serif;
  color: #f0f0f0;
  letter-spacing: -0.3px;
  display: block;
}

.exp-item h3::before {
  content: none;
}

.exp-date {
  display: inline;
  color: #999999;
  font-size: 0.9rem;
  margin-bottom: 0;
  font-weight: 500; /* Not bold, as requested */
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 0;
  flex-shrink: 0;
}

.exp-item p {
  color: #999999;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: justify;
  font-family: 'Satoshi', sans-serif;
  max-width: 900px;
}

.company {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.25rem;
  margin-bottom: 0.8rem;
  font-family: 'Satoshi', sans-serif;
  color: #999999;
  display: flex;
  align-items: center;
}

.company::before {
  content: '\f1ad'; /* fa-building */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #666;
  margin-right: 0.75rem;
  transition: color 0.3s ease;
}

.exp-item:hover .company::before {
  color: #ffffff;
}

/* Education Section */
.edu-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  padding-right: 2rem;
  border-bottom: 1px solid #1a1a1a;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.edu-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.edu-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.edu-item:last-child {
  border-bottom: none;
}

.edu-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
  font-family: 'Satoshi', sans-serif;
  color: #f0f0f0;
  letter-spacing: -0.3px;
  display: block;
}

.edu-item h3::before {
  content: none;
}

.edu-date {
  display: inline;
  color: #999999;
  font-size: 0.9rem;
  margin-bottom: 0;
  font-weight: 500; /* Not bold, as requested */
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 0;
  flex-shrink: 0;
}

.edu-item p {
  color: #999999;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: justify;
  font-family: 'Satoshi', sans-serif;
  max-width: 900px;
}

.university {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.25rem;
  margin-bottom: 0.8rem;
  font-family: 'Satoshi', sans-serif;
  color: #999999;
  display: flex;
  align-items: center;
}

.university::before {
  content: '\f19c'; /* fa-university / bank */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #666;
  margin-right: 0.75rem;
  transition: color 0.3s ease;
}

.edu-item:hover .university::before {
  color: #ffffff;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out backwards;
  opacity: 0;
  transform: translateY(20px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:hover {
  border-color: #666666;
  background: #0f0f0f;
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.12);
  outline: 1px solid rgba(255, 255, 255, 0.15);
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-family: 'Satoshi', sans-serif;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.project-content p {
  color: #999999;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: justify;
  padding-right: 1rem;
  font-family: 'Satoshi', sans-serif;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.project-link:hover::after {
  width: 100%;
}

.project-link:hover {
  gap: 0.8rem;
  transform: translateX(4px);
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  background: #1a1a1a;
  color: #999999;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid #2a2a2a;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #2a2a2a;
  color: #ffffff;
  border-color: #444444;
  transform: translateY(-2px);
}

.project-image {
  flex-shrink: 0;
  width: 200px;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* More Projects Button */
#show-more-btn {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  font-size: 0.85rem;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  color: #ffffff;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
  text-transform: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  position: relative; /* Ensure shadow is not clipped */
  z-index: 2;
  animation: subtleGlow 3s ease-in-out infinite;
  opacity: 0;
  transform: translateY(20px);
}

#show-more-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

#show-more-btn:hover {
  border-color: #444444;
  background: #2a2a2a;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
  animation-play-state: paused;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.skill-category {
  padding: 1.5rem;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.95);
}

.skill-category.visible {
  opacity: 1;
  transform: scale(1);
}

.skill-category:hover {
  background: #1a1a1a;
  border-color: #333333;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}

.skill-category h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Satoshi', sans-serif;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #000000;
  color: #cccccc;
  border: 1px solid #333333;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  color: #ffffff;
  border-color: #666666;
  background: #1a1a1a;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-intro {
  color: #999999;
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 100%;
  text-align: justify;
  padding-right: 2rem;
  font-family: 'Satoshi', sans-serif;
}

.contact-info {
  margin-top: 2rem;
  padding: 2rem;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.contact-info p {
  margin: 0.8rem 0;
  color: #cccccc;
  font-size: 0.95rem;
}

.contact-info strong {
  color: #ffffff;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-icons .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 1px solid #333333;
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out backwards;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
}

.social-icons .social.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.social-icons .social:nth-child(1) { animation-delay: 0.1s; }
.social-icons .social:nth-child(2) { animation-delay: 0.2s; }
.social-icons .social:nth-child(3) { animation-delay: 0.3s; }
.social-icons .social:nth-child(4) { animation-delay: 0.4s; }

.social-icons .social:hover {
  border-color: #666666;
  background: #1a1a1a;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem 3rem;
  text-align: center;
  margin-left: 240px;
  border-top: 1px solid #1a1a1a;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  z-index: 1;
}

.footer-content p {
  font-size: 0.85rem;
  color: #666666;
  margin: 0.3rem 0;
  transition: color 0.3s ease;
}

.footer-content p:hover {
  color: #999999;
}

.heart {
  color: #ffffff;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
  nav.sidebar {
    width: 200px;
    padding: 1.5rem 1rem;
  }

  main.main-pattern-bg {
    margin-left: 220px;
  }

  .footer {
    margin-left: 220px;
  }

  .logo {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  #hero {
    padding: 3rem 2rem;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content h1 .greeting {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  section {
    padding: 3rem 2rem;
    padding-right: 2.5rem;
  }
  
  #about p,
  .exp-item {
    padding-right: 1.5rem;
  }
  
  .project-content p {
    padding-right: 0.5rem;
  }

  .project-card {
    flex-direction: column;
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .project-image {
    width: 100%;
    height: 250px;
  }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
  nav.sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid #1a1a1a;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
    margin-bottom: 0;
    font-size: 1.2rem;
  }

  .professions {
    order: 2;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    border-bottom: none;
    border-right: 1px solid #1a1a1a;
    border-left: 1px solid #1a1a1a;
  }

  .professions p {
    font-size: 0.7rem;
    margin: 0.2rem 0;
  }

  .nav-links {
    order: 3;
    flex-direction: row;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  main.main-pattern-bg {
    margin-left: 0;
    padding-top: 0;
  }

  .footer {
    margin-left: 0;
  }

  .nav-links {
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  #hero {
    min-height: 80vh;
    padding: 2rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content h1 .greeting {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  section {
    padding: 2.5rem 1.5rem;
    padding-right: 1.5rem;
  }
  
  #hero {
    padding-top: 1rem;
  }
  
  #about p,
  .exp-item {
    padding-right: 1rem;
  }
  
  .project-content p {
    padding-right: 0.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .exp-item h3 {
    font-size: 1rem;
  }

  .project-card {
    padding: 1rem;
    gap: 1rem;
  }

  .project-content h3 {
    font-size: 1.1rem;
  }

  .social-icons {
    gap: 1rem;
  }

  .social-icons .social {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
  nav.sidebar {
    width: 100%;
    padding: 0.8rem;
    flex-direction: column;
    align-items: center;
  }

  .logo {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    order: 1;
  }

  .professions {
    order: 2;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-right: none;
    border-left: none;
    width: 100%;
  }

  .professions p {
    font-size: 0.65rem;
  }

  .nav-links {
    order: 3;
    gap: 0.4rem;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
  }

  main.main-pattern-bg {
    margin-left: 0;
  }

  .footer {
    margin-left: 0;
  }

  #hero {
    min-height: 70vh;
    padding: 1.5rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content h1 .greeting {
    font-size: 1.8rem;
  }
  
  .hero-content h1 .greeting::after {
    height: 2px;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  section {
    padding: 2rem 1rem;
    padding-right: 1rem;
  }
  
  #hero {
    padding-top: 0.5rem;
    min-height: 60vh;
  }
  
  #about p,
  .exp-item {
    padding-right: 0.75rem;
  }
  
  .project-content p {
    padding-right: 0.5rem;
  }

  .item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .project-image {
    height: 200px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer {
    padding: 1.5rem 1rem;
  }

  .footer-content p {
    font-size: 0.75rem;
  }
}

/* Extra small - 360px and below */
@media (max-width: 360px) {
  nav.sidebar {
    width: 100%;
    padding: 0.6rem;
  }

  .logo {
    font-size: 1rem;
  }

  .professions p {
    font-size: 0.6rem;
  }

  .nav-link {
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }

  main.main-pattern-bg {
    margin-left: 0;
  }

  .footer {
    margin-left: 0;
  }

  #hero {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content h1 .greeting {
    font-size: 1.5rem;
  }
  
  .hero-content h1 .greeting::after {
    height: 2px;
  }

  section {
    padding: 1.5rem 0.8rem;
    padding-right: 0.8rem;
  }
  
  #hero {
    padding-top: 0.5rem;
    min-height: 50vh;
  }

  .section-title {
    font-size: 1.2rem;
  }
}

/* Accessibility */
.nav-link:focus-visible,
.social:focus-visible,
#show-more-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

a {
  text-decoration: none;
  color: inherit;
}
