@import url("https://fonts.googleapis.com/css2?family=Creepster&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Federant&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Agbalumo&family=Dancing+Script:wght@400..700&display=swap');

* {
  box-sizing: border-box;
}
body {
  scroll-behavior: smooth;
  font-family: "DM Serif Text", serif;
  font-weight: 700;
  font-style: italic;
  overflow-x: hidden;
}
/* Ensure no overflow on mobile */
@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }
}
nav {
  font-family: "Federant", serif;
  font-weight: 400;
  font-style: normal;
}
.first-section {
  margin-top: 80px !important;
  height: 100vh; /* Full viewport height */
  background-image: url("5186991.jpg");
  background-size: cover; /* Cover the entire section */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* Prevent the background image from repeating */
}

.first {
 font-family: "Agbalumo", system-ui;
  font-weight: 600;
  font-style: italic;
}

#second {
  font-family: "DM Serif Text", serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.1rem;
  color: rgb(39, 86, 242);
}

#third {
  font-family: "DM Serif Text", serif;
  font-weight: 700;
  font-style: italic;
  font-size: 2.1rem;
   color: rgb(39, 86, 242);
}

#name-typewriter {
  font-family: "Agbalumo", system-ui;
  font-weight: 600;
  font-style: italic;

  font-size: 3rem;
}
.second-section {
  height: 100vh; /* Full viewport height */
  background-image: url("ink071124.jpg");
  background-size: cover; /* Cover the entire section */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* Prevent the background image from repeating */
}
.second-section h2 {
  font-family: "Dancing Script", cursive;
  font-optical-sizing: auto;
  font-weight: 800;
  font-size:4rem;
  font-style: normal;
  letter-spacing: 3px;
}
.second-section p {
  font-family: "DM Serif Text", serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.1rem;
}
#skills {
  font-family: "DM Serif Text", serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.1rem;
}
.third-section {
  height: 100vh; /* Full viewport height */
  background-image: url("5186991.jpg");
  background-size: cover; /* Cover the entire section */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* Prevent the background image from repeating */
}
.third-section h2 {
   font-family: "Dancing Script", cursive;
  font-optical-sizing: auto;
  font-weight: 800;
  font-size: 4rem;
  font-style: normal;
  letter-spacing: 3px;
}
#lastt{
   font-family: "Agbalumo", system-ui;
  font-weight: 600;
  font-style: italic;
}
.fourth-section {
  background-image: url("ink071124.jpg");
  background-size: cover; /* Cover the entire section */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* Prevent the background image from repeating */
}
/* Custom Animation Styles */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

/* Mobile menu styles */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Custom responsive image sizing */
.hero-image {
  width: 280px;
  height: 280px;
}

@media (max-width: 640px) {
  .hero-image {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-image {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 375px) {
  .hero-image {
    width: 140px;
    height: 140px;
  }
}

/* Gradient background */
body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 35%, #0f3460 100%);
  min-height: 100vh;
  color: white;
}

/* Custom spacing for hero section */
.hero-section {
  padding-top: 100px;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px;
  }
}
/* Mobile-first responsive adjustments */
@media (max-width: 420px) {
  #skills {
    height: 42.5rem;
  }
  .reed {
    padding: 0%;
  }
}

/* Optimized styles for devices 360px to 425px */
@media screen and (min-width: 360px) and (max-width: 425px) {
}

/* Touch-friendly hover states for devices 360px to 925px */
@media screen and (min-width: 360px) and (max-width: 925px) {
  /* Remove hover effects on touch devices */
  .reed .group:hover {
    transform: none;
    border-color: inherit;
    box-shadow: none;
  }

  .reed .group:hover .absolute.inset-0 {
    opacity: 0;
  }

  .reed .group:hover h3,
  .reed .group:hover p {
    color: inherit;
  }

  .reed .group:hover .mt-2 {
    opacity: 1;
    transform: none;
  }

  /* Add tap feedback instead */
  .reed .group:active {
    transform: scale(0.98);
    opacity: 0.9;
  }


    .skill-card .group:hover {
    transform: none;
    border-color: inherit;
    box-shadow: none;
  }

  .skill-card .group:hover .absolute.inset-0 {
    opacity: 0;
  }

  .skill-card .group:hover h3,
  .skill-card .group:hover p {
    color: inherit;
  }

  .skill-card .group:hover .mt-2 {
    opacity: 1;
    transform: none;
  }

  /* Add tap feedback instead */
  .skill-card .group:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

 
}


/* Add this to your CSS file or in a <style> tag */
@media (max-width: 390px) {
  #skills {
    display: flex !important;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    width: auto;
    height: auto;
  }
  .second-section {
    min-height: auto !important;
    height: auto !important;
    padding: 1rem !important;
  }

  .second-section #skills {
    width: auto !important;
    max-width: none !important;
  }

  #skills > div {
    flex: 0 0 280px; /* Fixed width for each card */
    scroll-snap-align: start;
  }

  /* Custom scrollbar */

  #skills::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }
  #skills::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.6);
    border-radius: 2px;
  }
}

@media (min-width: 768px) and (max-width: 769px) {
  #skills {
    padding: 2px;
    height: 42.5rem;
  }
}

/* this helps the image take up needed space only */
@media (min-width: 359px) and (max-width: 915px) {
  .first-section {
    min-height: auto !important;
    height: auto !important;
    padding: 1rem !important;
  }

  .first-section {
    width: auto !important;
    max-width: none !important;
  }
  .second-section {
    min-height: auto !important;
    height: auto !important;
    padding: 1rem !important;
  }

  .second-section {
    width: auto !important;
    max-width: none !important;
  }
  .third-section {
    min-height: auto !important;
    height: auto !important;
    padding: 1rem !important;
  }

  .third-section {
    width: auto !important;
    max-width: none !important;
  }

  .fourth-section {
    min-height: auto !important;
    height: auto !important;
    padding: 1rem !important;
  }

  .fourth-section .reed {
    width: auto !important;
    max-width: none !important;
  }
}

.footer-container {
  background: black;
  color: white;

  min-height: auto !important;
  height: auto !important;
  padding: 1rem !important;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: auto !important;
  max-width: none !important;

  position: relative;
  overflow: hidden;
}


.footer-container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 1px,
    transparent 1px
  );
  background-size: 15px 15px;
  -webkit-animation: float 20s infinite linear;
  -moz-animation: float 20s infinite linear;
  -o-animation: float 20s infinite linear;
  animation: float 20s infinite linear;
  will-change: transform;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-20px) rotate(360deg);
  }
}

.footer-content {
  position: relative;
  z-index: 2;
}

.name {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
}

.contact-item svg {
  width: 16px;
  height: 16px;
}

.email-link {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.email-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 15px 0;
}

.copyright-section {
  text-align: center;
  font-size: 0.8em;
  opacity: 0.9;
}

.copyright-text {
  margin-bottom: 5px;
}

.rights-text {
  font-size: 0.75em;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 600px) {
  .name {
    font-size: 1.8em;
  }

  .contact-info {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .contact-item {
    font-size: 1em;
  }
}
