@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

*, *::after, *::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    font-size: 62.5%; /* 10px == 1rem */
}

:root {
    --primary-color: #33ff33;
    --backup-primary-color: #ff6347;
    --secondary-color: #1abc9c;
    --dark-secondary-color: #16a085;
    --light-dark: #333333;
    --dark-dark: #1a1a1a;
    --dim-light: #fafafa;
    --faded-light: #aaaaaa;
    --light: #ffffff;
    --max-width: 120rem;
}

body {
    min-height: 100vh;
    width: 100vw !important;
    background: var(--dark-dark) !important;
    color: var(--dim-light) !important;
    font-size: 1.8rem;
    font-family: 'Share Tech Mono', monospace, sans-serif;
    overflow-x: hidden;
    overflow-y: scroll;
}

button {
    font-weight: bold;
    border: none;
    border-radius: .3rem;
    padding: 1.5rem 1rem;
    color: var(--light);
    background-color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0rem auto;
    padding: 0rem 1.5rem;
}

.primary {
    color: var(--primary-color);
}

.hidden {
    opacity: 0;
    pointer-events: none;
}



/* COMMON ELEMENTS */

.title {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    text-align: center;
}

.title__heading{
    font-size: 3rem;
}

.title__body{
    font-size: 2.5rem;
}



/*   HEADER SECTION */ 

header {
    font-weight: medium;
    width: 100vw;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header a {
    color: var(--dim-light);
}

.logo__div {
    font-size: large;
}

nav {
    background: var(--light-dark);
    color: var(--light);
    padding: 1rem 2rem;
    border-radius: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu__icon {
    color: var(--light);
    display: none;
}

.nav__list {
    display: inline-block;
    position: absolute;
    right: 2rem;  /* visible - 2rem, hidden - -50rem*/
    top: 6.5rem;
    background: var(--light-dark);
    color: var(--light);
    padding: 2rem 2rem;
    z-index: 99;
    visibility: hidden;
    transition: visibility .1s;
}

.nav__list div {
    padding: .7rem 0rem;
    border-bottom: var(--faded-light) .1rem solid;
}

.nav__list::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    transform: rotate(45deg);
    border-left: 0;
    background-color: var(--light-dark);
}



/*   INTRO SECTION */ 

.intro__section {
    min-height: 50rem;
    padding: 10rem;
    background:linear-gradient(135deg,
    #333333dc 0%,
    #1a1a1adc) 100%,
    url('../images/laravel(1500x500).png') center no-repeat fixed;
    background-size: cover;
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap !important;
}

.intro__me {
    flex: 1;
    padding: 2rem;
}

.intro__me .occupation {
    color: var(--primary-color);
}

.intro__me .name {
    font-size: 2.5rem;
}

.intro__me .name span {
    display: inline-block;
    animation: rollingFade 2s infinite;
}

@keyframes rollingFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Apply delay to each letter */
.rolling-text span:nth-child(1) { animation-delay: 0s; }
.rolling-text span:nth-child(2) { animation-delay: 0.1s; }
.rolling-text span:nth-child(3) { animation-delay: 0.2s; }
.rolling-text span:nth-child(4) { animation-delay: 0.3s; }
.rolling-text span:nth-child(5) { animation-delay: 0.4s; }
.rolling-text span:nth-child(6) { animation-delay: 0.5s; }
.rolling-text span:nth-child(7) { animation-delay: 0.6s; }
.rolling-text span:nth-child(8) { animation-delay: 0.7s; }
.rolling-text span:nth-child(9) { animation-delay: 0.8s; }

.intro__me .description {
    color: var(--dim-light);
    line-height: 1.6;
    margin-right: 2rem;
}

.intro__me .skills {
    margin-top: 2rem;
}

.intro__image {
    flex: 1;
    text-align: center;
}

.intro__image img {
    width: 100%;
    border-radius: 50%; /* Circular shape */
    border: .5rem solid var(--light); /* White border */
    box-shadow: 0 .4rem .8rem rgba(0, 0, 0, 0.1);
}

@media (max-width: 62rem) {
    .intro__image {
        display: none;
    }
}

@media (max-width: 42rem) {
    .intro__section {
        padding: 2rem 1rem;
    }
}



/* ABOUT SECTION */

.about__section {
    padding: 5rem;
    max-width: var(--max-width);
    margin: 3rem auto;
}

.about__section .about__div {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

/* .about__section .profile__pic {
    display: none;
} */

.about__section .profile__pic img {
    width: 30rem;
    height: 45rem;
    border: .3rem solid var(--primary-color);
    border-radius: 1rem;
    box-shadow: 0 0 .8rem var(--primary-color);
}

.about__section .bio div {
    margin: 2rem 0;
}

.about__section h1, .about__section h2 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about__section h2 {
    font-size: 2.5rem;
}

.about__section  p {
    margin: 1rem 0rem;
    font-size: 2.5rem;
    line-height: 1.5;
}

/* Glitch effect */
.about__section .glitch {
    position: relative;
    display: inline-block;
    color: var(--primary-color);
    text-shadow: .2rem .2rem 0 #0a0a0a, -.2rem -.2rem 0 var(--primary-color);
    animation: glitch 0.5s infinite alternate;
}

@keyframes glitch {
    0% { text-shadow: .2rem .2rem 0 #0a0a0a, -.2rem -.2rem 0 var(--light); }
    100% { text-shadow: -.2rem -.2rem 0 #0a0a0a, .2rem .2rem 0 var(--backup-primary-color); }
}



/* CERTIFICATION SECTION */

.certifications__section {
    /* text-align: center; */
    padding: 3rem;
    margin: 0rem auto;
}

/* Responsive flexbox container */
.certifications__section .certs__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

/* Certificate cards */
.certifications__section .cert__card {
    background-color: #111;
    width: 32rem; /* Uniform width */
    min-height: 36rem; /* Ensures equal height */
    border-radius: .8rem;
    box-shadow: 0 .4rem 1rem rgba(51, 255, 51, 0.2);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease-in-out;
}

.certifications__section .cert__card:hover {
    transform: scale(1.05);
}

/* Certificate image styling */
.certifications__section .cert__card img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    border-radius: .6rem;
    cursor: pointer;
}

/* Cards without images */
.certifications__section .no__image {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--primary-color);
}

/* Headings inside cards */
.certifications__section .cert__card h2 {
    margin: 1.5rem 0 .5rem;
}

.certifications__section .cert__card h2 a {
    font-size: 2rem;
    text-transform: capitalize;
    color: var(--primary-color);
}

.certifications__section .cert__card p {
    font-size: 1.5rem;
    opacity: 0.6;
}



/* PORTFOLIO SECTION */

.portfolio__section {
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 2rem;
}

/* Portfolio Item */
.portfolio__section .portfolio__item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    transition: transform 0.3s ease-in-out;
}

.portfolio__section .portfolio__item:hover {
    transform: scale(1.02);
}

/* Portfolio Image */
.portfolio__section .portfolio__item img {
    width: 22rem;
    height: 16rem;
    object-fit: cover;
    border-radius: .6rem;
    cursor: pointer;
}

/* Text Content */
.portfolio__section .portfolio__content {
    flex: 1;
}

.portfolio__section .portfolio__content h2 {
    margin-bottom: .8rem;
}

.portfolio__section .portfolio__content p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Links */
.portfolio__section .portfolio__links {
    display: flex;
    gap: 3rem;
}

.portfolio__section .portfolio__links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    transition: opacity 0.3s;
}

.portfolio__section .portfolio__links a:hover {
    opacity: 0.7;
}

/* Handling projects without images */
.portfolio__section .no__image {
    display: flex;
    justify-content: flex-start;
}

/* Responsive Design */
@media (max-width: 60rem) {
    .portfolio__section .portfolio__item {
        flex-direction: column;
        text-align: center;
    }

    .portfolio__section .portfolio__item img {
        width: 100%;
        height: auto;
    }

    .portfolio__section .portfolio__links {
        justify-content: center;
    }
}



/* BLOG SECTION */

.blog__posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
}

.blog__post {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #222;
    width: 90%;
    max-width: var(--max-width);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: .8rem;
    box-shadow: 0 .4rem .6rem rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
}

.blog__post:hover {
    transform: translateY(-5px);
}

.blog__post img {
    width: 100%;
    max-height: 20rem;
    object-fit: cover;
    border-radius: .8rem;
}

.blog__content {
    text-align: center;
    margin-top: 1.5rem;
}

.blog__content h3 {
    text-transform: capitalize;
    color: var(--secondary-color);
}

.blog__content p {
    color: #ccc;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}



/* TESTIMONIAL SECTION */

.testimonial__section {
    text-align: center;
    padding: 5rem 2rem;
}

/* Testimonial Wrapper */
.testimonial__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 80rem;
    margin: auto;
    overflow: hidden;
}

/* Testimonial Container (For Scroll Effect) */
.testimonial__container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Testimonial Item */
.testimonial {
    padding: 2rem 10rem;
    background: #222;
    border-radius: 1rem;
    box-shadow: 0 .4rem .6rem rgba(255, 255, 255, 0.1);
    min-width: 100%;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.testimonial .quote {
    font-style: italic;
}

/* Author Info */
.testimonial .author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial .author img {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    border: .2rem solid var(--secondary-color);
}

.testimonial .author span {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Navigation Buttons */
.prev__btn, .next__btn {
    background: var(--secondary-color);
    border: none;
    color: #111;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 1rem 1.5rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.prev__btn:hover, .next__btn:hover {
    background: var(--dark-secondary-color);
}

.prev__btn { left: 1rem; }
.next__btn { right: 1rem; }

/* Responsive */
@media (max-width: 62rem) {
    .testimonial {
        padding: 1.5rem;
    }
    .author img {
        width: 4rem;
        height: 4rem;
    }
}



/*   QUOTE SECTION */

.quote__section {
    width: 100%;
    min-height: 60rem;
    background:linear-gradient(135deg,
    #33333394 0%,
    #1a1a1a94) 100%,
    url('../images/laravel(1500x500).png') center no-repeat fixed;
    background-size: cover;
    position: relative;
}

.quote_container {
    width: 100%;
    color: var(--dim-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quote__text {
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1.5rem;
}

.quote__icon {
    text-align: center;
    margin-bottom: 2rem;
}

.quote__text p {
    font-style: italic;
    font-weight: bold;
    flex-grow: 2;
}

.quotee__info {
    text-align: center;
}

.quotee__info img {
    width: 20rem;
    border-radius: 100%;
    border: .7rem solid var(--primary-color);
}

.quotee__info h4 {
    text-align: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.quotee__info h6 {
    text-align: center;
    margin-top: .5rem;
}



/* FOOTER SECTION */

.footer {
    background-color: var(--dark-dark);
    color: #ddd;
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: .4rem;
    background-color: var(--primary-color);
    border-radius: .2rem;
    margin-bottom: 2rem;
}

.footer .contact-info p {
    margin: 1rem 0;
}

.footer .contact-info p span {
    font-weight: bold;
    color: var(--light);
}

.footer p {
    margin: .5rem 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--light);
}

.footer p.copyright {
    margin-top: .2rem;
    font-size: 1.5rem;
    color: var(--faded-light);
}

@media (max-width: 60rem) {
    .footer {
        padding: 2rem 0;
    }
}



/* POPUP SECTION */

#popup__container {
    background: var(--dark-dark);
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    transition: opacity .3s;
}

#popup {
    margin-top: 3rem;
    max-width: 80vw;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    overflow: auto;
}

#close__popup {
    color: var(--primary-color);
    border: none;
    background: transparent;
    cursor: pointer;
    align-self: flex-end;
}

.popup__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
}

.popup__info img { /* For loader image */
    width: 100%;
}

.popup__image, .popup__video { /* For popup image and video */
    height: 70vh;
}

.popup__info__error {
    margin: 2rem auto;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
}

.popup__animation {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading__gif {
    width: 3rem;
}

.sorry__gif {
    width: 15rem;
}



/* RESPONSIVENESS */

@media (max-width: 62rem) {
    nav {
        display: none;
    }

    .menu__icon {
        display: inline-block;
    }

    
    .about__section .about__div {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }
}