* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: "Barlow", sans-serif;
    cursor: default;
}

:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: White;
    --main-color: #00ffee;
}

html {
    font-size: 60%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease,
        filter 0.2s ease;
    mix-blend-mode: difference;
}

.cursor.active {
    width: 21px;
    height: 21px;
}

/* ===== KORTY PRELOADER ===== */
#korty-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Full viewport */
    background-color: #000;
    /* Pitch black curtain */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* This creates the smooth "Curtain Lift" effect */
    transition: transform 1.2s cubic-bezier(0.83, 0, 0.17, 1);
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* The small "Cam" text */
.sub-text {
    font-family: "Barlow", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #666;
    text-transform: uppercase;
}

/* The Main Title */
.korty-title {
    font-family: "Abril Fatface", cursive;
    /* The new font */
    font-size: 6rem;
    color: #333;
    /* Start dark */
    line-height: 1;
}

/* Wave Animation for Letters */
.korty-title span {
    display: inline-block;
    color: #333;
    animation: wave 1.5s infinite ease-in-out;
}

/* Stagger delays for the wave effect */
.korty-title span:nth-child(1) {
    animation-delay: 0s;
}

.korty-title span:nth-child(2) {
    animation-delay: 0.1s;
}

.korty-title span:nth-child(3) {
    animation-delay: 0.2s;
}

.korty-title span:nth-child(4) {
    animation-delay: 0.3s;
}

.korty-title span:nth-child(5) {
    animation-delay: 0.4s;
}

.korty-title span:nth-child(6) {
    animation-delay: 0.5s;
}

.korty-title span:nth-child(7) {
    animation-delay: 0.6s;
}

.korty-title span:nth-child(8) {
    animation-delay: 0.7s;
}

@keyframes wave {

    0%,
    100% {
        color: #333;
        transform: translateY(0);
        text-shadow: none;
    }

    50% {
        color: #fff;
        transform: translateY(-5px);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

/* Class to trigger the slide up */
#korty-loader.slide-up {
    transform: translateY(-100%);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .korty-title {
        font-size: 4rem;
    }
}

/* Page reveal effect */
body.loaded #preloader {
    opacity: 0;
    pointer-events: none;
    transition: 1s ease;
}

body.loaded section,
body.loaded header,
body.loaded footer {
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 3rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.4s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    text-shadow: 0 0 25px var(--main-color);
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-foreground video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* Dark overlay */
.video-background .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.9)
  );
  z-index: 2;
  pointer-events: none;
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span {
    color: var(--main-color);
}

.logo span {
    color: var(--main-color);
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home_img {
    border-radius: 50%;
}

.home_img img {
    position: relative;
    top: 3rem;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home_img img:hover {
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color),
        0 0 100px var(--main-color);
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 4.5rem;
    width: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.4s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    cursor: pointer;
}

.social-icons a i {
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: #000;
    position: absolute;
    width: calc(100% + 8px);
    height: 110%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words {

    0%,
    20% {
        content: "Frontend Designer";
    }

    21%,
    40% {
        content: "Frontend Developer";
    }

    41%,
    60% {
        content: "Backend Developer";
    }

    61%,
    80% {
        content: "Web Designer";
    }

    81%,
    100% {
        content: "Full-Stack Developer";
    }
}

@keyframes typing {

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}

/*----- Education -----*/
.heading {
    font-size: 7rem;
    text-align: center;
    margin: 5rem 0;
}

.education {
    padding: 100px 15px;
    background: var(--second-bg-color);
}

.education h2 {
    margin-bottom: 5rem;
}

.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10 var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
    font-size: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
    cursor: pointer;
}

.timeline-content a span:hover {
    transform: scale(1.09);
    cursor: pointer;
}

.timeline-content p {
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    cursor: pointer;
}

/* ===== Timeline Scroll Animation ===== */
.timeline-item {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-in-out;
}

.timeline-item:nth-child(odd) {
    transform: translateX(-100px);
}

.timeline-item.show {
    opacity: 1;
    transform: translateX(0);
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}

/*----- Services -----*/
.services {
    background: transparent;
    color: black;
}

.services h2 {
    margin-bottom: 5rem;
    color: white;
}

.services_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.service_box {
    background-color: var(--main-color);
    height: 320px;
    border-radius: 3rem;
    border: 5px solid transparent;
}

.service_box:hover {
    background: white;
    color: black;
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

.service_box .service_info {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 280px;
    justify-content: left;
    align-items: baseline;
    padding: 5rem 5rem;
}

.service_info h4 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 2;
}

.service_info p {
    font-size: 1.6rem;
    font-weight: 600;
    max-height: 100px;
    line-height: 1.7;
    margin: auto;
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-150px);
    transition: all 0.6s ease-in-out;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.service_box:nth-child(2) {
    transition-delay: 100ms;
}

.service_box:nth-child(3) {
    transition-delay: 200ms;
}

.service_box:nth-child(4) {
    transition-delay: 300ms;
}

/* ========== PROJECTS SECTION ========== */

.projects-section {
    position: relative;
    /* We make this very tall so we have "room" to scroll vertically */
    height: 400vh;
    background: var(--bg-color);
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    width: 130%;
    margin: 0 -100px;
    height: 100vh;
    /* Takes up full viewport */
    overflow: hidden;
    /* Hides the cards that are off-screen right */
    display: flex;
    align-items: center;
    /* Vertically center content */
}

.projects-header {
    flex-shrink: 0;
    /* Prevents header from shrinking */
    padding-left: 1%;
    width: 300px;
    z-index: 1;
}

.projects-header h2 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.projects-sub {
    padding-top: 10px;
    font-size: 1.4rem;
}

.projects-header .arrow {
    color: var(--main-color);
    font-size: 4.5rem;
}

.projects-container {
    display: flex;
    flex-direction: row;
    gap: 10rem;
    z-index: 100;
    padding-left: 100px;
    /* Space between header and first card */

    /* Important: We use JS to animate this transform */
    transform: translateX(0);
    will-change: transform;
    /* Optimization for smooth animation */
    transition: transform 0.2s linear;
}

/* CARD STYLE (Kept mostly the same, removed absolute positioning) */
.project-card {
    min-width: 350px;
    /* Made slightly wider for better desktop view */
    height: 400px;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    transition: 0.4s ease;
    position: relative;
    flex-shrink: 0;
    /* Prevents cards from squishing */
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed to cover for better fill */
    filter: brightness(50%);
    transition: 0.4s ease;
    cursor: pointer;
}

.project-card:hover img {
    filter: brightness(25%);
    transform: scale(1.04);
}

/* TEXT OVERLAY */
.project-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    z-index: 2;
    cursor: pointer;
}

.project-info h3 {
    font-size: 2.4rem;
    margin-bottom: 5px;
}

.stack {
    font-size: 1.4rem;
    opacity: 0.8;
}

.desc {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.5s ease;
    font-size: 1.4rem;
    margin-top: 10px;
}

.project-card:hover .desc {
    max-height: 200px;
    opacity: 1;
}

.project-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
}

/* ===== PROJECTS SECTION RESPONSIVE ===== */
@media (max-width: 1024px) {
    .projects-section {
        height: auto;
        padding: 8rem 5%;
    }

    .sticky-wrapper {
        position: relative;
        width: 100%;
        margin: 0;
        height: auto;
        overflow: visible;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-header {
        width: 100%;
        padding-left: 0;
        margin-bottom: 4rem;
    }

    .projects-header h2 {
        font-size: 4rem;
    }

    .projects-header .arrow {
        font-size: 3.5rem;
    }

    .projects-sub {
        font-size: 1.6rem;
    }

    .projects-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        padding-left: 0;
        transform: none !important;
        width: 100%;
    }

    .project-card {
        min-width: auto;
        width: 100%;
        height: 350px;
    }

    .project-info h3 {
        font-size: 2rem;
    }

    .stack {
        font-size: 1.3rem;
    }

    .desc {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 6rem 4%;
    }

    .projects-header h2 {
        font-size: 3.2rem;
        line-height: 1.2;
    }

    .projects-header .arrow {
        font-size: 2.8rem;
    }

    .projects-sub {
        font-size: 1.4rem;
        padding-top: 8px;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-card {
        height: 300px;
        border-radius: 14px;
    }

    .project-info {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }

    .project-info h3 {
        font-size: 1.8rem;
    }

    .stack {
        font-size: 1.2rem;
    }

    .desc {
        font-size: 1.2rem;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 5rem 3%;
    }

    .projects-header {
        margin-bottom: 3rem;
    }

    .projects-header h2 {
        font-size: 2.6rem;
    }

    .projects-header .arrow {
        font-size: 2.2rem;
    }

    .projects-sub {
        font-size: 1.2rem;
    }

    .project-card {
        height: 260px;
        border-radius: 12px;
    }

    .project-info h3 {
        font-size: 1.6rem;
        margin-bottom: 3px;
    }

    .stack {
        font-size: 1.1rem;
    }

    .desc {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}


/* ===== FOUNDER QUOTE SECTION ===== */
.founder-quote {
    padding: 80px 20px;
    background: transparent;
}

.quote-card {
    max-width: 900px;
    margin: auto;
    background: var(--bg-color);
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: 0 20px 50px rgba(225, 225, 225, 0.1);
    position: relative;
}

.quote-icon {
    width: 48px;
    height: 48px;
    background: #000;
    color: #1DB954;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 25px;
}

.quote-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 22px;
}

.quote-footer1 {
    line-height: 1.7;
    font-size: 1.3rem;
    color: #fff;
    display: flex;
    text-align: start;
    gap: 14px;
    padding-top: 25px;
    margin-top: 30px;
}

.quote-footer {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 25px;
    margin-top: 30px;
    border-top: 1px solid #e6e6e6;
}

.quote-footer img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-footer strong {
    font-weight: 800;
    font-size: 1.4rem;
}

.quote-footer span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #cecece;
}

/* Responsive */
@media (max-width: 600px) {
    .quote-card {
        padding: 40px 25px;
    }

    .quote-text p {
        font-size: 0.98rem;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 900px) {
    .founder-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .founder-text iframe {
        width: 560px;
    }

    .founder-text h2 {
        text-align: center;
    }

    .founder-text p {
        max-width: 100%;
        text-align: center;
    }
}

/*----- Testimonials -----*/
.testimonials {
    padding-top: 11rem;
    background: var(--second-bg-color);
}

.testimonial-box {
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.testimonials .heading {
    margin-bottom: 5rem;
}

#theading {
    font-size: 6rem;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* CARD STYLE */
.testimonial-item {
    position: relative;
    min-height: 180px;
    max-width: 550px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(238, 238, 238, 0.2);
    border-radius: 2rem;
    padding: 13px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    transition: all 0.5s ease;
    overflow: hidden;
    cursor: pointer;
}

.profile {
    display: flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 0.3rem;
}

.review {
    margin-left: 65px;
    margin-top: -13px;
}

.testimonial-item img {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    transition: all 0.4s ease;
}

.testimonial-item h2 {
    font-size: 1.9rem;
    transition: all 0.4s ease;
}

.testimonial-item .rating,
.testimonial-item p {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
    text-align: start;
}

.testimonial-item p {
    padding-top: 8px;
    font-size: 1.2rem;
}

/* HOVER EFFECT — reveal details */
.testimonial-item:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    border: 3px solid var(--main-color);
    box-shadow: 0 0 35px var(--main-color);
}

.testimonial-item:hover img {
    transform: scale(0.85);
    opacity: 0.8;
}

.testimonial-item:hover .rating,
.testimonial-item:hover p {
    opacity: 1;
    transform: translateY(0);
}

#star {
    color: goldenrod;
    font-size: 1.8rem;
    margin: 0 1.7px;
}

.testimonial-item:hover h2 {
    margin-bottom: 0.5rem;
}

/* ===== MOBILE TAP SUPPORT ===== */

.testimonial-item.active {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    border: 3px solid var(--main-color);
    box-shadow: 0 0 35px var(--main-color);
}

.testimonial-item.active img {
    transform: scale(0.85);
    opacity: 0.8;
}

.testimonial-item.active .rating,
.testimonial-item.active p {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-item.active h2 {
    margin-bottom: 0.5rem;
}

/* RESPONSIVE GRID */
@media (max-width: 950px) {
    .wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .wrapper {
        grid-template-columns: 1fr;
    }

    .testimonial-item {
        max-width: 90%;
        margin: auto;
    }
}

/*----- Contact -----*/
.contact {
    background: transparent;
}

.contact h2 {
    margin-bottom: 3rem;
    color: white;
}

.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
    cursor: text;
}

.contact form .btn {
    margin-top: 2rem;
}

/* ===== Contact Input Field Animation ===== */
.input-box input,
.input-group2 textarea {
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: left;
    transition: all 0.6s ease;
}

.input-box input.show,
.input-group2 textarea.show {
    opacity: 1;
    transform: scaleX(1);
}

.input-box input:nth-child(1) {
    transition-delay: 0ms;
}

.input-box input:nth-child(2) {
    transition-delay: 100ms;
}

.input-box:nth-child(2) input:nth-child(1) {
    transition-delay: 200ms;
}

.input-box:nth-child(2) input:nth-child(2) {
    transition-delay: 300ms;
}

.input-group2 textarea {
    transition-delay: 400ms;
}


/* ========== MUSIC PLAYER ========== */
.music-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    /* Button first, then name */
    z-index: 1000;
    gap: 10px;
}

#music-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--main-color);
    border: none;
    color: var(--bg-color);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#music-btn:hover {
    transform: scale(1.1);
}

.music-info {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--main-color);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

/* When music is playing, show the name */
.music-container.playing .music-info {
    opacity: 1;
    transform: translateX(0);
}

#song-title {
    color: #fff;
    font-size: 1.2rem;
    white-space: nowrap;
    font-weight: 500;
}


/*----- Footer -----*/
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a {
    font-size: 24px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 40px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}

.footer .social a i {
    cursor: pointer;
}

.footer .social a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
}

.footer ul {
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li {
    display: inline-block;
    padding: 0 15px;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
    cursor: pointer;
}

.footer .copyright {
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}

@media (max-width: 1285px) {
    html {
        font-size: 55%;
    }

    .services_container {
        padding-bottom: 7rem;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 5rem;
    }
}

@media (max-width: 991px) {
    header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .timeline-items {}

    .timeline-items::before {
        left: 7px;
    }

    .timeline-item {
        width: 99%;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 37px;
    }

    .timeline-dot {
        left: 0;
    }

    .services {
        padding-bottom: 7rem;
    }

    .service_box .service_info {
        padding: 2.3rem 2rem;
    }

    .testimonials .wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .contact form {
        flex-direction: column;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 895px) {

    /* Default state - menu is hidden */
    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);

        /* Initially hidden */
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    }

    /* When active - menu slides in */
    .navbar.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    /* Menu icon transition */
    #menu-icon {
        display: block;
        transition: transform 0.3s ease-in-out;
    }

    /* Rotating the menu icon when active */
    #menu-icon.bx-x {
        transform: rotate(180deg);
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: white;
    }

    .home {
        flex-direction: column-reverse;
        margin: 5rem 4rem;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 8rem;
        margin-top: 3rem;
    }

    .home-content p {
        max-width: 600px;
        margin: 0 auto;
    }

    .home-img img {
        width: 56vw;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    .services_container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Improved Mobile Responsive Styling */

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    section {
        padding: 6rem 5%;
        /* More spacing from phone edges */
    }

    .heading {
        font-size: 4.2rem;
        /* Smaller heading for mobile */
        margin: 3rem 0;
    }

    #theading {
        font-size: 4.2rem;
        /* Smaller heading for mobile */
        margin: 3rem 0;
    }

    .home {
        flex-direction: column-reverse;
        gap: 3rem;
        padding: 6rem 5%;
        text-align: center;
    }

    .home-content {
        align-items: center;
    }

    .home-content h1 {
        font-size: 5.5rem;
    }

    .home-content h3 {
        font-size: 2.7rem;
    }

    .home-content p {
        font-size: 1.6rem;
        padding: 0 1rem;
    }

    .home_img img {
        width: 80vw;
        max-width: 300px;
        height: auto;
        margin-bottom: 2rem;
    }

    .services_container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testimonial-box .wrapper {
        grid-template-columns: 1fr;
        padding: 0 2rem;
    }

    .testimonial-item {
        max-width: 100%;
        padding: 2rem;
    }

    .contact form {
        padding: 0 2rem;
    }

    .contact form .input-box input,
    .contact form textarea {
        font-size: 1.6rem;
        padding: 2rem;
    }

    .footer ul {
        padding: 0 2rem;
    }

    .navbar {
        width: 100%;
    }

    /* ===== KORTY LOADER RESPONSIVE FIX ===== */
    @media (max-width: 768px) {
        #korty-loader {
            display: flex;
            justify-content: center;
            justify-self: center;
            align-items: center;
            text-align: center;
        }

        .korty-text span {
            display: inline-block;
            margin: 0 2px;
        }

        .korty-text {
            font-size: 2.5rem !important;
            /* reduce massive desktop size */
            letter-spacing: 2px;
            line-height: 1.2;
            transform: none !important;
            /* stop desktop offsets */
        }
    }
    
    @media (max-width: 620px) {
    

.service_box {
    height: 380px;
}

.service_box .service_info {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 280px;
    justify-content: left;
    align-items: baseline;
}

.service_box {
    padding: 0rem 0rem;
}
        
.service_info {
    padding: 0rem 0rem;
}

.service_info h4 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    padding-bottom: 17px;
}
    }

    @media (max-width: 480px) {
        .korty-text {
            font-size: 1.9rem !important;
            letter-spacing: 1px;
        }
    }
}

/* ===== ABOUT ME SECTION ===== */
.aboutme-section {
    background: transparent;
    padding: 10rem 8%;
    min-height: 100vh;
}

.aboutme-heading {
    font-size: 7rem;
    text-align: center;
    margin-bottom: 6rem;
    color: var(--text-color);
    font-family: "Abril Fatface", cursive;
    font-weight: 400;
}

.aboutme-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Pegboard Styles */
.pegboard-wrapper {
    flex: 1;
    max-width: 550px;
}

.pegboard {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: url("../images/dload.jpg") no-repeat bottom center;
    background-size: 552px 552px, 100% 100%;
    border-radius: 20px;
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: visible;
    border: 3px solid #2a2a2a;
}

/* Polaroid Styles */
.polaroid {
    position: absolute;
    width: 120px;
    height: 140px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.polaroid-inner {
    background: #f5f5f5;
    padding: 8px 8px 25px 8px;
    border-radius: 4px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.polaroid img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(30%) brightness(0.9);
    transition: all 0.4s ease;
}

.polaroid .caption {
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    margin-top: 2px;
    transform: rotate(-2deg);
    opacity: 0.8;
}

/* Polaroid Positions */
.polaroid-1 {
    top: 15%;
    right: 10%;
    transform: rotate(8deg);
}

.polaroid-2 {
    top: 45%;
    right: 25%;
    transform: rotate(-5deg);
}

.polaroid-3 {
    top: 72%;
    right: 8%;
    transform: rotate(12deg);
}

/* Polaroid Hover Effect - EXPAND */
.polaroid:hover {
    z-index: 100;
    transform: scale(2.5) rotate(0deg) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.polaroid:hover .polaroid-inner {
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 238, 0.2);
}

.polaroid:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Pegboard Decorative Items */
.pegboard-item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    transition: all 0.3s ease;
    z-index: 10;
}

.pegboard-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.pegboard-item i {
    font-size: 4rem;
}

.pegboard-item img {
    width: 3rem;
}

.pin1 {
    top: 12.4%;
    left: 70%;
}

.pin2 {
    top: 42.8%;
    left: 66.7%;
}

.pin3 {
    bottom: 26.1%;
    left: 73%;
}

.comic {
    bottom: 49%;
    right: -3%;
}

.comic img {
    width: 11.2rem;
}

.manga {
    bottom: 24.7%;
    right: 14%;
}

.manga img {
    width: 4.3rem;
}

.toji {
    top: 0%;
    right: 32%;
}

.toji img {
    width: 8rem;
}

.op {
    top: 2%;
    right: 8%;
}

.op img {
    width: 9rem;
}

.year {
    top: 7%;
    left: 3%;
    transform: rotate(-7deg);
}

.year img {
    width: 24rem;
}

.spidey {
    top: 37%;
    left: 2%;
    transform: rotate(-7deg);
}

.spidey img {
    width: 10rem;
}

.david {
    top: 26.6%;
    left: 25%;
}

.david img {
    width: 10rem;
}

.grills {
    top: 21%;
    left: 47%;
    transform: rotate(-3deg);
}

.grills img {
    width: 7rem;
}

.extrovert {
    top: 15%;
    left: 32.2%;
}

.extrovert img {
    width: 7rem;
}

.statue {
    top: 15%;
    left: 9.3%;
}

.statue img {
    width: 12rem;
}

.eight_ball {
    bottom: 22.2%;
    left: 9%;
}

.eight_ball img {
    width: 10rem;
}

.ball {
    bottom: 9.7%;
    left: 14.7%;
}

.ball img {
    width: 4rem;
}

.joga {
    bottom: 10%;
    left: 20%;
}

.joga img {
    width: 10rem;
}

.tag {
    bottom: 1%;
    left: 10%;
}

.tag img {
    border-radius: 4px;
    width: 4rem;
}

.rated {
    bottom: 1%;
    left: 2%;
}

.rated img {
    border-radius: 1px;
    width: 4rem;
}

.qrcode {
    bottom: 12%;
    left: 2%;
}

.qrcode img {
    border-radius: 3px;
    width: 7rem;
}

.barcode {
    bottom: 1%;
    left: 18%;
}

.barcode img {
    width: 8rem;
}

.gunners {
    bottom: 13%;
    left: 32%;
}

.gunners img {
    width: 8rem;
}

.netflix {
    bottom: 12%;
    left: 45.5%;
}

.netflix img {
    width: 11rem;
}

.boondocks {
    bottom: 0.2%;
    left: 45.5%;
}

.boondocks img {
    width: 9rem;
}

.kendrick {
    top: 32.5%;
    left: 21%;
}

.kendrick img {
    width: 15rem;
}

.alright {
    top: 53.2%;
    left: 25.5%;
}

.alright img {
    border-radius: 7px;
    width: 15rem;
}

.nike {
    top: 54%;
    right: 15.4%;
    transform: rotate(-9deg);
}

.nike img {
    width: 7rem;
}

.laptop {
    top: 47%;
    left: 9%;
    transform: rotate(7deg);
}

.laptop img {
    width: 7rem;
}

.error {
    top: 55%;
    left: 3.3%;
}

.error img {
    width: 5.5rem;
}

.camera {
    top: 54%;
    right: 2.8%;
    transform: rotate(-7deg);
}

.camera img {
    width: 7rem;
}

/* About Me Content */
.aboutme-content {
    flex: 1;
    max-width: 600px;
    padding-top: 2rem;
}

.aboutme-intro {
    font-size: 2.8rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.aboutme-intro p {
    padding-top: 4px;
    font-size: 1.15rem;
    color: #cecece;
}

.highlight-name {
    color: var(--main-color);
    position: relative;
}

.aboutme-text {
    font-size: 1.7rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.aboutme-cta {
    color: var(--main-color);
    font-weight: 600;
    font-size: 1.8rem;
    margin-top: 3rem;
}

/* ===== ABOUT ME RESPONSIVE ===== */
@media (max-width: 1024px) {
    .aboutme-container {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .aboutme-heading {
        font-size: 5rem;
        margin-bottom: 4rem;
    }

    .pegboard-wrapper {
        max-width: 100%;
        width: 100%;
    }

    /* Change pegboard to flex row for polaroids */
    .pegboard {
        aspect-ratio: auto;
        min-height: 200px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 3rem;
        background-size: cover;
        background-position: center;
    }

    /* Make polaroids static and flexed */
    .polaroid {
        position: relative;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 140px;
        height: 170px;
    }

    .polaroid img {
        width: 100%;
        height: 100%;
    }

    .polaroid-1 {
        transform: rotate(5deg) !important;
    }

    .polaroid-2 {
        transform: rotate(-3deg) !important;
    }

    .polaroid-3 {
        transform: rotate(8deg) !important;
    }

    .polaroid:hover {
        transform: scale(1.8) rotate(0deg) !important;
    }

    /* Hide pegboard decorative items in responsive */
    .pegboard-item {
        display: none;
    }

    .aboutme-content {
        text-align: center;
        padding-top: 0;
    }

    .aboutme-intro {
        font-size: 2.4rem;
    }

    .aboutme-text {
        font-size: 1.6rem;
    }

    .highlight-name::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .aboutme-section {
        padding: 6rem 5%;
    }

    .aboutme-heading {
        font-size: 4rem;
    }

    .aboutme-container {
        gap: 3rem;
    }

    .pegboard {
        min-height: 160px;
        padding: 2rem;
        gap: 1.5rem;
    }

    .polaroid {
        width: 90px;
        height: 110px;
    }

    .polaroid:hover {
        transform: scale(2.4) rotate(0deg) !important;
    }

    .aboutme-intro {
        font-size: 2rem;
    }

    .aboutme-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .aboutme-heading {
        font-size: 3rem;
    }

    .pegboard {
        min-height: 130px;
        padding: 1.5rem;
        gap: 1rem;
    }

    .polaroid {
        width: 70px;
        height: 85px;
    }

    .polaroid:hover {
        transform: scale(2.3) rotate(0deg) !important;
    }

    .polaroid .caption {
        font-size: 0.9rem;
    }

    .aboutme-intro {
        font-size: 1.7rem;
    }

    .aboutme-text {
        font-size: 1.3rem;
    }
}
