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

    font-family: "Itim", cursive;
    font-weight: 400;
    font-style: normal;
}

html, body {
    height: 100%;
    justify-content: center;
    display: flex;
    align-items: center; 
}


body {
    background: #4d5466;
    background: radial-gradient(circle, rgba(77, 84, 102, 1) 0%, rgba(30, 38, 74, 1) 100%);
    
}

/* transition */
div, section, p, ul, li, h3, body {
    transition: all .25s linear; 
    -o-transition: all .25s linear; 
    -moz-transition: all .25s linear; 
    -webkit-transition: all .25s linear; 
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* box thingy */

.mainbox {
    background: rgba(20, 25, 45, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    max-width: 1400px;
    width: 100%;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    animation: floatIn 0.5s ease-out;

    transform: scale(0.8);
}

/* welcome section */
.welcomesec {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sphere {
    height: 120px;
    width: 120px;
    border-radius: 80px;
    box-shadow: 1px 1px 30px;
}


.profile {
    display: flex;
    flex-direction: row;
    margin-bottom: 50px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.header-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: url('/oldportofolio/images/ppicture.JPEG') center/cover,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.intro-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.intro-card p {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.intro-card p:last-child {
    margin-bottom: 0;
}

.intro-card strong {
    color: #a5b4fc;
}

.bottom-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-card:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.link-card span {
    font-size: 1.8rem;
}

.link-card strong {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.hobby-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.hobby-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hobby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hobby-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    color: #94a3b8;
    font-weight: 500;
}

.hobby-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Work section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    background: #1E293B80;
    border: 1px solid #00000010;
}
.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px #00000040;
    border-color: #ffffff20;
}

.project-info {
    padding: 1.2rem;
    background: #0F172A;
}

.project-info h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
}
.project-card a {
    text-decoration: none;
}

.project-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}


.workicon {
    width: 150px;
    height: 150px;
    display: flex;
}

/* coming soon */
.coming-card {
    background: #1E293B4D;
    border: 2px dashed #94a3b87b;
    border-radius: 20px;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
    font-weight: 600;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.coming-card:hover {
    border-color: #94A3B880;
    background: #1E293B66;
}

/* background images */
.project-card:nth-child(1) .project-image { background: linear-gradient(90deg,rgba(118, 75, 162, 1) 0%, rgba(84, 34, 133, 1) 52%, rgb(68, 12, 124) 100%); }
.project-card:nth-child(2) .project-image { background: linear-gradient(90deg,rgba(251, 191, 36, 1) 0%, rgba(199, 146, 12, 1) 52%, rgba(156, 111, 0, 1) 100%); }
.project-card:nth-child(3) .project-image { background: linear-gradient(90deg,rgba(14, 165, 233, 1) 0%, rgba(36, 135, 181, 1) 52%, rgba(7, 81, 115, 1) 100%); }
.project-card:nth-child(4) .project-image { background: linear-gradient(90deg,rgba(129, 140, 248, 1) 0%, rgba(106, 121, 235, 1) 52%, rgba(68, 79, 184, 1) 100%); }

/* media queries */

@media (max-width: 768px) {
    html, body {
        display: block;
        height: auto;
        align-items: initial;
    }
    
    body {
        padding: 1rem;
        min-height: 100vh;
    }
    
    .mainbox {
        padding: 1.5rem;
        grid-template-columns: 1fr;
        margin: 1rem auto;
        transform: scale(1);
    }

    .header-section {
        flex-direction: column;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hobby-grid {
        grid-template-columns: 1fr;
    }
}