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

body {
    background-color: #000;
    color: #ffffff;
    overflow-x: hidden;
    font-family: 'Audiowide', sans-serif;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero {
    text-align: center;
    padding: 10rem 2rem 4rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 2rem;
    margin-bottom: 400px;
}

.card {
    background: rgba(0, 255, 224, 0.05);
    border: 1px solid #00ffe0;
    padding: 2rem;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px #00ffe0;
    backdrop-filter: blur(4px);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ffe0, 0 0 40px #00ffe0, 0 0 60px #00ffe0;
}

#typed-text::after {
    content: "|";
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 5px #00ffe0, 0 0 10px #00ffe0, 0 0 20px #00ffe0;
    }

    50% {
        text-shadow: 0 0 2px #00ffe0, 0 0 4px #00ffe0, 0 0 8px #00ffe0;
    }

    100% {
        text-shadow: 0 0 5px #00ffe0, 0 0 10px #00ffe0, 0 0 20px #00ffe0;
    }
}

.glow-text {
    font-family: 'Audiowide', sans-serif;
    font-size: 3rem;
    animation: pulse-glow 2s infinite ease-in-out;
}

@media (max-width: 768px) {
  .glow-text {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .glow-text {
    font-size: 2rem;
  }
}

.info-section {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px 20px;
    background-color: rgba(0, 255, 224, 0.05);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    text-align: center;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    opacity: 0;
    transform: translateY(40px);
}

.info-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.info-section p {
    font-size: 1rem;
    color: #c6fdf7;
}

#about {
    max-width: auto;
}

#about h2 {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

#about .about-content {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.about-content p {
    max-width: 500px;
}

.laptop-image {
    width: 100%;
    display: block;
    margin: 0 auto;
    max-width: 300px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.1))
}

.tech-stack {
    min-width: 320px;
    flex: 1;
}

.tech-toggle {
    text-shadow: 0 0 5px #00ffe0;
    font-family: 'Audiowide', sans-serif;
    background: none;
    border: none;
    color: #c6fdf7;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.arrow {
    transition: transform 0.3s ease;
}

.skills-container {
    margin-top: 1.2rem;
    display: none;
}

.skill {
    margin-bottom: 1rem;
}

.skill span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.bar {
    width: 100%;
    height: 6px;
    background: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00f5d4, #4cc9f0);
    border-radius: 4px;
    transition: width 1s ease;
    animation: none;
    width: var(--percent);
    animation: fill-bar 1.5s ease forwards;
}

@keyframes fill-bar {
    from {
        width: 0;
    }

    to {
        width: var(--percent);
    }
}

@media (max-width: 900px) {
    #about .about-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    #about .skills-container {
        min-width: auto;
    }
}

.about-stack-wrapper {
    display: flex;
    align-items: flex-start;
}

#stack {
    max-width: auto;
    margin-left: 5px;
}

.stack-image {
    width: 50%;
    display: block;
    margin: 0 auto;
    max-width: 300px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.9));
    padding-top: 10px;
}

.section-title {
    color: #00ffe0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00ffe0aa;
}

@media (max-width: 768px) {
  .laptop-image,
  .stack-image {
    display: none;
  }
}

@media (max-width: 768px) {
  #about .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about-content p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .about-stack-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Projects */

#projects {
    margin-top: 200px;
    max-width: 1000px;
    margin-bottom: 400px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1320px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffe0;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 224, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 224, 0.4), transparent 30%);
    transform: rotate(0deg);
    animation: rotateGlow 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@keyframes rotateGlow {
    to {
        transform: rotate(360deg);
    }
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px #00ffe0, 0 0 50px #00ffe0 inset;
}

.project-card h3 {
    color: #00ffe0;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #ccc;
    margin-bottom: 1rem;
}

.skills-image {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

.tech-icons {
    font-size: 0.9rem;
    color: #00ffe0;
    margin-bottom: 1rem;
}

.angled-button {
    position: relative;
    display: inline-block;
    background: #00ffe0;
    color: #000;
    padding: 0.8rem 2rem;
    font-family: 'Audiowide', sans-serif;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 transparent;
}

.angled-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #00ffe0, 0 0 20px #00ffe0aa, 0 0 30px #00ffe0aa;
}

.angled-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, white, transparent);
    animation: lightTrail 2s infinite;
    transform: skewX(-30deg);
    transition: none;
    pointer-events: none;
}

@keyframes lightTrail {
    from {
        left: -75%;
    }

    to {
        left: 130%;
    }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .project-card {
    max-width: 100%;
  }

  #projects {
    margin-top: 120px;
    margin-bottom: 200px;
  }
}


/* Modal Box */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background: #0f0f0f;
    color: #c6fdf7;
    max-width: 900px;
    margin: 5vh auto;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #00ffe0;
    box-shadow: 0 0 20px #00ffe0;
    position: relative;
    animation: fadeInScale 0.5s ease-out;
}

.modal-details {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 224, 0.25);
}

.modal-details h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #00ffe0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-details p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #c6fdf7;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 2rem;
    color: #00ffe0;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.modal-media video,
.modal-media img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px #00ffe0;
}

.modal-info {
    flex: 1;
    min-width: 250px;
}

.modal-links a {
    display: inline-block;
    margin-top: 1rem;
    margin-right: 1rem;
    padding: 0.6rem 1.2rem;
    color: #000;
    background: #00ffe0;
    font-family: 'Audiowide', sans-serif;
    text-decoration: none;
    border: none;
    clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-links a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #00ffe0, 0 0 20px #00ffe0aa, 0 0 30px #00ffe0aa;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    margin: 2rem auto;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-links a {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* Footer section */

.footer {
    position: relative;
    min-height: 150px;
    padding: 3rem 2rem 4rem;
    overflow: hidden;
    opacity: 1;
    padding: 3rem 1rem;
    margin-top: 100px;
    text-align: center;
    color: #ffffff;
    font-family: 'Audiowide', sans-serif;
    text-shadow: 0 0 6px #00ffe0aa, 0 0 12px #00ffe055;
    backdrop-filter: blur(4px);
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}


.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    position: relative;
    display: inline-block;
    color: #00ffe0;
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 8px #00ffe0aa;
    transition: color 0.3s ease;
}

.social-icons i {
    margin-right: 0.5rem;
    color: #00ffe0;
    transition: color 0.3s, transform 0.3s;
    text-shadow: 0 0 8px #00ffe0aa;
}

.social-icons a:hover {
    color: #00b7c2;
}

.social-icons a:hover i {
    color: #00b7c2;
    transform: scale(1.2);
}

.social-icons a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #00ffe0;
    transition: width 0.3s ease;
    position: absolute;
    left: 0;
    bottom: -4px;
    box-shadow: 0 0 10px #00ffe0aa;
}

.social-icons a:hover::after {
    width: 100%;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #0a0a0a;
    color: #00ffe0;
    border: 2px solid #00ffe0;
    padding: 0.6rem 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.3s;
    text-shadow: 0 0 8px #00ffe0aa;
    box-shadow: 0 0 10px #00ffe044;
}

#scrollToTopBtn:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px #00ffe0cc, 0 0 30px #00ffe077;
}


.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bubble {
    width: 70px;
    position: absolute;
    opacity: 0.9;
    animation: float 8s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgb(255, 255, 255));
}

.bubble-1 {
    top: 15%;
    left: 15%;
}

.bubble-2 {
    top: 12%;
    right: 15%;
}

.bubble-4 {
    bottom: 20%;
    left: 30%;
}

.bubble-5 {
    bottom: 50%;
    right: 30%;
}

.bubble-6 {
    top: 30%;
    left: 25%;
}

.bubble-7 {
    top: 30%;
    right: 25%;
}


@media (max-width: 768px) {
    .bubbles {
        display: none;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

@media (max-width: 480px) {

  .social-icons a {
    display: block;
    margin: 0.5rem 0;
  }
}
