@import url("./assets/styles/font.css");

#hero {
    width: 100%;
    height: 80vh;
    display: flex;
    position: relative;
    padding: 5vw 3vw;
    align-items: center;
    justify-content: space-between;
    background: url("./assets/images/herobg.webp") no-repeat center/cover;
    position: relative;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255, 0.5);
    z-index: 1;
}

/* Fix for Shery.js video color inversion */
.movercirc {
    mix-blend-mode: color-burn;
}

/* #hero h1 {
    font-family: "AvertaCY-SemiBold", sans-serif;

    position: absolute;
    top: 5vw;
    left: 5vw;
    font-size: 5vw;
    width: 55%;
}
#hero h1 span{
    display: flex;
}

#hero #hleft {
    width: 25%;
    display: flex;
    flex-direction: column;
    padding: 0 2vw;
    padding-bottom: 0.5vh;
    gap: 3vh;
} */

#hero #homemain {
    width: 100%;
    height: 200px;
    /* background-color: red; */
    /* margin-top: 11vw; */
    padding: 0 15vw;
}

#hero #homemain #smallheading p {
    font-size: 1.3vw;
    /* color: #FF5733; */
    /* font-weight: 500; */
    margin-bottom: 0vw;
    letter-spacing: -0.1vw;
}

#hero #homemain #bigheading {
    display: flex;
    gap: 20px;
    position: relative;
    z-index:1;
}

#hero #homemain #bigheading h1 {
    font-size: 7vw;
    font-weight: 700;
    letter-spacing: -0.4vw;
    font-family: "AvertaCY-Bold", sans-serif;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px black;
}

#hero #homemain #bigheading h1:hover {
    color: var(--secondary-color);
    /* -webkit-text-stroke: 0px black; */
}

.btnelem {
    /* width: fit-content; */
    padding: 0.8vw 1.5vw;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 100px;
    font-size: 1vw;
    color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

#hero #hleft .btnelem:nth-of-type(2) {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btnelem:hover {
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--secondary-color);
}

/* 
#hero #hleft .btnelem:nth-of-type(2):hover {
    background-color: var(--primary-color);
    color: #f5f5f5;
}


#hero #hleft p {
    font-size: 1.1vw;
    line-height: 1.2;
}

#hero #hleft #socials {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2vw 0;
    border-radius: 20px;
    background: url("./assets/images/heroimage.png") no-repeat top center/cover;
    gap: 2vw;
}

#hero #hleft #socials svg {
    font-size: 1.75vw;
    color: var(--secondary-color);
    cursor: pointer;
}

#hero #hleft #socials svg:hover {
    color: var(--primary-color);
}

Animation property
#hleft p,
#hleft .btnelem,
#hleft #socials{
    opacity: 0;
    transform: translateY(30px);
}

#hero #hright {
    width: 75%;
    height: 100%;
}

#hero #hright img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask: url(./assets/images/heroSvg.svg) no-repeat right center/contain;
} */

#about {
    width: 100%;
    padding: 6vw 5vw;
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

#about #abtop {
    background-color: var(--tertiary-color);
    display: flex;
    padding: 4vw 2vw;
    border-radius: 20px;
    align-items: center;
    justify-content: space-between;
    color: #f5f5f5;
}

#about #abtop #ableft {
    width: 40%;
    display: flex;
    border-right: 2px solid #f5f5f5;
    flex-direction: column;
    gap: 2vw;
}

#about #abtop #ableft h1 {
    font-size: 3vw;
    font-family: "AvertaCY-SemiBold", sans-serif;
    width: 90%;
}

#about #abtop #ableft p {
    font-size: 1.5vw;
    line-height: 1.4;
    opacity: 0.8;
    text-transform: uppercase;
    color: var(--secondary-color);
}

#about #abtop #abright {
    width: 55%;
}

#about #abtop #abright p {
    font-size: 1.78vw;
    line-height: 1.5;
    opacity: 0.9;
}

#about #abbtm {
    display: flex;
    justify-content: space-between;
}

#about #abbtm .abcard {
    width: 33.33%;
    padding: 2vw 0;
    display: flex;
    flex-direction: column;
    gap: 2.5vw;
    /* align-items: center; */
    justify-content: center;
}

#about #abbtm #core {
    width: 25%;
    justify-content: flex-start;
    gap: 1vw;
    border-radius: 20px;
}

#about #abbtm #core .btnelem {
    margin-top: auto;
    text-align: center;
}

#about #abbtm #core h1 {
    font-size: 3vw;
    font-family: "AvertaCY-SemiBold", sans-serif;
}
#about #abbtm .abcard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

#about #abbtm #elements {
    width: 30%;
}
#about #abbtm #elements .abcardelem #elemtop {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#about #abbtm #elements .abcardelem #elemtop span {
    display: flex;
    gap: 0.5vw;
    color: var(--secondary-color);
    font-family: "AvertaCY-SemiBold", sans-serif;
}
#about #abbtm #elements .abcardelem #elemtop span h2.number {
    font-size: 1.2vw;
}
#about #abbtm #elements .abcardelem p {
    font-size: 1vw;
    opacity: 0.8;
    padding-left: 2vw;
}

#services {
    width: 100%;
    padding: 5vw;
    display: flex;
    background-color: var(--tertiary-color);
    color: #f5f5f5;
    background: url("./assets/images/servbg.webp") no-repeat center/cover;
    position: relative;
}

#services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0, 0.5);
    z-index: 1;
}

#services #stext {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

#services #stext h1 {
    font-family: "AvertaCY-SemiBold", sans-serif;
    font-size: 3vw;
}

#services #stext p {
    font-size: 1vw;
    width: 75%;
    opacity: 0.9;
}

#services #sgrid {
    width: 63%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    position: relative;
    z-index: 2;
}

#services #sgrid .servicecard {
    padding: 1vw;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1vw;
    transition: box-shadow 0.3s ease, border-radius 0.3s ease, corner-top-right-radius 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--secondary-color);
    height: 300px;
    position: relative;
    anchor-name: --card;
}

#services #sgrid .servicecard:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    corner-top-right-shape: scoop;
    border-top-right-radius: 60px;
}

#services #sgrid .servicecard img {
    width: 80px;
    height: 50px;
    transform: scale(1.3);
    /* filter: grayscale(); */
    object-fit: contain;
}
#services #sgrid .servicecard h2 {
    font-size: 1.2vw;
    color: var(--secondary-color);
    width: 90%;
    line-height: 1;
}

#services #sgrid .servicecard p {
    font-size: 1vw;
    opacity: 0.9;
}

#services #sgrid .servicecard a {
    margin-top: auto;
    text-decoration: none;
    color: var(--secondary-color);
}

/* Services Expand More - Only for mobile */
#services #sgrid .servicecard.hidden-card {
    display: flex; /* Visible on desktop by default */
}

#services #expand-services {
    grid-column: 1 / -1;
    padding: 1.2vw 2.5vw;
    background: transparent;
    border: 2px solid var(--secondary-color);
    border-radius: 100px;
    font-family: "AvertaCY-SemiBold", sans-serif;
    font-size: 1vw;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    margin: 1vw auto 0;
    width: fit-content;

    position: relative;
    z-index: 2;
}

#services #expand-services:hover {
    background-color: var(--secondary-color);
    color: #f5f5f5;
}

#services #expand-services i {
    transition: transform 0.3s ease;
}

#services #expand-services.collapse-mode i {
    transform: rotate(180deg);
}

#services #expand-services.hidden {
    display: none !important;
}

.servicecard {
    transform: translateX(50px);
    opacity: 0;
}

#process {
    width: 100%;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    gap: 4vw;
}

#process h1 {
    font-family: "AvertaCY-SemiBold", sans-serif;
    font-size: 3vw;
    /* text-align: center; */
}

#process #process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 2vw 0;
}

#process .process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vw;
    width: 20%;
    position: relative;
}

#process .process-step .step-circle {
    width: 4vw;
    height: 4vw;
    border-radius: 50%;
    border: 2px solid var(--tertiary-color);

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2vw;
    font-family: "AvertaCY-SemiBold", sans-serif;
    background-color: #f5f5f5;
    position: relative;
    z-index: 2;
    /* transition: all 0.3s ease; */

    opacity: 0;
    transform: translateX(50px);
    --after-width: 0%;
}

#process .process-step .step-circle:hover {
    background-color: var(--secondary-color);
    color: #f5f5f5;
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

#process .process-step:not(:last-child) .step-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: var(--after-width);
    height: 2px;
    background-color: var(--tertiary-color);
    transform: translateY(-50%);
    z-index: 1;
}

#process .process-step .step-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
}

#process .process-step .step-content h2 {
    font-size: 1vw;
    font-family: "AvertaCY-SemiBold", sans-serif;
    letter-spacing: 0.05vw;
}

#process .process-step .step-content p {
    font-size: 0.9vw;
    opacity: 0.8;
    line-height: 1.4;
}

/* Featured Projects */
#featured-projects {
    width: 100%;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    gap: 3vw;
}

#featured-projects #fp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#featured-projects #fp-header h1 {
    font-family: "AvertaCY-SemiBold", sans-serif;
    font-size: 3vw;
}

#featured-projects #fp-filters {
    display: flex;
    gap: 0.5vw;
    padding: 0.3vw;
    background-color: rgba(30, 41, 57, 0.08);
    border-radius: 20px;
}

#featured-projects .fp-filter {
    padding: 0.6vw 1.5vw;
    border: none;
    background: transparent;
    font-family: "AvertaCY-Regular", sans-serif;
    font-size: 0.9vw;
    color: var(--tertiary-color);
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

#featured-projects .fp-filter:hover {
    opacity: 1;
}

#featured-projects .fp-filter.active {
    background-color: var(--secondary-color);
    color: #f5f5f5;
    opacity: 1;
}

#featured-projects #fp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
}

#featured-projects .fp-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(30px);
}

#featured-projects .fp-card.hidden {
    display: none;
}

#featured-projects .fp-card .fp-media {
    width: 100%;
    height: 20vw;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

#featured-projects .fp-card .fp-media img,
#featured-projects .fp-card .fp-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

#featured-projects .fp-card .fp-media video {
    opacity: 0;
    z-index: 2;
}

#featured-projects .fp-card:hover .fp-media video {
    opacity: 1;
}

#featured-projects .fp-card:hover .fp-media img {
    transform: scale(1.05);
}

#featured-projects .fp-card .fp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20vw;
    background: linear-gradient(to top, rgba(30, 41, 57, 0.9), transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 1.5vw;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 3;
}

#featured-projects .fp-card:hover .fp-overlay {
    opacity: 1;
}

#featured-projects .fp-card .fp-overlay p {
    color: #f5f5f5;
    font-size: 0.9vw;
    line-height: 1.5;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

#featured-projects .fp-card:hover .fp-overlay p {
    transform: translateY(0);
}

#featured-projects .fp-card .fp-info {
    display: flex;
    align-items: center;
    gap: 1vw;
    padding: 1vw 0.5vw;
}

#featured-projects .fp-card .fp-badge {
    width: 2.5vw;
    height: 2.5vw;
    border-radius: 50%;
    background-color: var(--tertiary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#featured-projects .fp-card .fp-badge svg {
    color: #f5f5f5;
    font-size: 0.9vw;
    transition: transform 0.3s ease;
}

#featured-projects .fp-card:hover .fp-badge {
    background-color: var(--secondary-color);
}

#featured-projects .fp-card:hover .fp-badge i {
    transform: rotate(-45deg);
}

#featured-projects .fp-card .fp-text h3 {
    font-family: "AvertaCY-SemiBold", sans-serif;
    font-size: 1.1vw;
    margin-bottom: 0.2vw;
}

#featured-projects .fp-card .fp-text span {
    font-size: 0.9vw;
    opacity: 0.6;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.project-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    height: 70vh;;
    background: #f5f5f5;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.project-modal .modal-close {
    position: absolute;
    top: 1.5vw;
    right: 1.5vw;
    width: 3vw;
    height: 3vw;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.project-modal .modal-close:hover {
    background: var(--secondary-color);
    color: #f5f5f5;
    transform: rotate(90deg);
}

.project-modal .modal-close i {
    font-size: 1.2vw;
}

.project-modal .modal-media {
    width: 80%;
    position: relative;
    overflow: hidden;
}

.project-modal .modal-media img,
.project-modal .modal-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal .modal-media video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-modal .modal-media.has-video video {
    opacity: 1;
}

.project-modal .modal-details {
    width: 35%;
    padding: 3vw;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
    overflow-y: auto;
}

.project-modal .modal-header {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.project-modal .modal-category {
    padding: 0.4vw 1vw;
    background: var(--secondary-color);
    color: #f5f5f5;
    border-radius: 100px;
    font-size: 0.8vw;
    text-transform: uppercase;
    letter-spacing: 0.05vw;
}

.project-modal .modal-year {
    font-size: 0.9vw;
    opacity: 0.6;
}

.project-modal .modal-title {
    font-family: "AvertaCY-Bold", sans-serif;
    font-size: 2.5vw;
    line-height: 1.2;
    color: var(--tertiary-color);
}

.project-modal .modal-description {
    font-size: 1vw;
    line-height: 1.7;
    opacity: 0.8;
    color: var(--tertiary-color);
}

.project-modal .modal-meta {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    margin-top: auto;
    padding-top: 2vw;
    border-top: 1px solid rgba(30, 41, 57, 0.1);
}

.project-modal .meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3vw;
}

.project-modal .meta-label {
    font-size: 0.75vw;
    text-transform: uppercase;
    letter-spacing: 0.1vw;
    opacity: 0.5;
    color: var(--tertiary-color);
}

.project-modal .meta-value {
    font-size: 1vw;
    font-family: "AvertaCY-SemiBold", sans-serif;
    color: var(--tertiary-color);
}

/* FAQs */
#faqs {
    width: 100%;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    gap: 3vw;
}

#faqs #faq-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2vw;
}

#faqs #faq-header h1 {
    font-family: "AvertaCY-SemiBold", sans-serif;
    font-size: 3vw;
    width: 50%;
}

#faqs #faq-header p {
    font-size: 1vw;
    opacity: 0.7;
    width: 30%;
    text-align: right;
    line-height: 1.5;
}

#faqs #faq-content {
    display: flex;
    gap: 2vw;
}

#faqs .faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}

#faqs .faq-item {
    border: 1px solid rgba(30, 41, 57, 0.2);
    border-radius: 15px;
    padding: 1.5vw 2vw;
    cursor: pointer;
    transition: all 0.3s ease;
}

#faqs .faq-item:hover {
    border-color: var(--tertiary-color);
}

#faqs .faq-item .faq-question {
    display: flex;
    align-items: center;
    gap: 0.8vw;
}

#faqs .faq-item .faq-question .faq-num {
    font-family: "AvertaCY-SemiBold", sans-serif;
    font-size: 1vw;
    opacity: 0.6;
}

#faqs .faq-item .faq-question h3 {
    font-family: "AvertaCY-SemiBold", sans-serif;
    font-size: 1.1vw;
    flex: 1;
}

#faqs .faq-item .faq-question svg {
    font-size: 0.9vw;
    transition: transform 0.3s ease;
}

#faqs .faq-item.active .faq-question svg {
    transform: rotate(45deg);
}

#faqs .faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
#faqs .faq-item.active h3 {
    color: var(--secondary-color);
}
#faqs .faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 1vw;
}

#faqs .faq-item .faq-answer p {
    font-size: 0.95vw;
    opacity: 0.8;
    line-height: 1.6;
    padding-left: 2vw;
}

/* Footer */
#footer {
    width: 100%;
    background-color: var(--tertiary-color);
    color: #f5f5f5;
    padding: 4vw 5vw 2vw;
}

#footer .footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 3vw;
    border-bottom: 1px solid rgba(245, 245, 245, 0.15);
}

#footer .footer-brand {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}

#footer .footer-brand img{
    width: 6rem;
    height: auto;
}

#footer .footer-brand h1 {
    font-family: "AvertaCY-Bold", sans-serif;
    font-size: 1.5vw;
    color: var(--secondary-color);
}

#footer .footer-brand p {
    font-size: 0.95vw;
    opacity: 0.7;
    line-height: 1.6;
}

#footer .footer-socials {
    display: flex;
    gap: 1vw;
    margin-top: 1vw;
}

#footer .footer-socials a {
    width: 2.2vw;
    height: 2.2vw;
    border-radius: 8px;
    background-color: rgba(245, 245, 245, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#footer .footer-socials a:hover {
    background-color: var(--secondary-color);
}

#footer .footer-socials a svg {
    color: #f5f5f5;
    font-size: 0.9vw;
}

#footer .footer-links {
    display: flex;
    gap: 5vw;
}

#footer .footer-column h3 {
    font-family: "AvertaCY-SemiBold", sans-serif;
    font-size: 1vw;
    margin-bottom: 1.5vw;
}

#footer .footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
}

#footer .footer-column ul li a {
    font-size: 0.9vw;
    color: #f5f5f5;
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
}

#footer .footer-column ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

#footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2vw;
}

#footer .footer-bottom p {
    font-size: 0.85vw;
    opacity: 0.5;
}

#footer .footer-bottom-links {
    display: flex;
    gap: 2vw;
}

#footer .footer-bottom-links a {
    font-size: 0.85vw;
    color: #f5f5f5;
    opacity: 0.5;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#footer .footer-bottom-links a:hover {
    opacity: 0.8;
}

/* Contact Form */
#contactform {
    width: 100%;
    padding: 5vw;
    display: flex;
    flex-direction: column;
    gap: 3vw;
}

#contactform #cf-header {
    display: flex;
    align-items: center;
    gap: 2vw;
}

#contactform #cf-header h1 {
    font-family: "AvertaCY-SemiBold", sans-serif;
    font-size: 3vw;
    color: var(--tertiary-color);
}

#contactform #cf-header p {
    font-size: 1vw;
    opacity: 0.8;
    border-left: 2px solid var(--tertiary-color);
    padding-left: 2vw;
}

#contactform #cf-content {
    display: flex;
    background-color: #efefef;
    border-radius: 25px;
    overflow: hidden;
    min-height: 55vh;
}

#contactform #cf-form-wrapper {
    width: 55%;
    padding: 3vw;
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

#contactform #cf-toggle {
    display: flex;
    gap: 2vw;
}

#contactform .cf-toggle-option {
    display: flex;
    align-items: center;
    gap: 0.6vw;
    cursor: pointer;
    font-size: 1vw;
}

#contactform .cf-toggle-option input {
    display: none;
}

#contactform .cf-toggle-option .toggle-indicator {
    width: 1.5vw;
    height: 1.5vw;
    border-radius: 50%;
    border: 2px solid var(--tertiary-color);
    position: relative;
    transition: all 0.3s ease;
}

#contactform .cf-toggle-option.active .toggle-indicator {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}

#contactform .cf-toggle-option .toggle-text {
    font-family: "AvertaCY-Regular", sans-serif;
}

#contactform #cf-form {
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}

#contactform .cf-field {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
}

#contactform .cf-field label {
    font-size: 0.9vw;
    font-family: "AvertaCY-SemiBold", sans-serif;
}

#contactform .cf-field label span {
    color: var(--primary-color);
}

#contactform .cf-field input,
#contactform .cf-field textarea {
    padding: 1vw 1.2vw;
    border: 1px solid rgba(30, 41, 57, 0.2);
    border-radius: 12px;
    font-size: 0.95vw;
    font-family: "AvertaCY-Regular", sans-serif;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
    outline: none;
}

#contactform .cf-field input:focus,
#contactform .cf-field textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(152, 16, 250, 0.1);
}

#contactform .cf-field input::placeholder,
#contactform .cf-field textarea::placeholder {
    color: rgba(30, 41, 57, 0.4);
}

#contactform .cf-field textarea {
    min-height: 12vw;
    resize: vertical;
}

#contactform .cf-submit {
    width: 100%;
    padding: 1vw 2vw;
    background-color: var(--tertiary-color);
    color: #f5f5f5;
    border: none;
    border-radius: 12px;
    font-size: 1vw;
    font-family: "AvertaCY-SemiBold", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

#contactform .cf-submit:hover {
    background-color: var(--secondary-color);
}

#contactform #cf-visual {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
#contactform #cf-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#contactform .cf-decoration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contactform .cf-decoration .star {
    position: absolute;
    z-index: 2;
}

#contactform .cf-decoration .star-large {
    font-size: 8vw;
    color: var(--tertiary-color);
    animation: rotateStar 20s linear infinite;
}

#contactform .cf-decoration .star-small {
    font-size: 4vw;
    color: var(--secondary-color);
    bottom: 20%;
    right: 25%;
    animation: rotateStar 15s linear infinite reverse;
}

@keyframes rotateStar {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#contactform .cf-decoration .cf-rays {
    position: absolute;
    width: 20vw;
    height: 20vw;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 8deg,
        rgba(30, 41, 57, 0.15) 8deg 10deg
    );
    border-radius: 50%;
    animation: rotateRays 30s linear infinite;
}

@keyframes rotateRays {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--tertiary-color);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Tablet - 1024px and below */
@media screen and (max-width: 1024px) {
    /* Navbar */
    #nav {
        padding: 15px 25px;
        width: 100%;
        box-sizing: border-box;
    }

    #nav h1 {
        font-size: 20px;
    }

    #nav .nav-links {
        font-size: 14px;
        gap: 20px;
    }

    #nav .nav-links .contact a {
        padding: 8px 16px;
    }

    /* Hero */
    #hero {
        height: 70vh;
        padding: 80px 30px 40px;
    }

    #hero #homemain {
        padding: 0 5vw;
    }

    #hero #homemain #smallheading p {
        font-size: 16px;
    }

    #hero #homemain #bigheading {
        flex-wrap: wrap;
        gap: 10px;
    }

    #hero #homemain #bigheading h1 {
        font-size: 8vw;
    }
}

/* Mobile - 768px and below */
@media screen and (max-width: 768px) {
    /* Navbar */
    #nav {
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    #nav h1 {
        font-size: 18px;
    }

    .hamburger {
        display: flex;
    }

    #nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #f5f5f5;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        font-size: 18px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    #nav .nav-links.active {
        right: 0;
    }

    #nav .nav-links .contact a {
        padding: 12px 24px;
        font-size: 16px;
        line-height: 1;
    }

    /* Hero */
    #hero {
        height: 60vh;
        padding: 100px 20px 40px;
        align-items: center;
    }

    #hero #homemain {
        padding: 0;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #hero #homemain #headings {
        text-align: center;
    }

    #hero #homemain #smallheading p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    #hero #homemain #bigheading {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    #hero #homemain #bigheading h1 {
        font-size: 14vw;
        letter-spacing: -2px;
    }
}

/* Small Mobile - 480px and below */
@media screen and (max-width: 480px) {
    #nav {
        padding: 12px 15px;
    }

    #nav h1 {
        font-size: 16px;
    }

    #nav .nav-links {
        width: 100%;
    }

    #hero {
        height: 55vh;
    }

    #hero #homemain #bigheading h1 {
        font-size: 16vw;
    }

    #hero #homemain #smallheading p {
        font-size: 12px;
    }
}

/* ==================== TABLET RESPONSIVE (1024px) ==================== */
@media screen and (max-width: 1024px) {
    /* About Section */
    #about {
        padding: 40px 30px 0;
        gap: 25px;
    }

    #about #abtop {
        padding: 35px 25px;
        flex-direction: column;
        gap: 30px;
    }

    #about #abtop #ableft {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #f5f5f5;
        padding-bottom: 25px;
    }

    #about #abtop #ableft h1 {
        font-size: 28px;
        width: 100%;
    }

    #about #abtop #ableft p {
        font-size: 14px;
    }

    #about #abtop #abright {
        width: 100%;
    }

    #about #abtop #abright p {
        font-size: 16px;
    }

    #about #abbtm {
        flex-wrap: wrap;
        gap: 20px;
    }

    #about #abbtm #core {
        width: 100%;
        order: 1;
    }

    #about #abbtm #core h1 {
        font-size: 28px;
    }

    #about #abbtm .abcard:nth-child(2) {
        width: 48%;
        order: 2;
    }

    #about #abbtm #elements {
        width: 48%;
        order: 3;
    }

    #about #abbtm #elements .abcardelem #elemtop span h2.number {
        font-size: 14px;
    }

    #about #abbtm #elements .abcardelem p {
        font-size: 13px;
    }

    /* Services Section */
    #services {
        padding: 50px 30px;
        flex-direction: column;
        gap: 40px;
    }

    #services #stext {
        width: 100%;
        text-align: center;
    }

    #services #stext h1 {
        font-size: 28px;
    }

    #services #stext p {
        font-size: 14px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    #services #sgrid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    #services #sgrid .servicecard {
        height: auto;
        min-height: 250px;
        padding: 20px;
    }

    #services #sgrid .servicecard img {
        width: 60px;
        height: 40px;
        transform: scale(1);
    }

    #services #sgrid .servicecard h2 {
        font-size: 16px;
    }

    #services #sgrid .servicecard p {
        font-size: 13px;
    }

    #services #expand-services {
        padding: 14px 28px;
        font-size: 14px;
    }

    /* Featured Projects */
    #featured-projects {
        padding: 50px 30px;
        gap: 30px;
    }

    #featured-projects #fp-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    #featured-projects #fp-header h1 {
        font-size: 28px;
    }

    #featured-projects #fp-filters {
        padding: 5px;
    }

    #featured-projects .fp-filter {
        padding: 10px 18px;
        font-size: 13px;
    }

    #featured-projects #fp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    #featured-projects .fp-card .fp-media {
        height: 180px;
    }

    #featured-projects .fp-card .fp-overlay {
        height: 180px;
    }

    #featured-projects .fp-card .fp-overlay p {
        font-size: 12px;
    }

    #featured-projects .fp-card .fp-info {
        padding: 12px 8px;
    }

    #featured-projects .fp-card .fp-badge {
        width: 35px;
        height: 35px;
    }

    #featured-projects .fp-card .fp-badge i {
        font-size: 12px;
    }

    #featured-projects .fp-card .fp-text h3 {
        font-size: 14px;
    }

    #featured-projects .fp-card .fp-text span {
        font-size: 12px;
    }

    /* Process Section */
    #process {
        padding: 50px 30px;
        gap: 40px;
    }

    #process h1 {
        font-size: 28px;
    }

    #process .process-step .step-circle {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    #process .process-step:not(:last-child) .step-circle::after {
        width: 300%;
    }

    #process .process-step .step-content h2 {
        font-size: 13px;
    }

    #process .process-step .step-content p {
        font-size: 12px;
    }

    /* FAQs Section */
    #faqs {
        padding: 50px 30px;
        gap: 30px;
    }

    #faqs #faq-header h1 {
        font-size: 28px;
        width: 60%;
    }

    #faqs #faq-header p {
        font-size: 13px;
        width: 35%;
    }

    #faqs .faq-item {
        padding: 20px;
    }

    #faqs .faq-item .faq-question .faq-num {
        font-size: 13px;
    }

    #faqs .faq-item .faq-question h3 {
        font-size: 14px;
    }

    #faqs .faq-item .faq-answer p {
        font-size: 13px;
    }

    /* Contact Form */
    #contactform {
        padding: 50px 30px;
        gap: 30px;
    }

    #contactform #cf-header h1 {
        font-size: 28px;
    }

    #contactform #cf-header p {
        font-size: 13px;
    }

    #contactform #cf-form-wrapper {
        width: 60%;
        padding: 30px;
    }

    #contactform .cf-toggle-option {
        font-size: 14px;
    }

    #contactform .cf-toggle-option .toggle-indicator {
        width: 20px;
        height: 20px;
    }

    #contactform .cf-field label {
        font-size: 13px;
    }

    #contactform .cf-field input,
    #contactform .cf-field textarea {
        padding: 14px 16px;
        font-size: 14px;
    }

    #contactform .cf-field textarea {
        min-height: 150px;
    }

    #contactform .cf-submit {
        padding: 14px 24px;
        font-size: 14px;
    }

    #contactform #cf-visual {
        width: 40%;
    }

    /* Footer */
    #footer {
        padding: 50px 30px 25px;
    }

    #footer .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    #footer .footer-brand {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    #footer .footer-brand h1 {
        font-size: 22px;
    }

    #footer .footer-brand p {
        font-size: 14px;
        max-width: 400px;
    }

    #footer .footer-socials {
        justify-content: center;
    }

    #footer .footer-socials a {
        width: 40px;
        height: 40px;
    }

    #footer .footer-links {
        width: 100%;
        justify-content: space-around;
    }

    #footer .footer-column h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }

    #footer .footer-column ul li a {
        font-size: 13px;
    }

    #footer .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    #footer .footer-bottom p,
    #footer .footer-bottom-links a {
        font-size: 12px;
    }
}

/* ==================== MOBILE RESPONSIVE (768px) ==================== */
@media screen and (max-width: 768px) {
    /* About Section */
    #about {
        padding: 3rem 20px !important;
    }

    #about #abtop {
        padding: 25px 20px;
    }

    #about #abtop #ableft h1 {
        font-size: 24px;
    }

    #about #abtop #abright p {
        font-size: 14px;
    }

    #about #abbtm {
        flex-direction: column;
    }

    #about #abbtm #core,
    #about #abbtm .abcard:nth-child(2),
    #about #abbtm #elements {
        width: 100%;
    }

    #about #abbtm #elements {
        gap: 20px;
    }
    #about #abbtm .abcard:nth-child(2) {
        height: 250px;
    }

    /* Services Section */
    #services {
        /* margin-top: 2rem; */
        padding: 40px 20px;
    }

    #services #stext h1 {
        font-size: 24px;
    }

    #services #sgrid {
        grid-template-columns: 1fr;
    }

    #services #sgrid .servicecard {
        min-height: 200px;
    }
    
    /* Hide extra cards on mobile only */
    #services #sgrid .servicecard.hidden-card {
        display: none;
    }
    
    #services #sgrid.expanded .servicecard.hidden-card {
        display: flex;
    }
    
    .servicecard {
        transform: translateY(50px) translateX(0);
        opacity: 0;
    }

    #services #expand-services {
        display: flex; /* Show on mobile */
        padding: 12px 24px;
        font-size: 13px;
    }

    /* Featured Projects */
    #featured-projects {
        padding: 40px 20px;
    }

    #featured-projects #fp-header h1 {
        font-size: 24px;
    }

    #featured-projects #fp-filters {
        flex-wrap: wrap;
        border-radius: 20px;
        gap: 8px;
    }

    #featured-projects .fp-filter {
        padding: 10px 16px;
        font-size: 12px;
    }

    #featured-projects #fp-grid {
        grid-template-columns: 1fr;
    }

    #featured-projects .fp-card .fp-media {
        height: 220px;
    }

    #featured-projects .fp-card .fp-overlay {
        height: 220px;
    }

    #featured-projects .fp-card .fp-overlay p {
        font-size: 13px;
    }

    /* Project Modal Mobile */
    .project-modal .modal-content {
        flex-direction: column;
        max-height: 95vh;
        width: 95%;
    }

    .project-modal .modal-media {
        width: 100%;
        height: 300px;
        flex-shrink: 0;
    }

    .project-modal .modal-details {
        width: 100%;
        padding: 25px;
        gap: 15px;
    }

    .project-modal .modal-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .project-modal .modal-close i {
        font-size: 16px;
    }

    .project-modal .modal-category {
        font-size: 11px;
        padding: 6px 12px;
    }

    .project-modal .modal-year {
        font-size: 13px;
    }

    .project-modal .modal-title {
        font-size: 22px;
    }

    .project-modal .modal-description {
        font-size: 14px;
    }

    .project-modal .meta-label {
        font-size: 11px;
    }

    .project-modal .meta-value {
        font-size: 14px;
    }

    /* Process Section */
    #process {
        padding: 40px 20px;
    }

    #process h1 {
        font-size: 24px;
    }

    #process #process-steps {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    #process .process-step {
        width: 100%;
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }

    #process .process-step .step-circle {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 16px;
    }

    #process .process-step:not(:last-child) .step-circle::after {
        top: 100%;
        left: 50%;
        width: 2px;
        height: var(--after-width);
        transform: translateX(-50%);
    }

    #process .process-step .step-content {
        text-align: left;
        padding-top: 5px;
    }

    #process .process-step .step-content h2 {
        font-size: 14px;
    }

    #process .process-step .step-content p {
        font-size: 13px;
    }

    /* FAQs Section */
    #faqs {
        padding: 40px 20px;
    }

    #faqs #faq-header {
        flex-direction: column;
        gap: 15px;
    }

    #faqs #faq-header h1 {
        font-size: 24px;
        width: 100%;
    }

    #faqs #faq-header p {
        font-size: 13px;
        width: 100%;
        text-align: left;
    }

    #faqs #faq-content {
        flex-direction: column;
        gap: 15px;
    }

    #faqs .faq-item {
        padding: 18px;
    }

    #faqs .faq-item .faq-question h3 {
        font-size: 13px;
    }

    /* Contact Form */
    #contactform {
        padding: 40px 20px;
    }

    #contactform #cf-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #contactform #cf-header h1 {
        font-size: 24px;
    }

    #contactform #cf-header p {
        border-left: none;
        padding-left: 0;
        font-size: 13px;
    }

    #contactform #cf-content {
        flex-direction: column;
        min-height: auto;
    }

    #contactform #cf-form-wrapper {
        width: 100%;
        padding: 25px;
    }

    #contactform #cf-toggle {
        gap: 25px;
    }

    #contactform #cf-visual {
        width: 100%;
        min-height: 200px;
        order: -1;
    }

    /* Footer */
    #footer {
        padding: 40px 20px 20px;
    }

    #footer .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }

    #footer .footer-column {
        width: 45%;
    }

    #footer .footer-socials a svg {
        color: #f5f5f5;
        font-size: 16px;
    }

    #nav .nav-links a {
        font-size: 2.5rem;
    }
    #featured-projects .fp-card .fp-badge svg{
        font-size: 1rem;
    }
    #faqs .faq-item .faq-question svg{
        font-size: 0.8rem;
    }

}

/* ==================== SMALL MOBILE RESPONSIVE (480px) ==================== */
@media screen and (max-width: 480px) {
    /* About Section */
    #about #abtop #ableft h1 {
        font-size: 20px;
    }

    #about #abtop #abright p {
        font-size: 13px;
    }

    #about #abbtm #core h1 {
        font-size: 22px;
    }

    .btnelem {
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Services Section */
    #services #stext h1 {
        font-size: 20px;
    }

    #services #sgrid .servicecard h2 {
        font-size: 15px;
    }

    /* Featured Projects */
    #featured-projects #fp-header h1 {
        font-size: 20px;
    }

    #featured-projects #fp-grid {
        /* grid-auto-rows: 250px; */
    }

    /* Process Section */
    #process h1 {
        font-size: 20px;
    }

    #process .process-step .step-circle {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 14px;
    }

    /* FAQs Section */
    #faqs #faq-header h1 {
        font-size: 20px;
    }

    #faqs .faq-item .faq-question h3 {
        font-size: 12px;
    }

    #faqs .faq-item .faq-answer p {
        font-size: 12px;
        padding-left: 15px;
    }

    /* Contact Form */
    #contactform #cf-header h1 {
        font-size: 20px;
    }

    #contactform #cf-form-wrapper {
        padding: 20px;
    }

    #contactform .cf-toggle-option {
        font-size: 13px;
    }

    /* Footer */
    #footer .footer-brand h1 {
        font-size: 18px;
    }

    #footer .footer-brand p {
        font-size: 13px;
    }

    #footer .footer-column {
        width: 100%;
        text-align: center;
    }

    #footer .footer-column ul {
        align-items: center;
    }
}

/* 
content: ''
position: absolute;
position-anchor: --card;
position-area: top right;
translate:-50% 50%;
background: #6c4cff;
color: white;
font-size: 2rem;
font-weight: bold;
height: 2em;
width: 2em;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
transition: 200ms;
*/
