/* Reset and Base Styles */
* {
  /* Display & Box Model */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Display & Box Model */
  overflow-x: hidden;
  
  /* Text */
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  
  /* Color */
  color: #333;
}

/* Primary Color Variable */
:root {
  /* Color */
  --primary-color: rgb(29, 98, 209);
  --primary-hover: rgb(20, 80, 180);
  --light-bg: #efefed;
  --white-bg: #ffffff;
  --text-gray: #696868;
  --text-dark: #333;
  --text-blue-dark: #092046;
}

/* Smooth Scrolling */
html {
  /* Other */
  scroll-behavior: smooth;
}

/* Header Styles */
.header {
  /* Positioning */
  z-index: 1000;
  
  /* Display & Box Model */
  padding: 1rem 0;
  
  /* Color */
  background: var(--light-bg);
}

.nav-container {
  /* Display & Box Model */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-pill {
  /* Display & Box Model */
  padding: 0.35rem;
  border-radius: 50px;
  display: flex;
  gap: 0.5rem;
  
  /* Color */
  background: var(--white-bg);
  
  /* Other */
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px, rgb(229, 229, 229) 0px 0px 0px 1.5px;
}

.nav-link {
  /* Positioning */
  position: relative;
  
  /* Display & Box Model */
  padding: 0.25rem 1rem;
  border-radius: 25px;
  
  /* Color */
  color: var(--text-blue-darky);
  
  /* Text */
  text-decoration: none;
  font-weight: 500;
  
  /* Other */
  transition: all 0.2s ease-in-out;
}

.nav-link:hover {
  /* Color */
  background: var(--primary-color);
  color: white;
}

.email-link {
  /* Display & Box Model */
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  
  /* Color */
  color: var(--primary-color);
  
  /* Text */
  text-decoration: none;
  font-weight: 600;
  
  /* Other */
  transition: all 0.2s ease-in-out;
}

.email-link:hover {
  /* Color */
  background: var(--primary-color);
  color: white;
}

/* Section Base Styles */
section {
  /* Display & Box Model */
  padding: 6rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.container {
  /* Display & Box Model */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-title {
  /* Display & Box Model */
  margin-bottom: 3rem;
  
  /* Color */
  color: var(--text-blue-dark);
  
  /* Text */
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
}

/* Hero Section */
.hero-section {
  /* Positioning */
  position: relative;
  
  /* Display & Box Model */
  padding: 2rem 0 4rem 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  
  /* Color */
  background: var(--light-bg);
  
  /* Text */
  text-align: center;
}

.hero-content {
  /* Display & Box Model */
  max-width: 600px;
  margin: 0 auto;
}

.profile-container {
  /* Display & Box Model */
  margin-bottom: 2rem;
}

.profile-picture {
  /* Display & Box Model */
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid white;
  
  /* Other */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-picture:hover {
  /* Other */
  transform: scale(1.05);
}

.name {
  /* Display & Box Model */
  margin-bottom: 0.5rem;
  
  /* Color */
  color: var(--text-gray);
  
  /* Text */
  font-size: 2.5rem;
  font-weight: 400;
}

.title {
  /* Display & Box Model */
  margin-bottom: 1rem;
  
  /* Color */
  color: var(--text-blue-dark);
  
  /* Text */
  font-size: 2rem;
  font-weight: 600;
}

.hero-intro {
  /* Display & Box Model */
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  
  /* Color */
  color: var(--text-gray);
  
  /* Text */
  font-size: 1.1rem;
  line-height: 1.6;
}

.resume-btn {
  /* Display & Box Model */
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  
  /* Color */
  background: var(--primary-color);
  color: white;
  
  /* Text */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  
  /* Other */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(29, 98, 209, 0.3);
}

.resume-btn:hover {
  /* Color */
  background: var(--primary-hover);
  
  /* Other */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(29, 98, 209, 0.4);
}

/* Social Links */
.social-links {
  /* Positioning */
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  z-index: 10;
  
  /* Display & Box Model */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  /* Display & Box Model */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Color */
  color: var(--primary-color);
  
  /* Text */
  text-decoration: none;
  font-size: 1.5rem;
  
  /* Other */
  transition: all 0.3s ease;
}

.social-link:hover {
  /* Other */
  transform: translateY(-3px);
}

/* Skills Section */
.skills-grid {
  /* Display & Box Model */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@property --rotate {
  /* Other */
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}

.skill-card {
  /* Positioning */
  position: relative;
  
  /* Display & Box Model */
  padding: 1.5rem;
  border-radius: 20px;
  
  /* Color */
  background: var(--light-bg);
  
  /* Text */
  text-align: left;
  
  /* Other */
  transition: all 0.3s ease;
}

.skill-card:nth-child(1) {
  /* Color */
  background: linear-gradient(135deg, #e75238, #e6a32b);
  color: white;
}

.skill-card:nth-child(1)::before {
  /* Positioning */
  position: absolute;
  top: -2.3%;
  left: -1%;
  z-index: -1;
  
  /* Display & Box Model */
  content: "";
  width: 102%;
  height: 105%;
  border-radius: 23px;
  
  /* Color */
  background-image: linear-gradient(var(--rotate), #e6a32b, #e75238);
  
  /* Other */
  animation: spin 2.5s linear infinite;
}

.skill-card:nth-child(2) {
  /* Color */
  background: linear-gradient(135deg, #2e45db, #73d0f9);
  color: white;
}

.skill-card:nth-child(2)::before {
  /* Positioning */
  position: absolute;
  top: -2.3%;
  left: -1%;
  z-index: -1;
  
  /* Display & Box Model */
  content: "";
  width: 102%;
  height: 105%;
  border-radius: 23px;
  
  /* Color */
  background-image: linear-gradient(var(--rotate), #73d0f9, #2e45db);
  
  /* Other */
  animation: spin 2.5s linear infinite;
}

.skill-card:nth-child(3) {
  /* Color */
  background: linear-gradient(135deg, #1e13bc, #8b2bbc);
  color: white;
}

.skill-card:nth-child(3)::before {
  /* Positioning */
  position: absolute;
  top: -2.3%;
  left: -1%;
  z-index: -1;
  
  /* Display & Box Model */
  content: "";
  width: 102%;
  height: 105%;
  border-radius: 23px;
  
  /* Color */
  background-image: linear-gradient(var(--rotate), #8b2bbc, #1e13bc);
  
  /* Other */
  animation: spin 2.5s linear infinite;
}

.skill-card:nth-child(4) {
  /* Color */
  background: linear-gradient(135deg, #e55451, #e94b90);
  color: white;
}

.skill-card:nth-child(4)::before {
  /* Positioning */
  position: absolute;
  top: -2.3%;
  left: -1%;
  z-index: -1;
  
  /* Display & Box Model */
  content: "";
  width: 102%;
  height: 105%;
  border-radius: 23px;
  
  /* Color */
  background-image: linear-gradient(var(--rotate), #e94b90, #c72267);
  
  /* Other */
  animation: spin 2.5s linear infinite;
}

.skill-title {
  /* Display & Box Model */
  margin-bottom: 1rem;
  
  /* Color */
  color: white;
  
  /* Text */
  font-size: 1.3rem;
  font-weight: 600;
}

.skill-description {
  /* Color */
  color: rgba(255, 255, 255, 0.9);
  
  /* Text */
  line-height: 1.6;
}

/* Projects Section */
.projects-section {
  /* Color */
  background: var(--light-bg);
}

.projects-grid {
  /* Display & Box Model */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  /* Positioning */
  position: relative;
  
  /* Display & Box Model */
  padding: 0;
  border-radius: 1.85rem;
  height: 400px;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  
  /* Color */
  background: var(--white-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* Text */
  text-align: left;
  text-decoration: none;
  
  /* Other */
  transition: all 0.3s ease;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px, rgb(229, 229, 229) 0px 0px 0px 1.5px;
  cursor: pointer;
}

.project-card:hover {
  /* Other */
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(29, 98, 209, 0.15);
}

.project-overlay {
  /* Positioning */
  position: relative;
  z-index: 2;
  
  /* Display & Box Model */
  padding: 1.5rem 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  
  /* Color */
  background: rgba(0, 0, 0, 0.192);
  color: white;
  
  /* Other */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-title {
  /* Display & Box Model */
  margin-bottom: 0.5rem;
  display: inline-block;
  width: fit-content;
  
  /* Color */
  color: white;
  
  /* Text */
  font-size: 1.6rem;
  font-weight: 700;
}

.project-description {
  /* Display & Box Model */
  margin-bottom: 1rem;
  
  /* Color */
  color: rgba(255, 255, 255, 0.9);
  
  /* Text */
  line-height: 1.4;
  font-size: 0.9rem;
}

.project-arrow {
  /* Display & Box Model */
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Color */
  background: rgba(255, 255, 255, 0.2);
  
  /* Other */
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-arrow i {
  /* Color */
  color: white;
  
  /* Text */
  font-size: 1.2rem;
  
  /* Other */
  transition: all 0.3s ease;
}

.project-card:hover .project-arrow {
  /* Color */
  background: white;
  
  /* Other */
  transform: translateX(5px);
}

.project-card:hover .project-arrow i {
  /* Color */
  color: var(--primary-color);
}

/* Individual project card background adjustments */
.project-card[href="projects/learnfirst.html"] {
  /* Color */
  background-position: 0% 0%;
  background-size: 110% auto;
}

.project-card[href="projects/stealthcut.html"] {
  /* Color */
  background-position: 45% 40%;
  background-size: 160% auto;
}

.project-card[href="projects/linkedin-voyage.html"] {
  /* Color */
  background-position: 0% 10%;
  background-size: 115% auto;
}

.project-card[href="projects/gorestaurant.html"] {
  /* Color */
  background-position: 20% 4%;
  background-size: 100% auto;
}

/* Lighter border-top for specific cards */
.project-card[href="projects/learnfirst.html"] .project-overlay,
.project-card[href="projects/linkedin-voyage.html"] .project-overlay,
.project-card[href="projects/gorestaurant.html"] .project-overlay {
  /* Color */
  border-top: 1px solid rgba(255, 255, 255, 0.671);
}

/* Project Hero Image */
.project-hero-image {
  /* Display & Box Model */
  width: 100%;
  height: 400px;
  border-radius: 1.5rem;
  overflow: hidden;
}

/* Contact Section */
.contact-section {
  /* Color */
  background: var(--white-bg);
  
  /* Text */
  text-align: center;
  
  /* Display & Box Model */
  min-height: auto;
}

.contact-text {
  /* Display & Box Model */
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  
  /* Color */
  color: var(--text-gray);
  
  /* Text */
  font-size: 1.2rem;
}

.contact-btn {
  /* Display & Box Model */
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  
  /* Color */
  background: var(--primary-color);
  color: white;
  
  /* Text */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  
  /* Other */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(29, 98, 209, 0.3);
}

.contact-btn:hover {
  /* Color */
  background: var(--primary-hover);
  
  /* Other */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(29, 98, 209, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    /* Display & Box Model */
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .nav-pill {
    /* Display & Box Model */
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-link {
    /* Display & Box Model */
    padding: 0.5rem 1rem;
    
    /* Text */
    font-size: 0.9rem;
  }
  
  .email-link {
    /* Display & Box Model */
    padding: 0.5rem 1rem;
    
    /* Text */
    font-size: 0.9rem;
  }
  
  .section-title {
    /* Text */
    font-size: 2rem;
  }
  
  .name {
    /* Text */
    font-size: 2rem;
  }
  
  .title {
    /* Text */
    font-size: 1.2rem;
  }
  
  .skills-grid,
  .projects-grid {
    /* Display & Box Model */
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .skill-card,
  .project-card {
    /* Display & Box Model */
    padding: 1.5rem;
  }
  
  section {
    /* Display & Box Model */
    padding: 4rem 0;
  }
  
  .hero-section {
    /* Display & Box Model */
    padding: 1rem 0 3rem 0;
    min-height: calc(100vh - 70px);
  }
  
  .social-links {
    /* Positioning */
    left: 1rem;
    bottom: 1rem;
  }
  
  .social-link {
    /* Display & Box Model */
    width: 45px;
    height: 45px;
    
    /* Text */
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .container {
    /* Display & Box Model */
    padding: 0 1rem;
  }
  
  .profile-picture {
    /* Display & Box Model */
    width: 150px;
    height: 150px;
  }
  
  .name {
    /* Text */
    font-size: 1.8rem;
  }
  
  .title {
    /* Text */
    font-size: 1.1rem;
  }
  
  .resume-btn,
  .contact-btn {
    /* Display & Box Model */
    padding: 0.8rem 1.5rem;
    
    /* Text */
    font-size: 1rem;
  }
}