@import url("https://fints.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;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
}

.preloader.fade-out {
    animation: fadeOut 1.5s ease-in-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    70% {
        opacity: 0.3;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
        visibility: hidden;
    }
}

.preloader-content {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-animation {
    font-size: clamp(8rem, 15vw, 20rem);
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 8rem;
    flex-wrap: wrap;
}

.word {
    display: flex;
    gap: 0.2rem;
}

.letter {
    display: inline-block;
    color: var(--main-color);
    animation: letterReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform: translateY(100px);
    opacity: 0;
}

/* First word "Akmal" */
.word:nth-child(1) .letter:nth-child(1) {
    animation-delay: 0.3s;
}

.word:nth-child(1) .letter:nth-child(2) {
    animation-delay: 0.5s;
}

.word:nth-child(1) .letter:nth-child(3) {
    animation-delay: 0.7s;
}

.word:nth-child(1) .letter:nth-child(4) {
    animation-delay: 0.9s;
}

.word:nth-child(1) .letter:nth-child(5) {
    animation-delay: 1.1s;
}

/* Second word "Aiman" */
.word:nth-child(2) .letter:nth-child(1) {
    animation-delay: 1.5s;
}

.word:nth-child(2) .letter:nth-child(2) {
    animation-delay: 1.7s;
}

.word:nth-child(2) .letter:nth-child(3) {
    animation-delay: 1.9s;
}

.word:nth-child(2) .letter:nth-child(4) {
    animation-delay: 2.1s;
}

.word:nth-child(2) .letter:nth-child(5) {
    animation-delay: 2.3s;
}

@keyframes letterReveal {
    0% {
        transform: translateY(100px) scale(0.5);
        opacity: 0;
    }

    60% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.8;
    }

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

.logo-animation.exit .letter {
    animation: letterExit 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.logo-animation.exit .letter:nth-child(1) {
    animation-delay: 0s;
}

.logo-animation.exit .letter:nth-child(2) {
    animation-delay: 0.1s;
}

.logo-animation.exit .letter:nth-child(3) {
    animation-delay: 0.2s;
}

.logo-animation.exit .letter:nth-child(4) {
    animation-delay: 0.3s;
}

.logo-animation.exit .letter:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes letterExit {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.preloader-subtitle {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--text-color);
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: subtitleReveal 1.5s ease-out 3s forwards;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

@keyframes subtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.preloader-subtitle.exit {
    animation: subtitleExit 0.8s ease-in forwards;
}

@keyframes subtitleExit {
    0% {
        opacity: 0.8;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.main-content {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.main-content.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Preloader */
@media (max-width: 768px) {
    .logo-animation {
        font-size: clamp(6rem, 12vw, 10rem);
        margin-bottom: 2rem;
        gap: 4rem;
    }

    .word {
        gap: 0.2rem;
    }

    .preloader-subtitle {
        font-size: clamp(1.5rem, 3.5vw, 2.2rem);
        margin-top: 2.5rem;
    }
}

@media (max-width: 450px) {
    .logo-animation {
        font-size: clamp(4rem, 10vw, 7rem);
        margin-bottom: 1.5rem;
        gap: 2.5rem;
        flex-direction: column;
        align-items: center;
    }

    .word {
        gap: 0.1rem;
    }

    .preloader-subtitle {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
        margin-top: 2rem;
    }

    .progress-bar {
        width: 200px;
    }
}

:root {
    --primary-bg-color: #2d3250;
    --secondary-bg-color: #424769;
    --tertiary-bg-color: #676f9d;
    --text-color: #ffffff;
    --main-color: #f9b17a;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg-color);
    border-radius: 10px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--main-color), #e09652);
    border-radius: 10px;
    border: 2px solid var(--primary-bg-color);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e09652, var(--main-color));
    box-shadow: 0 0 15px rgba(249, 177, 122, 0.6);
    transform: scale(1.05);
}

::-webkit-scrollbar-corner {
    background: var(--primary-bg-color);
}

/* Firefox Scrollbar Support */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) var(--primary-bg-color);
}

/* For better cross-browser support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) var(--primary-bg-color);
}

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

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

/* Disable scrolling during preloader */
body.preloader-active {
    overflow: hidden !important;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* Hide scrollbar completely during preloader */
body.preloader-active::-webkit-scrollbar {
    display: none;
}

body.preloader-active {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 2rem 9%;
    background: var(--primary-bg-color);
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header .sticky {
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: default;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: 0.5s;
}

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

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

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    color: var(--main-color);
    line-height: 1.3;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

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

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    font-size: 2rem;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--secondary-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--secondary-bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5s ease;
}

.btn i {
    font-size: 3rem;
    margin-right: 1rem;
}

.btn:hover {
    box-shadow: none;
}

.home-img img {
    width: 35vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--secondary-bg-color);
    padding-bottom: 0;
    width: fit-content;
}

.about-img img {
    width: 35vw;
}

.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;
    text-align: justify;
}

/* Journey Cards Section */
.journey {
    background: var(--secondary-bg-color);
    min-height: auto;
    padding-bottom: 7rem;
}

.journey-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.journey-card {
    background: var(--primary-bg-color);
    border-radius: 1.5rem;
    padding: 0;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.journey-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.journey-card-header {
    background: linear-gradient(135deg,
    var(--main-color),
    var(--tertiary-bg-color));
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--primary-bg-color);
}

.journey-card-header i {
    font-size: 3rem;
    color: var(--primary-bg-color);
}

.journey-card-header h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
}

.journey-items {
    padding: 2rem;
}

.journey-item {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--tertiary-bg-color);
    padding-bottom: 2rem;
}

.journey-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.journey-period {
    margin-bottom: 1.5rem;
}

.period-badge {
    background: var(--tertiary-bg-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.period-badge.current {
    background: var(--main-color);
    color: var(--primary-bg-color);
    animation: pulse 2s infinite;
}

.period-badge.education-badge {
    background: var(--tertiary-bg-color);
    border-color: var(--main-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 177, 122, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(249, 177, 122, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 177, 122, 0);
    }
}

.journey-details h4 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.journey-details h5 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.journey-details p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.journey-details.expandable .summary {
    margin-bottom: 1.5rem;
}

.detailed-content {
    display: none;
    margin-top: 1.5rem;
}

.detailed-content.expanded {
    display: block;
}

.detailed-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detailed-content li {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.detailed-content li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-size: 1rem;
    top: 0.2rem;
}

.expand-btn {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.expand-btn:hover {
    background: var(--main-color);
    color: var(--primary-bg-color);
    transform: translateY(-2px);
}

.expand-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

/* Enhanced Skills Section */
.skills {
    min-height: auto;
    padding-bottom: 5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.skills-category {
    background: var(--secondary-bg-color);
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.skills-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent);
    transition: left 0.6s;
}

.skills-category:hover::before {
    left: 100%;
}

.skills-category:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.category-header {
    background: linear-gradient(135deg,
    var(--main-color),
    var(--tertiary-bg-color));
    padding: 1.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.category-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.skills-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-bg-color);
    margin: 0;
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 0.8rem;
    background: var(--primary-bg-color);
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.skill-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg,
    var(--main-color),
    var(--tertiary-bg-color));
    z-index: -1;
    transition: width 0.3s ease;
}

.skill-item:hover::before {
    width: 100%;
}

.skill-item:hover {
    border-color: var(--main-color);
    transform: translateY(-0.3rem);
    color: var(--primary-bg-color);
}

.skill-icon {
    width: 4rem;
    height: 4rem;
    background: var(--secondary-bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    background: var(--primary-bg-color);
    transform: rotate(360deg);
}

.skill-icon i {
    font-size: 2rem;
    color: var(--main-color);
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon i {
    color: var(--main-color);
}

.skill-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.skill-item:hover .skill-name {
    color: var(--primary-bg-color);
}

/* Portfolio Cards Section */
.portfolio {
    min-height: auto;
    padding-bottom: 7rem;
}

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

.portfolio-card {
    background: var(--tertiary-bg-color);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.3);
}

.portfolio-card-header {
    background: linear-gradient(135deg,
    var(--main-color),
    var(--tertiary-bg-color));
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-card-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.portfolio-card:hover .portfolio-card-header::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.portfolio-icon {
    display: inline-block;
    width: 6rem;
    height: 6rem;
    background: var(--primary-bg-color);
    border: 3px solid var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

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

.portfolio-card-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-bg-color);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.portfolio-category {
    background: var(--primary-bg-color);
    color: var(--main-color);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.portfolio-card-body {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-description {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: justify;
}

.tech-stack {
    margin-bottom: 2rem;
}

.tech-stack h4 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background: var(--main-color);
    color: var(--primary-bg-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-bg-color);
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

.portfolio-features {
    flex: 1;
}

.portfolio-features h4 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.portfolio-features ul {
    list-style: none;
    padding: 0;
}

.portfolio-features li {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
}

.portfolio-features li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-size: 1rem;
}

.portfolio-card-footer {
    background: var(--primary-bg-color);
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--main-color);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.portfolio-role {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--main-color);
    font-size: 1.6rem;
    font-weight: 600;
}

.portfolio-role i {
    font-size: 2rem;
}

.portfolio-accordion-content ul {
    padding-left: 2rem;
}

.portfolio-accordion-content ul li {
    list-style: disc;
    margin-bottom: 0.8rem;
}

.portfolio-accordion-content strong {
    font-weight: 600;
}

.contact {
    background: var(--secondary-bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
}

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

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

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--secondary-bg-color);
    border-radius: 1rem;
    margin: 0.7rem 0;
}

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

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
}

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

.footer-iconTop a {
    position: absolute;
    right: 5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    transform: translateY(-50%);
    transition: 0.5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

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

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

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

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

    .home {
        padding-bottom: 0;
    }

    .about {
        padding-bottom: 0;
        align-items: end;
    }

    .journey {
        padding-bottom: 7rem;
    }

    .portfolio {
        padding-bottom: 7rem;
    }

    .contact {
        min-height: auto;
    }

    .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(--primary-bg-color);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
        padding-bottom: 0;
    }

    .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;
        padding-bottom: 0;
    }

    .about-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .journey h2 {
        margin-bottom: 3rem;
    }

    .portfolio h2 {
        margin-bottom: 3rem;
    }

    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Skills Section Responsive */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    /* Journey Cards Responsive */
    .journey-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .journey-card-header {
        padding: 1.5rem;
        gap: 1rem;
    }

    .journey-card-header i {
        font-size: 2.5rem;
    }

    .journey-card-header h3 {
        font-size: 2rem;
    }

    .journey-items {
        padding: 1.5rem;
    }
}

@media (max-width: 617px) {
    .portfolio-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

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

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

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

    /* Mobile Journey */
    .journey-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .journey-card-header {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .journey-card-header i {
        font-size: 2rem;
    }

    .journey-card-header h3 {
        font-size: 1.8rem;
    }

    .journey-items {
        padding: 1.2rem;
    }

    .journey-details h4 {
        font-size: 1.8rem;
    }

    .journey-details h5 {
        font-size: 1.4rem;
    }

    /* Mobile Skills */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .category-icon {
        width: 4rem;
        height: 4rem;
    }

    .category-icon i {
        font-size: 2rem;
    }

    .skills-title {
        font-size: 1.8rem;
    }

    .skills-grid {
        padding: 1.2rem;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }

    .skill-item {
        padding: 1rem 0.6rem;
        gap: 0.6rem;
    }

    .skill-icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .skill-icon i {
        font-size: 1.8rem;
    }

    .skill-name {
        font-size: 1.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;
    }
}
/* 404 Error Page Styles */
.error-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--primary-bg-color);
}

.error-container {
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-size: clamp(10rem, 20vw, 20rem);
    font-weight: 800;
    color: var(--main-color);
    line-height: 1;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(249, 177, 122, 0.3);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-2px);
    }
    40% {
        transform: translateX(2px);
    }
    60% {
        transform: translateX(-2px);
    }
    80% {
        transform: translateX(2px);
    }
}

.error-icon {
    font-size: 8rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.error-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.error-message {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--text-color);
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.9;
}

.error-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: var(--main-color);
    color: var(--primary-bg-color);
    border-radius: 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-btn:hover {
    background: var(--primary-bg-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(249, 177, 122, 0.3);
}

.error-btn.secondary {
    background: var(--tertiary-bg-color);
    color: var(--text-color);
}

.error-btn.secondary:hover {
    background: var(--secondary-bg-color);
    border: 2px solid var(--main-color);
}

.error-btn i {
    font-size: 2rem;
}

.error-links {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(249, 177, 122, 0.2);
}

.error-links h3 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.quick-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-link {
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-link:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

.quick-link i {
    font-size: 1.8rem;
}

/* 404 Error Page Responsive Styles */
@media (max-width: 768px) {
    .error-code {
        font-size: clamp(8rem, 15vw, 12rem);
    }

    .error-icon {
        font-size: 6rem;
    }

    .error-actions {
        flex-direction: column;
        gap: 1.5rem;
    }

    .error-btn {
        width: 100%;
        justify-content: center;
    }

    .quick-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}
