/* Global styles */
/* Import Font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  /* Light mode colors */
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #4cc9f0;
  --text-color-light: #333333;
  --bg-color-light: #ffffff;
  --card-bg-light: #f8f9fa;
  --border-color-light: #e0e0e0;

  /* Dark mode colors */
  --text-color-dark: #f0f0f0;
  --bg-color-dark: #121212;
  --card-bg-dark: #1e1e1e;
  --border-color-dark: #333333;

  /* Common colors */
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;

  /* Fonts */
  --heading-font: "Montserrat", sans-serif;
  --body-font: "Poppins", sans-serif;

  /* Spacing */
  --section-spacing: 100px;
  --element-spacing: 20px;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;

  /* Border radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-circle: 50%;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--body-font);
  background-color: var(--bg-color-light);
  color: var(--text-color-light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  justify-content: center;
}

.letter {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0 5px;
  animation: bounce 1s infinite alternate;
}

.letter:nth-child(2) {
  animation-delay: 0.1s;
}
.letter:nth-child(3) {
  animation-delay: 0.2s;
}
.letter:nth-child(4) {
  animation-delay: 0.3s;
}
.letter:nth-child(5) {
  animation-delay: 0.4s;
}
.letter:nth-child(6) {
  animation-delay: 0.5s;
}
.letter:nth-child(7) {
  animation-delay: 0.6s;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-20px);
  }
}

/* Custom cursor */
.cursor-dot,
.cursor-dot-outline {
  pointer-events: none;
  position: fixed;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
  z-index: 9999;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
}

.cursor-dot-outline {
  width: 40px;
  height: 40px;
  background-color: rgba(67, 97, 238, 0.2);
}

/* Hide default cursor when custom cursor is active - but only on desktop */
@media (min-width: 769px) {
  body:has(.cursor-dot, .cursor-dot-outline) {
    cursor: none;
  }

  body:has(.cursor-dot, .cursor-dot-outline) a,
  body:has(.cursor-dot, .cursor-dot-outline) button,
  body:has(.cursor-dot, .cursor-dot-outline) input,
  body:has(.cursor-dot, .cursor-dot-outline) textarea,
  body:has(.cursor-dot, .cursor-dot-outline) .project-card,
  body:has(.cursor-dot, .cursor-dot-outline) .tech-item,
  body:has(.cursor-dot, .cursor-dot-outline) .social-icon-wrapper {
    cursor: none;
  }
}

/* On mobile devices, ensure cursor is hidden */
@media (max-width: 768px) {
  .cursor-dot,
  .cursor-dot-outline {
    display: none;
  }
}

/* Light/Dark mode */
body.light-mode {
  background-color: var(--bg-color-light);
  color: var(--text-color-light);
}

body.dark-mode {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
}

body.dark-mode .preloader {
  background-color: var(--bg-color-dark);
}

body.dark-mode .card,
body.dark-mode .navbar,
body.dark-mode .project-card,
body.dark-mode .tech-item,
body.dark-mode .award-content,
body.dark-mode .form-control {
  background-color: var(--card-bg-dark);
  color: var(--text-color-dark);
  border-color: var(--border-color-dark);
}

body.dark-mode .form-control:focus {
  background-color: var(--card-bg-dark);
  color: var(--text-color-dark);
  border-color: var(--primary-color);
}

body.dark-mode .form-floating label {
  color: var(--text-color-dark);
}

body.dark-mode .nav-link,
body.dark-mode .theme-toggle {
  color: var(--text-color-dark);
}

body.dark-mode .social-icon {
  filter: invert(1);
}

body.dark-mode .carousel-control-prev-icon,
body.dark-mode .carousel-control-next-icon {
  background-color: var(--text-color-dark);
}

body.dark-mode .progress {
  background-color: var(--border-color-dark);
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.underline {
  height: 4px;
  width: 70px;
  background-color: var(--primary-color);
  margin: 0 auto;
  position: relative;
}

.underline::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 0;
  height: 4px;
  width: 15px;
  background-color: var(--accent-color);
}

.underline::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 0;
  height: 4px;
  width: 15px;
  background-color: var(--accent-color);
}

/* Navbar styles */
.navbar {
  width: 100%;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color var(--transition-medium), box-shadow var(--transition-medium);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .nav-items {
  background-color: rgba(30, 30, 30, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
  text-decoration: none;
  color: var(--text-color-light);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-circle);
}

.nav-link:hover {
  transform: translateY(-5px);
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(67, 97, 238, 0.1);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-color-light);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-circle);
}

.theme-toggle:hover {
  transform: rotate(30deg) scale(1.1);
  color: var(--primary-color);
}

/* Modern Profile Section Styles */
.modern-profile {
  margin-top: -60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* padding: 120px 0 20px; */
  overflow: hidden;
}

.profile-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 20px;
  padding: 40px;
  overflow: hidden;
}

/* Background shapes */
.profile-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #4cc9f0, #4361ee);
  bottom: -50px;
  right: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #3a0ca3, #4cc9f0);
  top: 50%;
  right: 15%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Profile content */
.profile-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Profile image */
.profile-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 20px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  border: 5px solid rgba(255, 255, 255, 0.8);
}

.image-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #4361ee, #4cc9f0);
  border-radius: 20px;
  z-index: 1;
  opacity: 0.7;
  transition: all 0.5s ease;
}

.profile-image-wrapper:hover .profile-image {
  transform: translate(-5px, -5px);
}

.profile-image-wrapper:hover .image-backdrop {
  transform: translate(5px, 5px);
}

/* Profile text */
.profile-text {
  flex: 1;
}

.greeting {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.greeting-text {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-right: 15px;
}

.animated-bar {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.animated-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.profile-name {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.first-name,
.last-name {
  display: block;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.profile-role {
  font-size: 1.5rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.role-intro {
  margin-right: 8px;
}

.txt-rotate {
  position: relative;
  color: var(--primary-color);
  font-weight: 600;
}

.txt-rotate::after {
  content: "|";
  position: absolute;
  right: -8px;
  animation: blink 0.7s infinite;
}

.profile-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: white;
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color-light);
}

body.dark-mode .btn-secondary {
  color: var(--text-color-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-5px);
}

.btn-primary:hover {
  box-shadow: 0 15px 25px rgba(67, 97, 238, 0.4);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.scroll-indicator:hover {
  opacity: 1;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-color-light);
  border-radius: 20px;
  position: relative;
  margin-bottom: 10px;
}

body.dark-mode .mouse {
  border-color: var(--text-color-dark);
}

.wheel {
  width: 6px;
  height: 6px;
  background-color: var(--text-color-light);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

body.dark-mode .wheel {
  background-color: var(--text-color-dark);
}

.scroll-text {
  font-size: 0.8rem;
  color: var(--text-color-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.dark-mode .scroll-text {
  color: var(--text-color-dark);
}

/* Responsive styles */
@media (max-width: 992px) {
  .profile-name {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .profile-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .greeting {
    justify-content: center;
  }

  .profile-name {
    font-size: 3rem;
  }

  .profile-role {
    justify-content: center;
  }

  .profile-actions {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .profile-card {
    padding: 30px 20px;
  }

  .profile-image {
    width: 220px;
    height: 220px;
  }

  .profile-name {
    font-size: 2.5rem;
  }

  .profile-role {
    font-size: 1.2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 25px;
  }
}

/* About section */
.about {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  margin-bottom: -70px;
}

.about1 {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.aboutimg {
  max-width: 250px;
  border-radius: var(--border-radius-circle);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-medium);
}

.aboutimg:hover {
  transform: scale(1.05) rotate(5deg);
}

.card1 {
  border: none;
  background-color: transparent;
  border-radius: 30px;
}

.card-body p {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
}

.btn-container {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btnabout {
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btnabout:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Add these styles after the "About section" styles: */

/* Improved About section with tabs */
.about-tabs-container {
  background-color: var(--card-bg-light);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 30px;
}

body.dark-mode .about-tabs-container {
  background-color: var(--card-bg-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Custom Tab Navigation */
.about-tabs-container {
  background-color: var(--card-bg-light);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 30px;
}

body.dark-mode .about-tabs-container {
  background-color: var(--card-bg-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color-light);
  background-color: rgba(248, 249, 250, 0.5);
}

body.dark-mode .about-tabs-nav {
  border-bottom-color: var(--border-color-dark);
  background-color: rgba(30, 30, 30, 0.5);
}

.about-tab-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 15px 25px;
  font-weight: 500;
  color: var(--text-color-light);
  position: relative;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

body.dark-mode .about-tab-btn {
  color: var(--text-color-dark);
}

.about-tab-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width var(--transition-fast);
}

.about-tab-btn.active {
  color: var(--primary-color);
  font-weight: 600;
}

.about-tab-btn.active::after {
  width: 100%;
}

.about-tab-btn:hover:not(.active) {
  color: var(--primary-color);
  background-color: rgba(67, 97, 238, 0.05);
}

.about-tabs-content {
  padding: 30px;
  position: relative;
}

.about-tab-pane {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-tab-pane.active {
  display: block;
  opacity: 1;
}

.about-content-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-content-inner p {
  margin-bottom: 30px;
  line-height: 1.8;
  flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-tab-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .about-tabs-content {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .about-tab-btn {
    padding: 10px;
    font-size: 0.8rem;
  }

  .about-tabs-content {
    padding: 15px;
  }
}

.about-tabs {
  border-bottom: 1px solid var(--border-color-light);
  padding: 0;
  background-color: rgba(248, 249, 250, 0.5);
  display: flex;
  justify-content: space-around;
}

body.dark-mode .about-tabs {
  border-bottom-color: var(--border-color-dark);
  background-color: rgba(30, 30, 30, 0.5);
}

.about-tabs .nav-link {
  border: none;
  border-radius: 0;
  padding: 15px 25px;
  font-weight: 500;
  color: var(--text-color-light);
  position: relative;
  transition: all var(--transition-fast);
  width: 100%;
  text-align: center;
}

body.dark-mode .about-tabs .nav-link {
  color: var(--text-color-dark);
}

.about-tabs .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width var(--transition-fast);
}

.about-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  font-weight: 600;
}

.about-tabs .nav-link.active::after {
  width: 100%;
}

.about-tabs .nav-link:hover:not(.active) {
  color: var(--primary-color);
  background-color: rgba(67, 97, 238, 0.05);
}

.about-tab-content {
  padding: 30px;
  position: relative;
}

.about-content-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-content-inner p {
  margin-bottom: 30px;
  line-height: 1.8;
  flex-grow: 1;
}

.btn-container {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Timeline styling */
.timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 10px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -38px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}

.timeline-content {
  padding-bottom: 10px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.timeline-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--text-color-light);
  opacity: 0.8;
  margin-bottom: 15px;
}

body.dark-mode .timeline-date {
  color: var(--text-color-dark);
}

.timeline-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.timeline-list li {
  margin-bottom: 10px;
  position: relative;
}

.timeline-list li:last-child {
  margin-bottom: 0;
}

.timeline-list li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: -15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-tabs .nav-link {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .about-tab-content {
    padding: 20px;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .about-tabs .nav-link {
    padding: 10px;
    font-size: 0.8rem;
  }

  .about-tab-content {
    padding: 15px;
  }

  .timeline {
    padding-left: 25px;
  }

  .timeline-marker {
    left: -33px;
    width: 14px;
    height: 14px;
  }
}

/* Remove any conflicting styles */
/*.nav-tabs .nav-link {
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}*/

/*.nav-tabs .nav-link:hover {
  transform: none;
}*/

.about-tabs .nav-item {
  flex: 1;
}

.about-tabs .nav-link {
  display: block;
  width: 100%;
  text-align: center;
}

/* Remove these styles if they exist elsewhere in your CSS */
.nav-tabs .nav-link {
  color: var(--text-color-light);
  border: none;
  padding: 10px 20px;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

body.dark-mode .nav-tabs .nav-link {
  color: var(--text-color-dark);
}

.nav-tabs .nav-link:hover {
  background-color: rgba(67, 97, 238, 0.1);
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  border-bottom: 2px solid var(--primary-color);
}

/* Tabs styling */
.card-header-tabs {
  border-bottom: none;
}

/* Timeline styling */

/* Technology section */
.tecnology {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

.tech-focus {
  background-color: var(--card-bg-light);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-medium);
}

body.dark-mode .tech-focus {
  background-color: var(--card-bg-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-focus:hover {
  transform: translateY(-10px);
}

.tech-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.tech-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-focus h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tech-item {
  background-color: var(--card-bg-light);
  border-radius: var(--border-radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

body.dark-mode .tech-item {
  background-color: var(--card-bg-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-item::before {
  content: attr(data-tech);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(67, 97, 238, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tech-item:hover::before {
  opacity: 1;
}

.tech-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}

.tech-name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Certification section */
.certification {
  background-color: var(--card-bg-light);
  border-radius: 20px;
}

body.dark-mode .certification {
  background-color: var(--card-bg-dark);
}

.cert-container {
  max-width: 900px;
  margin: 0 auto;
}

.carousel {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .carousel {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.carousel-item {
  position: relative;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: var(--border-radius-md);
  padding: 15px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.carousel-indicators button {
  background-color: var(--primary-color);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* Project section */
.project {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

/* Add styles for project filter */
.project-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  background-color: var(--card-bg-light);
  color: var(--text-color-light);
  border: 1px solid var(--border-color-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
  font-weight: 500;
}

body.dark-mode .filter-btn {
  background-color: var(--card-bg-dark);
  color: var(--text-color-dark);
  border-color: var(--border-color-dark);
}

.filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Update the project grid styles for better responsiveness */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  width: 100%;
}

.project-item {
  transition: all var(--transition-medium);
  width: 100%;
  height: 100%;
}

.project-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: var(--card-bg-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium);
  width: 100%;
}

body.dark-mode .project-card {
  background-color: var(--card-bg-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Improve project card styling */
.project-card {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

body.dark-mode .project-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.project-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.project-content p {
  margin-bottom: 15px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-tags span {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
}

body.dark-mode .project-tags span {
  background-color: rgba(67, 97, 238, 0.2);
}

/* Project metadata styling */
.project-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: var(--text-color-light);
  opacity: 0.8;
}

body.dark-mode .project-metadata {
  color: var(--text-color-dark);
}

.project-metadata span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-metadata i {
  font-size: 0.9rem;
  color: var(--primary-color);
}

.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-links .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
}

/* Project Modal */
.project-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.project-modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-color-light);
  margin: 5% auto;
  padding: 30px;
  border-radius: var(--border-radius-lg);
  max-width: 800px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: all var(--transition-medium);
}

body.dark-mode .modal-content {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
}

.project-modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color-light);
  cursor: pointer;
  transition: color var(--transition-fast);
}

body.dark-mode .close-modal {
  color: var(--text-color-dark);
}

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

.modal-body {
  padding: 20px 0;
}

.modal-body h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.modal-body img {
  width: 100%;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
}

#modal-description {
  margin-bottom: 20px;
  line-height: 1.8;
}

#modal-tech {
  margin-bottom: 20px;
}

#modal-tech h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

#modal-tech ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#modal-tech li {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
}

body.dark-mode #modal-tech li {
  background-color: rgba(67, 97, 238, 0.2);
}

#modal-links {
  display: flex;
  gap: 15px;
}

/* Award section */
.award {
  /* padding-bottom: var(--section-spacing); */
  background-color: var(--card-bg-light);
  border-radius: 20px;
}

body.dark-mode .award {
  background-color: var(--card-bg-dark);
}

.award-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.award-image-top,
.award-image-bottom {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-medium);
  flex: 1;
}

body.dark-mode .award-image-top,
body.dark-mode .award-image-bottom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.award-image-top:hover,
.award-image-bottom:hover {
  transform: scale(1.03);
}

.award-image-top img,
.award-image-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.award-content {
  background-color: var(--card-bg-light);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.dark-mode .award-content {
  background-color: var(--card-bg-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.award-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.award-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.award-subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.award-description {
  margin-bottom: 30px;
  line-height: 1.8;
}

/* Contact section */
.contact {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

.contact .card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: none;
}

body.dark-mode .contact .card {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cimg {
  max-width: 180px;
  margin-bottom: 20px;
  transition: transform var(--transition-medium);
}

.cimg:hover {
  transform: scale(1.05);
}

.contact .card-title {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.contact .card-text {
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.social-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-fast);
}

.social-icon-wrapper:hover {
  transform: translateY(-5px);
}

.social-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
}

.social-name {
  font-size: 0.8rem;
  color: var(--text-color-light);
}

body.dark-mode .social-name {
  color: var(--text-color-dark);
}

/* Improve contact form styles */
.contact-form {
  padding: 20px 0;
}

.form-floating {
  margin-bottom: 20px;
}

.form-control {
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color-light);
  padding: 15px;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  transition: all var(--transition-fast);
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.submit-btn i {
  transition: transform var(--transition-fast);
}

.submit-btn:hover i {
  transform: translateX(5px);
}

.alert {
  border-radius: var(--border-radius-md);
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.alert-danger {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
}

/* Footer */
.footer {
  background-color: var(--card-bg-light);
  padding: 60px 0 20px;
  border-radius: 20px;
}

body.dark-mode .footer {
  background-color: var(--card-bg-dark);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.footer-logo p {
  color: var(--text-color-light);
  opacity: 0.8;
}

body.dark-mode .footer-logo p {
  color: var(--text-color-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-color-light);
  transition: color var(--transition-fast);
}

body.dark-mode .footer-links a {
  color: var(--text-color-dark);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-circle);
  background-color: rgba(67, 97, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

body.dark-mode .footer-bottom {
  border-color: var(--border-color-dark);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-color-light);
  opacity: 0.8;
}

body.dark-mode .footer-bottom p {
  color: var(--text-color-dark);
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-circle);
  background-color: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* Responsive styles */
@media (max-width: 992px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .nama1,
  .nama2 {
    font-size: 3rem;
  }

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

  .award-content {
    padding: 30px;
  }

  .award-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .nav-items {
    gap: 15px;
  }

  .nav-link,
  .theme-toggle {
    font-size: 1rem;
    width: 35px;
    height: 35px;
  }

  .profile {
    height: auto;
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .profileimage {
    width: 200px;
  }

  .nama1,
  .nama2 {
    font-size: 2.5rem;
  }

  .scroll-indicator {
    display: none;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .award-images {
    margin-bottom: 30px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 1.8rem;
  }

  .nama1,
  .nama2 {
    font-size: 2rem;
  }

  .btn-container {
    flex-direction: column;
    width: 100%;
  }

  .btnabout {
    width: 100%;
  }

  .project-filter {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }

  .modal-content {
    padding: 20px;
    margin: 10% auto;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Animation classes for AOS */
[data-aos="fade-up"] {
  transform: translate3d(0, 50px, 0);
  opacity: 0;
  transition: transform 0.8s, opacity 0.8s;
}

[data-aos="fade-up"].aos-animate {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

[data-aos="fade-right"] {
  transform: translate3d(-50px, 0, 0);
  opacity: 0;
  transition: transform 0.8s, opacity 0.8s;
}

[data-aos="fade-right"].aos-animate {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

[data-aos="fade-left"] {
  transform: translate3d(50px, 0, 0);
  opacity: 0;
  transition: transform 0.8s, opacity 0.8s;
}

[data-aos="fade-left"].aos-animate {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* Update tech grid for better responsiveness */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

@media (max-width: 576px) {
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 15px;
  }
}

/* Add responsive styles for project section */
@media (max-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-items {
    gap: 15px;
    padding: 0 15px;
  }

  .nav-link,
  .theme-toggle {
    font-size: 1rem;
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 576px) {
  .nav-items {
    gap: 10px;
    padding: 0 10px;
  }

  .nav-link,
  .theme-toggle {
    font-size: 0.9rem;
    width: 30px;
    height: 30px;
  }
}

/* Responsive adjustments for project grid */
@media (max-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-links {
    flex-direction: column;
  }

  .project-links .btn {
    width: 100%;
  }
}

/* Responsive styles for project filter */
@media (max-width: 768px) {
  .project-filter {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 15px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .project-filter {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-btn {
    margin-bottom: 8px;
  }
}

/* Loading and error states */
.project-grid .text-center {
  color: var(--text-color-light);
}

body.dark-mode .project-grid .text-center {
  color: var(--text-color-dark);
}

.project-grid .fa-spinner,
.project-grid .fa-folder-open,
.project-grid .fa-exclamation-triangle {
  color: var(--primary-color);
}

/* Refresh button for projects */
.refresh-projects {
  background-color: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 auto 20px;
  padding: 5px 15px;
  border-radius: 20px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.refresh-projects:hover {
  background-color: rgba(67, 97, 238, 0.1);
  transform: translateY(-2px);
}

.refresh-projects i {
  transition: transform var(--transition-fast);
}

.refresh-projects:hover i {
  transform: rotate(180deg);
}

/* Add styles for rate limit notifications */
.rate-limit-note {
  border-radius: var(--border-radius-md);
  padding: 10px 15px;
  margin: 20px 0;
  font-size: 0.9rem;
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.5);
  color: var(--text-color-light);
}

body.dark-mode .rate-limit-note {
  background-color: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: var(--text-color-dark);
}

.text-warning {
  color: #ffc107 !important;
}
