/* Global Styles */
:root {
  --black: #000000;
  --dark-gray: #111111;
  --mid-gray: #333333;
  --light-gray: #aaaaaa;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--black);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-weight: 700;
  position: relative;
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--white);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

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

.nav-links a.active {
  color: var(--light-gray);
}

/* Main Content Styles */
.main-content {
  min-height: calc(100vh - 150px);
  padding: 50px 0;
}

/* Section Headers */
.section-header {
  text-transform: uppercase;
  font-weight: 900;
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 3px;
  position: relative;
}

.section-header:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--white);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* About Page Styles */
.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
}

.name {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: 'Playfair Display', serif;
  letter-spacing: 4px;
}

.role {
  font-size: 1.5rem;
  color: var(--light-gray);
  margin-bottom: 40px;
  font-weight: 500;
  letter-spacing: 2px;
}

.about-text {
  max-width: 800px;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.social-links a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mid-gray);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-5px);
  background-color: var(--white);
  color: var(--black);
}

.social-links i {
  font-size: 1.5rem;
}

/* Skills Section */
.skills-section {
  margin-top: 60px;
  width: 100%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skill-icon {
  width: 70px;
  height: 70px;
  background-color: var(--mid-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.skill-icon:hover {
  transform: translateY(-5px);
  background-color: var(--dark-gray);
}

.skill-icon i {
  font-size: 2rem;
  color: var(--white);
}

.skill-name {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Projects Page Styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background-color: var(--dark-gray);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--mid-gray);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-description {
  color: var(--light-gray);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.project-link {
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #ffffff;
}

/* You might want to add this to your CSS file */
.project-info {
  display: flex;
  flex-direction: column;
}

/* Footer Styles */
footer {
  background-color: var(--black);
  padding: 20px 0;
  text-align: center;
  color: var(--light-gray);
  border-top: 1px solid var(--mid-gray);
}

/* Page transition */
.page {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.page.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading animation */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--light-gray);
  border-bottom-color: var(--white);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  display: none;
}

@keyframes rotation {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
  }

  .name {
    font-size: 2.5rem;
  }

  .role {
    font-size: 1.3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 576px) {
  .social-links {
    justify-content: center;
    gap: 10px;
  }

  .social-links a {
    flex: 1 1 40px; /* allows each link to shrink/grow and wrap nicely */
    text-align: center;
  }

  .nav-links {
    gap: 10px;
  }

  .name {
    font-size: 2rem;
  }

  .role {
    font-size: 1.1rem;
  }

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

.emoji-blink {
  display: inline-block;
  animation: blink 1.5s infinite;
  margin-left: 1px;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.cv-button {
  display: inline-block;
  background-color: #333;
  color: white;
  padding: 12px 24px;
  margin-top: 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cv-button:hover {
  background-color: #555;
}

.cv-button i {
  margin-right: 8px;
}
