@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --eucalyptus: #1a1f2c;
  --ochre: #9b87f5;
  --wattle: #7E69AB;
  --coral: #6E59A5;
  --sand: #0F1219;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--sand);
  color: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Permanent Marker', cursive;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.nav {
  position: fixed;
  width: 100%;
  background: rgba(15, 18, 25, 0.8);
  border-bottom: 1px solid rgba(155, 135, 245, 0.1);
  padding: 1rem 0;
  z-index: 1000;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--ochre);
}
.logo-img
{
    height: 50px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

.nav-links a:hover {
  color: var(--ochre);
  text-shadow: 0 0 10px rgba(155, 135, 245, 0.5);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
  box-shadow: 0 0 10px rgba(155, 135, 245, 0.5);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239b87f5' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}
  
.hero-content {
    max-width: 1000px;
    animation: sketch 1s ease-in-out;
    display: flex;
    align-items: center;
    gap: 5rem;
  }
  
  .hero-content > div:first-child {
    flex-shrink: 0;
  }
  
  .hero-content img.head-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .hero-content img.head-icon:hover {
    transform: scale(1.05);
  }
  
  .hero-content > div:last-child {
    flex: 1;
  }
  

.hero-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icon {
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(155, 135, 245, 0.5);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--ochre), var(--wattle)); /* Gradient background */
    -webkit-background-clip: text; /* Clip the background to the text */
    background-clip: text; /* For non-webkit browsers */
    color: transparent; /* Make the text color transparent so the gradient is visible */
    text-shadow: 0 0 20px rgba(155, 135, 245, 0.1); /* Optional: for a subtle text glow effect */
  }

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.cta-button {
  display: inline-block;
  background: var(--ochre);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(155, 135, 245, 0.3);
}

.cta-button:hover {
  background: var(--wattle);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(155, 135, 245, 0.5);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background: var(--eucalyptus);
}

.projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--ochre);
  text-shadow: 0 0 10px rgba(155, 135, 245, 0.5);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(155, 135, 245, 0.2);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(155, 135, 245, 0.4);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 31, 44, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* About Section */
.about {
  background: var(--eucalyptus);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239b87f5' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--ochre);
  text-shadow: 0 0 10px rgba(155, 135, 245, 0.5);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: rgb(39 42 65);
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  border: 1px solid rgba(155, 135, 245, 0.2);
  box-shadow: 0 0 20px rgba(155, 135, 245, 0.1);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(155, 135, 245, 0.2);
  border-color: rgba(155, 135, 245, 0.3);
}

.value-card h3 {
  color: var(--ochre);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(155, 135, 245, 0.5);
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  background: var(--sand);
  border-top: 1px solid rgba(155, 135, 245, 0.1);
}

/* Animations */
@keyframes sketch {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .values {
    grid-template-columns: 1fr;
  }
}

/* Hamburger Menu (CSS updates) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 30px;
    height: 24px;
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--ochre);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* Animation for Hamburger Menu */
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Mobile Navigation (updated styles) */
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  @media (max-width: 768px) {
    .menu-toggle {
      display: flex;
      transform: scale(1.5);
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      right: 0;
      background: rgba(15, 18, 25, 0.9);
      width: 100%;
      border-top: 1px solid rgba(155, 135, 245, 0.1);
      z-index: 1000;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .nav-links li {
      padding: 1rem;
      text-align: center;
    }
  }
  /* Hamburger Menu (CSS updates) */
.menu-toggle {
    display: none; /* Hidden by default */
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    z-index: 1001; /* Ensure it's clickable above other content */
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--ochre);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* Animation for Hamburger Menu */
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Mobile Navigation (updated styles) */
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  @media (max-width: 768px) {
    .menu-toggle {
      display: flex; /* Show hamburger on mobile */
    }
  
    .nav-links {
      display: none; /* Hide navigation links on mobile */
      flex-direction: column;
      position: absolute;
      top: 100%;
      right: 0;
      background: rgba(15, 18, 25, 0.9);
      width: 100%;
      border-top: 1px solid rgba(155, 135, 245, 0.1);
      z-index: 1000;
    }
  
    .nav-links.active {
      display: flex; /* Show navigation when active */
    }
  
    .nav-links li {
      padding: 1rem;
      text-align: center;
    }
  }

  @media (max-width: 768px) {
    .hero-content {
      flex-direction: column;
      text-align: center;
      padding: 2rem 0;
      gap: 0;
    }
  
    .hero-content img.head-icon {
      width: 200px;
      height: 200px;
    }
  }
    
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .social-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .social-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .social-links a:hover {
    color: var(--ochre);
  }
  @media (max-width: 768px) {
    .footer-content {
      flex-direction: column;
      text-align: center;
      justify-content: center;
    }
    
    .social-links {
      justify-content: center;
      flex-wrap: wrap;
    }
  }
/* Mobile Navigation Styles */
@media (max-width: 768px) {
  /* Prevent scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

    /* Logo styles */
    .mobile-menu-logo {
      width: 50px;
    }
  
    .mobile-menu-logo img {
      width: 100%;
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        backdrop-filter: blur(8px); /* Add blur effect */
        width: 100%;
        height: 100vh;
        z-index: 1000;
        margin: 0;
        padding: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        overflow-y: auto;
      }
    
      .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
      }
    
      .nav-links li {
        padding: 0rem;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: slideIn 0.5s ease-in-out forwards;
        width: 100%;
      }
    
      .nav-links a {
        font-size: 1.5rem;
        display: inline-block;
        width: 100%;
        position: relative;
      }
    }

  /* Active link styles */
  .nav-links a.active {
    color: var(--ochre);
  }

  /* Click effect */
  .nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(155, 135, 245, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
  }

  .nav-links a:active::before {
    width: 100%;
    height: 100%;
    border-radius: 4px;
  }

  /* Stagger the animation for each list item */
  .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { animation-delay: 0.5s; }
}

/* Animation keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Ensure the hamburger menu stays visible */
.menu-toggle span {
  background: var(--ochre);
  transition: all 0.3s ease;
}

/* Update hamburger animation for better visibility on full screen */
.menu-toggle.open span {
  background: #fff;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* Mobile Logo */
.mobile-menu-logo {
  width: 200px;
  display: block;  /* Ensure it is displayed on mobile */
}

.mobile-menu-logo img {
  width: 100%;
  height: auto;
}

/* Hide mobile logo on desktop */
@media (min-width: 769px) {
  .mobile-menu-logo {
    display: none;  /* Hide on larger screens */
  }
}

/* Show mobile logo on mobile */
@media (max-width: 768px) {
  .mobile-menu-logo {
    display: block;  /* Show only on mobile */
  }
}