/* General Styles */
:root {
    --main-color: #007bff; /* Primary color */
    --secondary-color: #6c757d; /* Secondary color */
    --background-color: #f8f9fa; /* Light background */
    --text-color: #333; /* Dark text */
    --white-color: #fff; /* White */
    --border: 2px solid #007bff; /* Border style */
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background: var(--main-color);
    color: var(--white-color);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav {
    margin: 20px 0;
}

nav a {
    color: var(--white-color);
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Wrapper */
.wrapper {
    position: relative;
    width: 66rem;
    height: 45rem;
    background: white;
    padding: 2rem;
}

/* Portfolio Page */
.portfolio-page img {
    display: block;
    margin: 0 auto; /* Centers the image horizontally */
    max-width: 200px; /* Slightly increase the size */
    border-radius: 50%; /* Keeps the circular shape */
    border: 0.25rem solid var(--main-color);
    margin-bottom: 1rem;
}

.portfolio-page h1 {
    font-size: 2.7rem;
    line-height: 1;
    margin-bottom: 0;
    text-align: center;
    margin: 0 auto;
}

.portfolio-page h3 {
    font-size: 1.5rem;
    color: var(--main-color);
    margin-top: 0rem;
    text-align: center;
    margin: 0 auto;
}

.portfolio-page .social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.portfolio-page .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--main-color);
    color: var(--white-color);
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.portfolio-page .social-media a:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.portfolio-page p {
    text-align: justify;
}

/* Buttons */
.btn-box {
    display: flex;
    justify-content: center; /* Centers the buttons horizontally */
    gap: 15px; /* Adds space between the buttons */
    margin-top: 20px; /* Adds some spacing above the buttons */
}

.btn {
    padding: 10px 20px;
    background: var(--main-color);
    color: var(--white-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05); /* Slightly enlarges the button on hover */
}

/* Section */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 15px 0;
    background: var(--main-color);
    color: var(--white-color);
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-item {
    text-align: center;
    padding: 20px;
    background: var(--white-color);
    border: var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.skill-item h3 {
    font-size: 1.2rem;
    color: var(--text-color);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    background: var(--main-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .contact-form {
        padding: 15px;
    }
}