/* ========== ANIMATED BACKGROUND ========== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  top: 60%;
  right: 10%;
  animation-delay: -7s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #ec4899, #06b6d4);
  bottom: 20%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(30px) rotate(240deg);
  }
}

.content-wrapper {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ========== SOCIAL LINKS ========== */
.social-vertical {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.social-vertical .rotate {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: center;
}

.social-vertical .icons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-vertical .icons a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.social-vertical .icons a:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* ========== PROJECT PAGE SPACING & WIDTH ========== */
.project-page .content-wrapper {
  margin-top: 2rem !important;
  padding-top: 2rem !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-page .passion-section {
  margin-top: 2rem !important;
  padding-top: 1rem !important;
}

/* Force spacing for project page content */
.project-page .content-wrapper > *:first-child {
  margin-top: 3rem !important;
}

/* ========== GLOBAL STYLES ========== */
* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  background: transparent;
  line-height: 1.6;
  text-align: justify;
}

/* ========== LOGO STYLING ========== */
.logo-img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* ========== PARTICLE BACKGROUND ========== */
.interactive-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #f0f4f8;
}

.color-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(1px);
}

.content-wrapper {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ========== HEADER ========== */
.header {
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 40px;
  width: auto;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #007BFF;
}

/* ========== SOCIAL BAR ========== */
.social-vertical {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.rotate {
  writing-mode: vertical-rl;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #777;
}

.icons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icons a {
  margin: 0.6rem 0;
  font-size: 1.2rem;
  color: #222;
  transition: transform 0.2s ease, color 0.2s ease;
}

.icons a:hover {
  transform: scale(1.2);
  color: #007BFF;
}

/* ========== PROJECT SECTION ========== */
.passion-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #091d6b;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00bfff);
  border-radius: 2px;
}

.section-header .subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  font-style: italic;
  margin-top: 15px;
}

/* ========== PROJECT GRID ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item img,
.portfolio-item iframe {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 20px;
  background: white;
}

.portfolio-info h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #091d6b;
}

.portfolio-info h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.portfolio-info h3 a:hover {
  color: #007bff;
}

.portfolio-info p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.footer {
  width: 100%;
  background-color: transparent;
  color: rgb(23, 21, 21);
  padding: 40px 0 20px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__copyright__text {
  margin: 0;
  font-size: 1rem;
  font-weight: bolder;
  color: rgba(17, 17, 17, 0.7);
}

.footer__copyright__text a {
  color: #007BFF;
  text-decoration: none;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .social-vertical {
    display: none;
  }
}

@media (max-width: 576px) {
  .header-content {
    flex-direction: column;
  }

  nav {
    margin: 20px 0;
    justify-content: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CUSTOM CURSOR & EFFECTS ========== */
.custom-cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 123, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  z-index: 9999;
}

.fade-out {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.header {
    position: relative;
    z-index: 10;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ... other styles ... */

/* Custom Cursor */
.custom-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 123, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    z-index: 9999;
}

/* Fade-in Animation */
.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}