* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #fcfaf8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a img {outline : none;}

.maz {
    color: #870A30;
    font-family: var(--font-semibold);
    font-style: italic;
    font-weight:600;
}

.headings {
    font-size: clamp(2rem, 5vw, 5rem);
    font-family: var(--font-medium);
    letter-spacing: 0.3vw;
}

#head {
    padding: 10vw 7vw 0 7vw;
}

#works{
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 5vw;
    gap: 8vw;
}

#works img {
    transition: ease-in-out 0.8s;
    z-index: 1;
}

#img1 {
    width: 25%;
    height: 25%;
}

#img2 {
    width: 25%;
    height: 25%;
}

#img3 {
    width: 25%;
    height: 25%;

}

#img4 {
    width: 50%;
    height: 45%;
}

#img5 {
    width: 30%;
    height: 100vh;
}

#img6 {
    width: 35%;
    height: 35%;
}

#img7 {
    width: 35%;
    height: 35%;
}

#img8 {
    width: 40%;
    height: 25%;
}

#img9 {
    width: 35%;
    height: 100vh;
}

#img10 {
    width: 35%;
    height: 35%;
}

#img11 {
    width: 35%;
    height: 35%;
}


#img12 {
    width: 35%;
    height: 35%;
}

#img13 {
    width: 35%;
    height: 35%;
}


#works img:hover {
    transform: scale(1.05);
}

#casestudy {
    display: flex;
    flex-direction: column;
    justify-content: baseline;
    align-items: center;
    gap: 5vw;
    padding: 5vw;
}

#casestudy h1 {
    font-family: "Gilroy-SemiBold";
    font-size: 4vw;
    font-weight: 500;
}

#casestudy img {
    transition: ease-in-out 0.8s;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    border-radius: 20px;
}

#casestudy img:hover {
    transform: scale(1.02);
}

#casestudy .img1 {
    width: 60vw;
}

#casestudy .img2 {
    width: 60vw;
}
    

nav {
    position: fixed;
    top:0;
    display:flex;
    align-items: center;
    justify-content: space-between;
    padding: 4vw 7vw 2vw 7vw;
    width: 100%;
    z-index: 9999;
    background-color: #e1e1e1;
    opacity: 0.7;
}

nav a {
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    font-family: 'Gilroy-Medium';
    color: #000000;
    letter-spacing: 0.1vw;
    padding: 10px 15px;
    margin: 0 5px;
    display: inline-block;
}

nav a .line {
    position: absolute;
    bottom: -3px;
    display: inline-block;
    width: 100%;
    height: 1.5px;
    background-color: black;
}

.nav-link {
    color: black; /* Default color */
    transition: color 0.3s;
}

.nav-link.footer-active {
    color: black;
    font-weight: 600;
}

.footer-activeLine {
    position: absolute;
    bottom: -2px;
    display: inline-block;
    width: 100%;
    height: 1px;
    background-color: #870A30;
}


#line1 {
    left: 0;
    width: 0%;
    transition: cubic-bezier(0.19, 1, 0.22, 1) 1s;
    transition-delay: .1s;
}

#line2 {
    right: 0;
    width: 100%;
    transition: cubic-bezier(0.19, 1, 0.22, 1) 1s;
}

nav a:hover #line2{
    width: 0;
}

nav a:hover #line1{
    width: 100%;
}





#footer {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #703A4B;
    color: #f0f0f0;
    text-align: center;
    padding: 8vw 7vw 2vw 7vw;
    overflow: hidden;
}

#footbg {
    position: absolute;
    width: 100%;
    top: 110%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

#footbg svg {
    width: 100%;
    z-index: 0;
    opacity: 0.6;
} 

#footcnt {
    width: 100%;
}

#footer h1 {
    font-family: "Gilroy-Medium";
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.2;
    text-transform: uppercase;
}

#footerbtns {
    display: flex;
    justify-content: center;
    gap: 4vw;
}

.footbtn {
    width: 50%;
    margin: 6vw 0;
    border: 2px solid #ffffff49;
    border-radius: 5vw;
    padding: 2vw 0;
    text-align: center;
    transition: ease-in-out 0.8s;
    z-index: 2;
    color: #fff;
}

.footbtn:hover {
    background-color: #f0f0f0;
    color: #333;
    border: 2px solid #f0f0f0;
}

.footbtn h5 {
    font-family: "Gilroy-Medium";
    font-size: clamp(0.8rem, 1vw, 1.2rem);
}

#footsls{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7vw;
    z-index: 1;
}

.footslsrow {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1vw;
    padding: 1vw;
    border-radius: 1vw;
    z-index: 999;
    transition: ease-in-out 0.5s;
}

.slsrowcols {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: ease-in-out 0.5s;
}

.slsrowcols h2 {
    font-family: "Gilroy-Medium";
    font-size: clamp(0.9rem, 1.2vw, 1.4rem);
    color: #ffffff;
    transition: ease-in-out 0.5s;
}

.slsrowcols h2 span{
    font-family: "Gilroy-Regular";
    font-size: clamp(0.6rem, 0.7vw, 0.9rem);
    color: #f1f1f1;
    border-radius: 1vw;
    transition: ease-in-out 0.5s;
}

.slshr {
    width: 70%;
    height: 1px;
    margin: 0;
    transition: ease-in-out 0.5s;
    border-color: #ffffff49;
}

.slsrowcols img {
    width: 8%;
    transition: ease-in-out 0.5s;
}

.footslsrow:hover{
    background-color: #ffffff1d;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.footslsrow:hover #arrow1{
    width: 7%;    
}
.footslsrow:hover #arrow3{
    width: 7%;    
}
.footslsrow:hover #arrow2{
    width: 7%;    
}
.footslsrow:hover .slshr{
    width: 98%;   
    border-color: #ededed; 
}

#arrow1{
    width: 0%;
    transition: ease-in-out 1s;
}

#arrow2{
    width: 0%;
    transition: ease-in-out 1s;
}

#arrow3{
    width: 0%;
    transition: ease-in-out 1s;

}

#foot{
    margin-top: 6vw;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#foot h3 {
    font-family: "Gilroy-Regular";
    font-weight: 400;
    font-size: clamp(0.6rem, 0.7vw, 0.9rem);
    color: #ffebef;
}

/* Work Page Styles */
#work-page {
    width: 100%;
    min-height: 100vh;
    background-color: #fcfaf8;
    padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 7vw, 5rem) 0;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}

/* Section Styles */
.section {
    margin-bottom: 8rem;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: "Gilroy-SemiBold";
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
    color: #333;
    display: block;
    width: 100%;
    position: relative;
    background-color: #fcfaf8;
    padding: 1rem 0;
    z-index: 10;
}

/* Experience Section */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    padding-top: 0;
    margin-top: 0;
}

.experience-card {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 1;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.experience-card.current {
    border: 2px solid #703A4B;
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-content {
    flex-grow: 1;
}

.experience-content h3 {
    font-family: "Gilroy-SemiBold";
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    color: #333;
    margin-bottom: 0.5rem;
}

.experience-content h4 {
    font-family: "Gilroy-Medium";
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: #666;
    margin-bottom: 0.5rem;
}

.experience-content .duration,
.experience-content .location {
    font-family: "Gilroy-Regular";
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: #888;
    margin-bottom: 0.5rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skills span {
    font-family: "Gilroy-Regular";
    font-size: 0.9rem;
    color: #703A4B;
    background: rgba(112, 58, 75, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-family: "Gilroy-SemiBold";
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-family: "Gilroy-Regular";
    font-size: 1rem;
    opacity: 0.9;
}

/* Design Samples Section */
#design-samples {
    width: 100%;
    overflow: visible;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .experience-card {
        padding: 1.5rem;
    }

    .company-logo {
        width: 60px;
        height: 60px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    #work-page {
        padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 5vw, 3rem) 0;
    }
    
    .section-title {
        position: relative;
        top: auto;
    }
    
    .experience-timeline {
        padding-top: 0;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    #work-page {
        padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) 0;
    }
    
    .section {
        margin-bottom: 4rem;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
        margin-bottom: 2rem;
        position: relative;
        top: auto;
        padding: 0.8rem 0;
    }

    .experience-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }
    
    .experience-timeline {
        padding-top: 0;
        margin-top: 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .portfolio-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    }

    .headings {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    #head {
        padding: 15vw 5vw 0 5vw;
    }
    
    #works {
        padding: 3vw;
        gap: 5vw;
    }
    
    #works img {
        width: 100%;
        height: auto;
    }
    
    .maz {
        font-size: 1.2rem;
    }
    
    nav {
        padding: 0 20px;
        justify-content: space-around;
    }
    
    nav a {
        font-size: 1.1rem;
        padding: 12px 15px;
        margin: 0;
    }
    
    .design-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .design-item.large {
        grid-column: span 1;
    }

    .design-item.tall {
        grid-row: span 1;
        grid-column: span 3;
    }

    .design-overlay {
        padding: 1.5rem;
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    }

    #footer {
        height: auto;
        padding: 5rem 1.5rem 2rem;
    }

    #footer h1 {
        font-size: 2.5rem;
    }

    #footerbtns {
        flex-direction: column;
        gap: 2rem;
    }

    .footbtn {
        width: 100%;
        margin: 0;
    }

    .footbtn h5 {
        font-size: 1rem;
    }

    #footsls {
        flex-direction: column;
        gap: 2rem;
    }

    .slsrowcols h2 {
        font-size: 1.2rem;
    }

    .slsrowcols h2 span {
        font-size: 0.9rem;
    }

    .slsrowcols img {
        width: 15%;
    }

    #foot {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    #foot h3 {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    #work-page {
        padding: 4rem 1rem 0;
    }

    .section {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 3vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .experience-card {
        padding: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .design-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .design-overlay {
        padding: 1rem;
    }
    
    .experience-content h3 {
        font-size: clamp(1rem, 1.2vw, 1.2rem);
    }
    
    .experience-content h4 {
        font-size: clamp(0.9rem, 1vw, 1rem);
    }
    
    .experience-content .duration,
    .experience-content .location {
        font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    }
    
    .skills span {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}


