body {
    background: linear-gradient(90deg, 
        rgba(29,40,41,1) 0%, 
        rgba(24,30,31,1) 11%, 
        rgba(19,19,20,1) 41%, 
        rgba(19,19,20,1) 58%, 
        rgba(24,30,31,1) 85%, 
        rgba(29,40,41,1) 100%
    );
    color: white;
    padding: 3rem;
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(to right, #76b0ab, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, #ffffff, #76b0ab);
    -webkit-background-clip: text;
    background-clip: text;
}

.contact-btn {
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    background: rgba(118, 176, 171, 0.1);
    border: 1px solid rgba(118, 176, 171, 0.3);
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contact-btn:hover {
    background: rgba(118, 176, 171, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 176, 171, 0.2);
    border-color: rgba(118, 176, 171, 0.5);
}

main {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 85vh;
}

.scroll-down {
    height: 5rem;
    width: 2rem;
    position: absolute;
    right: 2%;
    bottom: 5%;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.scroll-down::before,
.scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid lightgray;
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 3s ease-in-out infinite;
}

.scroll-down::before {
    top: 30%;
    animation-delay: 0.8s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
    }
    30%,60% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 90%;
    }

}

.title-section {
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

main h1 {
    text-align: center;
    font-size: 9rem;
    font-weight: 900;
    letter-spacing: 5px;
    line-height: 1;
    background-image: linear-gradient(rgb(133, 133, 133), rgb(255, 255, 255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

main h1:hover {
    transform: scale(1.02);
    background-image: linear-gradient(#76b0ab, rgb(255, 255, 255));
}

.bio-section {
    position: absolute;
    bottom: 5%;
    left: 3%;
    z-index: 1;
}

.bio {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.9);
}

.planet-3D {
    position: absolute;
    top: -20%;
    right: -14%;
    width: 130%;
    height: 130%;
    pointer-events: none;
}

.about-section {
    min-height: 95vh;
    width: 100%;
    margin-top: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-title {
    margin-bottom: 5%;
    font-size: 5rem;
    background-image: linear-gradient(rgb(133, 133, 133), rgb(255, 255, 255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.about-title:hover {
    transform: scale(1.02);
    background-image: linear-gradient(#76b0ab, rgb(255, 255, 255));
}

.bento-grid {
    position: relative;
    display: grid;
    width: 90%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: 
        "intro intro tech"
        "time passion tech";
    gap: 1.5rem;
}

.card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.07));
    border: 1px solid rgba(118, 176, 171, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.intro { grid-area: intro; min-height: 300px; }
.tech { grid-area: tech; min-height: 450px; }
.time { grid-area: time; min-height: 220px; }
.passion { grid-area: passion; min-height: 220px; }

.card:hover {
    border-color: rgba(118, 176, 171, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--x) var(--y),
        rgba(118, 176, 171, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #76b0ab, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.card-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-align: justify;
    letter-spacing: 0.3px;
}

.background-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: auto;
    opacity: 0.5;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.card:hover .background-img {
    opacity: 0.7;
}

.skills-group {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 80%;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.card:hover .skills-group {
    transform: scale(1.05);
}

.btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background: linear-gradient(45deg, rgba(118, 176, 171, 0.2), rgba(132, 38, 38, 0.2));
    border: 1px solid rgba(118, 176, 171, 0.3);
    border-radius: 50px;
    color: white;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 176, 171, 0.2);
    background: linear-gradient(45deg, rgba(118, 176, 171, 0.3), rgba(132, 38, 38, 0.3));
    border-color: rgba(118, 176, 171, 0.5);
}

.btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

footer {
    margin-top: 5rem;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(118, 176, 171, 0.1);
}

.box-icons {
    display: flex;
    gap: 2rem;
}

.box-icons a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.box-icons a:hover {
    color: #76b0ab;
    transform: translateY(-3px);
    opacity: 1;
}

@media (max-width: 1400px) {
    main h1 {
        font-size: 7rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "intro"
            "tech"
            "time"
            "passion";
        gap: 2rem;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .card-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    main {
        position: relative;
        min-height: 100vh;
    }

    main h1 {
        font-size: 4rem;
    }

    .bio-section {
        position: absolute;
        bottom: 5%;
        left: 3%;
        margin: 0;
        text-align: left;
        max-width: 70%;
    }

    .bio {
        font-size: 1rem;
        margin: 0;
    }

    .about-section {
        margin-top: 3rem;
    }

    .about-title {
        font-size: 3rem;
    }

    .bento-grid {
        width: 100%;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem;
    }

    main h1 {
        font-size: 3rem;
    }

    .bio-section {
        max-width: 65%;
    }

    .bio {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .contact-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .box-icons {
        gap: 1.5rem;
    }

    .box-icons a {
        font-size: 1.5rem;
    }
}