/* ===== BODY ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f0f1a;
    color: white;
}

/* ===== HEADER ===== */
.header {
    position: relative;
    width: 100%;
    min-height: 320px; /* Changed from height to min-height to allow growth on mobile */
    display: flex;
    align-items: center;
    padding: 40px; /* Slightly larger padding for breathing room */
    box-sizing: border-box;
    overflow: hidden; /* Keeps the blurred blobs contained inside the header */
}

/* ===== BLOB BACKGROUND ===== */
.background {
    position: absolute;
    width: 100%;
    height: 100%; /* Now automatically matches the header's exact height */
    top: 0;
    left: 0;
    filter: blur(80px);
    z-index: 0;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    opacity: 0.7;
    animation: move 20s infinite alternate ease-in-out;
}

.blob:nth-child(1) { background: #ff6ec4; top: -10%; left: 10%; }
.blob:nth-child(2) { background: #7873f5; top: 20%; left: 60%; }
.blob:nth-child(3) { background: #4ade80; top: 50%; left: 20%; }
.blob:nth-child(4) { background: #22d3ee; top: 10%; left: 75%; }

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, -150px) scale(1.2); }
    100% { transform: translate(-120px, 100px) scale(0.9); }
}

/* GLASS OVERLAY */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(120px);
    -webkit-backdrop-filter: blur(120px); /* Added for Safari support */
    background: rgba(255, 255, 255, 0.05);
    top: 0;
    left: 0;
    z-index: 1;
}

/* PROFILE */
.profile {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
    width: 100%;
    max-width: 1000px; /* Keeps content from stretching too far on ultra-wide monitors */
    margin: 0 auto;
}

/* IMAGE */
.profile img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    flex-shrink: 0; /* Prevents the image from getting squished if text is too long */
}

/* TEXT */
.profile-info h1 {
    margin: 0;
    font-size: 26px;
}

.profile-info p {
    margin: 5px 0 0;
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.5; /* Makes text a bit more readable */
}

/* ===== BOXX (CONTENT AREA) ===== */
.boxx {
    width: 100%;
    min-height: 500px;
    padding: 40px;
    background: linear-gradient(90deg, rgb(29, 29, 29), rgb(32, 32, 32));
    position: relative;
    box-sizing: border-box; /* CRITICAL: ensures padding doesn't make the box wider than 100% */
}

.boxx h1 {
    margin-top: 0; /* Ensures the first heading aligns flush with the padding */
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {
    .header {
        padding: 30px 20px; /* Less padding on small screens */
    }

    .profile {
        flex-direction: column;
        align-items: center; /* Centers everything for a cleaner mobile profile card look */
        text-align: center;
    }

    .profile img {
        width: 90px;
        height: 90px;
    }

    .profile-info h1 {
        font-size: 22px;
    }

    .profile-info p {
        font-size: 14px;
    }
    
    .boxx {
        padding: 20px; /* Reduces padding so mobile text has more room to breathe */
    }
}

hr {
  border: 1px solid rgb(83, 83, 83);
}