:root {
  --bg-color: #131212;
  --text-color: #ffffff;
  --accent-color: #3498db;
  --hover-color: #2980b9;
  --card-bg: rgba(30, 30, 30, 0.7);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  height: 100%;
}

.container {
  max-width: 1200px;
  padding: 2rem;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: 
    "profile tabs-container"
    "footer footer";
  gap: 2rem;
  width: 70%;
}

.profile-section {
  grid-area: profile;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile-img {
  width: 150px;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  padding: 5px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

h1 {
  font-size: 2.2rem;
  margin: 0.5rem 0;
  font-weight: 700;
  letter-spacing: 1px;
}

.tagline {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #cccccc;
}

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) invert(1);
}

.colored-icon {
  width: 1.5rem;
  height: 1.5rem;
 
}

.tabs-container {
  grid-area: tabs-container;
  display: flex;
  flex-direction: column;
}

.tabs {
  display: flex;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.tab-btn {
  background: none;
  color: var(--text-color);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.7;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  opacity: 0.9;
}

.tab-btn.active {
  opacity: 1;
  border-bottom: 2px solid var(--accent-color);
}

.tab-content {
  flex: 1;
  height: 240px;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.tab-pane {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  position: absolute;
  z-index: 1;
 
  padding-right: 2px;
}

.tab-pane.active {
  display: block;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 5px 0 0;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  background: rgba(60, 60, 60, 0.5);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.social-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link:hover::after {
  opacity: 1;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 10px;
}

.project-card {
  background: rgba(60, 60, 60, 0.5);
  border-radius: 8px;
  padding: 1.2rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.project-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.project-description {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: #cccccc;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: rgba(60, 60, 60, 0.7);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0;
}

.project-link:hover {
  color: var(--text-color);
  background: var(--accent-color);
}

.project-links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-right: 10px;
}

.about-section h2 {
  font-size: 1.4rem;
  color: var(--accent-color);
  margin: 0 0 0.5rem 0;
}

.about-section p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #f0f0f0;
}

.about-section .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-tag {
  background: rgba(60, 60, 60, 0.7);
  color: var(--text-color);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.about-section .section-title {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin: 0.5rem 0;
  font-weight: 600;
}

footer {
  grid-area: footer;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "profile"
      "tabs-container"
      "footer";
    width: 100%;
    padding: 1.5rem;
    margin: auto;
    position: relative;
    top: 0;
    transform: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
  }
  
  .profile-img {
    width: 120px;
  }
  
  .tabs-container {
    flex: 1;
    margin-bottom: 70px;
  }
  
  .tab-content {
    height: auto;
    max-height: 48vh;
    position: relative;
    overflow: visible;
  }
  
  .tab-pane {
    position: relative;
    height: auto;
    max-height: 48vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: 40px;
  }
  
  .projects-list {
    padding-bottom: 40px;
  }
  
  .project-card:last-child {
    margin-bottom: 10px;
  }
  
  footer {
    margin-top: auto;
    padding: 15px 0 20px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--bg-color);
    z-index: 5;
    pointer-events: none;
  }
  
  footer span {
    pointer-events: auto;
  }

  .tab-pane::-webkit-scrollbar {
    width: 4px;
  }
  
  .tab-pane::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.2);
    border-radius: 10px;
  }
  
  .tab-pane::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .tabs {
    justify-content: center;
  }
  
  .tab-content {
    max-height: 250px;
  }
  
  .social-links {
    grid-template-columns: 1fr;
  }
  
  .social-link {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  
  .project-links-container {
    gap: 0.5rem;
  }
  
  .project-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
  
  footer {
    padding: 10px 0;
  }
}

@media (max-height: 700px) and (max-width: 768px) {
  .tab-content, .tab-pane {
    max-height: 38vh;
  }
  
  .tabs-container {
    margin-bottom: 60px;
  }
  
  .tab-pane {
    padding-bottom: 50px;
  }
}