/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #212121; /* Changed from default or previous color */
  color: #ccc;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Layout */
.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
}

.logo img {
  height: 30px;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #29ffd8;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 4px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
@media (max-width: 990px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-active {
    display: flex;
  }

  .hamburger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Add top padding to main content to prevent it from being hidden behind the fixed header */
.content {
  padding-top: 100px;
}

/* Footer Styles */
footer {
  background-color: #1a1a1a;
  padding: 20px;
  text-align: center;
}

footer p {
  margin: 0;
  color: #777;
}

.social-media {
  margin-top: 10px;
}

.social-media a {
  margin: 0 10px;
  color: #777;
  font-size: 1.5em;
  transition: color 0.3s;
}

.social-media a:hover {
  color: #29ffd8;
}

/* Home Page Styles */
.home-hero {
  text-align: center;
  padding: 150px 0 50px;
}

.animated-text {
  font-size: 3em;
  font-weight: bold;
  background: linear-gradient(270deg, #ff004c, #29ffd8, #ff004c);
  background-size: 600% 600%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate 8s ease infinite;
}

@keyframes animate {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.home-description {
  font-size: 1.2em;
  color: #aaa;
  margin-top: 20px;
}

/* Wireframe Animation Styles */
.wireframe-container {
  position: relative;
  height: 400px;
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
}

.wireframe-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff004c, #29ffd8, #7900ff);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  opacity: 0.3;
}

.wireframe-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: linear-gradient(#ffffff15 1px, transparent 1px),
                    linear-gradient(90deg, #ffffff15 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg);
  animation: gridMove 15s linear infinite;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  width: 90%;
}

.hero-text h1 {
  font-size: 4em;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px rgba(41, 255, 216, 0.5);
  margin-bottom: 10px;
}

.hero-text .hero-description {
  font-size: 1.2em;
  color: #aaa;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@keyframes gridMove {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(50px);
  }
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Sections Overview Styles */
.sections-overview {
  padding: 50px 0;
}

.sections-overview .cards-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.sections-overview .card,
.card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background-color: #1e1e1e;
  transition: transform 0.3s;
}

.sections-overview .card:hover,
.card:hover {
  transform: translateY(-10px);
}

.sections-overview .card img,
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.sections-overview .card-content,
.card-content {
  padding: 15px;
  text-align: left;
}

.sections-overview .card h3,
.card-content h3 {
  margin: 0 0 10px;
  color: #fff;
}

.sections-overview .card p,
.card-content p {
  margin: 0 0 15px;
  color: #ccc;
}

.sections-overview .card a,
.card a {
  color: inherit;
  text-decoration: none;
}

/* Button Styles */
.read-more, .button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #29ffd8;
  color: #121212 !important; /* Ensures the text color is black */
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.read-more:hover, .button:hover {
  background-color: #ff004c;
  color: #fff;
}

.button.secondary {
  background-color: transparent;
  border: 2px solid #29ffd8;
  color: #29ffd8;
}

.button.secondary:hover {
  background-color: #ff004c;
  color: #fff;
  border-color: #ff004c;
}

/* Team Member Styles */
.team-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 50px 0;
}

.team-member {
  background-color: #1e1e1e;
  margin: 20px;
  width: 260px;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.team-member:hover {
  transform: scale(1.05);
}

.team-member img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 20px auto;
}

.team-member h3 {
  margin: 15px 0 5px;
}

.team-member p {
  color: #777;
  padding: 0 20px 20px;
}

/* Filters Styles */
.filters {
  text-align: center;
  margin: 30px 0;
}

.filters .button {
  margin: 0 10px 10px;
}

.filters .button.active {
  background-color: #ff004c;
  color: #fff;
  border-color: #ff004c;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .tutorial-content {
    padding: 30px 15px;
  }
}

@media (max-width: 992px) {
  .team-member {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}

/* Tutorial Page Styles */
.tutorial-content {
  padding: 50px 0;
}

.tutorial-content h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #fff;
}

.tutorial-content h2 {
  font-size: 1.8em;
  margin: 30px 0 15px;
  color: #29ffd8;
}

.tutorial-content h3 {
  font-size: 1.5em;
  margin: 25px 0 10px;
  color: #ff004c;
}

.tutorial-content p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #ccc;
}

.tutorial-content ul,
.tutorial-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
  color: #ccc;
}

.tutorial-content ul li,
.tutorial-content ol li {
  margin-bottom: 10px;
}

.tutorial-content em {
  color: #aaa;
}

.tutorial-content a.button {
  margin-top: 30px;
}

/* Code Block Styles */
.code-block {
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.code-block code {
  color: #29ffd8;
  font-family: 'Courier New', Courier, monospace;
}

/* Quote Block Styles */
.quote {
  border-left: 4px solid #ff004c;
  padding-left: 15px;
  margin: 20px 0;
  color: #aaa;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #1e1e1e;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  color: #ccc;
}

.modal-content h2 {
  color: #fff;
}

.modal-content .button {
  display: inline-block;
  margin-top: 15px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover, .close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.linkedin-button {
  background-color: #0077b5; /* LinkedIn Blue */
  color: white;
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.linkedin-button:hover {
  background-color: #005582; /* Darker LinkedIn Blue */
}

/* Search Bar Styles */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  width: 80%;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  background-color: #1e1e1e;
  border: 2px solid #29ffd8;
  border-radius: 5px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ff004c;
  box-shadow: 0 0 10px rgba(41, 255, 216, 0.2);
}

.search-input::placeholder {
  color: #666;
}

.search-button {
  background-color: #29ffd8;
  border: none;
  padding: 12px 20px;
  margin-left: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background-color: #ff004c;
  transform: scale(1.05);
}

.search-button i {
  color: #1e1e1e;
}

.search-button:hover i {
  color: #fff;
}
