body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px; /* Ensuring PDF-friendly width */
    background: #1e1e1e;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    text-align: center;
}

@media print {
    body {
        background: white;
        color: black;
        margin: 0;
        padding: 0;
    }
    .container {
        width: 210mm;
        height: 297mm;
        max-width: 100%;
        padding: 10mm;
        box-shadow: none;
        border-radius: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .resume-btn, .social-links {
        display: none; /* Hide buttons and social links in PDF */
    }
    .profile-pic {
        display: block !important; /* Ensuring profile picture is included */
        width: 90px;
        height: 90px;
        margin: 5px auto;
        border-radius: 50%;
    }
    section {
        page-break-inside: avoid; /* Avoid section cuts between pages */
        font-size: 12px; /* Reduce font size to fit in one page */
        margin: 5px 0;
        padding: 5px;
    }
    h1, h2 {
        font-size: 14px; /* Adjust heading sizes */
    }
    ul li {
        padding: 4px;
        font-size: 10px;
    }
    footer {
        margin-top: 5px;
        font-size: 10px;
    }
}

.resume-btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #0073e6, #00c6ff);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.resume-btn i {
    margin-left: 8px;
}

.resume-btn:hover {
    background: linear-gradient(135deg, #00c6ff, #0073e6);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

header {
    padding: 15px 0;
    background: linear-gradient(135deg, #0073e6, #00c6ff);
    color: #fff;
    border-radius: 15px 15px 0 0;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 10px auto;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out;
}

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

.contact p a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.contact p a:hover {
    text-decoration: underline;
}

h1, h2 {
    color: #00c6ff;
}

section {
    margin: 15px 0;
    padding: 10px;
    background: #252525;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background: #2d2d2d;
    margin: 5px 0;
    padding: 8px;
    border-radius: 8px;
    transition: 0.3s;
}

ul li:hover {
    background: #0073e6;
    color: #fff;
}

.social-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-links a {
    font-size: 28px;
    color: #fff;
    transition: 0.3s ease-in-out;
}

.social-links a:hover {
    color: #00c6ff;
    transform: scale(1.2);
}

footer {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #0073e6, #00c6ff);
    color: #fff;
    border-radius: 0 0 15px 15px;
    margin-top: 15px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    section {
        padding: 8px;
    }
    .resume-btn {
        font-size: 14px;
        padding: 8px 14px;
    }
}
