@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;

}

:root{
    --bg-color:  #1f242d;       
    --second-bg-color: #323946;
    --text-color:#fff;
    --main-color:#0ef;
    --yellow-accent: #ffd700;
    --light-yellow: #ffe066;
}


html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(31, 36, 45, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.sticky{
    border-bottom: .1rem solid rgba(0, 238, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
}

.logo:hover {
    background: linear-gradient(135deg, var(--main-color), var(--yellow-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px var(--yellow-accent));
}

.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--main-color), var(--yellow-accent));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--yellow-accent);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active{
    color: var(--light-yellow);
}



#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}


.home{
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img{
    width: 35vw;
    animation: floatImage 4s ease-in-out infinite;
    border-radius: 2rem;
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.5);
}

@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}

.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2){
    margin-bottom: 2rem;
}

span{
    background: linear-gradient(135deg, var(--main-color), var(--yellow-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p{
    font-size: 1.6rem;
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover{
    background: linear-gradient(135deg, var(--main-color), var(--yellow-accent));
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color), 0 0 1.5rem var(--yellow-accent);
    border-color: var(--yellow-accent);
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--light-yellow) 100%);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color), 0 0 0.5rem var(--yellow-accent);
    font-size:1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover{
    box-shadow: 0 0 2rem var(--yellow-accent), 0 0 3rem var(--main-color);
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--yellow-accent) 100%);
}

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.008) 3px,
            rgba(255, 255, 255, 0.008) 6px
        );
    pointer-events: none;
}

.about-img img{
    width: 35vw;
    border-radius: 2rem;
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.5);
}

.heading{
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2{
    text-align: left;
    line-height: 1.2;
}

.about-content h3{
    font-size: 2.6rem;   
}

.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Journey Timeline Styles */
.journey {
    background: var(--bg-color);
    padding: 10rem 9% 2rem;
}

.journey .heading {
    margin-bottom: 5rem;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--main-color), var(--yellow-accent));
    box-shadow: 0 0 10px var(--main-color);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
    position: relative;
    margin: 4rem 0;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: calc(50% + 30px);
    padding-right: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--yellow-accent);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 20px var(--yellow-accent), 0 0 40px var(--main-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 20px var(--yellow-accent), 0 0 40px var(--main-color);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        box-shadow: 0 0 30px var(--yellow-accent), 0 0 60px var(--main-color);
    }
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
    background: var(--main-color);
    color: var(--bg-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.4rem;
    box-shadow: 0 0 10px var(--main-color);
}

.timeline-content {
    background: var(--second-bg-color);
    padding: 2.5rem;
    border-radius: 2rem;
    border: 2px solid transparent;
    position: relative;
    width: 45%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.3), rgba(255, 215, 0, 0.3));
    border-radius: 2rem;
    z-index: -1;
    opacity: 1;
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--second-bg-color);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--second-bg-color) transparent transparent;
}

.timeline-content:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color), 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.timeline-content:hover::after {
    opacity: 1;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.5), rgba(255, 215, 0, 0.5));
}

.timeline-content h3 {
    font-size: 2.2rem;
    color: var(--yellow-accent);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Skills Section Styles */
.skills-section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.skills-section .heading {
    margin-bottom: 5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.skill-category {
    background: var(--second-bg-color);
    padding: 3rem;
    border-radius: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skill-category:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.3);
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 2.4rem;
    color: var(--yellow-accent);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-category h3 i {
    font-size: 3rem;
    color: var(--main-color);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-bar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 500;
}

.skill-info span:first-child {
    color: var(--text-color);
}

.skill-info span:last-child {
    color: var(--yellow-accent);
    font-weight: 600;
}

.skill-progress {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.progress-line {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color), var(--yellow-accent));
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px var(--main-color);
    transition: width 1.5s ease-in-out;
    animation: shimmer 2s infinite;
}

.progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: var(--yellow-accent);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 10px var(--yellow-accent);
}

@keyframes shimmer {
    0%, 100% {
        box-shadow: 0 0 10px var(--main-color);
    }
    50% {
        box-shadow: 0 0 20px var(--main-color), 0 0 30px var(--yellow-accent);
    }
}

.services h2{
    margin-bottom: 5rem;
}

.services-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box{
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
    position: relative;
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.services-container .services-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
    border-radius: 2rem;
    pointer-events: none;
}

.services-container .services-box:hover{
    border-color: var(--yellow-accent);
    transform: translateY(-10px);
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 230, 102, 0.1);
}

.services-box i {
    font-size: 7rem;
    background: linear-gradient(135deg, var(--main-color), var(--yellow-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.services-box:hover i {
    filter: drop-shadow(0 0 15px var(--yellow-accent));
    transform: scale(1.1);
}

.services-box h3{
    font-size: 2.6rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.services-box p{
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
    line-height: 2;
    letter-spacing: 0.5px;
}

.portfolio{
    background: var(--second-bg-color);
    position: relative;
    z-index: 1;
}

.portfolio h2{
    margin-bottom: 4rem;
}

.portfolio-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.portfolio-container .portfolio-box{
    position: relative;
    border-radius: 2rem;
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: block;
    transition: all 0.4s ease;
    aspect-ratio: 16/10;
    min-height: 300px;
    width: 100%;
}
}

.portfolio-container .portfolio-box:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.3),
        0 20px 50px rgba(0, 238, 255, 0.2),
        inset 0 1px 0 rgba(255, 230, 102, 0.1);
}

.portfolio-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: .5s ease;
}

.portfolio-box:hover img{
    transform: scale(1.1);
    filter: brightness(0.8);
}


.portfolio-box .portfolio-layer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(31, 36, 45, 0.7) 50%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
    backdrop-filter: blur(5px);
}

.portfolio-box:hover .portfolio-layer{
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(31, 36, 45, 0.9) 100%);
}

.portfolio-layer h4{
    font-size: 3rem;
}

.portfolio-layer p{
    font-size: 1.6rem;
    margin: 3rem 0 1rem;
}

.portfolio-layer a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

.portfolio-layer a i{
    font-size: 2rem;
    color: var(--second-bg-color);
}   


.contact h2{
    margin-bottom: 3rem;
}

.contact form{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.input-field,
.input-field-full {
    position: relative;
    flex: 1;
    min-width: calc(50% - 1rem);
}

.input-field-full {
    width: 100%;
    margin-top: 2rem;
}

.input-field i,
.input-field-full i {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--main-color);
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-field-full i {
    top: 2rem;
    transform: none;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.8rem 5rem 1.8rem 2rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 1.5rem;
    border: 2px solid transparent;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.contact form textarea {
    padding: 1.8rem 5rem 1.8rem 2rem;
}

.contact form .input-box input:hover,
.contact form textarea:hover {
    border-color: var(--main-color);
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(0, 238, 255, 0.3);
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    outline: none;
    border: 2px solid var(--main-color);
    background: rgba(50, 57, 70, 0.9);
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 238, 255, 0.5),
        0 0 30px rgba(255, 215, 0, 0.2);
}

.contact form .input-box input:focus + i,
.contact form textarea:focus + i {
    color: var(--yellow-accent);
    transform: translateY(-50%) scale(1.2);
}

.input-field-full textarea:focus + i {
    transform: scale(1.2);
}

.contact form .input-box input::placeholder,
.contact form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.contact form .input-box input:focus::placeholder,
.contact form textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.contact form textarea {
    resize: none;
    min-height: 15rem;
}

.contact form .btn{
    margin-top: 2rem;
    cursor: pointer;
    padding: 1.2rem 4rem;
    font-size: 1.7rem;
    box-shadow: 0 0 15px var(--main-color), 0 0 25px rgba(255, 215, 0, 0.3);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5rem ease;
}

.footer-iconTop a:hover{
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i{
    font-size: 2.4rem;
    color: var(--second-bg-color);
}



/* Breakpoint */
@media (max-width: 1200px) {
    html{
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header{
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .services{
        padding-bottom: 7rem;
    }

    .portfolio{
        padding-bottom: 7rem;
    }

    .contact{
        min-height: 7rem;
    }

    .footer{
        padding: 2rem 3%;
    }

}

@media (max-width: 768px) {
    #menu-icon{
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active{
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home{
        flex-direction: column;
    }

    .home-content h3{
        font-size: 2.6rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }

    /* Journey Timeline Responsive */
    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-date {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        border-width: 10px 15px 10px 0;
        border-color: transparent var(--second-bg-color) transparent transparent;
    }

    /* Skills Section Responsive */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services h2{
            margin-bottom: 3rem;
        }

    .portfolio h2 {
        margin-bottom: 3rem;
    }

    .portfolio-container{
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 617px){
    .portfolio-container{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px){
    html{
        font-size: 50%;
    }

    .contact form .input-box input{
        width: 100%;
    }

    .input-field,
    .input-field-full {
        min-width: 100%;
    }

    .skill-category {
        padding: 2rem;
    }

    .skills-container {
        gap: 2rem;
    }
}

@media (max-width: 365px) {
    .home-img img{
        width: 90vw;
    }

    .about-img img{
        width: 90vw;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p{
        text-align: center;
        margin-top: 2rem;
    }

}
