body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: linear-gradient(-45deg, #f5f7fa, #c3cfe2, #a8c0ff, #98ff98, #f5f7fa);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Decorative floating objects */
.floating-object {
    position: fixed;
    opacity: 0.15;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

/* First set of objects */
.floating-object:nth-child(1) {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"/></svg>');
    width: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-object:nth-child(2) {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></svg>');
    width: 80px;
    top: 30%;
    right: 15%;
    animation-delay: -5s;
}

.floating-object:nth-child(3) {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/></svg>');
    width: 120px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.floating-object:nth-child(4) {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5H10.9v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64H8.04c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42z"/></svg>');
    width: 90px;
    bottom: 30%;
    right: 25%;
    animation-delay: -15s;
}

/* Second set of objects */
.floating-object:nth-child(5) {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M12 2L1 21h22L12 2zm0 3.99L19.53 19H4.47L12 5.99zM11 16h2v2h-2zm0-6h2v4h-2z"/></svg>');
    width: 70px;
    top: 15%;
    right: 20%;
    animation-delay: -2s;
}

.floating-object:nth-child(6) {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 14H6v-2h6v2zm4-4H6v-2h10v2zm0-4H6V7h10v2z"/></svg>');
    width: 110px;
    bottom: 15%;
    left: 15%;
    animation-delay: -7s;
}

.floating-object:nth-child(7) {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
    width: 85px;
    top: 40%;
    left: 25%;
    animation-delay: -12s;
}

.floating-object:nth-child(8) {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"/></svg>');
    width: 95px;
    bottom: 40%;
    right: 20%;
    animation-delay: -17s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(0, -40px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Decorative background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

.decorative-circle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.decorative-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
}

.decorative-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    background: linear-gradient(45deg, rgba(41, 128, 185, 0.1), rgba(52, 152, 219, 0.1));
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.profile-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: contain;
    padding: 9px;
    background-color: #f0f0f0;
    border: 4px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.1);
}

.content-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
}

h1 {
    font-size: 3rem;
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.job-title {
    font-size: 1.5rem;
    color: #3498db;
    margin: 1rem 0 2rem;
    font-weight: 600;
}

.button-group {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button:hover::before {
    left: 100%;
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .profile-section {
        padding: 1rem;
    }

    .content-section {
        padding: 1rem;
        align-items: center;
        text-align: center;
    }

    .profile-img {
        width: 144px;
        height: 144px;
        padding: 7px;
    }

    h1 {
        font-size: 2.5rem;
    }

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

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .button {
        width: 100%;
    }
}

/* Document page specific styles */
.document-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 2rem;
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.document-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
    text-align: left;
}

.document-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    height: calc(100vh - 200px);
    position: relative;
    overflow: hidden;
    gap: 2rem; /* Add spacing between elements */
}

.document-buttons {
    display: flex;
    flex-direction: row; /* Arrange buttons in a row */
    gap: 1rem; /* Add spacing between buttons */
    justify-content: center; /* Center buttons horizontally */
    position: relative; /* Remove absolute positioning */
    margin-top: 1rem; /* Add spacing above buttons */
    z-index: 2;
}
/* Adjust the document viewer to fill the container */
.document-viewer {
    flex: 1;
    margin: 0 auto; /* Center horizontally */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 1rem;
    width: 100%; /* Use full width of the container */
    height: calc(100vh - 300px); /* Adjust height dynamically */
    max-width: 1400px; /* Limit maximum width */
    position: relative;
}

/* Ensure the iframe fills the document viewer */
.document-viewer iframe {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 100%;
    min-height: 800px; /* Adjust minimum height */
    display: block;
}

@media (max-width: 1768px) {
    .document-content {
        flex-direction: column;
        height: auto;
        align-items: center;
    }

    .document-buttons {
        position: relative;
        flex-direction: row;
        justify-content: center;
        margin: 1rem 0;
        width: auto;
    }

    .document-viewer {
        margin-left: 0;
        height: auto;
        width: 100%;
    }

    .document-viewer iframe {
        min-height: 600px;
    }
}

@media (max-width: 480px) {
    .document-viewer iframe {
        height: 400px;
    }
}
