body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

aside {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

aside a {
  transition: color 0.3s ease, transform 0.3s ease;
}

aside a:hover {
  transform: translateX(8px);
}

.bg-gradient-to-br {
  background: linear-gradient(135deg, #1e3a8a, #7e22ce);
}

.skill-progress {
  transition: width 1s ease;
}

#video-bg {
  min-height: 100vh;
  width: 100%;
  height: auto;
  object-fit: cover;
}

#video-bg source {
  width: 100%;
  height: auto;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: opacity 1s ease-in-out;
}

#sidebar {
  transition: transform 0.3s ease-in-out;
}

#main-content {
  transition: margin-left 0.3s ease-in-out;
}

/* Custom glow effect for titles */
h2 {
  position: relative;
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #e0e0e0, #cc73f8, #e0e0e0);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
      opacity: 1;
  }
  50% {
      opacity: 0.7;
  }
}

/* Journey section updates */
#journey .journey-item {
  width: 45%;
  margin: 0 2.5%;
}

#journey .flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: stretch;
}

#journey .bg-gray-700 {
  width: 100%;
  max-width: none;
  min-height: 100%;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

#journey .bg-gray-700:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Education section updates */
.education-container {
  max-width: 1200px;
  margin-left: 72px;
  margin-right: auto;
  width: calc(100% - 72px);
  padding: 0;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.education-box {
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.education-box:hover {
  transform: scale(1.05);
}

.education-box ul {
  margin: 0;
  padding: 0;
  list-style-type: disc;
  padding-left: 1rem;
}

.education-box li {
  margin-bottom: 0.5rem;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Media queries for specific adjustments */
@media (max-width: 767px) {
  .education-container {
      margin-left: 0;
      width: 100%;
      padding: 0 10px;
  }
  .education-grid {
      grid-template-columns: 1fr;
  }
  .education-box {
      max-height: 400px;
  }
}

@media (min-width: 768px) and (orientation: landscape) {
  .education-grid {
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .education-container {
      max-width: 90%;
      margin-left: 72px;
      width: calc(100% - 72px);
  }
}

@media (min-width: 1024px) {
  .education-grid {
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  .education-container {
      max-width: 1200px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  #video-bg {
      height: 100vh;
      object-fit: cover;
  }
  
  .loading-container {
      height: auto;
      min-height: 100vh;
  }
  
  #sidebar {
      transform: translateX(-100%);
  }
  
  #main-content {
      margin-left: 0;
  }
  
  .menu-open #sidebar {
      transform: translateX(0);
  }
  
  .menu-open #main-content {
      margin-left: 72px;
  }
  
  #journey .md\:flex-row {
      flex-direction: column;
  }
  
  #journey .md\:w-5\/12 {
      width: 100%;
  }
  
  #journey .hidden.md\:block {
      display: none;
  }
  
  #journey .journey-item {
      width: 100%;
      margin: 0 0 2rem 0;
  }

  #journey .flex {
      flex-direction: column;
      align-items: center;
  }

  #journey .bg-gray-700 {
      max-height: none;
  }

  #skills .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
      grid-template-columns: 1fr;
  }
  
  #projects .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
      grid-template-columns: 1fr;
  }

  #education .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-2 {
      grid-template-columns: 1fr;
  }

  #education .grid-cols-2 {
      grid-template-columns: 1fr;
  }
}

.mobile-only {
  display: none;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .mobile-only {
      display: block !important;
  }
}

@media screen and (min-width: 768px), (orientation: landscape) {
  .mobile-only {
      display: none !important;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  #video-bg {
      height: 50vh;
      object-fit: cover;
  }
  
  #home, #about, #journey {
      padding-top: 5vh;
      padding-bottom: 5vh;
      min-height: 50vh;
  }
  
  .max-w-3xl {
      max-width: 90%;
      margin: 0 auto;
      padding: 0 10px;
  }
  
  #journey .mb-16 {
      margin-bottom: 4px;
  }
  
  #journey .bg-gray-700 {
      width: 85%;
      margin: 0 auto;
      max-height: 250px;
      overflow-y: auto;
  }
  
  #journey .flex {
      flex-direction: column;
      align-items: center;
  }
  
  #journey .w-full.md\:w-5\/12 {
      width: 100%;
      max-width: 100%;
  }
  
  section {
      position: relative;
      z-index: 10;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  #sidebar {
      width: 40%;
      padding: 4px;
  }
  #sidebar nav {
      margin-bottom: 0.5rem;
  }
  #sidebar nav a {
      font-size: 0.7rem;
      padding: 1px 0;
      line-height: 1.2;
  }
  #main-content {
      margin-left: 40%;
  }
}

@media (min-width: 1025px) {
  #sidebar {
      padding: 16px;
  }
  #sidebar nav a {
      padding: 8px 16px;
  }
}