/* Base Styles */
:root {
  --foreground-rgb: 255, 255, 255;
  --background-start-rgb: 15, 23, 42;
  --background-end-rgb: 30, 41, 59;
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(to bottom, rgb(var(--background-start-rgb)), rgb(var(--background-end-rgb))) fixed;
  line-height: 1.5;
  cursor: none; /* Hide default cursor when using custom cursor */
}

/* Hide default cursor on interactive elements */
a, button, .interactive {
  cursor: none;
}

/* But show default cursor on mobile devices */
@media (max-width: 768px) {
  body, a, button, .interactive {
    cursor: auto;
  }

  .cursor-follower {
    display: none;
  }
}

/* Container */
.wrapper {
  min-height: 100vh;
  position: relative;
}

.container {
  width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

/* Custom Cursor */
.cursor-follower {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.cursor-dot {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: var(--teal-600);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, opacity 0.15s;
}

.cursor-ring {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--teal-400);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  opacity: 0.2;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
}

.scroll-bar {
  height: 100%;
  background: linear-gradient(to right, var(--teal-400), var(--cyan-400));
  width: 0%;
}

/* Particle Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  transition: all 0.3s;
}

#navbar.scrolled {
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--teal-400), var(--cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal-400), var(--cyan-300));
  transition: width 0.3s;
}

.logo-container:hover .logo-text::after {
  width: 100%;
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    gap: 2rem;
  }
}

.nav-link {
  color: white;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--teal-400);
  left: 0;
  bottom: -4px;
  transition: width 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--teal-400);
}

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

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: white;
  transition: color 0.3s;
}

.mobile-menu-btn:hover {
  color: var(--teal-400);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  animation: slideInFromTop 0.3s ease-out forwards;
}

.mobile-nav.show {
  display: flex;
}

.mobile-nav .nav-link {
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}

.mobile-nav .nav-link:hover, .mobile-nav .nav-link.active {
  border-left-color: var(--teal-400);
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-10%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Section Common Styles */
.section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-icon {
  color: var(--teal-400);
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--teal-400);
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 1.875rem;
  }
}

/* Background Blobs */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(3rem);
  z-index: -1;
}

.bg-blob-1 {
  bottom: -8rem;
  left: -8rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(20, 184, 166, 0.1);
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.bg-blob-2 {
  top: 50%;
  right: 25%;
  width: 8rem;
  height: 8rem;
  background-color: rgba(6, 182, 212, 0.1);
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 1s;
}

.bg-blob-3 {
  top: 25%;
  left: 25%;
  width: 6rem;
  height: 6rem;
  background-color: rgba(168, 85, 247, 0.1);
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 2s;
}

.bg-blob-4 {
  bottom: -8rem;
  right: -8rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(20, 184, 166, 0.1);
}

.bg-blob-5 {
  bottom: -8rem;
  left: -8rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(168, 85, 247, 0.1);
}

.bg-blob-6 {
  bottom: -8rem;
  right: -8rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(6, 182, 212, 0.1);
}

.bg-blob-7 {
  bottom: -8rem;
  left: -8rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(20, 184, 166, 0.1);
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

/* Home Section */
#home {
  padding-top: 8rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  #home {
    flex-direction: row;
  }
}

.about-me-text {
  position: absolute;
  top: 5rem;
  right: 0;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(71, 85, 105, 0.2);
  user-select: none;
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.home-section-left {
  width: 100%;
  padding-left: 2rem;
  margin-bottom: 2.5rem;
  z-index: 10;
}

@media (min-width: 768px) {
  .home-section-left {
    width: 50%;
    margin-bottom: 0;
  }
}

.home-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

@media (min-width: 768px) {
  .home-title {
    font-size: 3rem;
  }
}

.home-title .highlight {
  color: var(--teal-400);
  position: relative;
  display: inline-block;
}

.home-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 4px;
  background-color: var(--teal-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.home-title .highlight:hover::after {
  transform: scaleX(1);
}

.role-container {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
}

@media (min-width: 768px) {
  .role-container {
    font-size: 1.875rem;
  }
}

.role {
  color: var(--cyan-300);
  margin-left: 0.5rem;
}

.home-description {
  color: rgb(203, 213, 225);
  margin-bottom: 2rem;
  font-size: 1.125rem;
  line-height: 1.75;
}

.highlight-text {
  font-weight: 600;
  color: white;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--teal-500);
  color: white;
}

.btn-primary:hover {
  transform: scale(1.0421);
  background-color: var(--teal-600);
  box-shadow: 0 10px 15px -3px rgba(20, 184, 166, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--teal-500);
  color: var(--teal-400);
}

.btn-outline:hover {
  
  transform: scale(1.0421);
  background-color: rgba(20, 184, 166, 0.1);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.arrow-icon, .download-icon {
  transition: transform 0.3s;
}

.btn-primary:hover .arrow-icon {
  transform: translateX(4px);
}

.btn-outline:hover .download-icon {
  transform: translateY(4px);
}

.home-section-right {
  width: 100%;
  display: flex;
  padding-right: 2rem;
  padding-left: 2rem;
  justify-content: center;
  z-index: 10;
}

@media (min-width: 768px) {
  .home-section-right {
    width: 50%;
    justify-content: flex-end;
  }
}

.user-image {
  position: relative;
  height: auto;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 4px solid rgba(20, 184, 166, 0.3);
  box-shadow: 0 20px 25px -5px rgba(20, 184, 166, 0.2);
  transition: transform 0.5s ease-in-out, box-shadow 0.4s ease-in-out;
}

.user-image:hover {
  box-shadow: 0 20px 30px -5px rgba(20, 184, 166, 0.4);
}

@media (min-width: 768px) {
  .user-image {
    width: 27rem;
    height:36rem;
  }
}

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

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 184, 166, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.user-image:hover .image-overlay {
  opacity: 1;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .skills-container {
    flex-direction: row;
  }
}


.skill-section-right {
  width: 100%;
  max-width: 600px; /* or any width you want */
margin: 0 auto; 
display : flex;
}

@media (min-width: 768px) {
  .skill-section-right {
    width: 100%;
    
  }
}

.skill-logo-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skill-logo-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.skill-logo-wrapper {
  background-color: rgba(30, 41, 59, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
  transition: all 0.3s;
}

.skill-logo-wrapper:hover {
  background-color: rgba(51, 65, 85, 0.5);
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(20, 184, 166, 0.1);
}

.skill-logo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.skill-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.skill-logo-name {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgb(203, 213, 225);
}

/* Education Section */
.education-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .education-container {
    flex-direction: row;
  }
}

/* 3D Cube */
.cube-wrapper {
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

@media (min-width: 768px) {
  .cube-wrapper {
    width: 50%;
  }
}

.cube-scene {
  position: relative;
  width: 16rem;
  height: 16rem;
  transform-style: preserve-3d;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.3s;
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  padding: 1.5rem;
  backface-visibility: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cube-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.cube-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cube-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cube-content p {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.front {
  transform: translateZ(8rem);
  background: linear-gradient(to bottom right, var(--teal-500), var(--cyan-600));
}

.right {
  transform: rotateY(90deg) translateZ(8rem);
  background: linear-gradient(to bottom right, var(--cyan-500), #2563eb);
}

.back {
  transform: rotateY(180deg) translateZ(8rem);
  background: linear-gradient(to bottom right, #2563eb, #4f46e5);
}

.left {
  transform: rotateY(-90deg) translateZ(8rem);
  background: linear-gradient(to bottom right, #4f46e5, #a855f7);
}

.top {
  transform: rotateX(90deg) translateZ(8rem);
  background: linear-gradient(to bottom right, #a855f7, #ec4899);
}

.bottom {
  transform: rotateX(-90deg) translateZ(8rem);
  background: linear-gradient(to bottom right, #ec4899, #ef4444);
}

.cube-instruction {
  margin-top: 2rem;
  text-align: center;
  color: rgb(203, 213, 225);
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Timeline */
.education-timeline {
  width: 100%;
  position: relative;
}

@media (min-width: 768px) {
  .education-timeline {
    width: 50%;
  }
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
}

.timeline-item {
  display: flex;
  position: relative;
}

.timeline-marker {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--teal-400);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  transition: transform 0.3s;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.25);
}

.timeline-marker-inner {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  background-color: white;
  border-radius: 50%;
  top: 0.375rem;
  left: 0.375rem;
  transition: transform 0.3s;
}

.timeline-item:hover .timeline-marker-inner {
  transform: scale(0.75);
}

.timeline-content {
  margin-left: 1.5rem;
  background-color: rgba(30, 41, 59, 0.5);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--teal-400);
  transition: all 0.3s;
}

.timeline-item:hover .timeline-content {
  transform: translateX(0.5rem);
  box-shadow: 0 10px 15px -3px rgba(20, 184, 166, 0.1);
}

.timeline-year {
  color: var(--teal-400);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-school {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-degree {
  color: rgb(203, 213, 225);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline-description {
  color: rgb(148, 163, 184);
}

.timeline-line {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 0.125rem;
  height: calc(100% - 1.5rem);
  background: linear-gradient(to bottom, rgba(20, 184, 166, 0.2), var(--teal-400), rgba(20, 184, 166, 0.2));
  z-index: -10;
}

/* Projects Section */
.project-section-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .project-section-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-sec-box {
  perspective: 1000px;
}

.card {
  position: relative;
  height: 20rem;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.5s;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(20, 184, 166, 0.1);
}

.card-front, .card-back {
  position: absolute;
  inset: 0;
  transition: all 0.5s ease-out;
  backface-visibility: hidden;
}

.card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-front-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
}

.card-front-overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.5rem;
}

.card-back {
  background: linear-gradient(to bottom right, var(--teal-500), var(--cyan-600));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotateY(180deg);
}

.card:hover .card-front {
  transform: rotateY(180deg);
}

.card:hover .card-back {
  transform: rotateY(0deg);
}

.card-back h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-back p {
  color: rgba(255, 255, 255, 0.9);
}

.project-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-link {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.project-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.btn-know-more {
  margin-left: auto;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  transition: background-color 0.3s;
}

.btn-know-more:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-container {
    flex-direction: row;
  }
}

.contact-sec-left {
  width: 100%;
  background-color: rgba(30, 41, 59, 0.5);
  padding: 2rem;
  border-radius: 0.75rem;
}

@media (min-width: 768px) {
  .contact-sec-left {
    width: 50%;
  }
}

.contact-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--teal-400);
}

.contact-description {
  color: rgb(203, 213, 225);
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(20, 184, 166, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  color: var(--teal-400);
}

.contact-info-item h4 {
  font-size: 1.125rem;
}

.contact-sec-right {
  width: 100%;
}

@media (min-width: 768px) {
  .contact-sec-right {
    width: 50%;
  }
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: rgba(30, 41, 59, 0.5);
  padding: 2rem;
  border-radius: 0.75rem;
}

.form-group {
  width: 100%;
}

.form-input, .form-textarea {
  width: 100%;
  background-color: rgba(51, 65, 85, 0.5);
  border: 1px solid var(--slate-600);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--teal-400);
}

.form-textarea {
  min-height: 7.5rem;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  position: relative;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  width: 3rem;
  height: 3rem;
  background-color: var(--slate-800);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover {
  filter: drop-shadow(0 0 5px var(--teal-400));
  background-color: rgba(28, 250, 231, 0.548);
  transform: scale(1.231);
  
}

.copyright {
  text-align: center;
  color: rgb(148, 163, 184);
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
