/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

/* Global Selector - Applies to all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling with Google Font */
body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #fafafa;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ID Selector - Targets specific elements by ID */
#main-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1a202c;
    text-align: center;
}

#profile-pic {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#hobbies-list {
    margin: 1rem 0 2rem 0;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

#routine-list {
    margin: 1rem 0 2rem 0;
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Class Selector - Targets elements by class */
.intro-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.7;
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
    margin: 3rem 0 1.5rem 0;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.website-link {
    margin: 2rem 0;
    text-align: center;
}

.external-link {
    color: #002FA7;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #002FA7;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hobby-item {
    margin: 0.8rem 0;
    font-weight: 400;
}

.routine-item {
    margin: 0.8rem 0;
    font-weight: 400;
}

/* Group Selector - Targets multiple elements with same styling */
h1,
h2 {
    letter-spacing: -0.025em;
    font-family: "Inter", sans-serif;
}

p,
li {
    color: #4a5568;
    line-height: 1.6;
}

ul,
ol {
    padding-left: 2rem;
    list-style-position: outside;
}

/* Pseudo-class Selectors - Target elements in specific states */
.external-link:hover {
    background-color: #002FA7;
    color: white;
    transform: translateY(-1px);
}

.hobby-item:hover {
    color: #2d3748;
    font-weight: 500;
}

.routine-item:hover {
    color: #2d3748;
    font-weight: 500;
}

.hobby-item:first-child {
    margin-top: 0;
    font-weight: 500;
}

.routine-item:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

/* Focus for accessibility */
.external-link:focus {
    outline: 2px solid #002FA7;
    outline-offset: 2px;
}

/* Education page styling */
.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #718096;
    margin-top: -1rem;
    font-weight: 400;
}

.education-section {
    margin: 3rem 0;
}

.education-item {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #002FA7;
}

.degree {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.institution {
    font-size: 1.1rem;
    color: #002FA7;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.details {
    color: #4a5568;
    font-weight: 400;
    margin-bottom: 0;
}

.achievements-list {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.achievements-list li {
    margin: 0.75rem 0;
    font-weight: 400;
    color: #4a5568;
}

.subsection {
    margin: 2rem 0;
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        max-width: 100%;
        padding: 20px 10px;
    }

    .education-item {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .degree {
        font-size: 1.1rem;
    }

    .institution {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }
}

/* Experience page styling */
.experience-details {
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
    list-style-position: outside;
}

.experience-details li {
    margin: 0.6rem 0;
    color: #4a5568;
    line-height: 1.6;
    font-weight: 400;
}

.experience-details li:first-child {
    margin-top: 0;
}

.experience-details li:last-child {
    margin-bottom: 0;
}

/* Contact page styling */
.contact-item {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background-color: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #002FA7;
}

.contact-type {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-link {
    margin: 0;
}

.contact-link .external-link {
    font-size: 1rem;
    font-weight: 500;
}

.contact-username {
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f8fafc;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

/* Responsive contact page */
@media (max-width: 768px) {
    .contact-item {
        padding: 1rem;
        margin: 1rem 0;
    }

    .contact-type {
        font-size: 1rem;
    }

    .contact-link .external-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .contact-username {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}
