/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile-first base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 1rem;
}

/* Header and Navigation - Mobile First */
header {
    width: 100%;
    margin: 0 auto 2rem auto;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    width: 100%;
    border-radius: 8px;
}

nav li {
    display: block;
    width: 100%;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a.active {
    color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
    border-bottom: 2px solid #9b59b6;
}

nav a:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    border-bottom: 2px solid #007bff;
}

/* Container - Mobile First */
.container {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Sidebar - Mobile First */
.sidebar {
    width: 100%;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.profile-section {
    margin-bottom: 20px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    border: 3px solid #e0e0e0;
}

.profile-section h1 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #333;
}

.title {
    color: #666;
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.location {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.location i {
    margin-right: 5px;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 280px;
    margin: 0 auto;
}

.social-links a {
    color: #333;
    text-decoration: none;
    padding: 10px 12px;
    font-size: 13px;
    background: white;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.social-links a:hover {
    color: #007bff;
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-links i {
    margin-right: 5px;
}

/* Main Content - Mobile First */
.main-content {
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.main-content h3 {
    color: #333;
    margin: 25px 0 15px 0;
    font-size: 20px;
    color: #555;
}

.main-content p {
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 15px;
    text-align: left;
    color: #444;
}

.main-content p a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.main-content p a:hover {
    border-bottom: 1px solid #007bff;
}

.main-content li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.main-content ol, .main-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.main-content section {
    margin-bottom: 35px;
}

/* Education section styles */
.education-list {
    margin-top: 15px;
}

.education-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.edu-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.edu-institution {
    font-size: 16px;
    color: #333;
}

.edu-location, .edu-years {
    font-size: 14px;
    color: #666;
}

.edu-degree {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
}

.edu-details {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.edu-details li {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Small phones (up to 480px) */
@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-section h1 {
        font-size: 20px;
    }
    
    .title {
        font-size: 13px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .main-content h2 {
        font-size: 22px;
    }
    
    .main-content h3 {
        font-size: 18px;
    }
    
    .main-content p {
        font-size: 14px;
    }
    
    .social-links {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .social-links a {
        font-size: 12px;
        padding: 8px;
    }
    
    .edu-header {
        gap: 3px;
    }
    
    .edu-institution {
        font-size: 15px;
    }
    
    .education-item {
        padding: 15px;
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    body {
        padding: 2rem;
    }
    
    header {
        max-width: 1200px;
        margin: 0 auto 3rem auto;
    }
    
    nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        padding: 20px;
    }
    
    nav li {
        width: auto;
    }
    
    nav a {
        font-size: 1.1rem;
    }
    
    .container {
        display: flex;
        max-width: 1200px;
        margin: 0 auto;
        gap: 30px;
    }
    
    .sidebar {
        flex: 0 0 300px;
        text-align: left;
        margin-bottom: 0;
        height: fit-content;
        position: sticky;
        top: 20px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 0 20px 0;
    }
    
    .profile-section h1 {
        font-size: 26px;
        text-align: left;
    }
    
    .title {
        font-size: 16px;
        text-align: left;
    }
    
    .location {
        text-align: left;
        font-size: 15px;
    }
    
    .social-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: none;
    }
    
    .social-links a {
        text-align: left;
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .main-content {
        flex: 1;
        padding: 30px;
    }
    
    .main-content h2 {
        font-size: 28px;
    }
    
    .main-content h3 {
        font-size: 22px;
    }
    
    .main-content p {
        font-size: 16px;
        text-align: justify;
    }
    
    .edu-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .edu-institution {
        font-size: 18px;
    }
    
    .edu-location, .edu-years {
        font-size: 15px;
    }
    
    .edu-degree {
        font-size: 16px;
    }
}

/* Large desktops (1024px and up) */
@media (min-width: 1024px) {
    .container {
        gap: 40px;
        max-width: 1400px;
    }
    
    .sidebar {
        flex: 0 0 350px;
    }
    
    .main-content {
        padding: 40px;
    }
    
    .main-content h2 {
        font-size: 30px;
    }
    
    .main-content h3 {
        font-size: 24px;
    }
    
    .main-content p {
        font-size: 17px;
        line-height: 1.8;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .profile-section h1 {
        font-size: 28px;
    }
}

/* Extra large screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .sidebar {
        flex: 0 0 380px;
    }
}