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

html {
  scroll-behavior: smooth;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInBounce {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Body styling */
body {
  background: linear-gradient(135deg, #020212 0%, #0f0a1a 100%);
  color: #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  line-height: 1.8;
  transition: all 0.2s ease-in-out;
  letter-spacing: 0.3px;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Top Navigation Hub */
header {
  background: linear-gradient(135deg, #020212 0%, #0f0a1a 100%);
  padding: 15px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #1B16A8 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  animation: slideInLeft 0.8s ease-out;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links li a {
  text-decoration: none;
  color: #f0f0f0;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  position: relative;
  padding: 8px 12px;
  border-radius: 4px;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #1B16A8;
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}
.nav-links li a:hover {
  color: #1B16A8;
  background-color: rgba(27, 22, 168, 0.1);
}
.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a.login-nav-btn {
  background: linear-gradient(135deg, #1B16A8 0%, #7C3AED 100%);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(123, 58, 237, 0.3);
  transition: all 0.3s ease-in-out;
}

.nav-links li a.login-nav-btn:hover {
  background: linear-gradient(135deg, #2D23E3 0%, #9F5FED 100%);
  box-shadow: 0 6px 20px rgba(123, 58, 237, 0.5);
  transform: translateY(-2px);
}

.nav-links li a.login-nav-btn::after {
  display: none;
}

/* Auth dropdown (homepage + future pages) */
.nav-links li.auth-nav-item {
  position: relative;
}

.auth-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  background: #1a1a2e;
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 1000;
}

.auth-dropdown.show {
  display: block;
}

.auth-dropdown a {
  display: block;
  padding: 12px 14px;
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}

.auth-dropdown a:last-child {
  border-bottom: none;
}

.auth-dropdown a:hover {
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
}

@media (prefers-reduced-motion: reduce) {
  .nav-links li a {
    transition: none;
  }
  .nav-links li a::after {
    transition: none;
  }
}

/* Hero Section with Background Image & Profile Picture */
#hero {
  height: 65vh;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(2, 2, 18, 0.7) 0%, rgba(15, 10, 26, 0.8) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  margin-top: 70px; /* account for fixed header */
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}
#hero .hero-overlay {
  background: rgba(2, 2, 18, 0.7);
  backdrop-filter: blur(10px);
  padding: 50px 40px;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(27, 22, 168, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: slideInUp 1s ease-out;
}

/* Updated profile picture styles */
#hero .profile-pic {
  width: 120px;
  height: 120px;
  max-width: 120px;
  max-height: 120px;
  object-fit: cover;
  border: 4px solid #1B16A8;
  border-radius: 50%;  /* makes it circular */
  margin: 0 auto 30px;
  display: block;
  box-shadow: 0 10px 40px rgba(27, 22, 168, 0.3);
  animation: slideInDown 0.8s ease-out;
  transition: all 0.3s ease-in-out;
}
#hero .profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(27, 22, 168, 0.4);
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  animation: slideInUp 1s ease-out 0.2s both;
  background: linear-gradient(135deg, #fff 0%, #1B16A8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.5px;
  animation: slideInUp 1s ease-out 0.4s both;
  color: #d0d0d0;
}
#hero .btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #1B16A8 0%, #7C3AED 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
  animation: slideInUp 1s ease-out 0.6s both;
  position: relative;
  overflow: hidden;
}
#hero .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
#hero .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(231, 76, 60, 0.5);
  border-color: #fff;
}
#hero .btn:hover::before {
  width: 300px;
  height: 300px;
}

@media (prefers-reduced-motion: reduce) {
  #hero .btn {
    transition: background-color 0.3s ease-in-out;
  }
  #hero .btn:hover {
    transform: none;
  }
  #hero .btn::before {
    transition: none;
  }
}

/* Content Sections */
.content-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  animation: fadeInScale 0.8s ease-out;
}
.content-section:nth-child(even) {
  background: linear-gradient(135deg, rgba(27, 22, 168, 0.05) 0%, rgba(26, 26, 26, 0.5) 100%);
}
.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(27, 22, 168, 0.3) 100%);
}
.content-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, rgba(27, 22, 168, 0.3) 0%, transparent 100%);
}
.content-section h2 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #1B16A8 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content-section h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #1B16A8 0%, #7C3AED 100%);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}
.content-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.8;
  color: #d0d0d0;
  font-weight: 300;
}

/* Experience Section */
.experience {
  text-align: left;
  max-width: 1000px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}
.experience > div {
  animation: fadeInBounce 0.8s ease-out;
}
.experience h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 700;
  color: #1B16A8;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}
.experience h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #1B16A8 0%, #7C3AED 100%);
  bottom: -10px;
  left: 0;
}
.experience ul {
  list-style: none;
  margin-left: 0;
  text-align: left;
  position: relative;
  padding-left: 30px;
}
.experience ul::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #1B16A8 0%, transparent 100%);
  border-radius: 2px;
}
.experience li {
  padding: 18px 20px 18px 25px;
  margin-bottom: 16px;
  background: rgba(27, 22, 168, 0.08);
  border-left: 3px solid #1B16A8;
  border-radius: 6px;
  transition: all 0.4s ease-in-out;
  position: relative;
  animation: slideInUp 0.8s ease-out;
}
.experience li::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: #1B16A8;
  border: 3px solid #020212;
  border-radius: 50%;
}
.experience li:hover {
  background: rgba(27, 22, 168, 0.15);
  transform: translateX(10px);
  box-shadow: 0 8px 20px rgba(27, 22, 168, 0.15);
}
.experience strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 1.05rem;
}
.experience span {
  color: #999;
  font-size: 0.9rem;
  display: block;
}

/* Skills Section */
.skills-list {
  list-style: none;
  margin-left: 0;
  text-align: center;
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.skills-list li {
  padding: 25px 18px;
  background: linear-gradient(135deg, rgba(27, 22, 168, 0.08) 0%, rgba(26, 26, 26, 0.4) 100%);
  border: 1px solid rgba(27, 22, 168, 0.2);
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeInBounce 0.8s ease-out;
}
.skills-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(27, 22, 168, 0.2) 50%, transparent 100%);
  transition: left 0.6s ease-out;
}
.skills-list li:hover {
  background: linear-gradient(135deg, rgba(27, 22, 168, 0.18) 0%, rgba(26, 26, 26, 0.6) 100%);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(27, 22, 168, 0.25);
  border-color: #1B16A8;
}
.skills-list li:hover::before {
  left: 100%;
}

/* Portfolio Grid - Instagram Feed Style */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Home portfolio preview (buttons that link to the portfolio page) */
.home-portfolio-preview-status {
  color: #bbb;
  margin-top: 10px;
  margin-bottom: 18px;
}

.home-portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .home-portfolio-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-portfolio-preview-grid {
    grid-template-columns: 1fr;
  }

  .home-portfolio-preview-thumb {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 520px) {
  .home-portfolio-preview-grid {
    grid-template-columns: 1fr;
  }
}

.home-portfolio-preview-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgba(27, 22, 168, 0.12) 0%, rgba(124, 58, 237, 0.06) 100%);
  border: 1px solid rgba(27, 22, 168, 0.2);
  transition: all 0.3s ease;
  min-height: 118px;
}

.home-portfolio-preview-thumb {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(27, 22, 168, 0.25);
}

.home-portfolio-preview-btn:hover {
  transform: translateY(-6px);
  border-color: rgba(27, 22, 168, 0.5);
  box-shadow: 0 15px 50px rgba(27, 22, 168, 0.2);
}

.home-portfolio-preview-title {
  font-weight: 700;
  color: #f0f0f0;
  font-size: 1.05rem;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.home-portfolio-preview-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.home-portfolio-preview-caption {
  color: #bbb;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-portfolio-preview-arrow {
  color: #7C3AED;
  flex: 0 0 auto;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.portfolio-item {
  background: linear-gradient(135deg, rgba(27, 22, 168, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: 1px solid rgba(27, 22, 168, 0.2);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  animation: fadeInBounce 0.8s ease-out;
  position: relative;
}

.portfolio-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(27, 22, 168, 0.3);
  border-color: rgba(27, 22, 168, 0.5);
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  transition: all 0.4s ease-in-out;
  filter: brightness(1);
  display: block;
  border-radius: 16px;
  margin: 0;
  padding: 0;
}

.portfolio-item:hover img {
  filter: brightness(1.05) contrast(1.05);
  transform: scale(1.03);
}

.portfolio-content {
  padding: 18px;
  background: rgba(2, 2, 18, 0.9);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease-in-out;
  opacity: 0.85;
}

.portfolio-content h3 {
  font-size: 1.1rem;
  color: #1B16A8;
  margin: 0;
  font-weight: 700;
}

.portfolio-content p {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0;
  line-height: 1.4;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.portfolio-tags span {
  background: rgba(27, 22, 168, 0.2);
  color: #1B16A8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(27, 22, 168, 0.3);
  transition: all 0.3s ease-in-out;
}

.portfolio-tags span:hover {
  background: rgba(27, 22, 168, 0.35);
  border-color: rgba(27, 22, 168, 0.6);
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  
  .portfolio-item {
  }
  
  .portfolio-item img {
    aspect-ratio: 1 / 1;
    height: auto;
  }
  
  .portfolio-item:hover img {
    transform: scale(1.02);
  }
  
  .portfolio-content {
    padding: 16px;
  }
  
  .portfolio-content h3 {
    font-size: 1rem;
  }
  
  .portfolio-content p {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-item img {
    transition: opacity 0.3s ease-in-out;
  }
  .portfolio-item:hover img {
    transform: none;
  }
}

/* Social Buttons in Connect Section */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  animation: fadeInScale 0.8s ease-out;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #1B16A8 0%, #7C3AED 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  font-weight: 600;
  border: 2px solid transparent;
  box-shadow: 0 12px 30px rgba(27, 22, 168, 0.2);
  animation: slideInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}
.social-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(27, 22, 168, 0.4);
  border-color: #fff;
}
.social-btn:hover::before {
  width: 300px;
  height: 300px;
}
.social-btn i {
  font-size: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .social-btn {
    transition: background-color 0.3s ease-in-out;
  }
  .social-btn:hover {
    transform: none;
  }
  .social-btn::before {
    transition: none;
  }
}

/* Connect Button */
.connect-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #1B16A8 0%, #7C3AED 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1.05rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  box-shadow: 0 12px 30px rgba(27, 22, 168, 0.3);
  position: relative;
  overflow: hidden;
}
.connect-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.connect-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(27, 22, 168, 0.5);
  border-color: #fff;
}
.connect-btn:hover::before {
  width: 300px;
  height: 300px;
}

@media (prefers-reduced-motion: reduce) {
  .connect-btn {
    transition: background-color 0.3s ease-in-out;
  }
  .connect-btn:hover {
    transform: none;
  }
  .connect-btn::before {
    transition: none;
  }
}

/* Portfolio View All Button */
.portfolio-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  background: transparent;
  border: 2px solid rgba(27, 22, 168, 0.3);
  color: #1B16A8;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.portfolio-view-btn:hover {
  border-color: rgba(27, 22, 168, 0.6);
  color: #1B16A8;
  background: rgba(27, 22, 168, 0.08);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #020212 0%, #0f0a1a 100%);
  text-align: center;
  padding: 40px 0;
  font-size: 0.95rem;
  border-top: 2px solid rgba(27, 22, 168, 0.2);
  margin-top: 60px;
  color: #999;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 10px;
  }
  header .logo {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
  }
  .nav-links {
    margin-top: 10px;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    justify-content: center;
  }
  #hero {
    margin-top: 80px;
    height: auto;
    min-height: 600px;
    padding: 30px 15px;
  }
  #hero .hero-overlay {
    padding: 50px 20px;
    border-radius: 12px;
  }
  #hero h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  #hero p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  /* Optimized profile picture sizing on mobile */
  #hero .profile-pic {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    margin: 0 auto 25px;
    border-width: 4px;
  }
  #hero .btn {
    padding: 12px 32px;
    font-size: 0.95rem;
  }
  .content-section {
    padding: 70px 15px;
  }
  .content-section::before,
  .content-section::after {
    height: 50px;
  }
  .content-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .content-section h2::after {
    width: 30px;
  }
  .experience {
    max-width: 100%;
    margin: 30px auto 0;
    gap: 30px;
  }
  .experience h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  .experience h3::after {
    width: 25px;
  }
  .experience li {
    padding: 14px 16px 14px 20px;
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  .experience li::before {
    left: -21px;
  }
  .skills-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .skills-list li {
    padding: 15px 12px;
    font-size: 0.85rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-gap: 15px;
  }
  .social-buttons {
    gap: 12px;
    flex-direction: column;
    margin-top: 30px;
  }
  .social-btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.9rem;
  }
  footer {
    padding: 30px 15px;
    font-size: 0.9rem;
  }
}
