/* =================================================================
   SHARED BASE STYLES
   Used across multiple pages in the portfolio
   ================================================================= */

/* Universal Selector */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Typography */
p {
    text-align: justify;
    font-size: 1rem;
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

strong {
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

li {
    margin: 0.25rem 0;
}

/* Sections */
section {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem; /* Reduced margin */
    padding: 1rem 1.5rem; /* Adjusted padding */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

hr {
    margin: 1rem 0; /* Reduced margin */
    border: none;
    border-top: 1px solid #eee;
}

/* Profile Image */
.profile-img {
    max-width: 150px;
    width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #3498db;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:active {
    transform: translateY(1px);
}

/* Contact Information */
.contact {
    color: #2c3e50;
}

.contact-me {
    text-align: center;
    margin: 2rem 0;
}

.contact-me a {
    color: #3498db;
}

.contact-me a:hover {
    color: #2980b9;
}

/* Skills Section */
.skill-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 2rem 0; /* Reduced margin */
}

.skill-row img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.skill-description {
    flex: 1;
    margin-left: 2rem;
}

.skill-row:nth-child(even) .skill-description {
    order: -1;
    margin-left: 0;
    margin-right: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skill-row {
        flex-direction: column;
    }

    .skill-description {
        margin: 0;
    }
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

/* Lists */
ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px dashed #2980b9;
    outline-offset: 4px;
}
