:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --secondary: #1e293b;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --gradient: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  --shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
}

body {
  font-family: 'Cal Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--secondary);
  line-height: 1.6;
}

a,
a:visited,
a:active {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
  color: black !important;
}

/* Navbar Styling */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.cal-sans-regular {
  font-family: "Cal Sans", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  position: relative;
  font-weight: 500;
  margin: 0 0.5rem;
  color: var(--secondary) !important;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

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


/* Navbar Toggler Icon Customization */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232563eb' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Home Section */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#home h1 {
  font-size: 3.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

#home img {
  border-radius: 50%;
  border: 6px solid var(--primary-light);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

/* Section Styling */
section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  margin: 20px 0;
  padding: 30px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.skills-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.skills-card:hover {
  transform: translateY(-5px);
}

.skills-category {
  text-align: center;
}

.skills-category h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-icons img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.skill-icons img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .skills-card {
    padding: 1rem;
  }

  .skill-icons {
    gap: 0.75rem;
  }

  .skill-icons img {
    width: 40px;
    height: 40px;
  }
}


/* Button Styling */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  border: none;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #f1f5f9;
  border: none;
  color: var(--secondary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 41, 59, 0.2);
  background: #e2e8f0;
}

/* Contact */
#contact.container {
  padding-left: 15px;
  padding-right: 15px;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

#contact .list-unstyled {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

#contact .list-unstyled li {
  margin-bottom: 0;
  position: relative;
  padding-left: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#contact .list-unstyled li i {
  position: relative;
  left: auto;
  font-size: 1.8rem;
  top: auto;
  transform: none;
  color: var(--primary);
}

#contact form {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

#contact label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--secondary);
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--background);
  color: var(--secondary);
}

#contact input:focus,
#contact textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

#contact .btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

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

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

/* Background Animation */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(45deg, #0f172a, #1e293b);
}

.bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
}

.bubble:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #3b82f6, #2563eb);
  animation: orbit1 25s linear infinite;
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
}

.bubble:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #0ea5e9, #0284c7);
  animation: orbit2 18s linear infinite;
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.4);
}

.bubble:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #8b5cf6, #7c3aed);
  animation: orbit3 30s linear infinite;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.4);
}

.bubble:nth-child(4) {
  width: 40px;
  height: 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #06b6d4, #0891b2);
  animation: orbit4 15s linear infinite;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.bubble:nth-child(5) {
  width: 30px;
  height: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #3b82f6, #2563eb);
  animation: orbit5 20s linear infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.bubble:nth-child(6) {
  width: 25px;
  height: 25px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #0ea5e9, #0284c7);
  animation: orbit6 22s linear infinite;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

@keyframes orbit1 {
  0% {
    transform: rotate(0deg) translateX(250px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(250px) rotate(-360deg);
  }
}

@keyframes orbit2 {
  0% {
    transform: rotate(45deg) translateX(180px) rotate(-45deg);
  }

  100% {
    transform: rotate(405deg) translateX(180px) rotate(-405deg);
  }
}

@keyframes orbit3 {
  0% {
    transform: rotate(90deg) translateX(300px) rotate(-90deg);
  }

  100% {
    transform: rotate(450deg) translateX(300px) rotate(-450deg);
  }
}

@keyframes orbit4 {
  0% {
    transform: rotate(135deg) translateX(150px) rotate(-135deg);
  }

  100% {
    transform: rotate(495deg) translateX(150px) rotate(-495deg);
  }
}

@keyframes orbit5 {
  0% {
    transform: rotate(180deg) translateX(200px) rotate(-180deg);
  }

  100% {
    transform: rotate(540deg) translateX(200px) rotate(-540deg);
  }
}

@keyframes orbit6 {
  0% {
    transform: rotate(225deg) translateX(120px) rotate(-225deg);
  }

  100% {
    transform: rotate(585deg) translateX(120px) rotate(-585deg);
  }
}

/* Remove the gradient-bg class since we're not using it anymore */
.gradient-bg {
  display: none;
}

/* Timeline Styling */
.timeline {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: #e5e7eb;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.timeline-item {
  padding: 20px 10px;
  position: relative;
  width: 50%;
  margin-bottom: 40px;
}

.timeline-item.left {
  left: 0;
  padding-right: 40px;
}

.timeline-item.right {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-item.left .timeline-dot {
  right: -25px;
}

.timeline-item.right .timeline-dot {
  left: -25px;
}

.timeline-dot i {
  color: white;
  font-size: 24px;
}

#projects,
#certificates {
  margin-top: 100px !important;
}

/*Projects Filter*/
.filter-btn:hover {
  color: white !important;
}
#projects .col-sm-12 {
  transition: all 0.3s ease;
}
.filter-btn.btn-primary {
  color: #fff !important;
}


.timeline-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

/* Modern Card Look (like screenshot) */
.card {
  background: #fff !important;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12), 0 1.5px 8px rgba(30, 41, 59, 0.06);
  border-radius: 22px !important;
  border: none;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18), 0 2px 12px rgba(30, 41, 59, 0.10);
  transform: translateY(-4px) scale(1.02);
}

.card-body {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-title,
.card-subtitle,
.card-text {
  text-align: center;
}

/* Timeline Card Enhancements */
.timeline-content.card {
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
}

.timeline-content.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
}

.timeline-content .card-body {
  padding: 1.5rem;
}

.timeline-content .card-title {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-content .card-subtitle {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.timeline-content .card-body {
  text-align: left;
}

.timeline-content .card-title,
.timeline-content .card-subtitle,
.timeline-content .card-text {
  margin-bottom: 0.5rem;
}

/* Project Card Enhancements */
#projects .card {
  border-radius: 15px;
  padding: 1.5rem;
}

#projects .card h5 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

#projects .card h6 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

#projects .card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

#projects .card ul li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

#projects .btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

#projects .btn-outline-primary:hover {
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

/* Contact Section Social Icons */
.contact-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-wrapper .list-unstyled {
  margin: 0;
  padding: 0;
}

.contact-wrapper .list-unstyled li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

.contact-wrapper .list-unstyled li a:hover {
  transform: translateY(-3px);
  background: var(--secondary);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.contact-wrapper .list-unstyled li a:hover i {
  color: white;

}

.contact-wrapper .list-unstyled li a i {
  transition: all 0.3s ease;
  color: var(--primary);
}



/* Responsive Adjustments */

/* Large screens (1200px and up) */
@media (max-width: 1400px) {
  .container {
    max-width: 1140px;
    padding: 0 20px;
  }

  section {
    margin: 15px 0;
    padding: 25px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  #home h1 {
    font-size: 3.2rem;
  }

  .timeline-content {
    width: calc(100% - 70px);
    margin: 0 auto;
  }

  /* Project card left-align on large screens */
  #projects .card,
  #projects .card * {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
}

/* Medium screens (992px and up) */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  #home {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
  }

  #home h1 {
    font-size: 2.8rem;
  }

  .cal-sans-regular {
    font-size: 2rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    width: 100%;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .nav-link {
    padding: 0.8rem 1.2rem;
    margin: 0.3rem 0;
  }

  section {
    padding: 20px;
    margin: 10px 0;
  }


  .card {
    width: 100%;
  }
}

/* Small screens (768px and up) */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 15px;
    width: 95%;
  }

  section {
    padding: 1.5rem;
    margin: 8px 0;
    width: 95%;
  }

  section h2 {
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
  }

  section h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #home {
    text-align: center;
    padding-top: 70px;
  }

  #home h1 {
    font-size: 2.5rem;
  }

  #home .btns {
    justify-content: center;
    gap: 1rem;
  }

  #home img {
    max-width: 250px;
    margin: 0 auto;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .timeline::after {
    left: 50%;
  }

  .timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 0;
  }

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

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    display: none;
  }

  .timeline-content {
    width: 100%;
    margin-left: 0;
    padding: 1rem;
  }

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

  .timeline-item.right {
    padding-left: 40px;
  }

  .timeline-dot {
    width: 45px;
    height: 45px;
  }

  .timeline-dot i {
    font-size: 1.2rem;
  }

  .timeline-content .card-body {
    text-align: center;
  }

  .timeline-content .card-title {
    font-size: 1.3rem;
  }

  .timeline-content .card-subtitle {
    font-size: 1.1rem;
  }

  .timeline-content .card-text {
    font-size: 1rem;
  }

  .card {
    margin-bottom: 1rem;
    padding: 1.5rem;
    width: 100%;
  }

  .card-body {
    padding: 1.25rem;
  }

  #projects .card {
    width: 100%;
    padding: 1.5rem;
  }

  .contact-wrapper {
    padding: 1.5rem;
  }

  .contact-wrapper .list-unstyled {
    gap: 1rem !important;
  }

  .contact-wrapper .list-unstyled li a {
    width: 45px;
    height: 45px;
  }

  .contact-wrapper .list-unstyled li a i {
    font-size: 1.5rem;
  }
}

/* Extra small screens (576px and up) */
@media (max-width: 576px) {
  .container {
    padding: 0 10px;
    width: 100%;
  }

  section {
    padding: 1.2rem;
    margin: 5px 0;
    width: 100%;
  }

  #home h1 {
    font-size: 2.2rem;
  }

  .cal-sans-regular {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .timeline {
    padding: 0 5px;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline-item.right {
    padding-left: 30px;
  }

  .timeline::after {
    left: 20px;
  }

  .timeline-dot {
    width: 40px;
    height: 40px;
    left: 0;
  }

  .timeline-dot i {
    font-size: 1rem;
  }

  .timeline-content {
    width: 100%;
    margin-left: 0;
    padding: 1.2rem;
  }

  .timeline-content .card-title {
    font-size: 1.2rem;
  }

  .timeline-content .card-subtitle {
    font-size: 1rem;
  }

  .timeline-content .card-text {
    font-size: 0.95rem;
  }

  #contact input,
  #contact textarea {
    font-size: 16px;
  }

  #contact form {
    padding: 1rem;
  }

  .card {
    margin-bottom: 0.8rem;
    padding: 1.2rem;
    width: 100%;
  }

  .card-body {
    padding: 1rem;
  }

  #projects .card {
    width: 100%;
    padding: 1.2rem;
  }

  #contact .list-unstyled {
    gap: 1rem;
  }

  .contact-wrapper {
    padding: 1rem;
    width: 100%;
  }

  .contact-wrapper .list-unstyled {
    gap: 0.8rem !important;
  }

  .contact-wrapper .list-unstyled li a {
    width: 40px;
    height: 40px;
  }

  .contact-wrapper .list-unstyled li a i {
    font-size: 1.3rem;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  #home h1 {
    font-size: 2rem;
  }

  .cal-sans-regular {
    font-size: 1.6rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .timeline-content {
    padding: 0.8rem;
  }

  .card-body {
    padding: 0.8rem;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  #home {
    min-height: auto;
    padding: 100px 0 50px;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* Tablets in landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  #home {
    min-height: auto;
    padding: 100px 0 50px;
  }
}