@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;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: #FFFFFF;
    --second-bg-color: #FF6F61;
    --text-color: #000000;
    --main-color: #FF6F61;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    max-width: 100%;
}

section {
    min-height: 100vh;
    padding: 10rem 4% 2rem;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    margin: 0 auto;
}

.heading {
    position: relative;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--text-color);
    border: .3rem solid var(--bg-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:hover {
    color: var(--text-color);
}

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

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

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

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo__icon {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 700;
    margin-right: 5px;
    font-style: italic;
    text-shadow: #000000;
}

.logo:hover .logo__icon {
    color: #721d16;
    transform: scale(1.1);
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar {
    position: relative;
}

.navbar a {
    font-size: 1.7rem;
    color: #000000;
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
    text-decoration: none;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    background-color: transparent;
    border-radius: 5px;
    padding: 5px 10px;
}

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

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 9%;
    background-size: cover;
    background-position: center;
    position: relative;
    gap: 3rem;
}

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

.home-content h1 {
    position: relative;
    display: inline-block;
    font-size: 5.12rem;
    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.05rem;
    font-weight: 700;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    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.6rem;
    margin: 2rem 0 4rem;
}

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

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

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

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

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

.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-image {
    flex: 1 1 30rem;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 40rem;
    width: 100%;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    z-index: 99;
}

.home-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.home-image:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.role {
    color: #FF6F61;
    font-size: xx-large;
    font-weight: bold;
    transition: opacity 0.5s ease;
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 90%;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
}

.about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid var(--second-bg-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-left: .2rem solid var(--main-color);
    border-right: .2rem solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
}

.about-content {
    text-align: center;
}

.about-content h3 {
    position: relative;
    display: inline-block;
    font-size: 2.6rem;
}

.about-content p {
    position: relative;
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

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

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

/* Education Section */
.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
}

.education .education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education-row .education-column {
    flex: 1 1 40rem;
}

.education-column .title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.education-column .education-box {
    position: relative;
    border-left: .2rem solid var(--main-color);
}

.education-box .education-content {
    position: relative;
    padding-left: 2rem;
}

.education-box .education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.education-content .content {
    position: relative;
    padding: 1.5rem;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

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

.education-content .content:hover::before {
    width: 100%;
}

.education-content .content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: .5rem;
}

.education-content .content .year i {
    padding-right: .5rem;
}

.education-content .content h3 {
    font-size: 2rem;
}

.education-content .content p {
    font-size: 1.6rem;
    padding-top: .5rem;
}

/* Skills Section */
.skills-section {
    padding: 6rem 9%;
    background: var(--bg-color);
}

.skills-certifications-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.skills-container,
.certifications-container {
    flex: 1 1 45%;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: .8rem;
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .1);
}

.subheading {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item h4 {
    display: flex;
    justify-content: space-between;
    font-size: 1.6rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 1rem;
    background: #e0e0e0;
    border-radius: .5rem;
    margin-top: .5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--main-color);
    border-radius: .5rem;
}

.certifications-list {
    list-style: none;
    padding-left: 0;
}

.certifications-list li {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.certifications-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--main-color);
}

.certifications-options {
    margin-top: 1rem;
}

.certifications-options .option {
    display: inline-block;
    margin-right: 1rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: #000000;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.certifications-options .option:hover {
    background-color: #0056b3;
}

.details-section {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.certification-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2.5rem;
}

.certification-item,
.project-item {
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-item h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-item p {
    font-size: 1.4rem;
}

/* Modern Skills & Projects Section */
.skills-overview {
    margin-bottom: 4rem;
}

.skills-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.skills-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-chip {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: .2rem solid;
    border-radius: 2rem;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.skill-chip.expert {
    border-color: #28a745;
    color: #28a745;
}

.skill-chip.advanced {
    border-color: var(--main-color);
    color: var(--main-color);
}

.skill-chip.intermediate {
    border-color: #ffc107;
    color: #e67e22;
}

.skill-chip.beginner {
    border-color: #6c757d;
    color: #6c757d;
}

.skill-chip:hover {
    transform: translateY(-0.3rem) scale(1.05);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);
}

.skill-chip.expert:hover {
    background: #28a745;
    color: white;
}

.skill-chip.advanced:hover {
    background: var(--main-color);
    color: white;
}

.skill-chip.intermediate:hover {
    background: #ffc107;
    color: white;
}

.skill-chip.beginner:hover {
    background: #6c757d;
    color: white;
}

/* Container fixes */
.container {
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 120rem;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

/* Section constraints */
section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Film Tape Carousel */
.projects-carousel-section {
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.projects-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3rem;
    text-align: center;
}

.film-strip-container {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 3rem 0;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
    margin: 0 auto;
    width: 90%;
    max-width: 120rem;
    border: 0.1rem solid #dee2e6;
}

.film-strip {
    position: relative;
    overflow: hidden;
    height: 28rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    width: 100%;
}

.film-track {
    display: flex;
    animation: filmRoll 25s linear infinite;
    will-change: transform;
    width: max-content;
}

.film-card {
    flex: 0 0 18rem;
    height: 22rem;
    margin: 0 0.5rem;
    position: relative;
}

.film-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 0.2rem solid #dee2e6;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.film-frame:hover {
    transform: translateY(-0.5rem) scale(1.02);
    box-shadow: 0 1rem 2rem rgba(255,111,97,0.15);
    border-color: var(--main-color);
}

.film-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.3rem;
    background: linear-gradient(90deg, var(--main-color), #ff8a7a, var(--main-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.film-frame:hover::before {
    opacity: 1;
}

/* Project Image Styling */
.project-image {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 0.3rem 0.8rem rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-image img {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    display: block;
    border-radius: 0.8rem;
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: scale(1.05);
}

.project-image:hover img {
    transform: scale(1.1);
}

.film-frame h6 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-type {
    font-size: 1rem;
    color: var(--main-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.tech-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.tech-mini span {
    background: var(--main-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.film-btn {
    background: linear-gradient(135deg, var(--text-color), #333);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.film-btn:hover {
    background: linear-gradient(135deg, var(--main-color), #ff8a7a);
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1rem rgba(255,111,97,0.4);
}

/* Film Perforations */
.film-perforations {
    position: absolute;
    left: 0;
    right: 0;
    height: 1rem;
    background: linear-gradient(to right, 
        transparent 0%, 
        transparent 10%, 
        #dee2e6 10%, 
        #dee2e6 20%, 
        transparent 20%, 
        transparent 30%
    );
    background-size: 2rem 100%;
    z-index: 10;
}

.film-perforations.top {
    top: 1rem;
}

.film-perforations.bottom {
    bottom: 1rem;
}

/* Animation */
@keyframes filmRoll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.film-strip-container:hover .film-track {
    animation-play-state: paused;
}

/* Remove old styles */
.tech-section,
.tech-category-title,
.tech-tags-container,
.tech-tag,
.tech-name,
.tech-level,
.featured-projects,
.project-showcase,
.project-card,
.project-tech,
.mini-tag,
.project-btn {
    display: none;
}

/* Contact Section */
.contact {
    min-height: auto;
    padding-bottom: 7rem;
}

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

.contact-form {
    max-width: 60rem;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: .8rem;
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1.6rem;
    margin-bottom: .5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.6rem;
    border-radius: .6rem;
    border: .1rem solid #ccc;
}

.contact .btn {
    width: 100%;
    background: var(--main-color);
    color: #fff;
    padding: 1.2rem;
    border-radius: .8rem;
    font-size: 1.8rem;
    cursor: pointer;
    transition: background .3s;
}

.contact .btn:hover {
    background: #e05a4f;
}

/* Footer */
footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 10px 0;
}

.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);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    text-align: center;
    margin-left: 10px;
}

.social-icons a {
    text-decoration: none;
    color: #785b5b;
    font-size: 28px;
    transition: color 0.3s, transform 0.3s;
    margin-left: 10px;
}

.social-icons a:hover {
    color: #af4c4c;
    transform: scale(1.1);
}

/* Animations and Transitions */
.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);
}

.education .education-box .animate.scroll {
    width: 105%;
}

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

::-moz-selection {
    color: var(--second-bg-color);
    background: var(--main-color);
}

::selection {
    color: var(--second-bg-color);
    background: var(--main-color);
}

/* Media Queries */
@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;
    }

    .home {
        justify-content: center;
        text-align: center;
    }

    .home-content {
        text-align: center;
    }

    .home .btn-box {
        width: auto;
        justify-content: center;
        margin: 0 auto 1.2rem;
    }

    .home-image {
        margin: 3rem auto 0;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--main-color);
        box-shadow: 0 .5rem 1rem rgba(237, 232, 232, 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);
        transition-delay: .25s;
    }

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

    .social-links a {
        width: 45px;
        height: 45px;
    }

    /* Mobile Film Tape */
    .projects-carousel-section {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 0;
        margin-top: 2rem;
    }
    
    .skills-chips {
        gap: 0.8rem;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    .skill-chip {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .projects-carousel-section {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 0;
    }

    .film-strip-container {
        margin: 0 auto;
        width: 95%;
        max-width: 100%;
        border-radius: 1rem;
        padding: 2rem 0;
    }

    .film-strip {
        height: 25rem;
        width: 100%;
    }

    .film-card {
        flex: 0 0 14rem;
        height: 20rem;
        margin: 0 0.4rem;
    }

    .film-frame {
        padding: 1.2rem;
    }

    .project-image {
        margin-bottom: 0.8rem;
    }

    .project-image img {
        height: 6rem;
    }

    .film-frame h6 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .project-type {
        font-size: 0.9rem;
    }

    .tech-mini {
        gap: 0.4rem;
    }

    .tech-mini span {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .film-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }

    .film-perforations {
        height: 0.8rem;
        background-size: 1.5rem 100%;
    }

    /* Slower animation on mobile for better UX */
    .film-track {
        animation-duration: 35s;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    section {
        padding: 8rem 2% 2rem;
    }

    .home-content {
        margin-right: 0;
    }

    .home-img {
        margin-top: 2rem;
        text-align: center;
    }

    .home-img img {
        max-width: 80%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .skills-row {
        flex-direction: column;
    }

    .radial-progress {
        width: 80px;
        height: 80px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icons a {
        font-size: 24px;
    }
}

@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 */
@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;
    }
}
