/* Base Styles */
body {
  background-color: #111;
  color: #fff;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

/* Header Styles */
header {
  background-color: #222;
  padding: 20px;
  border-bottom: 2px solid #555;
}

header .hcontainer {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

header h1 a {
  color: #fff;
  text-decoration: none;
  font-size: 2rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li.active a {
  color: #F2CE7B;
}

main {
  padding: 20px 0;
}

.hero {
  display: flex;
  align-items: center;
  padding: 15px;
  justify-content: space-between;
  margin-bottom: 40px;
  width: 100%;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.hero-content {
  flex: 1;
  margin-right: 20px; /* Add spacing between content and image */
}

.hero-content h2 {
  font-size: 2.5rem; /* Adjusted for smaller screens */
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1rem; /* Adjusted for smaller screens */
  line-height: 1.6;
}

.hero-image {
  display: flex;
  align-items: center;
  flex: 1;
}

.hero-image img {
  width: 100%; /* Ensure image is responsive */
  max-width: 100%; /* Remove fixed max-width */
  height: auto;
  border-radius:50%;
  animation: float 3s ease-in-out infinite;
}

/* Animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem; /* Adjusted for smaller screens */
  margin: 0 10px;
}

.social-icons a:hover {
  color: #f39c12;
}

.skill-wrapper {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.3s ease-in-out;
  text-align: center;
}

.skill-wrapper:hover {
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.7);
}

.skill {
  width: 100%;
  margin-top: 60px;
}

.header {
  background-color: #282c34;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: #444;
  margin-bottom: 40px;
  display: inline-block;
}

.header h2 {
  margin: 0;
}

.skill-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.skill-card {
  background-color: #282c34;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 80px; /* Adjusted for smaller screens */
  height: 80px; /* Adjusted for smaller screens */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  position: relative;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.skill-card img {
  width: 40px; /* Adjusted for smaller screens */
  height: 40px; /* Adjusted for smaller screens */
}

.skill-card h4 {
  margin-top: 10px;
}

footer {
  background-color: #fff;
  padding: 20px 0;
  text-align: center;
  width: 100%;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.social-links li {
  display: inline-block;
  margin: 0 10px;
}

.social-links a {
  color: #333;
  text-decoration: none;
  font-size: 1.5rem;
}

/* Overall Card Styling */
.card-wrapper {
  background-color: #282c34;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.3s ease-in-out;
  margin-bottom: 40px;
}

.card-wrapper:hover {
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.7);
}

/* Skills Section Styling */
.skills-card-wrapper {
  width: 100%;
  text-align: center;
}

.skills-card-wrapper .header h2 {
  margin: 0;
}

/* What I Do Section Styling */
.what-i-do-card-wrapper {
  width: 100%;
  text-align: center;
}

.what-i-do-card-wrapper .header {
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: #444;
}

.content-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Content Card Styles */
.content-card {
  background: #444;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  animation: fadeInUp 0.6s forwards;
}

.content-card-image {
  flex: 1;
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.content-card-image img {
  width: 200px; /* Adjusted for smaller screens */
  height: auto;
  border-radius: 8px;
}

.content-card-text {
  flex: 2;
  text-align: left;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.content-card h3 {
  margin-top: 0;
}

.icons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: flex-start;
}

.icon img {
  width: 34px;
  height: auto;
}

.description p {
  margin: 5px 0;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.content-card-image {
  animation: slideInFromLeft 0.6s forwards;
}

.content-card-text {
  animation: slideInFromRight 0.6s forwards;
}

/* Resume Button Styles */
.resume-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #F2CE7B;
  color: #111;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.resume-button:hover {
  background-color: #f6bd39;
  color: #fff;
}

/* Splash Screen Styling */
.splash-screen {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* Ensure background matches video if necessary */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure splash screen is on top */
  overflow: hidden; /* Prevents scrollbars */
}

/* Video Styling */
#splashVideo {
  width: 70%;
  height: 70%;
  object-fit: cover; /* Ensures video covers the screen */
}

/* Main Content Styling */
.main-content {
  padding: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header .hcontainer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-right: 0;
  }

  .skill-cards {
    flex-direction: column;
    align-items: center;
  }

  .content-cards {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  header h1 a {
    font-size: 1.5rem; /* Smaller font size for very small screens */
  }

  nav ul li a {
    font-size: 0.9rem; /* Smaller font size for very small screens */
  }

  .hero-content h2 {
    font-size: 2rem; /* Smaller font size for very small screens */
  }

  .hero-content p {
    font-size: 0.9rem; /* Smaller font size for very small screens */
  }

  .social-icons a {
    font-size: 1.2rem; /* Smaller icons for very small screens */
  }

  .skill-card {
    width: 60px; /* Adjusted size for smaller screens */
    height: 60px; /* Adjusted size for smaller screens */
  }

  .skill-card img {
    width: 30px; /* Adjusted icon size for smaller screens */
    height: 30px; /* Adjusted icon size for smaller screens */
  }

  .content-card {
    flex-direction: column; /* Stack content vertically for smaller screens */
    text-align: center; /* Center text */
  }

  .content-card-image img {
    width: 100%; /* Full width for smaller screens */
    max-width: 300px; /* Limit maximum width */
  }

  .content-card-text {
    text-align: center; /* Center text */
  }
}
