/* Custom CSS Variables */
:root {
  --primary: #007BFF;
  --primary-dark: #3496ff;
  --primary-light: #258fff;
  --primary-very-light: #bdddff;
  --secondary: #6c757d;
  --dark: #212529;
  --light: #f8f9fa;
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --transition: all 0.3s ease;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
}

/* .dark_{
  --primary: #258fff;
  --primary-dark: #007BFF;
  --primary-light: #429eff;
  --primary-very-light: #2d2235;
  --bs-body-bg: #121212;
  --bs-body-color: #e9ecef;
  --bs-card-bg: #1e1e1e;
  --bs-border-color: #2d2d2d;
} */

/* Dark Mode Variables */
[data-bs-theme="dark"] {
  --primary: #258fff;
  --primary-dark: #007BFF;
  --primary-light: #429eff;
  --primary-very-light: #2d2235;
  --bs-body-bg: #121212;
  --bs-body-color: #e9ecef;
  --bs-card-bg: #1e1e1e;
  --bs-border-color: #2d2d2d;
}

/* General Styles */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: transparent;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 0px;
}

::-webkit-scrollbar-track {
  background-color: none;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
  scrollbar-width: thin;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Navbar Styles */
.navbar {
  transition: var(--transition);
  padding: 1rem 0;
  backdrop-filter: blur(8px);
}

/* .navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
} */

[data-bs-theme="dark"] .navbar-scrolled {
  background-color: rgba(18, 18, 18, 0.9) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  transition: var(--transition);
}

.nav-link {
  position: relative;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-200);
  border: none;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--gray-300);
}

[data-bs-theme="dark"] .theme-toggle {
  background-color: var(--gray-800);
}

[data-bs-theme="dark"] .theme-toggle:hover {
  background-color: var(--gray-700);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0 50px;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(138, 43, 226, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

[data-bs-theme="dark"] .bg-gradient {
  background: linear-gradient(180deg, rgba(138, 43, 226, 0.1) 0%, rgba(18, 18, 18, 0) 100%);
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-image-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  /* box-shadow: var(--shadow); */
}

/* .gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(43, 89, 226, 0.2) 0%, rgba(43, 92, 226, 0.05) 100%);
  border-radius: var(--border-radius-lg);
  z-index: 1;
} */

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--bs-body-bg) 0%, transparent 100%);
  z-index: 2;
}

.floating-circle {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(43, 83, 226, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.top-right {
  top: -20px;
  right: -20px;
}

.bottom-left {
  bottom: -30px;
  left: -30px;
  width: 130px;
  height: 130px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.bounce {
  animation: bounce 2s infinite;
  margin-top: 10px;
  color: var(--primary);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Section Styles */
.title-underline {
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* About Section */
/* .about-image-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
} */

.image-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bs-body-bg) 0%, transparent 100%);
}

.decorative-border {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 4px solid rgba(43, 86, 226, 0.2);
  border-radius: var(--border-radius);
  z-index: -1;
}

.bottom-right {
  bottom: -24px;
  right: -24px;
}

.top-left {
  top: -24px;
  left: -24px;
}

/* Skills Section */
.skill-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-very-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.progress {
  background-color: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

[data-bs-theme="dark"] .progress {
  background-color: var(--gray-800);
}

.progress-bar {
  background-color: var(--primary);
  border-radius: 10px;
  transition: width 1.5s ease-in-out;
}

.hover-shadow {
  transition: var(--transition);
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.tool-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

[data-bs-theme="dark"] .tool-card {
  background-color: var(--bs-card-bg);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-very-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

/* For the 5 columns layout */
.col-xl-1-5 {
  width: 20%;
}

@media (max-width: 1200px) {
  .col-xl-1-5 {
    width: 25%;
  }
}

@media (max-width: 992px) {
  .col-xl-1-5 {
    width: 33.333%;
  }
}

@media (max-width: 768px) {
  .col-xl-1-5 {
    width: 50%;
  }
}

@media (max-width: 576px) {
  .col-xl-1-5 {
    width: 50%;
  }
}

/* Projects Section */
.project-card {
  transition: var(--transition);
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.project-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Logo Designs Section */
.logo-card {
  cursor: pointer;
  transition: var(--transition);
}

.logo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.logo-container {
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

[data-bs-theme="dark"] .logo-container {
  background-color: var(--gray-800);
}

.logo-container img {
  transition: transform 0.3s ease;
}

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

/* Experience Section */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--primary-light);
  opacity: 0.2;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.timeline-item.left {
  padding-right: calc(50% + 2rem);
}

.timeline-item.right {
  padding-left: calc(50% + 2rem);
  margin-left: auto;
}

.timeline-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--primary);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid var(--bs-body-bg);
  z-index: 1;
}

.timeline-date {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    padding-left: 2.5rem;
    padding-right: 0;
  }

  .timeline-dot {
    left: 0;
    transform: none;
  }
}

/* Certifications Section */
.cert-logo {
  width: 64px;
  height: 64px;
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

[data-bs-theme="dark"] .cert-logo {
  background-color: var(--gray-800);
}

/* Contact Section */
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-very-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-700);
  transition: var(--transition);
}

[data-bs-theme="dark"] .social-icon {
  background-color: var(--gray-800);
  color: var(--gray-300);
}

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

/* Footer */
.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-light);
  text-decoration: none;
  padding-left: 5px;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section {
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }

  .title-underline {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 100px;
  }

  .floating-circle {
    width: 70px;
    height: 70px;
  }

  .bottom-left {
    width: 90px;
    height: 90px;
  }
}

