3d 4 sections portfolio website

Code Snippet



<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>3D Glass Portfolio</title>
  <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
  <style>
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: 'Poppins', sans-serif;
      background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
      color: #fff;
      overflow-x: hidden;
    }
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 60px;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      z-index: 999;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .logo { font-size: 1.5rem; font-weight: 600; color: #0ff; }
    .menu-toggle {
      width: 30px;
      height: 30px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
    }
    .menu-toggle span {
      height: 3px;
      background: #0ff;
      border-radius: 5px;
    }
    nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background: rgba(0, 0, 0, 0.95);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: 0.5s ease;
    }
    nav.active { right: 0; }
    nav a {
      color: #0ff;
      font-size: 2rem;
      margin: 1rem;
      text-decoration: none;
      transition: 0.3s;
    }
    nav a:hover { color: #fff; }

    section {
      padding: 100px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    section h2 {
      font-size: 2.5rem;
      margin-bottom: 20px;
      color: #0ff;
    }
    section p {
      max-width: 800px;
      font-size: 1rem;
      line-height: 1.6;
      color: #ccc;
    }
    .card {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
      border-radius: 20px;
      padding: 20px;
      margin-top: 30px;
      max-width: 600px;
      transition: 0.3s;
    }
    .card img {
      width: 100%;
      border-radius: 15px;
      margin-bottom: 15px;
    }
    .card:hover {
      transform: scale(1.03);
      box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    }

    footer {
      background: rgba(255, 255, 255, 0.05);
      border-top: 1px solid rgba(255,255,255,0.1);
      padding: 2rem;
      text-align: center;
      color: #999;
      font-size: 0.9rem;
    }

    @media (min-width: 768px) {
      .menu-toggle { display: none; }
      nav {
        position: static;
        height: auto;
        flex-direction: row;
        justify-content: flex-end;
        background: none;
      }
      nav a { font-size: 1rem; margin: 0 1rem; }
    }
  </style>
</head>
<body>

  <header>
    <div class="logo">MyPortfolio</div>
    <div class="menu-toggle" onclick="toggleMenu()">
      <span></span><span></span><span></span>
    </div>
    <nav id="nav">
      <a href="#about">About</a>
      <a href="#projects">Projects</a>
      <a href="#skills">Skills</a>
      <a href="#contact">Contact</a>
    </nav>
  </header>

  <section id="about">
    <h2>About Me</h2>
    <div class="card">
      <img src="https://source.unsplash.com/600x400/?developer" alt="About" />
      <p>Hi, I’m a passionate web developer with a love for modern UI design and 3D web experiences. I build responsive and interactive websites with great attention to detail.</p>
    </div>
  </section>

  <section id="projects">
    <h2>Projects</h2>
    <div class="card">
      <img src="https://source.unsplash.com/600x400/?code,project" alt="Project" />
      <p>From small business websites to complex web apps, I’ve developed scalable solutions for a variety of clients. Clean code and responsive layout guaranteed.</p>
    </div>
  </section>

  <section id="skills">
    <h2>Skills</h2>
    <div class="card">
      <img src="https://source.unsplash.com/600x400/?technology,computer" alt="Skills" />
      <p>Proficient in HTML, CSS, JavaScript, React, and backend tools like Node.js. I also have experience with UI frameworks and design tools like Figma and Tailwind CSS.</p>
    </div>
  </section>

  <section id="contact">
    <h2>Contact Me</h2>
    <div class="card">
      <img src="https://source.unsplash.com/600x400/?contact,chat" alt="Contact" />
      <p>Let’s build something amazing together! Reach out to me via email or follow me on social media. I'm always open to discussing new projects or ideas.</p>
    </div>
  </section>

  <footer>
    &copy; 2025 MyPortfolio. All rights reserved.
  </footer>

  <script>
    function toggleMenu() {
      document.getElementById('nav').classList.toggle('active');
    }





  function toggleMenu() {
    document.getElementById('nav').classList.toggle('active');
  }

  // Close menu after clicking a nav link
  document.querySelectorAll('#nav a').forEach(link => {
    link.addEventListener('click', () => {
      document.getElementById('nav').classList.remove('active');
    });
  });


  </script>

</body>
</html>