@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: rgb(255, 255, 255);
    color: pink;
}

header{
    margin-top: 0px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.my-picture {
    position: absolute;
    top: -40px;        /* or 5px, 15px — now you control it perfectly */
    left: -10px;
    width: 175px;
    z-index: 99;     /* higher than header's 100 so it's always on top */
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    margin-top: 20px;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: pink;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #000000;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: white;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: white;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid white;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 20%{
        content: " Ingame Topup";
    }
    21%, 40%{
        content: " Premium App";
    }
    41%, 60%{
        content: " Proofneeds";
    }
    61%, 80%{
        content: " Soc Med Needs";
    }
    81%, 100%{
        content: " Sumthin";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

/* Smooth page transition when clicking any nav link */
html {
    scroll-behavior: smooth;
}

/* MAGIC PAGE TRANSITION */
body {
    animation: fadeIn 0.7s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Optional: even cuter "slide from right" effect */
.page-transition {
    view-transition-name: page;
}

::view-transition-old(page) {
    animation: slideOutLeft 0.6s ease-in forwards;
}
::view-transition-new(page) {
    animation: slideInRight 0.6s ease-out forwards;
}

@keyframes slideOutLeft {
    to { transform: translateX(-100%); opacity: 0; }
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ——— ULTRA CUTE MOBILE MENU ——— */
.menu-toggle {
    display: none;
    font-size: 3.2rem;
    color: #b74b4b;
    background: rgba(255,255,255,0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(183,75,75,0.3);
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(183,75,75,0.5);
}

/* Show on mobile */
@media (max-width: 995px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: linear-gradient(135deg, #fff0f5, #ffe4e1);
        backdrop-filter: blur(15px);
        box-shadow: -10px 0 30px rgba(183,75,75,0.2);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        z-index: 100;
        padding: 2rem;
        border-left: 4px solid #b74b4b;
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 2.8rem;
        color: #b74b4b;
        margin: 1.8rem 0;
        padding: 1.2rem 3rem;
        border-radius: 50px;
        width: 80%;
        text-align: center;
        background: rgba(255,255,255,0.7);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        font-weight: 600;
    }

    nav a:hover,
    nav a.active {
        background: #b74b4b;
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(183,75,75,0.4);
    }
}

/* Hamburger → X animation */
.menu-toggle.active .fas::before {
    content: "\f00d"; /* × icon */
}


/* Hide header on scroll down, show on scroll up */
header {
    transition: transform 0.4s ease;
    transform: translateY(0);
}

header.hide {
    transform: translateY(-100%);
}

/* Only apply on screens wider than mobile (optional) */
@media (min-width: 996px) {
    header.hide { transform: translateY(-100%); }
}

/* Floating cats – responsive & never cover text */
.floating-cat,
.floating-cat2,
.floating-cat3 {
    position: absolute;
    width: 220px;                   /* good size on laptop */
    max-width: 38vw;                /* shrinks perfectly on phone */
    z-index: 98;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

/* Specific positions – feel free to move them */
.floating-cat   { bottom: 180px; left: 20px; }      /* left side */
.floating-cat2  { bottom: 80px;  right: 20px; }     /* bottom-right */
.floating-cat3  { bottom: 280px; right: 30px; }     /* higher right */

/* On mobile: make cats smaller + give space at bottom */
@media (max-width: 995px) {
    .floating-cat,
    .floating-cat2,
    .floating-cat3 {
        width: 100px;
        max-width: 30vw;
    }
    
    .floating-cat   { bottom: 280px; left: 10px; }
    .floating-cat2  { bottom: 470px;  right: 10px; }
    .floating-cat3  { bottom: 450px; left: 15px; }

    /* Prevent cats from hiding buttons/text */
    section {
        padding-bottom: 200px !important;
    }
}

/* Cute floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-25px) rotate(5deg); }
}

/* Perfect centering on mobile – fixes the off-center issue */
@media (max-width: 995px) {
    .exp-container {
        padding: 14rem 5% 10rem !important;   /* more top space + side margins */
        margin: 0 auto;
    }
    
    .exp-grid {
        grid-template-columns: 1fr;           /* one card per row on phone */
        gap: 2.5rem;
        padding: 0 2rem;
    }
    
    .exp-card {
        margin: 0 auto;
        max-width: 380px;
    }
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    margin: 4rem 0;
    padding: 3.5rem 2.5rem;
    background: rgba(183, 75, 75, 0.08);
    border-radius: 2.5rem;
    border: 1px solid rgba(183, 75, 75, 0.15);
    transition: all 0.35s ease;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 25px rgba(183,75,75,0.1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: linear-gradient(135deg, rgba(183,75,75,0.18), rgba(255,182,193,0.12));
    border-color: #b74b4b;
    box-shadow: 0 20px 50px rgba(183,75,75,0.3);
}

.service-card h2 {
    font-size: 3.8rem;
    color: #b74b4b;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover h2 {
    color: #ff5e78;  /* brighter pink on hover */
}

.service-card p {
    font-size: 2rem;
    color: #555;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: #333;
}