/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #ffffff;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #e2e8f0;
}

.nav-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  text-decoration: none;
}

.nav-logo a:hover {
  color: #4a5568;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #4a90e2;
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #4a90e2;
  transition: width 0.3s ease;
}

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

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 2px;
  background-color: #4a5568;
  margin: 4px 0;
  transition: 0.3s;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 80px 2rem 60px;
  background: #f7fafc;
  color: #2d3748;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.highlight {
  color: #4a5568;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #718096;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #4a5568;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Page Load Animations */
@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply animations to elements */
body {
  animation: pageLoad 0.5s ease-out;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.navbar {
  animation: fadeInUp 0.6s ease-out;
}

.section-title {
  animation: fadeInUp 0.8s ease-out;
}

.project-card {
  animation: fadeInUp 0.8s ease-out;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.highlight-item {
  animation: fadeInUp 0.8s ease-out;
}

.highlight-item:nth-child(2) {
  animation-delay: 0.2s;
}

.highlight-item:nth-child(3) {
  animation-delay: 0.4s;
}

.skill-category {
  animation: fadeInUp 0.8s ease-out;
}

.skill-category:nth-child(2) {
  animation-delay: 0.2s;
}

.skill-category:nth-child(3) {
  animation-delay: 0.4s;
}

.contact-link {
  animation: fadeInUp 0.8s ease-out;
}

.contact-link:nth-child(2) {
  animation-delay: 0.1s;
}

.contact-link:nth-child(3) {
  animation-delay: 0.2s;
}

.contact-link:nth-child(4) {
  animation-delay: 0.3s;
}

/* 3D Animated Star */
.hero-star {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  animation: scaleIn 1s ease-out;
}

.star-3d {
  font-size: 4rem;
  color: #4a90e2;
  animation: starRotate 4s ease-in-out infinite, starPulse 2s ease-in-out infinite;
  transform-style: preserve-3d;
  text-shadow: 
    0 0 10px rgba(74, 144, 226, 0.5),
    0 0 20px rgba(74, 144, 226, 0.3),
    0 0 30px rgba(74, 144, 226, 0.1);
}

@keyframes starRotate {
  0% {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
  }
  25% {
    transform: rotateY(90deg) rotateX(15deg) scale(1.1);
  }
  50% {
    transform: rotateY(180deg) rotateX(0deg) scale(1);
  }
  75% {
    transform: rotateY(270deg) rotateX(-15deg) scale(1.1);
  }
  100% {
    transform: rotateY(360deg) rotateX(0deg) scale(1);
  }
}

@keyframes starPulse {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(74, 144, 226, 0.5),
      0 0 20px rgba(74, 144, 226, 0.3),
      0 0 30px rgba(74, 144, 226, 0.1);
  }
  50% {
    text-shadow: 
      0 0 15px rgba(74, 144, 226, 0.7),
      0 0 25px rgba(74, 144, 226, 0.5),
      0 0 35px rgba(74, 144, 226, 0.3);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: #2d3748;
  color: white;
}

.btn-primary:hover {
  background: #4a5568;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
}

.btn-outline {
  background: transparent;
  color: #2d3748;
  border: 1px solid #2d3748;
}

.btn-outline:hover {
  background: #2d3748;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
}



/* Sections */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  color: #2d3748;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: #718096;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  background: #ffffff;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #4a5568;
}

.education-section {
  margin: 2rem 0;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 8px;
}

.education-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2d3748;
}

.education-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.education-logos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-container {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-container:hover {
  transform: scale(1.05);
}



.isenberg-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.3s ease;
  padding: 8px;
  background: white;
}

.isenberg-logo-img:hover {
  transform: scale(1.05);
}

.education-info {
  flex: 1;
}

.education-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.education-item p {
  color: #718096;
  margin-bottom: 1rem;
}

.education-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.detail-item {
  background: #f7fafc;
  color: #4a5568;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: #4a90e2;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.education-item ul {
  list-style: none;
}

.education-item li {
  padding: 0.25rem 0;
  color: #4a5568;
}

.education-item li::before {
  content: "•";
  color: #718096;
  margin-right: 0.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.highlight-item {
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background: #edf2f7;
}

.highlight-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.highlight-item p {
  color: #718096;
  line-height: 1.6;
}

/* Experience Section */
.experience {
  background: transparent;
}

.experience-item {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.job-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.job-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
}

.company {
  color: #718096;
  font-weight: 500;
}

.date {
  color: #a0aec0;
  font-size: 0.9rem;
}

.job-description {
  list-style: none;
}

.job-description li {
  padding: 0.5rem 0;
  color: #4a5568;
  line-height: 1.6;
}

.job-description li::before {
  content: "•";
  color: #718096;
  margin-right: 0.5rem;
}

.skills-section {
  margin-top: 3rem;
}

.skills-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: #2d3748;
}

/* Projects Section */
.projects {
  background: #ffffff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #f7fafc;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #4a90e2;
}

.project-image {
  height: 200px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.project-img:hover {
  transform: scale(1.05);
}

.dashboard-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.dashboard-placeholder::before {
  content: "📊";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
}

.analytics-placeholder {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  position: relative;
}

.analytics-placeholder::before {
  content: "📈";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
}

.project-placeholder {
  font-size: 3rem;
  color: #718096;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2d3748;
}

.project-content p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #e2e8f0;
  color: #4a5568;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-tag:hover {
  background: #4a5568;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(74, 85, 104, 0.3);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.skill-category h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2d3748;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-item {
  background: #f7fafc;
  color: #4a5568;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-item:hover {
  background: #4a90e2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

/* Photos Section */
.photos {
  background: #ffffff;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.photo-item {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.photo-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.photo-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-item:hover {
  transform: scale(1.02);
}

.photo-item:hover .photo-image {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}



/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 90%;
  max-height: 90%;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close-lightbox:hover {
  color: #bbb;
}

#lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 500;
}

.photo-placeholder {
  height: 200px;
  background: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #718096;
}

.photo-placeholder span {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.photo-placeholder p {
  font-size: 0.9rem;
  color: #a0aec0;
}

.photo-description {
  padding: 0;
}

.photo-description p {
  color: #718096;
  text-align: center;
  font-size: 0.8rem;
  margin: 0;
}

/* Books Section */
.books {
  background: #ffffff;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.book-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  gap: 1rem;
}

.book-cover {
  width: 80px;
  height: 120px;
  background: #e2e8f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-cover span {
  font-size: 2rem;
  color: #718096;
}

.book-info {
  flex: 1;
}

.book-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.book-author {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  cursor: pointer;
  font-size: 1.1rem;
  color: #e2e8f0;
  transition: color 0.2s ease;
}

.star:hover {
  color: #fbbf24;
}

.rating-text {
  font-size: 0.875rem;
  color: #a0aec0;
}

.book-description {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Contact Section */
.contact {
  background: #ffffff;
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #4a5568;
}

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

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: 8px;
  text-decoration: none;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-link:hover::before {
  left: 100%;
}

.contact-link:hover {
  background: #e2e8f0;
  color: #2d3748;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #4a90e2;
}



/* Footer */
.footer {
  background: #2d3748;
  color: #e2e8f0;
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    justify-content: center;
  }



  .section-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
  }

  .photos-grid {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .job-header {
    flex-direction: column;
  }

  .date {
    margin-top: 0.25rem;
  }

  .education-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .education-logos {
    flex-direction: row;
    gap: 1rem;
  }

  .logo-container {
    width: 120px;
    height: 120px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 1rem 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  section {
    padding: 60px 0;
  }
}
