/* Modern Professional Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --success: #06b6d4;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --text: #0f172a;
  --text-gray: #64748b;
  --border: #e2e8f0;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-light);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-family: "Nunito", sans-serif;
}

/* Header */
#header {
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08);
  padding: 7px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

#header .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header .logo a {
  background: linear-gradient(135deg, #3b82f6, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1px;
  text-decoration: none;
}

.navbar {
  padding: 0;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar a {
  color: var(--text-gray);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
}

.navbar a:hover,
.navbar .active {
  color: var(--accent);
}

.navbar>ul>li>a:before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: linear-gradient(135deg, var(--accent), var(--success));
  transition: width 0.3s ease;
}

.navbar>ul>li>a:hover:before,
.navbar>ul>li>a.active:before {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
}

/* Hero Section */
#hero {
  background: linear-gradient(-45deg, #0f172a, #1e293b, #2d3748, #1a202c);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
  animation: floatGradient 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes floatGradient {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}

#hero h3 {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#hero h1 {
  color: #fff;
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 800;
  margin: 20px 0;
  line-height: 1.2;
}

#hero h2 {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.4;
}

#hero .btn-get-started {
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#hero .btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
}

/* GitHub Layout */
.github-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 50px;
}

.profile-sidebar {
  width: 300px;
  position: sticky;
  top: 100px;
  height: fit-content;
  order: -1;
}

.profile-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
  margin-bottom: 20px;
}

.avatar-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 20px;
  font-weight: 800;
  margin: 15px 0 5px 0;
  color: var(--text);
}

.profile-username {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 700;
  animation: colorShift 4s ease infinite;
  color: #06b6d4;
}

@keyframes colorShift {
  0% {
    color: #06b6d4;
  }
  33% {
    color: #0891b2;
  }
  66% {
    color: #6366f1;
  }
  100% {
    color: #06b6d4;
  }
}

.profile-bio {
  color: var(--text-gray);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.profile-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.stat-item {
  font-size: 12px;
  color: var(--text-gray);
}

.stat-item strong {
  color: var(--text);
  font-weight: 800;
  display: block;
  font-size: 16px;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--text);
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.profile-link:hover {
  background: var(--bg-light);
  color: var(--accent);
  border-color: var(--border);
}

.profile-link i {
  margin-right: 8px;
  width: 16px;
}

/* Main Content */
.main-content {
  flex: 1;
  min-width: 0;
}

.content-section {
  margin-bottom: 30px;
}

.content-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  height: auto;
  overflow: visible;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 18px;
  display: inline-block;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 15px;
}

.section-title h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text);
}

.section-title h3 span {
  background: linear-gradient(135deg, var(--accent), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--text-gray);
  font-size: 15px;
  max-width: 700px;
  margin: 0 auto;
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.expertise-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
}

.expertise-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
  transform: translateY(-5px);
}

.expertise-item .icon {
  margin-bottom: 15px;
}

.expertise-item .icon i {
  font-size: 48px;
  color: var(--accent);
}

.expertise-item h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.expertise-item p {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.skill-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  transition: all 0.3s;
}

.skill-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-3px);
}

.skill-item i {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}

.skill-item h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

/* Experience Timeline */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.experience-item {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.experience-item:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  border-left-color: var(--success);
}

.experience-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.experience-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.experience-header .company {
  background: linear-gradient(135deg, var(--accent), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 13px;
  font-weight: 700;
}

.experience-header .location {
  color: var(--text-gray);
  font-size: 12px;
}

.experience-date {
  color: var(--text-gray);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.experience-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-details li {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

.experience-details li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}



/* Buttons */
.btn-learn-more {
  color: var(--accent);
  border: 2px solid var(--accent);
  background: transparent;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-learn-more:hover {
  background: var(--accent);
  color: #fff;
}

#toggle-btn, #portfolio-toggle-btn {
  color: var(--accent);
  border: 2px solid var(--accent);
  background: transparent;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

#toggle-btn:hover, #portfolio-toggle-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 12px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

/* Footer */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text-gray);
  padding: 40px 0 20px;
}

#footer h3, #footer h4 {
  color: var(--text);
}

.footer-content {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section p {
  color: var(--text-gray);
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  color: var(--text-gray);
  border-radius: 6px;
  transition: all 0.3s;
  font-size: 18px;
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  margin-top: 30px;
}

.copyright {
  color: var(--text-gray);
  font-size: 13px;
}

/* Back to Top */
.back-to-top {
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  #header .container {
    padding: 0 20px;
  }

  .navbar ul {
    gap: 20px;
  }

  .navbar a {
    font-size: 11px;
  }

  #hero {
    margin-top: 50px;
  }

  .github-layout {
    flex-direction: column;
    padding: 20px;
    gap: 30px;
  }
  
  .profile-sidebar {
    width: 100%;
    position: static;
    order: 0;
  }
  
  .content-card {
    padding: 25px;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar ul {
    gap: 12px;
  }

  .navbar a {
    font-size: 10px;
  }

  #hero h1 {
    font-size: 24px;
  }
  
  #hero h2 {
    font-size: 16px;
  }
  
  .content-card {
    padding: 20px;
  }
  
  .section-title h3 {
    font-size: 24px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-btn {
    width: 100%;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}


@media (max-width: 768px) {
  .tech-stack-container {
    gap: 25px;
  }

  .tech-category {
    padding: 20px;
  }

  .tech-items {
    gap: 10px;
  }

  .tech-badge {
    padding: 8px 14px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .tech-stack-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .tech-category-card {
    min-height: 240px;
  }

  .card-header {
    padding: 15px 12px;
    font-size: 12px;
  }

  .card-body {
    padding: 15px 12px;
    gap: 8px;
  }

  .tech-badge {
    padding: 8px 12px;
    font-size: 11px;
  }
}


@media (max-width: 768px) {
  .tech-stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
  }

  .tech-skill {
    padding: 10px 12px;
    font-size: 12px;
  }
}


/* Tech Stack Section */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.tech-skill {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
  display: block;
}

.tech-skill:nth-child(1) { background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05)); border-color: #7c3aed; color: #7c3aed; }
.tech-skill:nth-child(2) { background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(99, 102, 241, 0.08)); border-color: #6366f1; color: #6366f1; }
.tech-skill:nth-child(3) { background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(59, 130, 246, 0.08)); border-color: #3b82f6; color: #3b82f6; }
.tech-skill:nth-child(4) { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(34, 197, 94, 0.08)); border-color: #22c55e; color: #22c55e; }
.tech-skill:nth-child(5) { background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(6, 182, 212, 0.08)); border-color: #06b6d4; color: #06b6d4; }
.tech-skill:nth-child(6) { background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(14, 165, 233, 0.08)); border-color: #0ea5e9; color: #0ea5e9; }
.tech-skill:nth-child(7) { background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(59, 130, 246, 0.08)); border-color: #3b82f6; color: #3b82f6; }
.tech-skill:nth-child(8) { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(124, 58, 237, 0.08)); border-color: #7c3aed; color: #7c3aed; }
.tech-skill:nth-child(9) { background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.08)); border-color: #a855f7; color: #a855f7; }
.tech-skill:nth-child(10) { background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.08)); border-color: #ec4899; color: #ec4899; }
.tech-skill:nth-child(11) { background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(249, 115, 22, 0.08)); border-color: #f97316; color: #f97316; }
.tech-skill:nth-child(12) { background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(251, 146, 60, 0.08)); border-color: #fb923c; color: #fb923c; }
.tech-skill:nth-child(13) { background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(34, 197, 94, 0.08)); border-color: #22c55e; color: #22c55e; }
.tech-skill:nth-child(14) { background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(6, 182, 212, 0.08)); border-color: #06b6d4; color: #06b6d4; }
.tech-skill:nth-child(15) { background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.08)); border-color: #3b82f6; color: #3b82f6; }
.tech-skill:nth-child(16) { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(124, 58, 237, 0.08)); border-color: #7c3aed; color: #7c3aed; }
.tech-skill:nth-child(17) { background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.08)); border-color: #a855f7; color: #a855f7; }
.tech-skill:nth-child(18) { background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.08)); border-color: #ec4899; color: #ec4899; }
.tech-skill:nth-child(19) { background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(249, 115, 22, 0.08)); border-color: #f97316; color: #f97316; }
.tech-skill:nth-child(20) { background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(251, 146, 60, 0.08)); border-color: #fb923c; color: #fb923c; }
.tech-skill:nth-child(21) { background: linear-gradient(135deg, rgba(251, 146, 60, 0.12), rgba(34, 197, 94, 0.08)); border-color: #22c55e; color: #22c55e; }
.tech-skill:nth-child(22) { background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(6, 182, 212, 0.08)); border-color: #06b6d4; color: #06b6d4; }
.tech-skill:nth-child(23) { background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.08)); border-color: #3b82f6; color: #3b82f6; }
.tech-skill:nth-child(24) { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(124, 58, 237, 0.08)); border-color: #7c3aed; color: #7c3aed; }
.tech-skill:nth-child(25) { background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.08)); border-color: #a855f7; color: #a855f7; }
.tech-skill:nth-child(26) { background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.08)); border-color: #ec4899; color: #ec4899; }
.tech-skill:nth-child(27) { background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(249, 115, 22, 0.08)); border-color: #f97316; color: #f97316; }

.tech-skill:hover {
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3);
  border-color: transparent;
}

@media (max-width: 768px) {
  .tech-stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
  }

  .tech-skill {
    padding: 10px 12px;
    font-size: 12px;
  }
}


/* Portfolio Flip Cards */
.project-box {
  perspective: 1000px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: all 0.3s;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-box:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
  transform: translateY(-5px);
}

.project-content {
  transition: all 0.6s;
  transform-style: preserve-3d;
}

.project-box:hover .project-content {
  transform: rotateY(180deg);
}

.project-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  backface-visibility: hidden;
}

.project-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.project-content p {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.project-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.project-btn {
  padding: 8px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.3s;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.project-btn i {
  margin-right: 4px;
}


/* Portfolio */
.portfolio {
  padding: 40px 0;
}

.portfolio-container {
  margin-top: 30px;
}

.portfolio-item {
  margin-bottom: 30px;
}

.project-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: all 0.3s;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.project-box:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
  transform: translateY(-5px);
}

.project-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.project-box p {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.project-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.project-btn {
  padding: 8px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.3s;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.project-btn i {
  margin-right: 4px;
}

/* Project Modal */
.project-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: var(--bg);
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.close {
  color: var(--text-gray);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: var(--accent);
}

#modalImage {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  max-height: 400px;
  object-fit: cover;
}

#modalTitle {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 15px;
}

#modalDesc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 20px;
  }

  #modalTitle {
    font-size: 18px;
  }

  #modalDesc {
    font-size: 13px;
  }
}


/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text);
}

.navbar.mobile-nav-active ul {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  gap: 0;
}

.navbar.mobile-nav-active ul li {
  padding: 10px 20px;
}

.navbar.mobile-nav-active ul li a {
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }

  .navbar.mobile-nav-active ul {
    display: flex !important;
  }

  #header .container {
    padding: 0 15px;
  }

  .navbar a {
    font-size: 13px;
  }

  #hero h1 {
    font-size: 28px;
  }

  #hero h2 {
    font-size: 16px;
  }

  .github-layout {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .profile-sidebar {
    width: 100%;
    position: static;
  }

  .content-card {
    padding: 20px;
  }

  .content p {
    font-size: 15px;
    line-height: 1.8;
  }

  .section-title h3 {
    font-size: 24px;
  }

  .section-title p {
    font-size: 14px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-item h4 {
    font-size: 16px;
  }

  .expertise-item p {
    font-size: 14px;
  }

  .experience-item h4 {
    font-size: 15px;
  }

  .experience-details li {
    font-size: 14px;
  }

  .tech-stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .tech-skill {
    padding: 10px 12px;
    font-size: 12px;
  }

  .project-box h4 {
    font-size: 14px;
  }

  .project-box p {
    font-size: 13px;
  }

  .project-btn {
    padding: 7px 12px;
    font-size: 10px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  #modalTitle {
    font-size: 18px;
  }

  #modalDesc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  #header .container {
    padding: 0 10px;
  }

  .navbar a {
    font-size: 11px;
  }

  #hero h1 {
    font-size: 22px;
  }

  #hero h2 {
    font-size: 14px;
  }

  .content-card {
    padding: 15px;
  }

  .content p {
    font-size: 14px;
    line-height: 1.7;
  }

  .section-title h2 {
    font-size: 10px;
    padding: 6px 14px;
  }

  .section-title h3 {
    font-size: 20px;
  }

  .section-title p {
    font-size: 13px;
  }

  .profile-name {
    font-size: 18px;
  }

  .profile-bio {
    font-size: 12px;
  }

  .experience-item h4 {
    font-size: 14px;
  }

  .experience-details li {
    font-size: 13px;
  }

  .tech-stack-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
  }

  .tech-skill {
    padding: 8px 10px;
    font-size: 11px;
  }

  .project-box {
    padding: 15px;
    min-height: 200px;
  }

  .project-box h4 {
    font-size: 13px;
  }

  .project-box p {
    font-size: 12px;
  }

  .project-btn {
    padding: 6px 10px;
    font-size: 9px;
  }
}


/* Fix content card height */
.content-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  min-height: auto;
  height: auto;
}

.content {
  display: block;
}

@media (max-width: 768px) {
  .content-card {
    padding: 20px;
    min-height: auto;
  }

  .content p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .content-card {
    padding: 15px;
    min-height: auto;
  }

  .content p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
  }
}

