/* General Styles */
:root {
  --primary-color: #1abc9c;
  --secondary-color: #2c3e50;
  --background-light: #f4f4f9;
  --background-dark: #1a1a1a;
  --text-light: #333;
  --text-dark: #f4f4f9;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, var(--primary-color), #3498db);
  --gradient-animation: gradient-animation 10s ease infinite;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

body {
  background-color: var(--background-light);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.dark-mode {
  background-color: var(--background-dark);
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--background-light);
}

body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

body.dark-mode::-webkit-scrollbar-track {
  background: var(--background-dark);
}

body.dark-mode::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
}

/* Header Styles */
header {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping */
}

.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.1);
}

.navbar {
  display: flex;
  align-items: center;
  overflow-x: auto; /* Add horizontal scrollbar if needed */
  white-space: nowrap; /* Prevent wrapping of links */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 10px 0; /* Add some padding */
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 15vh 20px;
  background: var(--gradient);
  background-size: 200% 200%;
  animation: var(--gradient-animation);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  position: relative;
  overflow: hidden;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-heading {
  font-size: clamp(2rem, 8vw, 4rem);
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-image-container {
  margin-top: 30px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.intro-image {
  width: clamp(150px, 20vw, 200px);
  height: clamp(150px, 20vw, 200px);
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}

/* Website Types Section */
.website-types {
  padding: 10vh 20px;
  background-color: var(--background-light);
  position: relative;
  overflow: hidden;
}

body.dark-mode .website-types {
  background-color: var(--background-dark);
}

.website-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 188, 156, 0.9);
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-text {
  opacity: 1;
}

.card h3 {
  font-size: 1.2rem;
  margin: 15px 0;
  color: var(--text-light);
}

body.dark-mode .card h3 {
  color: var(--text-dark);
}

/* Contact Section */
.contact {
  text-align: center;
  padding: 10vh 20px;
  background: linear-gradient(135deg, #34495e, #2c3e50);
  color: #fff;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
}

.contact h2 {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  margin-bottom: 20px;
}

.btn {
  padding: 10px 20px;
  margin: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp {
  background-color: #25d366;
  color: #fff;
}

.gmail {
  background-color: #db4437;
  color: #fff;
}

/* Footer Styles */
footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row; /* Keep navbar in a single line */
    align-items: center;
    gap: 10px;
  }

  .navbar {
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
  }

  .nav-links {
    gap: 15px; /* Reduce gap for smaller screens */
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 10px; /* Further reduce gap for very small screens */
  }
}
