@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Font optimization and fallbacks */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {

    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

html{

    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header.sticky {
    background: var(--bg-color);
}

.logo{

    position: relative;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.navbar {
    position: relative;
}

.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}

#menu-icon{
    position: relative;
    font-size:3.6rem;
    color:var(--text-color);
    cursor: pointer;
    display: none;
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home{
    display: flex;
    align-items: center;
    padding: 0 9%;
    min-height: 100vh;
    position: relative;
    width: 100%;
    background: url('../images/home1.jpg') center/cover no-repeat;
    z-index: 99;
}

.home-content{
    max-width: 60rem;
    z-index: 99;
    position: relative;
}

.home-content h1{
    position: relative;
    display: inline-block;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span {
    color: var(--text-color);
}

.home-content .text-animate{
    position: relative; 
    width: 32.8rem;
}

.home-content .text-animate h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text; /* Add the standard property */
    background-position: -33rem 0;
    
}

.home.show-animate .home-content .text-animate h3 {

    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;

}

.home-content .text-animate h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-right: 2px solid var(--main-color);
    z-index: -1;
    
}

.home.show-animate .home-content .text-animate h3::before {

    animation: homeCursorText 6s linear infinite;
    animation-delay: 2s;
}

.home-content p{
    position: relative;
    font-size: 1.5rem;
    margin: 2rem 0 4rem;
}

.btn-box{
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover{
    color: var(--main-color);

}

.btn-box .btn:nth-child(2){

    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover{
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before{
    background: var(--main-color);
}

.btn-box .btn::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before{
    width: 100%;
}   

.home-sci{
    position: absolute;
    bottom: 4rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a:hover {
    color: var(--bg-color);
}

.home-sci a::before {

    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background:var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before {

    width: 100%;

}

.home-imgHover {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: transparent;
    transition: 3s;
}

.home-imgHover:hover {
    background: var(--bg-color);
    opacity: .8;
}

.about {
    background: var(--second-bg-color);
    padding: 10rem 9% 6rem;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 171, 240, 0.05) 50%, transparent 100%);
    z-index: 1;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
    max-width: 130rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.heading {
    position: relative;
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
    grid-column: 1 / -1;
}

span {
    color: var(--main-color);
}

.about-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.about-img-wrapper {
    position: relative;
    width: 35rem;
    height: 35rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), transparent);
    padding: 0.5rem;
    animation: float 6s ease-in-out infinite;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    inset: -2rem;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--main-color), transparent, var(--main-color));
    opacity: 0.3;
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 0.3rem solid var(--bg-color);
    transition: transform 0.3s ease;
}

.about-img-wrapper:hover img {
    transform: scale(1.05);
}

.about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 110%;
    height: 110%;
    border-radius: 50%;
    border: 0.2rem solid transparent;
    border-top: 0.2rem solid var(--main-color);
    border-right: 0.2rem solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
    opacity: 0.7;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
}

.about-content h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 8rem;
    height: 0.3rem;
    background: linear-gradient(90deg, var(--main-color), transparent);
    border-radius: 2px;
}

.about-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: justify;
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 171, 240, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(0, 171, 240, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 171, 240, 0.15);
    border-color: var(--main-color);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.8;
}

.btn-box.btns{
    display: inline-block;
    width: 15rem;
}

.btn-box.btns a::before {
    background: var(--second-bg-color);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-container {
        max-width: 100rem;
        gap: 4rem;
    }
    
    .about-img-wrapper {
        width: 30rem;
        height: 30rem;
    }
}

@media (max-width: 991px) {
    .about {
        padding: 8rem 6% 4rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .heading {
        font-size: 4rem;
        margin-bottom: 2rem;
    }
    
    .about-img-wrapper {
        width: 28rem;
        height: 28rem;
        margin: 0 auto;
    }
    
    .about-content h3 {
        font-size: 2.8rem;
    }
    
    .about-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about {
        padding: 6rem 4% 3rem;
    }
    
    .heading {
        font-size: 3.5rem;
    }
    
    .about-img-wrapper {
        width: 24rem;
        height: 24rem;
    }
    
    .about-content h3 {
        font-size: 2.4rem;
    }
    
    .about-content p {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 450px) {
    .about {
        padding: 5rem 3% 2rem;
    }
    
    .heading {
        font-size: 3rem;
    }
    
    .about-img-wrapper {
        width: 20rem;
        height: 20rem;
    }
    
    .about-content h3 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1.4rem;
    }
    
    .stat-number {
        font-size: 2.4rem;
    }
    
    .stat-label {
        font-size: 1.2rem;
    }
}


/* Modern Projects Section CSS */
.projects {
    background: var(--second-bg-color);
    padding: 10rem 9% 5rem;
}

.projects .heading {
    margin-bottom: 4rem;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 171, 240, 0.2);
    border-color: var(--main-color);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 171, 240, 0.8), rgba(17, 46, 66, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-actions {
    text-align: center;
}

.view-gallery {
    background: rgba(255, 255, 255, 0.9);
    color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.view-gallery:hover {
    background: white;
    transform: scale(1.05);
}

.project-content {
    padding: 2.5rem 2rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-year {
    color: var(--main-color);
    font-size: 1.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-status {
    background: linear-gradient(135deg, var(--main-color), #0099cc);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.project-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.project-description {
    color: #b3b3b3;
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-stack {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.tech-stack-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 2rem;
}

.tech-stack-icons i {
    color: var(--main-color);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(0, 171, 240, 0.1);
}

.tech-stack-icons i:hover {
    transform: scale(1.2) rotate(10deg);
    background: rgba(0, 171, 240, 0.2);
    color: #00d4ff;
}

.tech-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(0, 171, 240, 0.1);
}

.tech-icon:hover {
    transform: scale(1.2) rotate(10deg);
    background: rgba(0, 171, 240, 0.2);
}

/* Enhanced Modal Gallery */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-modal .close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-modal .close:hover {
    background: var(--main-color);
    transform: rotate(90deg);
}

.gallery-container {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.gallery-images img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-images img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
    }
    
    .projects {
        padding: 8rem 5% 4rem;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 6rem 3% 3rem;
    }
    
    .projects-container {
        padding: 0 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-content {
        padding: 2rem 1.5rem;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-description {
        font-size: 1.3rem;
    }
    
    .tech-stack-icons {
        font-size: 1.8rem;
        gap: 1rem;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .gallery-container {
        padding: 6rem 1rem 2rem;
    }
    
    .gallery-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .heading {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 5rem 2% 2rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 1.5rem 1rem;
    }
    
    .project-title {
        font-size: 1.6rem;
    }
    
    .project-description {
        font-size: 1.2rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .tech-stack-icons {
        font-size: 1.6rem;
        gap: 0.8rem;
    }
    
    .tech-icon {
        width: 20px;
        height: 20px;
    }
    
    .view-gallery {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
    }
    
    .gallery-modal .close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }
    
    .heading {
        font-size: 2.8rem;
    }
}


/* Modern Education/Journey Section CSS */
.education {
    background: var(--bg-color);
    padding: 10rem 9% 5rem;
}

.education .heading {
    margin-bottom: 5rem;
}

.journey-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.journey-section {
    margin-bottom: 6rem;
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    color: var(--main-color);
    font-size: 3rem;
}

.timeline-cards {
    display: grid;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-card {
    background: var(--second-bg-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 171, 240, 0.1), transparent);
    transition: left 0.5s ease;
}

.timeline-card:hover::before {
    left: 100%;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 20px 40px rgba(0, 171, 240, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.year-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--main-color);
    font-size: 1.4rem;
    font-weight: 600;
    background: rgba(0, 171, 240, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 171, 240, 0.3);
}

.year-badge i {
    font-size: 1.6rem;
}

.status-badge {
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.current {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    animation: pulse 2s infinite;
}

.status-badge.completed {
    background: linear-gradient(135deg, var(--main-color), #0099cc);
    color: white;
}

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

.card-content {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.institution {
    font-size: 1.6rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.description {
    font-size: 1.4rem;
    color: #b3b3b3;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: justify;
}

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

.highlight-tag {
    background: rgba(0, 171, 240, 0.15);
    color: var(--main-color);
    padding: 0.6rem 1.2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px solid rgba(0, 171, 240, 0.3);
    transition: all 0.3s ease;
}

.highlight-tag:hover {
    background: rgba(0, 171, 240, 0.25);
    transform: scale(1.05);
}

/* Responsive Design for Education Section */
@media (max-width: 1200px) {
    .education {
        padding: 8rem 5% 4rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .section-title i {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .education {
        padding: 6rem 3% 3rem;
    }
    
    .journey-container {
        padding: 0 1rem;
    }
    
    .timeline-cards {
        gap: 2rem;
    }
    
    .timeline-card {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-title i {
        font-size: 2.2rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .card-title {
        font-size: 1.9rem;
    }
    
    .institution {
        font-size: 1.4rem;
    }
    
    .description {
        font-size: 1.3rem;
        text-align: left;
    }
    
    .year-badge {
        font-size: 1.3rem;
    }
    
    .highlights {
        gap: 0.8rem;
    }
    
    .highlight-tag {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .education {
        padding: 5rem 2% 2rem;
    }
    
    .timeline-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .card-title {
        font-size: 1.7rem;
    }
    
    .institution {
        font-size: 1.3rem;
    }
    
    .description {
        font-size: 1.2rem;
    }
    
    .year-badge {
        font-size: 1.2rem;
        padding: 0.6rem 1.2rem;
    }
    
    .status-badge {
        font-size: 1.1rem;
        padding: 0.5rem 1.2rem;
    }
    
    .highlights {
        gap: 0.6rem;
    }
    
    .highlight-tag {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .journey-section {
        margin-bottom: 4rem;
    }
}

/* Skills Section - Modern Grid Layout */
.skills {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.skills h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4rem;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skills-category {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    border-bottom: 2px solid var(--main-color);
}

.category-header i {
    font-size: 2.5rem;
    color: var(--main-color);
}

.category-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 162, 255, 0.3);
    border-color: var(--main-color);
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--main-color), #0099cc);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-icon i {
    font-size: 2.5rem;
    color: white;
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.level-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.level-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color), #0099cc);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.level-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.level-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--main-color);
    min-width: 45px;
    text-align: right;
}

/* Responsive Design for Skills */
@media (max-width: 1200px) {
    .skills-container {
        padding: 0 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .skills {
        padding: 8rem 4% 5rem;
    }
    
    .skills h2 {
        font-size: 4rem;
        margin-bottom: 3rem;
    }
    
    .skills-container {
        padding: 0 1rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .category-header i {
        font-size: 2.2rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-card {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        flex-direction: row;
    }
    
    .skill-icon {
        width: 55px;
        height: 55px;
    }
    
    .skill-icon i {
        font-size: 2.2rem;
    }
    
    .skill-name {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .skill-level {
        gap: 1rem;
    }
    
    .level-bar {
        height: 8px;
    }
    
    .level-text {
        font-size: 1.3rem;
        min-width: 45px;
    }
}

@media (max-width: 480px) {
    .skills {
        padding-bottom: 5rem;
    }
    
    .skills h2 {
        font-size: 3.5rem;
        margin-bottom: 3rem;
    }
    
    .skills-category {
        margin-bottom: 3rem;
    }
    
    .category-header {
        padding: 0.8rem 0;
        margin-bottom: 2rem;
    }
    
    .category-header i {
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .skill-card {
        padding: 1.5rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        border-radius: 0.8rem;
    }
    
    .skill-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }
    
    .skill-icon i {
        font-size: 1.8rem;
    }
    
    .skill-name {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .skill-level {
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .level-bar {
        width: 100%;
        height: 6px;
        max-width: 100%;
    }
    
    .level-text {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--main-color);
        order: -1;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .skills {
        padding: 6rem 3% 4rem;
    }
    
    .skills h2 {
        font-size: 3rem;
    }
    
    .skill-card {
        padding: 1.2rem 0.8rem;
        gap: 1.2rem;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
    }
    
    .skill-icon i {
        font-size: 1.6rem;
    }
    
    .skill-name {
        font-size: 1.2rem;
    }
    
    .level-bar {
        height: 5px;
    }
    
    .level-text {
        font-size: 1.2rem;
    }
}

.contact {
    min-height: auto;
    padding-bottom: 7rem;
}

.contact h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align:  center;
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box .input-field {
    position: relative;
    width: 49%;
    margin: .8rem 0;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--text-color);
}

.contact form .focus {

    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    border-radius: .6rem;
    z-index: -1;
    transition: .5s;
}

.contact form .input-box .input-field input:focus~.focus,
.contact form .input-box .input-field input:valid~.focus,
.contact form .textarea-field textarea:focus~.focus,
.contact form .textarea-field textarea:valid~.focus{

    width: 100%;
}

.contact form .textarea-field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

.contact form .textarea-field textarea {
    resize:  none;
}

.contact form .btn-box.btns .btn {
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text,
.footer-iconTop {
    position: relative;
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover::before {

    width: 100%;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
    transition: .5s;
}

.footer-iconTop a:hover i {
    color: var(--main-color);
}

/*Animation reload and scroll*/

.animate {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 98;
}

.animate.home-img {
    width: 50%;
}

.logo .animate,
.navbar .animate,
#menu-icon .animate,
.home.show-animate .animate {
    
    animation: showRight 1s ease forwards;
    animation-delay: calc(.3s * var(--i));
}

.animate.scroll {
    transition: 1s ease;
    transition-delay: calc(.3s / var(--i));
    animation: none;
}

section:nth-child(odd) .animate.scroll,
.footer .animate.scroll {
    background: var(--second-bg-color);
}

.about.show-animate .animate.scroll, 
.education.show-animate .animate.scroll,
.skills.show-animate .animate.scroll,
.projects.show-animate .animate.scroll,
.contact.show-animate .animate.scroll,
.footer.show-animate .animate.scroll {
    transition-delay: calc(.3s * var(--i));
    width: 0;
}

/* BREAKPOINTS */

@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 850px) {

    .animate.home-img {
        width: 55%;
        
    }
}

@media (max-width: 768px) {
    .header {
        background: var(--bg-color);
    }

    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--main-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        z-index: 1;
        transition: .25s ease;
        transition-delay: .25s;
    }

    .navbar.active {
        left: 0;
        transition-delay: 0s;
    }

    .navbar .active-nav {

        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }
    
    .navbar.active .active-nav {
        left: 0;
        transition-delay: .25s;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        transform: translateX(-20rem);
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active a {
        transform: translateX(0);
    }

    .home-imgHover {
        pointer-events: none;
        background: var(--bg-color);
        opacity: .6;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 50%;
    }

     .home-content h1 {

        display: flex;
        flex-direction: column;
     }   

     .home-sci {
        width: 160px;
     }

     .home-sci a {
        width: 38px;
        height: 38px;
     }

     
}

@media (max-width: 462px) {
    .home-content h1 {
        font-size: 5.2rem;
    }

    .education {
        padding: 10rem 4% 5rem 5%;
    }

    .contact form .input-box .input-field {
        width: 100%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        margin-top: 2rem;
        text-align: center;
    }

}

@media (max-width: 371px) {
    .home {
        justify-content: center;
    }

    .home-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .home-content h1 {
        font-size: 5rem;
    }
}

/* KEYFRAMES ANIMATION */

@keyframes homeBgText {
    0%,
    10%,
    100% {
        background-position: -33rem 0;
    }

    65%,
    85% {
        background-position: 0 0;
    }
}

@keyframes homeCursorText {
    0%,
    10%,
    100% {
        width: 0;
    }

    65%,
    78%,
    85% {
        width: 100%;
        opacity: 1;
    }

    75%,
    81% {
        opacity: 0;
    }
}

@keyframes aboutSpinner {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes showRight {
    100% {
        width: 0;
    }
}
