* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --bs-primary-bg: #1f242d;
    --bs-secondary-bg: #323946;
    --bs-light: #fff;
    --bs-primary: #f96d15;
}

.text-light {
    color: var(--bs-light) !important;
}

.bg-light {
    background: var(--bs-light) !important;
    color: var(--bs-primary-bg) !important;
}

html {
    font-size: 65%;
}

body {
    background: var(--bs-primary-bg);
    color: var(--bs-light);
}

section {
    min-height: 100vh;
    padding: 2rem 8%;
}

section h1 > span,
section h2 > span,
section h3 > span,
section h4 > span,
section h5 > span {
    color: var(--bs-primary);
}

section > h2 {
    margin-bottom: 4rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 8%;
    background: var(--bs-primary-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: 2px solid rgba(0,0,0,0.2);
}

.logo {
    font-size: 2.4rem;
    color: var(--bs-light);
    font-weight: bolder;
    cursor: default;
}

.navbar a {
    font-size: 1.6rem;
    color: var(--bs-light);
    margin-left: 4rem;
    transition: 300ms;
    display: inline-block;
}

.navbar a:hover,
.navbar a.active {
    color: var(--bs-primary);
    transform: scale(1.1) !important;
}

.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home > * {
    flex: 1;
}

.home-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-img img {
    /* border-radius: 50%; */
    width: 320px;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: bold;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: bolder;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    margin: 2rem 1rem 2rem 0;
}

.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    background: var(--bs-secondary-bg);
}

.about-img img {
    width: 320px;
    border-radius: 2rem;
    transition: all 1s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.about-img img:hover {
    transform: scale(1.1);
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
    margin-bottom: unset;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 3rem 0 3rem;
}

.heading {
    text-align: center;
    font-size: 4rem;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box {
    flex: 1 1 32rem;
    background: var(--bs-secondary-bg);
    padding: 3rem 2rem;
    text-align: center;
    border: 2px solid var(--bs-primary-bg);
    border-radius: 2rem;
    transition: 0.3s ease;
}

.services-container .services-box:hover {
    border: 2px solid var(--bs-primary);
    transition: 0.3s ease  !important;
    transform: scale(1.02) !important;
}

.services-box i {
    font-size: 8rem;
    color: var(--bs-primary);
}

.services-box h3 {
    font-size: 2.4rem;
    margin: 2rem 0;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.portfolio {
    background: var(--bs-secondary-bg);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.4rem;
}

.portfolio-container .portfolio-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bs-primary-bg);
    overflow: hidden;
    display: flex;
}

.portfolio-box img {
    width: 100%;
    min-height: 280px;
    transition: 0.3s ease;
}
.portfolio-box:hover img {
    transform: scale(1.02);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), var(--bs-primary));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: 0.3s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 3rem;
}

.portfolio-layer p {
    font-size: 1.6rem;
    margin: 16px 0 24px;
}

.contact .form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 3rem;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 8%;
    background: var(--bs-secondary-bg);
}

.footer-text p {
    font-size: 1.6rem;
}

.form input.form-control,
.form textarea.form-control {
    width: 100%;
    padding: 1.4rem;
    font-size: 1.6rem;
    color: var(--bs-light);
    background: var(--bs-secondary-bg);
    border-radius: 0.8rem;
    margin: 0.8rem 0;
}

.form .form-inline {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.4rem;
}

.form .form-inline > * {
    flex: 1;
}

.form .btn,
.form button {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    min-height: 40px;
    padding: 8px 24px;
    background: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--bs-primary);
    font-size: 1.6rem;
    color: var(--bs-secondary-bg);
    font-weight: bold;
    transition: .3s ease;
}

.btn:hover {
    box-shadow: none;
    background: transparent;
    color: var(--bs-primary);
    cursor: pointer;
}

.btn.btn-outline {
    background: transparent;
    color: var(--bs-primary);
    box-shadow: none;
}

.btn.btn-outline:hover {
    background: var(--bs-primary);
    box-shadow: 0 0 1rem var(--bs-primary);
    color: var(--bs-secondary-bg);
}

.btn.btn-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    padding: unset;
}

#btn-menu {
    color: var(--bs-light);
    font-size: 2rem;
    display: none;
}

/* custom scrollbar */
::-webkit-scrollbar {
	width: 20px;
}
::-webkit-scrollbar-track {
	background-color: transparent;
}
::-webkit-scrollbar-thumb {
	background-color: var(--bs-primary);
	border-radius: 20px;
	border: 4px solid transparent;
	background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
	background-image: linear-gradient(var(--bs-primary), red);
}

::-webkit-scrollbar:horizontal{
	height: 8px;
}
::-webkit-scrollbar-thumb:horizontal {
	background-color: var(--bs-primary);
	border-radius: 20px;
	border: 0;
	background-clip: content-box;
}
::-webkit-scrollbar-thumb:horizontal:hover {
	background-image: linear-gradient(var(--bs-primary), red);
}

/* Breakpoints */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }

    section.home h3 :has(.typed-strings) {
        display: block;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .services,
    .portfolio {
        padding-bottom: 8rem;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #btn-menu {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 10%;
        background: var(--bs-primary-bg);
        border-top: 2px solid rgba(0,0,0,0.2);
        box-shadow: 0 0.4rem 1rem rgba(0,0,0,0.2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
        justify-content: space-evenly;
    }

    .home > * {
        flex: unset;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
        justify-content: space-evenly;
    }

    .about img {
        width: 70wh;
        margin-top: 4rem;
    }

    .service h2,
    .portfolio h2 {
        margin-bottom: 3rem;
    }

    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-box img {
        min-height: 160px;
    }
}

@media (max-width: 617px) {
    .portfolio-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 60%;
    }

    .form .form-inline {
        flex-direction: column;
        gap: unset;
    }
}

@media (max-width: 365px) {
    .home-img img,
    .about-img img {
        width: 90vw;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        text-align: center;
        margin-top: 2rem;
    }
}

/* custom cursor style */
body {
  cursor: none;
}
.cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 50%;
    border: 2px solid var(--bs-primary);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
}
.cursor-dot {
    border-radius: 50%;
    position: fixed;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    background-color: var(--bs-primary);
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
  }

.cursor-invert {
    background: white;
    mix-blend-mode: difference; 
    border: none;
}