* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: "MyFont";
  src: url("../fonts/myfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: Arial, sans-serif;
}


/* PRELOADER */
#preloader {
    position: fixed;
    inset: 0;
    background-color: #EFEAE3;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* inner */
.loader-inner {
    text-align: center;
}

/* text animation */
.loader-text {
    font-size: 2rem;
    letter-spacing: 6px;
    color: #8B1818;
    margin-bottom: 25px;
    font-weight: 700;
}

/* progress bar */
.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(0,0,0,0.1);
    overflow: hidden;
    border-radius: 10px;
}

.loader-fill {
    width: 0%;
    height: 100%;
    background-color: #8B1818;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

#main {
    width: 100%;
}

/* HEADER */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 4%;
    background-color: rgba(239, 234, 227, 0.95);
}

.yc {
    width: 80px;
    max-width: 100%;
    margin-top:1rem ;
    padding: 6px 0;
}

nav {
    display: flex;
    align-items: center;
}

.nav-part2 {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-part2 a {
    width: 130px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000000;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-part2 a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    background-color: #000000;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-part2 a:hover::after {
    bottom: 0;
    border-radius: 0;
}

.nav-part2 a h4 {
    position: relative;
    z-index: 2;
    color: #323232;
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
}

.nav-part2 a:hover h4 {
    color: #ffffff;
}

/* PAGE 1 */
#page1 {
    width: 100%;
    min-height: 100vh;
    background-color: #EFEAE3;
    padding-top: 100px;
    display: flex;
    align-items: center;
}

#page1-content {
    width: 100%;
}

.hero-container {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

/* LEFT */
.col-left {
    width: 240px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-self: flex-start;
    margin-top: 60px;
    padding-bottom: 0;           
    z-index: 3;
    margin-left: 3rem;
}

.description {
    color: #8B1818;
    font-weight: 600;
    line-height: 1.4;
    font-size: 1.3rem;
}

.hire-link {
    color: #8B1818;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* OPTIONAL SCROLL ITEM */
.scroll-animate {
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 95px;
    z-index: 3;
}

.scroll-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-flex p {
    font-size: 14px;
    color: #8B1818;
    letter-spacing: 1px;
}

#rect {
    width: 28px;
    height: 50px;
    border: 2px solid #8B1818;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

#circle {
    width: 8px;
    height: 8px;
    background-color: #8B1818;
    border-radius: 50%;
}

/* CENTER */
.col-center {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    margin: 0 auto;
     transform: translateX(-10px);
}

.marquee-wrapper {
    position: absolute;
    top: 140px;
    left: 0;
    width: 200%;
    display: flex;
    white-space: nowrap;
    z-index: 1;
    animation: marqueeMove 12s linear infinite;
}

.scrolling-name {
    display: inline-block;
    font-size: 11rem;
    font-weight: 900;
    color: #8B1818;
    line-height: 0.9;
    margin-right: 40px;
    margin-top: 6rem;
    animation: none;
}

@keyframes marqueeMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.profile-img {
    display: block;
    margin: 0 auto;
    height: 78vh;
    max-height: 760px;
    width: auto;
    position: relative;
    z-index: 2;
}

/* RIGHT */
.col-right {
    width: 260px;
    min-width: 220px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: flex-start;
    margin-top: 60px;
    z-index: 3;
}
.services {
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 19px;
    text-align: right;
}

.services li {
    font-size: 1.6rem;
    color: #c8c8c8;
    line-height: 1.1;
}

/* COMMON BG */
.bg-cream {
    background-color: #edebe1;
}

.bg-grey {
    background-color: #e8e8e3;
}

.card-small {
    align-self: center;
}

/* PAGE 2 */
#page2 {
    width: 100%;
    padding: 100px 5%;
}

#projects-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
}

#projects-header h5 {
    width: 64%;
    border: 3px solid #858585;
    border-radius: 16px;
    padding: 20px;
    font-size: 3rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* CARD BASE */
.project-card {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    overflow: hidden;
    background: #EFEAE3;
    transition: 0.3s ease;
    position: relative;
}

/* IMAGE */
.card-image {
    width: 100%;
    height: 250px;
    align-self: center;
    object-fit: contain;
    display: block;
}

/* BOTTOM PANEL */
.card-body {
    background: rgba(139, 24, 24, 0.1); 
    padding: 53px;
}

/* TITLE */
.card-title {
    font-size: 1.8rem;
    color: #8B1818;
    margin-bottom: 12px;
}

/* DESCRIPTION */
.card-desc {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* TAGS */
.card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-tags span {
    background: #8B1818;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}


.card-content p {
    font-size: 1.1rem;
    color: #5b0000;
    line-height: 1.5;
    z-index: 1000;
}
#about {
    padding: 120px 5%;
    background: #EFEAE3;
}

/* LAYOUT */
.about-wrapper {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

/* LEFT */
.about-left h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    color: #8B1818;
    line-height: 1.1;
}

/* RIGHT */
.about-right {
    max-width: 600px;
}

/* TEXT */
.about-text {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* LIST */
.about-list {
    margin-bottom: 40px;
    padding-left: 20px;
}

.about-list li {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 10px;
}

/* BUTTONS */
.about-buttons {
    display: flex;
    gap: 20px;
}

/* BUTTON STYLE */
.btn-outline {
    border: 2px solid #8B1818;
    padding: 12px 24px;
    color: #8B1818;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #8B1818;
    color: #fff;
}


/* PAGE 3 */
#page3 {
    width: 100%;
    padding: 100px 5%;
    background-color: #f5f5f3;
}

.skills-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.skills-right {
    flex: 1;
}

.skills-right img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.skills-left {
    flex: 1.1;
}

.skills-tag {
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.skills-heading {
    font-family: serif;
    font-size: 4rem;
    margin-bottom: 50px;
    color: #1a1a1a;
    line-height: 1.1;
}

.skills-category {
    display: flex;
    gap: 25px;
    border-top: 1px solid #ccc;
    padding: 40px 0;
}

.category-title {
    flex: 1;
    font-family: serif;
    font-style: italic;
    font-size: 2.2rem;
    font-weight: 400;
}

.skills-list {
    flex: 1.5;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}

.skills-list li {
    font-size: 1.2rem;
    color: #333;
    display: flex;
    align-items: center;
}

.skills-list li::before {
    content: "●";
    color: #d14d3a;
    font-size: 14px;
    margin-right: 10px;
}

#page4 {
    width: 100%;
    padding: 100px 5%;
    background-color: #EFEAE3;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.contact-left {
    flex: 1.2;
}

.contact-heading {
    font-size: 3rem;
    line-height: 0.9;
    color: #8B1818;
    margin-bottom: 50px;
    font-weight: 800;
}

.contact-form {
    width: 100%;
    max-width: 650px;
}

.form-group {
    margin-bottom: 28px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid rgba(139, 24, 24, 0.35);
    background: transparent;
    padding: 14px 0;
    font-size: 1.05rem;
    color: #222;
    outline: none;
    font-family: Arial, sans-serif;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6d6d6d;
}

.contact-btn {
    margin-top: 10px;
    background-color: #8B1818;
    color: #ffffff;
    border: none;
    padding: 16px 34px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-btn:hover {
    background-color: #6d1212;
}

#form-status {
    margin-top: 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #8B1818;
}

/* FOOTER */
#footer {
    width: 100%;
    background-color: #8B1818;
    bottom: 0;
    padding: 70px 5% 30px;
    color: #ffffff;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    width: 90px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-copy {
    font-size: 0.95rem;
    color: #f2dede;
}

.footer-links h4,
.footer-cta h4 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: #ffffff;
}

.footer-links a {
    display: block;
    color: #f2dede;
    margin-bottom: 12px;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-cta p {
    color: #f2dede;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #8B1818;
    padding: 14px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.footer-mail-btn:hover {
    background-color: #f5e9e9;
}


@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}


/* TABLET */
@media (max-width: 1024px) {
    header {
        padding: 14px 4%;
    }

    .yc {
        width: 95px;
    }

    .nav-part2 {
        gap: 12px;
    }

    .nav-part2 a {
        width: 115px;
        padding: 10px 14px;
    }

    .nav-part2 a h4 {
        font-size: 15px;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .col-left,
    .col-right {
        width: 100%;
        min-width: 0;
        align-items: center;
        justify-content: center;
    }

    .col-right {
        justify-content: center;
    }

    .services {
        text-align: center;
    }

    .description {
        max-width: 560px;
    }

    .scroll-animate {
        padding-bottom: 0;
    }

    .col-center {
        width: 100%;
        order: 2;
    }

    .profile-img {
        height: 59vh;
        top: 39px;
    }


    .scrolling-name {
        font-size: 11vw;
    }

    #projects-header h5 {
        width: 85%;
        font-size: 2.3rem;
    }

    
    .project-grid {
        grid-template-columns: repeat(2, 1fr); 
    }


    .project-card {
        min-height: 470px;
    }

    .skills-container {
        flex-direction: column;
        gap: 40px;
    }

    .skills-category {
        flex-direction: column;
    }

    .skills-heading {
        font-size: 3rem;
    }
    #about {
        padding: 90px 5%;
    }

    .about-left{
        width: 208px;
    }
    .about-wrapper h2{
        font-size: 2.4rem;
    }

    .about-wrapper {
        grid-template-columns: 90px 1fr;
        gap: 138px;
    }

    .about-label span {
        padding: 16px 10px;
        font-size: 1.1rem;
    }

    .about-content {
        max-width: 100%;
    }

    .about-title {
        font-size: 3.2rem;
        margin-bottom: 18px;
    }

    .about-text {
        font-size: 1.2rem;
        line-height: 1.5;
        margin-bottom: 26px;
    }

    .about-buttons {
        gap: 20px;
        flex-wrap: wrap;
    }

    .resume-btn,
    .contact-btn-outline {
        padding: 12px 20px;
        font-size: 0.95rem;
    }


    .contact-container {
        flex-direction: column;
    }

    .contact-heading {
        font-size: 2rem;
    }

    .contact-form {
        max-width: 100%;
    }


    .footer-container {
        grid-template-columns: 1fr 1fr;
    }


}

/* MOBILE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 4%;
    }

    .yc {
        width: 85px;
    }

    .nav-part2 {
        justify-content: center;
        flex-flow: row;
    }


    .nav-part2 a {
        flex-direction: row;
        width: 115px;
        min-height: 40px;
        padding: 8px 12px;
    }

    .nav-part2 a h4 {
        font-size: 14px;
    }

    #page1 {
        padding-top: 140px;
    }

    .hero-container {
        gap: 22px;
    }

    .description {
        font-size: 1.45rem;
        position: relative;
        right: 20px;
    }

    .hire-link {
        font-size: 1rem;
        position: relative;
        right: 20px;
    }
    .col-left{
        position: relative;
        right: 20px;
    }

    .profile-img {
        height: 46vh;
        
    }

    .scrolling-name {
        font-size: 13vw;
    }

    .services li {
        font-size: 1.3rem;
    }

    #page2,
    #page3 {
        padding: 80px 4%;
    }

    #projects-header h5 {
        width: 100%;
        font-size: 1.9rem;
        letter-spacing: 0.15rem;
    }

    .project-card {
        min-height: 420px;
    }

    .project-grid {
        grid-template-columns: repeat(1, 1fr);
        padding-left: 4rem;
    }
    

    .title {
        font-size: 1.9rem;
    }

    .card-content p {
        font-size: 1rem;
    }

    .skills-heading {
        font-size: 2.5rem;
        margin-bottom: 35px;
    }
     #about {
        padding: 80px 4%;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-label {
        justify-content: flex-start;
    }

    .about-label span {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 10px 16px;
        font-size: 1rem;
        border-width: 2px;
    }

    .about-title {
        font-size: 2.6rem;
        line-height: 1.1;
    }

    .about-text {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .about-buttons {
        gap: 16px;
        flex-wrap: wrap;
    }

    .resume-btn,
    .contact-btn-outline {
        padding: 11px 18px;
        font-size: 0.95rem;
    }

    .resume-btn img {
        width: 17px;
        height: 17px;
    }

    .category-title {
        font-size: 1.7rem;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }

    .skills-list li {
        font-size: 1.05rem;
    }

    #page4 {
        padding: 80px 4%;
    }

    .contact-heading {
        font-size:2.7rem;
        margin-bottom: 35px;
    }

    #footer {
        padding: 60px 4% 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}

/* MINI PHONES */
@media (max-width: 480px) {
    .nav-part2 {
        width: 350px;
        flex-flow: row;
        align-items: center;
    }

    .nav-part2 a {
        width: 100%;
        max-width: 300px;
    }

    #page1 {
        padding-top: 165px;
    }

    .description {
        font-size: 0.95rem;
    }

    .hire-link {
        font-size: 0.95rem;
    }

    .profile-img {
        height: 42vh;
    }
    .col-right{
        position: relative;
        top: 20px;
    }

    .scrolling-name {
        font-size: 15vw;
        top: 95px;
    }

    .services li {
        font-size: 1.1rem;
    }

    #projects-header h5 {
        font-size: 1.5rem;
        padding: 16px;
    }

    .project-card {
        min-height: 360px;
        border-radius: 18px;
    }

    .title {
        font-size: 1.5rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }

    .skills-heading {
        font-size: 2rem;
    }
     #about {
        padding: 70px 4%;
    }

    .about-wrapper {
        gap: 20px;
    }

    .about-label span {
        font-size: 0.9rem;
        padding: 9px 14px;
    }

    .about-title {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .about-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .resume-btn,
    .contact-btn-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.92rem;
    }

    .resume-btn img {
        width: 16px;
        height: 16px;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .contact-heading {
        font-size: 1.8rem;
    }


    .contact-text p {
        font-size: 0.92rem;
    }

    .footer-logo {
        width: 75px;
    }
}
/* BELOW 300PX */
@media (max-width: 300px) {

    html,
    body {
        font-size: 14px;
    }

    header {
        padding: 10px 3%;
    }

    .yc {
        width: 72px;
    }

    .nav-part2 {
        gap: 8px;
    }

    .nav-part2 a {
        max-width: 100%;
        min-height: 38px;
        padding: 8px 10px;
    }

    .nav-part2 a h4 {
        font-size: 13px;
    }

    #page1 {
        padding-top: 160px;
    }

    .hero-container {
        padding-left: 3%;
        padding-right: 3%;
    }

    .description {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .hire-link {
        font-size: 0.85rem;
    }

    .profile-img {
        height: 30vh;
    }

    .scrolling-name {
        font-size: 17vw;
        margin-right: 12px;
    }

    .scroll-flex p {
        font-size: 12px;
    }

    .services li {
        font-size: 0.95rem;
    }

    #page2,
    #page3 {
        padding-left: 3%;
        padding-right: 3%;
    }

    #projects-header h5 {
        font-size: 1.2rem;
        letter-spacing: 0.05rem;
        padding: 12px;
    }

    .project-card {
        min-height: 320px;
    }

    .title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .card-content p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .skills-heading {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .skills-list li {
        font-size: 0.95rem;
    }
    #about {
        padding: 60px 3%;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .about-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .about-label span {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .resume-btn,
    .contact-btn-outline {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .resume-btn img {
        width: 14px;
        height: 14px;
    }

    .contact-heading {
        font-size: 2.1rem;
    }

    .contact-btn,
    .footer-mail-btn {
        width: 100%;
        text-align: center;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}