:root {
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --primary-color: #bb86fc;
    --secondary-color: #03dac6;
    --accent-color: #cf6679;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  
}


canvas {
    position: fixed;
    top: 0;
    left: 0;
    background: #534b4b;
    height: 500px;
}

a {
  -webkit-tap-highlight-color: transparent;
}





body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.9;
    width: 100%;
    overflow-x: hidden; 
}

.container {
  
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
    
            }
.typewriter {

font-size: 30px;
overflow: hidden;
border-right: 2px solid #02fff7;
white-space: nowrap;

letter-spacing: 5px;

}

.typewriter-text {
display: inline-block;
}

header {
    background-color: rgba(18, 18, 18, 0.8);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  
  
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

main {
    margin-top: 10px;
}

section {
    padding: 30px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;





}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-image, .typewriter, .btn {
    z-index: 10;
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    /* margin-bottom: 20px; */
    /* border: 3px solid var(--primary-color); */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.about-content {
    justify-content: center;
}




.education-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-item {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.education-item:hover {
    transform: translateY(-5px);
}




    .timeline {
      position: relative;
      padding: 20px 0;
    }
    .timeline::after {
      content: '';
      position: absolute;
      width: 4px;
      background: var(--primary-color);
      top: 0;
      bottom: 0;
      left: 50%;
      margin-left: -2px;
    }

    .timeline-item {
      padding: 20px;
      position: relative;
      width: 50%;
    }
    .timeline-item::before {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #000000;
      border: 4px solid var(--primary-color);
      top: 24px;
      z-index: 1;
    }

    .timeline-item.left {
      left: 0;
    }
    .timeline-item.left::before {
      right: -10px;
    }

    .timeline-item.right {
      left: 50%;
    }
    .timeline-item.right::before {
      left: -10px;
    }

    .card-item {
      background: var(--card-bg);
      border-radius: 10px;
      padding: 20px;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease;
      box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
    }
    .card-item:hover {
      transform: translateY(-5px);
    }

    .card-item summary {
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      color: var(--primary-color);
      font-weight: 600;
      font-size: 1rem;
    }
    .card-item summary::-webkit-details-marker {
      display: none;
    }
    .card-item .arrow {
      font-size: 18px;
      transition: transform 0.3s ease;
    }
    .card-item details[open] .arrow {
      transform: rotate(180deg);
    }

    .card-item p,
    .card-item ul,
    .card-item sub {
      margin-top: 10px;
    }
    .card-item ul {
      padding-left: 20px;
    }
    .card-item li {
      margin-bottom: 6px;
    }
    .card-item sub {
      font-size: 0.8rem;
      opacity: 0.7;
    }

    @media (max-width: 768px) {
      .timeline::after {
        left: 10px;
      }
      .timeline-item {
        width: 100%;
        padding-left: 30px;
        margin-bottom: 30px;
      }
      .timeline-item.left,
      .timeline-item.right {
        left: 0;
      }
      .timeline-item.left::before,
      .timeline-item.right::before {
        left: -10px;
      }
    }











.projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.project-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.project-header h3 {
    margin: 0;
}

.arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.arrow.rotate {
    transform: rotate(90deg);
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.project-details.open {
    max-height: 1000px;
    margin-top: 15px;
}


.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 40vh;
        background-color: rgba(18, 18, 18, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        transition: top 0.5s ease;
    }

    .nav-links li {
        margin: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        top: 0;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid var(--secondary-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--secondary-color) transparent transparent;
    }

    .left::after, .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }
    a, a:focus, a:active, a:focus-visible {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  background: transparent;
  box-shadow: none;
}

}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
a {
  -webkit-tap-highlight-color: transparent;
}
a, a:focus, a:active, a:focus-visible {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  background: transparent;
  box-shadow: none;
}

