/*========  WPFREELANCE.in ========*/

/* Global Styles */
body {
    font-family: "Roboto", sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Laila", serif;
    font-weight: 300;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Typography Helpers */
.section-title {
    margin-bottom: 1rem;
    font-weight: 700;
    color: #333;
}

.section-subtitle {
    font-size: 16px;
    letter-spacing: 1px;
    word-spacing: 3px;
    font-weight: 300;
    line-height: 28px;
    margin-bottom: 2rem;
}

.wpf_colcontent {
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 28px;
    margin-bottom: 15px;
}

strong {
    font-weight: 500 !important;
    color: #00AFDE;
}

.divider {
    background: #d0d0d0;
    height: 1px;
    margin-bottom: 20px;
    width: 35%;
}


.text-primary {
    color: #00AFDE !important;
}

/* Buttons */
.wpf_btn {
    display: inline-block;
    background: #5cb8d6;
    border: 2px solid #5cb8d6;
    color: #fff;
    font-size: 17px;
    letter-spacing: 1px;
    padding: 12px 40px;
    text-transform: uppercase;
}

.wpf_btn:hover {
    background: transparent;
    color: #5cb8d6;
}

.wpf_btn2 {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 12px 40px;
    text-transform: uppercase;
}

.wpf_btn2:hover {
    background: #fff;
    color: #00ABE3;
}

/* Navbar */
.navbar-light .navbar-nav .nav-link {
    color: #000;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 0 15px;
    text-transform: uppercase;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #00AFDE;
}

/* Header */
header {
    height: 100vh;
    position: relative;
    background: #fff;
    padding-top: 60px;
    /* Offset for fixed nav */
}

/* Rotating Text (cd-headline) */
.cd-headline {
    font-size: 3rem;
    line-height: 1.2;
    margin-top: 1em;
}

@media only screen and (min-width: 768px) {
    .cd-headline {
        font-size: 4.4rem;
        font-weight: 300;
    }
}

.cd-words-wrapper {
    display: inline-block;
    position: relative;
    text-align: center;
}

.cd-words-wrapper b {
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    font-weight: 500 !important;
    color: #00AFDE;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
}

.cd-words-wrapper b.is-visible {
    position: relative;
}

.no-js .cd-words-wrapper b {
    opacity: 0;
}

.no-js .cd-words-wrapper b.is-visible {
    opacity: 1;
}

/* Rotate-1 Effect */
.cd-headline.rotate-1 .cd-words-wrapper {
    perspective: 300px;
}

.cd-headline.rotate-1 b {
    opacity: 0;
    transform-origin: 50% 100%;
    transform: rotateX(180deg);
}

.cd-headline.rotate-1 b.is-visible {
    opacity: 1;
    transform: rotateX(0deg);
    animation: cd-rotate-1-in 1.2s;
}

.headline-static {
    font-size: 40px;
    display: block;
    line-height: 1.4;
}

.headline-static strong {
    font-size: 3rem;
    /* Mobile size match */
    display: block;
    /* Separate line */
    line-height: 1.2;
    margin: 10px 0;
}

@media only screen and (min-width: 768px) {
    .headline-static strong {
        font-size: 4.4rem;
        /* Desktop size match */
    }
}

/* Tablet & Mobile Adjustments */
@media only screen and (max-width: 767px) {
    .cd-headline {
        font-size: 2rem;
        /* Reduced to fit mobile */
    }

    .headline-static strong {
        font-size: 2rem;
    }

    .headline-static {
        font-size: 24px;
        /* Slightly smaller "Hello, We are" for balance */
    }

    /* Force centering and width on mobile override JS calculation */
    .cd-words-wrapper {
        width: 100% !important;
        display: block !important;
        text-align: center;
    }

    .cd-words-wrapper b {
        white-space: normal;
        display: block;
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
        text-align: center;
    }

    .cd-words-wrapper b.is-visible {
        position: relative;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .cd-headline {
        font-size: 3.5rem;
        /* Tablet adjustment */
    }

    .headline-static strong {
        font-size: 3.5rem;
    }
}

.cd-headline.rotate-1 b.is-hidden {
    transform: rotateX(180deg);
    animation: cd-rotate-1-out 1.2s;
}

@keyframes cd-rotate-1-in {
    0% {
        transform: rotateX(180deg);
        opacity: 0;
    }

    35% {
        transform: rotateX(120deg);
        opacity: 0;
    }

    65% {
        opacity: 0;
    }

    100% {
        transform: rotateX(360deg);
        opacity: 1;
    }
}

@keyframes cd-rotate-1-out {
    0% {
        transform: rotateX(0deg);
        opacity: 1;
    }

    35% {
        transform: rotateX(-40deg);
        opacity: 1;
    }

    65% {
        opacity: 0;
    }

    100% {
        transform: rotateX(180deg);
        opacity: 0;
    }
}

/* Scroll Down Icon */
.scroll-down {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    left: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


/* Parallax */
.parallax {
    background-image: linear-gradient(rgba(0, 177, 227, 0.6), rgba(0, 177, 227, 0.6)), url("../images/wpf-inhouse-web-design.jpg");
    background-attachment: fixed;
    height: 300px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.parallax-1 {
    background-image: linear-gradient(rgba(0, 177, 227, 0.6), rgba(0, 177, 227, 0.6)), url("../images/parallax-1.jpg");
}

.parallax-2 {
    background-image: linear-gradient(rgba(0, 177, 227, 0.6), rgba(0, 177, 227, 0.6)), url("../images/parallax-2.jpg");
}

.parallax-3 {
    background-image: linear-gradient(rgba(0, 177, 227, 0.6), rgba(0, 177, 227, 0.6)), url("../images/parallax-3.jpg");
}

/* Services */
.service-box {
    padding: 20px;
    height: 100%;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-text {
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
}


/* Portfolio Section - Webteck Style */
.portfolio-filter {
    margin-bottom: 40px;
    text-align: center;
}

.portfolio-filter button {
    background: transparent;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 15px;
    padding-bottom: 5px;
    color: #555;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
}

.portfolio-filter button:hover,
.portfolio-filter button.active {
    color: #00AFDE;
}

.portfolio-filter button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00AFDE;
}

.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    margin-bottom: 30px;
}

.portfolio-wrap img {
    transition: transform 0.6s ease;
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.portfolio-wrap:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 175, 222, 0.95), rgba(0, 175, 222, 0.8));
    padding: 30px 20px;
    transition: all 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    opacity: 0;
}

.portfolio-wrap:hover .portfolio-info {
    bottom: 0;
    opacity: 1;
}

.portfolio-info h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    font-family: "Laila", serif;
}

.portfolio-info p {
    color: #e6f7ff;
    font-size: 12px;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-links a {
    color: #00AFDE;
    background: #fff;
    width: 45px;
    height: 45px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
    font-size: 18px;
}

.portfolio-wrap:hover .portfolio-info h4,
.portfolio-wrap:hover .portfolio-info p,
.portfolio-wrap:hover .portfolio-links a {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-links a:hover {
    background: #333;
    color: #fff;
}


/* Carousel / Team */
.carousel_item {
    background: #fff;
    border: none;
    border-radius: 15px;
    padding: 40px 20px;
    transition: all 0.3s ease;
    margin: 15px;
    /* Margin for shadow to show */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    position: relative;
    overflow: hidden;
}

.carousel_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel_item img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border-radius: 50%;
    border: 5px solid #f9fafb;
    /* Light border/ring */
    box-shadow: 0 0 0 1px #eee;
    /* Outline */
}

.name {
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
    font-family: inherit;
    /* Use default font */
}

.wpf_coltitle {
    font-weight: 500;
    text-transform: uppercase;
    color: #00AFDE;
    /* Brand color for designation */
    font-size: 0.85rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Team Icons */
.team_icon {
    margin-top: 10px;
}

.team_icon a {
    color: #555;
    display: inline-block;
    padding: 0 12px;
    font-size: 18px;
    transition: all 0.3s;
    border: none;
    /* Removed border */
}

.team_icon a:hover {
    color: #00AFDE;
    background: none;
    border-color: transparent;
    transform: scale(1.1);
}


/* Progress Bar */
.circle {
    width: 100%;
    margin: 0 auto;
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.circle canvas {
    vertical-align: middle;
}

.circle div {
    position: absolute;
    top: 50%;
    /* Centering fix */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    line-height: normal;
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.circle p {
    margin-top: 10px;
    font-weight: 500;
    color: #555;
}


/* Contact */
.contact_details_hd {
    font-family: "Laila", serif;
    font-size: 18px;
    color: #555;
    font-weight: bold;
}

.form-control {
    border-radius: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    border-color: #fff;
    color: #fff;
}


/* Footer */
footer {
    background: #000;
    padding: 4rem 0 2rem;
    color: #D0D0D0;
}

footer h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li a {
    color: #D0D0D0;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

footer ul li a:before {
    content: "\f054";
    /* chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    font-size: 10px;
    top: 5px;
}

footer ul li a:hover {
    color: #fff;
}

.social a {
    display: inline-block;
    background: #d0d0d0;
    color: #000;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social a:hover {
    background: #fff;
    color: #00ABE3;
}


/* Back to Top */
.cd-top {
    display: inline-block;
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E") no-repeat center 50%;
    /* Embedded SVG Arrow */
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s 0s, visibility 0s .3s;
    z-index: 1030;
    border-radius: 4px;
}

.cd-top.cd-is-visible {
    visibility: visible;
    opacity: 1;
}

.cd-top.cd-fade-out {
    opacity: 0.5;
}

.cd-top:hover {
    background-color: #00ABE3;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }

    .parallax {
        background-attachment: scroll;
        /* Mobile parallax fix */
    }
}