/* Uiverse toggle switch styles (wonderful-lizard-73) */
.ui-switch {
    --primary: #080808;
    --primary-light: #e0e0e0;
    --circle: #fff;
    --duration: .3s;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: inline-block;
    position: relative;
    width: 52px;
    height: 28px;
}

.ui-switch input {
    display: none;
}

.ui-switch .slider {
    background: var(--primary-light);
    border-radius: 34px;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: background var(--duration);
    box-shadow: var(--shadow);
}

.ui-switch .circle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--circle);
    border-radius: 50%;
    transition: transform var(--duration), background var(--duration);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ui-switch input:checked+.slider {
    background: var(--primary);
}

.ui-switch input:checked+.slider .circle {
    transform: translateX(24px);
    background: #0e0d0d;
}

.ui-switch .slider {
    box-sizing: border-box;
}

.ui-switch:active .circle {
    width: 26px;
}

.ui-switch .slider:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #080808;
    opacity: 0;
    transition: opacity var(--duration);
}

.ui-switch input:checked+.slider:before {
    opacity: 1;
}

.ui-switch .slider:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity var(--duration);
}

.ui-switch input:checked+.slider:after {
    opacity: 1;
}

/* Light mode styles */
body.light-mode {
    background: #f5f5f5;
    color: #222;
}

body.light-mode #header {
    background-image: url(images/background_new.png);
}

body.light-mode .about-col-2 {
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode .services-list div {
    background: #fff;
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode .work {
    color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode nav h1 span {
    font-family: myFont;
    color: #0162b1;
}

body.light-mode nav,
body.light-mode .sub-title,
body.light-mode .tab-links.active-link,
body.light-mode .btn,
body.light-mode .btn2 {
    color: #222;
}

body.light-mode .fa-solid,
body.light-mode .fa-brands,
body.light-mode .fa-regular {
    color: #222;
}

body.light-mode .header-text span {
    color: #0162b1;
}

body.light-mode .tab-links.active-link {
    border-bottom: 2px solid #0162b1;
}

body.light-mode .btn,
body.light-mode .btn2 {
    background: #0162b1;
    color: #fff;
    border: 1px solid #0162b1;
}

body.light-mode .btn2:hover {
    background: #0162b1;
}

body.light-mode .work .layer {
    background: rgba(255, 255, 255, 0.95);
    color: #222;
}

body.light-mode .copyright {
    background: #e0e0e0;
    color: #222;
}

body.light-mode nav ul li a {
    color: #222;
}

body.light-mode nav ul li a::after {
    background: #0162b1;
}

body.light-mode .tab-contents ul li span {
    color: #0162b1;
}

body.light-mode .services-list div:hover {
    background: #0162b1;
    color: #fff;
}

body.light-mode .social-icons a {
    color: #222;
}

body.light-mode .social-icons a:hover {
    color: #0162b1;
}

body.light-mode .btn.btn2 {
    background: #0162b1;
    color: #fff;
}

body.light-mode form input,
body.light-mode form textarea {
    background: #e0e0e0;
    color: #222;
}

body.light-mode .contact-right p i {
    color: #0162b1;
}

body.light-mode .layer a {
    color: #0162b1;
    background: #fff;
}

body.light-mode .work:hover .layer {
    background: rgba(0, 103, 187, 0.61);
    color: #fff;
}

body.light-mode .btn:hover {
    background: #0162b1;
    color: #fff;
}

body.light-mode .btn2:hover {
    background: #0162b1;
    color: #fff;
}

body.light-mode .tab-links::after {
    background: #0162b1;
}

body.light-mode .tab-links.active-link::after {
    background: #0162b1;
}

body.light-mode .social-icons a:hover {
    color: #0162b1;
    transform: translateY(-5px);
}

body.light-mode .header-text h1 span {
    color: #0162b1;
}

body.light-mode .about-col-1 img {
    border: 2px solid #0162b1;
}

body.light-mode .btn:focus,
body.light-mode .btn2:focus {
    outline: 2px solid #0162b1;
}

body.light-mode #theme-toggle {
    color: #222;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scrollbar-width: none;
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #fff;
}

#header {
    width: 100%;
    height: 100vh;
    background-image: url(images/background_new.png);
    background-size: cover;
    background-position: center;
}

.container {
    padding: 10px 10%;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 10%;
    z-index: 100;
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* fallback for blur */
    transition: background 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

@font-face {
    font-family: myFont;
    src: url(fonts/Avengers\ 3D.ttf);
}

nav h1 {
    font-family: myFont;
    font-size: 45px;
}

nav h1 span {
    font-family: myFont;
    color: #ff004f;
}

.logo {
    width: 140px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    margin-top: 25%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: #ff004f;
}

#about {
    padding: 88px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-2 {
    flex-basis: 60%;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
}

.sub-title {
    font-size: 45px;
    font-weight: 600;
    color: #fff;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: #b54769;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: #262626;
    padding: 40PX;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover {
    background: #ff004f;
    transform: translateY(-10px);
}

#projects {
    padding: 50px 0;
}

.work-list {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    height: fit-content;
    width: fit-content;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #ff004f);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    font-size: 12px;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 15px;
    color: #ff004f;
    text-decoration: none;
    font-size: 15px;
    line-height: 50px;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover {
    background: #ff004f;
}

.contact-left {
    flex-basis: 55%;
}

.contact-right {
    flex-basis: 40%;
    padding-top: 100px;
}

.contact-right p {
    margin-top: 30px;
}

.contact-right p i {
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 10px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

.btn.btn2 {
    display: inline-block;
    background: #ff004f;
    padding: 14px 30px;
}

.btn3 {
    display: block;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
    background: #000000;
    padding: 14px 30px;
}
.btn3:hover {
    background: #ffffff;
    color: #000000;
}

.contact-left form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.contact-left a {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: -10px;
    cursor: pointer;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

#msg {
    color: #61b752;
    margin-top: -40px;
    display: block;
}

nav .fa-solid {
    display: none;
}

@media only screen and (max-width: 600px) {
    #header {
        background-image: url(images/phone-background.png);
    }

    body.light-mode #header {
        background-image: url(images/phone-background.png);
    }

    .header-text {
        padding: 15px;
        margin-top: 100%;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .fa-solid {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav h1{
        margin-right: 120px;
    }

    /* Light mode mobile menu */
    body.light-mode nav ul {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    body.light-mode nav ul li a {
        color: #222;
    }
    body.light-mode nav ul .fa-solid {
        color: #222;
    }

    /* Dark mode mobile menu */
    body.dark-mode nav ul {
        background: #222;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }
    body.dark-mode nav ul li a {
        color: #fff;
    }
    body.dark-mode nav ul .fa-solid {
        color: #fff;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-2 {
        margin-bottom: 30px;
    }

    .about-col-1 {
        font-size: 14px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    .contact-right {
        margin-top: -100px;
    }

    .work-list {
        grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
        grid-gap: 40px;
        margin-top: 50px;
    }

    .copyright {
        font-size: 14px;
    }

    /* Ensure toggle switch is visible in mobile menu */
    #sidemenu .ui-switch {
        margin-left: 20px;
        margin-top: 10px;
    }
}

/* Initially hidden additional works */
.hidden {
    display: none;
}

.work .button-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}


/* Locked Tab Style */
.locked-tab {
    cursor: pointer;
    opacity: 0.7;
}

.locked-tab i {
    margin-left: 8px;
}

/* Project Tabs using sub-title */
.projects-tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.project-tab {
    cursor: pointer;
    margin: 0;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #ababab;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.project-tab:hover {
    color: #fff;
}

.project-tab.active-project {
    color: #fff;
}

.hidden-section {
    display: none;
}

.active-project-tab {
    display: grid !important;
}

.locked-tab {
    opacity: 0.7;
}

.locked-tab.active-project {
    opacity: 1;
}

/* Modal */
.passcode-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.passcode-box {
    background: #111;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    position: relative;
}

.passcode-box input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
    border: none;
}

.passcode-box button {
    background: #ff004f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.passcode-box button:hover {
    background: #e60045;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 18px;
}

body.light-mode .project-tab {
    color: #4a4a4a;
}

body.light-mode .project-tab:hover {
    color: #222;
}

body.light-mode .project-tab.active-project {
    color: #000000;
}

body.light-mode .passcode-box {
    background: #fff;
    color: #222;
}

body.light-mode .passcode-box button {
    background: #0162b1;
}

.contact-link{
    color: #ff004f;
}
body.light-mode .contact-link{
    color: #0162b1;
}